canonicalize: add support for not resolving symlinks
[gnulib.git] / ChangeLog
1 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2
3         canonicalize: add support for not resolving symlinks
4         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5         indicate we don't want to follow symlinks.  Also
6         provide CAN_MODE_MASK to aid setting these existing
7         mutually exclusive values.
8         * lib/canonicalize.c (canonicalize_filename_mode):
9         Extract the flags from can_mode parameter, which
10         are currently just used to select between stat()
11         and lstat().  Also ensure that mutually exclusive
12         values are flagged immediately as invalid.
13         * tests/test-canonicalize.c: Verify symlinks are
14         not followed, and that invalid flag combinations
15         are diagnosed.
16
17 2011-12-25  Jim Meyering  <meyering@redhat.com>
18
19         gitlog-to-changelog: do not clump multi-paragraph entries
20         Identical header lines (date,name,email+coauthors) are suppressed,
21         thus putting all entries with those same characteristics under
22         a single header.  However, when a log entry consists of two or
23         more paragraphs, it may not be clear where it starts and ends.
24         This change makes it so that such an entry is always separated
25         from others by a header line, even when that header would
26         otherwise be suppressed.
27         * build-aux/gitlog-to-changelog: Implement the above.
28         Inspired by a related request from Stefano Lattarini in
29         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
30
31 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32
33         announce-gen: fix `cmd' typo in diagnostic
34         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
35         diagnostic: a missing '$' meant that the command was not output.
36
37 2011-12-23  Jim Meyering  <meyering@redhat.com>
38
39         test-framework-sh: distribute init.sh
40         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
41         Otherwise, "make -C gnulib-tests check" (at least in grep) would
42         fail due to the lack of init.sh.
43
44         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
45         * modules/atexit-tests: Rather than listing tests/init.sh,
46         now that there's a module for it, simply depend on that new module.
47         * modules/closein-tests: Likewise.
48         * modules/exclude-tests: Likewise.
49         * modules/getcwd-tests: Likewise.
50         * modules/perror-tests: Likewise.
51         * modules/pread-tests: Likewise.
52         * modules/pwrite-tests: Likewise.
53         * modules/vc-list-files-tests: Likewise.
54         * modules/verify-tests: Likewise.
55         * modules/xalloc-die-tests: Likewise.
56         * modules/xstrtoimax-tests: Likewise.
57         * modules/xstrtol-tests: Likewise.
58         * modules/xstrtoll-tests: Likewise.
59         * modules/xstrtoumax-tests: Likewise.
60         * modules/yesno-tests: Likewise.
61
62 2011-12-22  Jim Meyering  <meyering@redhat.com>
63
64         test-framework-sh: add minimal tests of init.sh's compare function
65         * modules/test-framework-sh-tests: New file.
66         * tests/test-init.sh: New file.
67
68         test-framework-sh: new module
69         * modules/test-framework-sh: New file.
70         * MODULES.html.sh (Support for maintaining and releasing projects):
71         List it.
72
73         init.sh: do not emit simulated diff output to stderr
74         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
75
76 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
77
78         .gitignore: ignore gnulib.dvi and regex.info
79         * doc/.gitignore:add gnulib.dvi and regex.info
80
81 2011-12-22  Jim Meyering  <meyering@redhat.com>
82
83         init.sh: correct previous change
84         * tests/init.sh (compare): My previous change was wrong.
85         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
86
87         init.sh: avoid unwarranted test failure when using "set -e"
88         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
89         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
90         a use like "compare exp out" would get evoke an unconditional failure.
91
92 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
93
94         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
95         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
96         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
97         autoreconf that did not.
98         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
99         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
100
101 2011-12-17  Jim Meyering  <meyering@redhat.com>
102
103         bootstrap: remove some now-unneeded code
104         This script arose back when gnulib-tool was young.
105         Since then, it has seen improvements that render much of this
106         script unnecessary.  In particular, it can now make symlinks
107         to the files it uses.  Also, I no longer see as much value in
108         marking files as read-only via comments.
109         If you relied on the symlink-creation feature of the preceding
110         version of this script, you can get most of that functionality
111         by adding the --symlink option to the definition of
112         gnulib_tool_option_extras in your bootstrap.conf file.
113         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
114         Run autopoint and libtoolize *before* gnulib-tool.
115         After it, run an abbreviated autoreconf, rather than a loop around
116         all tools.
117         (slirp, bt_mark_as_generated): Remove functions.
118
119 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
120
121         ftoastr: fix typo
122         * lib/ftoastr.h: Fix misspelling in comment.
123
124 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
125
126         * top/README-release: fix punctuation.
127
128 2011-12-17  Jim Meyering  <meyering@redhat.com>
129
130         bootstrap: correct the recent buildreq change
131         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
132         had no effect.
133         * build-aux/bootstrap (buildreq): Bracket each search term with
134         "*...*", so that the shell "case" statement works as intended.
135         Add comments.
136
137 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
138
139         build: let bootstrap resort to wget when downloading .po files
140         * build-aux/bootstrap (download_po_files): Fallback to wget when
141         downloading the .po files via rsync fails.  This is necessary to
142         bootstrap from behind a strict firewall.
143
144 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
145
146         stdint: don't assume C++11 when compiling with g++
147         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
149         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
150         work also in C++ before C++11, as that improperly inhibits
151         generating a substitute stdint.h for that case.
152
153 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
154
155         alloca: protect comment from gnulib-tool
156         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
157         that gnulib-tool doesn't think it's a license, and munge it to
158         say "GCC version 3".
159
160 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
161
162         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
163         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
164         $(abs_top_builddir) instead of $(top_builddir).
165
166 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
167
168         strftime-tests: also test nanoseconds
169         * tests/test-strftime.c (T): Add a test of %N.
170
171 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
172
173         inttypes, stdint: add C++11 support
174         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
175         when including inttypes.h and stdint.h.  Support this change to
176         the standard.
177         * doc/posix-headers/inttypes.texi (inttypes.h):
178         * doc/posix-headers/stdint.texi (stdint.h): Document this.
179         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
180         Define if not defined already, for the benefit of pre-C++11 hosts.
181         Define the standard format macros (e.g., PRId8) always.
182         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
183         Likewise, if __cpluspus.  Define the standard constant and limit
184         macros (e.g., INT8_C, INT8_MAX) always.
185         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
186         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
187         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
188         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
189         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
190         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
191         Likewise.
192
193 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
194
195         nonblocking tests: Fix test failure on Linux/PPC.
196         Suggested by Prerna Saxena in
197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
198         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
199         Set to 1100000.
200
201 2011-12-12  Jim Meyering  <meyering@redhat.com>
202
203         argmatch: don't hard-code `' when listing valid option arguments
204         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
205         use the quote function to add quotes.  Use fputs rather than
206         fprintf for the format string with no format directive.
207
208 2011-12-07  Eric Blake  <eblake@redhat.com>
209
210         bootstrap: detect tools required by gnulib-tool
211         * build-aux/bootstrap (buildreq): Provide minimum implicit
212         dependencies.
213         * DEPENDENCIES: Mention patch as a prereq.
214
215 2011-12-04  Bruno Haible  <bruno@clisp.org>
216
217         sethostname: Port to Windows platforms.
218         * lib/sethostname.c: Provide an alternate implementation for Windows
219         platforms.
220         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
221         (main): Skip the test if sethostname() fails with EPERM. On Windows
222         platforms, don't check the result of gethostname().
223
224 2011-12-04  Bruno Haible  <bruno@clisp.org>
225             Jim Meyering  <meyering@redhat.com>
226
227         tests: Avoid spurious error message on platforms without mktemp program.
228         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
229
230 2011-12-04  Bruno Haible  <bruno@clisp.org>
231
232         sethostname: Fix documentation.
233         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
234         "not fixed" section.
235
236 2011-12-03  Bruno Haible  <bruno@clisp.org>
237
238         gnulib-tool: Verify that the License field is present and non-empty.
239         * gnulib-tool (func_get_license_raw): New function, extracted from
240         func_get_license.
241         (func_get_license): Use it. Warn if the module is not a test module and
242         has no license.
243         Suggested by Jim Meyering.
244
245 2011-12-03  Bruno Haible  <bruno@clisp.org>
246
247         sethostname tests: Fix link error on mingw.
248         * tests/test-sethostname1.c: New file, extracted from
249         tests/test-sethostname.c.
250         * tests/test-sethostname2.c: New file, extracted from
251         tests/test-sethostname.c.
252         * tests/test-sethostname.c: Remove file.
253         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
254         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
255         (Depends-on): Add gethostname.
256         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
257         Link the latter with $(GETHOSTNAME_LIB).
258
259         sethostname tests: Fix compilation error on mingw.
260         * tests/test-sethostname.c: Don't include <sys/types.h>.
261         (geteuid): Use a dummy value without uid_t.
262         * modules/sethostname-tests (Depends-on): Remove sys_types.
263
264         sethostname tests: Avoid a gcc warning.
265         * tests/test-sethostname.c (main): Remove an unused variable.
266
267         Tweak last commit.
268         * modules/sethostname-tests (Files): Sort by decreasing importance.
269         (configure.ac): Check for geteuid.
270         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
271         the test when there's nothing to test. Drop an unnecessary cast.
272         Improve an error message. Verify that the final sethostname() call
273         succeeds.
274
275 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
276
277         Add a test suite for the sethostname module.
278         * modules/sethostname-tests: New file.  A test program
279         for the sethostname module.
280         * tests/test-sethostname.c: Likewise.
281
282 2011-12-03  Bruno Haible  <bruno@clisp.org>
283
284         Tweak last commit.
285         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
286         Fix preprocessor directives indentation. Fix typos.
287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
288         * modules/unistd (Makefile): Likewise.
289
290 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
291
292         Integrate the sethostname module into unistd.
293         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
294         into the unistd.h header.
295         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
296         preprocessor directives.
297         * modules/unistd: Setup the Makefile substitutions of the
298         SETHOSTNAME preprocessor directives.
299
300 2011-12-03  Bruno Haible  <bruno@clisp.org>
301
302         Tweak last commit.
303         * lib/sethostname.c: Don't include <string.h>.
304         (sethostname): No need to copy the argument string to the stack. Don't
305         call clearerr. Preserve errno when fprintf failed.
306         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
307         Don't invoke AC_REPLACE_FUNCS.
308         * modules/sethostname (Link): Remove empty section.
309         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
310         failure problem.
311
312 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
313
314         New module 'sethostname'.
315         * lib/sethostname.c (sethostname): New file.  Provide sethostname
316         for systems that lack it.
317         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
318         sethostname declaration and function.
319         * modules/sethostname: New file.  Define the sethostname module.
320
321 2011-12-03  Bruno Haible  <bruno@clisp.org>
322
323         Tweak last commit.
324         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
325
326 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
327
328         Split the HOST_NAME_MAX detection into a separate m4 macro.
329         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
330         macro so it can be used by the pending sethostname module.
331
332 2011-12-03  Bruno Haible  <bruno@clisp.org>
333
334         Fix module descriptions syntax.
335         * modules/argv-iter (License): Fix syntax.
336         * modules/di-set (License): Likewise.
337         * modules/ino-map (License): Likewise.
338         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
339
340 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
341
342         stdalign: port to Clang 3.0
343         Problem reported by Simon Josefsson in
344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
345         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
346         which has <stdalign.h> but which does not define alignof.
347         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
348
349 2011-12-01  Eric Blake  <eblake@redhat.com>
350
351         mktempd: silence dd usage
352         * build-aux/mktempd (rand_bytes): Silence dd.
353
354 2011-11-30  Simon Josefsson  <simon@josefsson.org>
355
356         manywarnings: Don't mention gcc version in docstring.
357         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
358         Jim Meyering <meyering@redhat.com>.
359
360 2011-11-30  Jim Meyering  <meyering@redhat.com>
361
362         hash: mark a few floating point constants with "f" suffix
363         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
364         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
365         floating point constants with "f", since they're destined to be
366         saved/used as "float"s.
367
368 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
369
370         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
371         * tests/test-float.c (test_long_double): Correct and re-enable the
372         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
373
374 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
375
376         Avoid subtracting two pointers that don't point into the same block.
377         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
378         only pointers into the same memory block are subtracted. We cannot
379         assume that sizeof (ptrdiff_t) == sizeof (void *).
380
381 2011-11-29  Eric Blake  <eblake@redhat.com>
382
383         maint.mk: add syntax check for use of compare from init.sh
384         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
385         moved here from coreutils.
386
387         manywarnings: drop -Wunsuffixed-float-constants
388         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
389         '1.0D', which is the only way to silence this warning for 'double'.
390
391 2011-11-29  Jim Meyering  <meyering@redhat.com>
392
393         hash: mark compute_bucket_size with the pure attribute
394         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
395
396         quotearg, propername: correct pragma guard expression
397         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
398         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
399
400 2011-11-28  Jim Meyering  <meyering@redhat.com>
401
402         propername: do not mark proper_name with the const attribute
403         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
404         since it examines data pointed to by its parameter.
405         * lib/propername.c (proper_name): Instead, add a pragma to suppress
406         the suggestion from -Wsuggest-attribute=const.
407
408         propername: mark one more function as const
409         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
410
411 2011-11-27  Jim Meyering  <meyering@redhat.com>
412
413         mark functions with const and pure attributes
414
415         Mark functions per suggestions from gcc-4.6 when using these options:
416         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
417         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
418         Follow these guidelines: when possible, apply the attribute to
419         an extern declaration, not to its definition.  Apply it to the
420         definition only when the definition is static.
421         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
422         * lib/argv-iter.h (argv_iter_n_args): Likewise.
423         * lib/base64.h (isbase64): Likewise.
424         * lib/basename-lgpl.c (last_component, base_len): Likewise.
425         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
426         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
427         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
428         (c_tolower, c_toupper): Likewise.
429         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
430         * lib/chdir-long.c (find_non_slash): Likewise.
431         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
432         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
433         * lib/file-type.h (file_type): Likewise.
434         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
435         * lib/filevercmp.c (verrevcmp): Likewise.
436         * lib/freadahead.h (freadahead): Likewise.
437         * lib/fts.c (fts_maxarglen): Likewise.
438         * lib/hash-pjw.h (hash_pjw): Likewise.
439         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
440         * lib/hash.c (is_prime, next_prime): Likewise.
441         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
442         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
443         (hash_table_ok, hash_get_first, hash_string): Likewise.
444         (compute_bucket_size): Likewise.
445         * lib/i-ring.h (i_ring_empty): Likewise.
446         * lib/isnan.c (isnanl): Likewise.
447         * lib/math.h (isnanl, rpl_isnanl): Likewise.
448         * lib/memcasecmp.h (memcasecmp): Likewise.
449         * lib/memchr2.h (memchr2): Likewise.
450         * lib/memcmp2.h (memcmp2): Likewise.
451         * lib/parse-datetime.y (lookup_zone): Likewise.
452         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
453         [!WINDOWS_SOCKETS]: Likewise.
454         * lib/strnlen1.h (strnlen1): Likewise.
455         * lib/uniwidth.in.h (uc_width): Likewise.
456         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
457         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
458         (quoting_options_from_style): Add a comment.
459         * lib/propername.h (proper_name): Add a comment.
460
461 2011-11-27  Bruno Haible  <bruno@clisp.org>
462
463         Remove unused macros from !_LIBC code in glibc-borrowed files.
464         * lib/fnmatch.c (STRCOLL): Remove macro.
465         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
466         * lib/glob.c (__stat, __readdir64): Remove macros.
467         * lib/tempname.c (__open64, __xstat64): Remove macros.
468         Suggested by Paul Eggert.
469
470 2011-11-27  Bruno Haible  <bruno@clisp.org>
471
472         getcwd: Fix link error on MSVC 9.
473         * modules/getcwd (Depends-on): Add readdir, rewinddir.
474
475 2011-11-27  Bruno Haible  <bruno@clisp.org>
476
477         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
478         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
479         HAVE_OPENDIR is 0.
480         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
481         HAVE_CLOSEDIR is 0.
482         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
483         is 0.
484         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
485
486 2011-11-27  Bruno Haible  <bruno@clisp.org>
487
488         getcwd: Fix bug from 2011-08-17.
489         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
490         platforms that need it.
491         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
492         code of 4 to be a failure, not a success. This ensures that
493         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
494
495 2011-11-27  Bruno Haible  <bruno@clisp.org>
496
497         binary-io tests: Avoid test failure on mingw when libtool is used.
498         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
499         Don't verify the size of t-bin-out1.tmp here.
500         * tests/test-binary-io.sh: Verify it here.
501         Reported by Simon Josefsson.
502
503 2011-11-26  Bruno Haible  <bruno@clisp.org>
504
505         Fix conflict between two instantiations of module 'unistd'.
506         * gnulib-tool (func_emit_autoconf_snippet): Substitute
507         ${include_guard_prefix} also in the autoconf snippet.
508         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
510         GNULIB_UNISTD_H_GETOPT.
511         * modules/getopt-posix (configure.ac): Set the
512         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
513         * modules/getopt-gnu (configure.ac): Likewise.
514         * modules/unistd (Makefile.am): Change the substitution value of
515         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
516         Reported by Simon Josefsson.
517
518 2011-11-25  Bruno Haible  <bruno@clisp.org>
519
520         pagealign_alloc: Doc and comments.
521         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
522         module.
523         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
524
525 2011-11-25  Jim Meyering  <meyering@redhat.com>
526
527         test-update-copyright.sh: avoid false-positive failure
528         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
529         around false positive failure on Cygwin/Windows.  The latter was
530         matching erroneously-created files with names like
531         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
532
533 2011-11-25  Simon Josefsson  <simon@josefsson.org>
534
535         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
536         * m4/valgrind-tests.m4: Check that the parameters that will be
537         used works, not just a subset of them.  Reported by Bruno Haible
538         <bruno@clisp.org>.
539
540 2011-11-24  Jim Meyering  <meyering@redhat.com>
541
542         test-stdalign.c: comment out long double tests
543         * tests/test-stdalign.c: Don't try to reduce alignment of long double
544         variables.  That provokes errors like this from gcc-4.7.0 20111124:
545         error: '_Alignas' specifiers cannot reduce alignment of \
546         'static_longdouble_alignas'.
547
548 2011-11-22  Jim Meyering  <meyering@redhat.com>
549
550         init.sh: make "compare /dev/null FILE" output more readable
551         * tests/init.sh (compare_): Document the preferred order of arguments.
552         (emit_diff_u_header_): New function.
553         (compare_dev_null_): Emit a simulated diff, rather than just the
554         contents of the unexpected file.  Suggestion from Bruno Haible.
555
556 2011-11-21  Jim Meyering  <meyering@redhat.com>
557             Eric Blake  <eblake@redhat.com>
558
559         init.sh: work around OSF/1 5.1's mishandling of /dev/null
560         * tests/init.sh: Make our compare function slightly more portable.
561         Reported by Bruno Haible in
562         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
563
564 2011-11-21  Simon Josefsson  <simon@josefsson.org>
565
566         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
567         before using it, in code that ends up in config.h.
568
569 2011-11-20  Bruno Haible  <bruno@clisp.org>
570
571         getcwd: Work around getcwd bug on AIX 5..7.
572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
573         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
574         Use a different value for gl_cv_func_getcwd_path_max. Move the
575         definition of HAVE_PARTLY_WORKING_GETCWD from here...
576         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
577         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
578         Define HAVE_MINIMALLY_WORKING_GETCWD.
579         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
580         where it is not even minimally working, that is, on AIX.
581         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
582         m4/getcwd-path-max.m4.
583         (main): Update exit code computation.
584         * doc/posix-functions/getcwd.texi: Mention list of platforms where
585         getcwd does not handle long file names.
586
587 2011-11-20  Bruno Haible  <bruno@clisp.org>
588
589         getcwd: Fix bug from 2009-09-10.
590         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
591         like "no".
592
593 2011-11-20  Simon Josefsson  <simon@josefsson.org>
594
595         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
596
597 2011-11-20  Bruno Haible  <bruno@clisp.org>
598
599         fma tests: Avoid shadowing local variables.
600         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
601         expected.
602
603 2011-11-20  Bruno Haible  <bruno@clisp.org>
604
605         copysignf tests: Fix.
606         * tests/test-copysignf.c: Fix signature check.
607
608 2011-11-20  Bruno Haible  <bruno@clisp.org>
609
610         fma: Remove unused code.
611         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
612         unused macros.
613
614 2011-11-20  Bruno Haible  <bruno@clisp.org>
615
616         sethostname: Fix doc about AIX.
617         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
618         sethostname; it has it.
619
620         sethostname: Mention more portability problems.
621         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
622         problem.
623         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
624
625 2011-11-19  Bruno Haible  <bruno@clisp.org>
626
627         Depend on module fcntl-h when AT_FDCWD is used.
628         * modules/utimens (Depends-on): Add fcntl-h.
629         * modules/areadlinkat (Depends-on): Likewise.
630         * modules/areadlinkat-with-size (Depends-on): Likewise.
631         * modules/faccessat (Depends-on): Likewise.
632         * modules/fchmodat (Depends-on): Likewise.
633         * modules/fchownat (Depends-on): Likewise.
634         * modules/getcwd (Depends-on): Likewise.
635         * modules/mkdirat (Depends-on): Likewise.
636         * modules/mkfifoat (Depends-on): Likewise.
637         * modules/readlinkat (Depends-on): Likewise.
638         * modules/symlinkat (Depends-on): Likewise.
639         * modules/dup2-tests (Depends-on): Likewise.
640         * modules/fdutimensat-tests (Depends-on): Likewise.
641         * modules/futimens-tests (Depends-on): Likewise.
642
643 2011-11-19  Bruno Haible  <bruno@clisp.org>
644
645         euidaccess: Update a comment.
646         * lib/euidaccess.c: Update comment about platforms with faccessat.
647
648 2011-11-19  Bruno Haible  <bruno@clisp.org>
649
650         openat: Fix file list.
651         * modules/openat (Files): Remove lib/at-func.c.
652
653 2011-11-19  Bruno Haible  <bruno@clisp.org>
654
655         fstatat: Simplify.
656         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
657         gnulib should define rpl_fstatat, there is a
658         "#define fstatat rpl_fstatat" in <sys/stat.h>.
659
660 2011-11-19  Bruno Haible  <bruno@clisp.org>
661
662         Ensure 'inline' can be used in tests/test-utimens-common.h.
663         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
664         * modules/futimens-tests (configure.ac): Likewise.
665         * modules/utimens-tests (configure.ac): Likewise.
666         * modules/utimensat-tests (configure.ac): Likewise.
667
668 2011-11-19  Simon Josefsson  <simon@josefsson.org>
669
670         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
671         not hash_insert0.
672         (hash_insert_if_absent): Doc fix.
673
674 2011-11-19  Simon Josefsson  <simon@josefsson.org>
675
676         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
677
678 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
679
680         test-getcwd: disambiguate exit status
681         * tests/test-getcwd.c (test_long_name): Return 0..7.
682         (main): Exit with an unambiguous exit status.  The old
683         code yielded a mysterious mixture of two failure codes.
684
685         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
686         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
687         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
688         rpl_fstatat or fstatat.  This should fix the other problem
689         reported by Kai Habel in
690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
691         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
693         and I reproduced it on a Solaris 8 host we still have in production.
694
695 2011-11-18  Jim Meyering  <meyering@redhat.com>
696
697         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
698         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
699         Add a sentence to the comment.
700         (hash_insert0): New function that simply calls hash_insert_if_absent.
701         * lib/hash.h (hash_insert_if_absent): Declare it.
702         (hash_insert0): Add deprecation attribute.
703         (_GL_ATTRIBUTE_DEPRECATED): Define.
704         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
705         not hash_insert0.
706         * NEWS: Mention it, even though it's not really an incompatible change.
707
708 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
709
710         openat: avoid compilation failure due to lack of <errno.h> inclusion
711         * lib/openat.c: Include <errno.h>.
712
713 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
714
715         * modules/getcwd (Depends-on): Add fdopendir.
716         This fixes one of the two problems reported by Kai Habel in
717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
718
719         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
720         stdalign problem reported by Ian Beckwith in
721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
722         * modules/crypto/gc-arcfour (Depends-on):
723         Depend conditionally on crypto/arcfour.
724         * modules/crypto/gc-arctwo (Depends-on):
725         Depend conditionally on crypto/arctwo.
726         * modules/crypto/gc-des (Depends-on):
727         Depend conditionally on crypto/des.
728         * modules/crypto/gc-hmac-md5 (Depends-on):
729         Depend conditionally on crypto/hmac-md5.
730         * modules/crypto/gc-hmac-sha1 (Depends-on):
731         Depend conditionally on crypto/hmac-sha1.
732         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
733         * modules/crypto/gc-md4 (Depends-on):
734         Depend conditionally on crypto/md4.
735         * modules/crypto/gc-md5 (Depends-on):
736         Depend conditionally on crypto/md5.
737         * modules/crypto/gc-rijndael (Depends-on):
738         Depend conditionally on crypto/rijndael.
739         * modules/crypto/gc-sha1 (Depends-on):
740         Depend conditionally on crypto/sha1.
741         * modules/crypto/gc-arcfour:
742         * modules/crypto/gc-arctwo:
743         * modules/crypto/gc-des:
744         * modules/crypto/gc-hmac-md5:
745         * modules/crypto/gc-hmac-sha1:
746         * modules/crypto/gc-md2:
747         * modules/crypto/gc-md4:
748         * modules/crypto/gc-md5:
749         * modules/crypto/gc-rijndael:
750         * modules/crypto/gc-sha1:
751         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
752         now that the conditional dependencies do the work for us.
753
754 2011-11-17  Jim Meyering  <meyering@redhat.com>
755
756         tests: factor st_ctime-comparison out of two headers
757         * tests/test-utimens-common.h (ctime_compare): Define.
758         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
759         * tests/test-lutimens.h (test_lutimens): Likewise.
760         * tests/test-utimens.h (test_utimens): Likewise.
761
762         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
763         Invoke the test program via an init.sh-using wrapper.
764         * tests/test-getcwd.sh: New file.
765         * modules/getcwd-tests (Files): Add it.
766         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
767
768 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
769
770         gitlog-to-changelog: support multi-author commits.
771         The FSF cares about keeping track of all authors of patches to its
772         projects, but Git doesn't provide obvious support for multi-author
773         changesets. Consensus seems to be forming around the use of extra
774         Signed-off-by inspired lines in the log message formatted as
775         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
776         multi-author commits between version control systems.
777         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
778         log message and output in standard ChangeLog multi-author format.
779         Reported by Peter Rosin <peda@lysator.liu.se>
780
781 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
782             Bruno Haible  <bruno@clisp.org>
783
784         Fix some modules' file list.
785         * modules/fstatat (Files): Add m4/lstat.m4.
786         * modules/openat (Files): Likewise.
787         * modules/unlinkat (Files): Likewise.
788
789 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
790
791         maint.mk: fix tight-scope.mk generation in VPATH builds.
792         * top/maint.mk (tight-scope.mk): Make sure to prefix file
793         reference with $(srcdir) so that the file is found correctly even
794         when running `make syntax-check' in a VPATH build.
795
796 2011-11-13  Bruno Haible  <bruno@clisp.org>
797             Jim Meyering  <meyering@redhat.com>
798
799         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
800         * tests/init.sh (compare): Remove "No differences encountered" or
801         synonymous output from the 'diff' program.
802
803 2011-11-13  Bruno Haible  <bruno@clisp.org>
804
805         Makefile: Tweak indentation.
806         * Makefile: Use tab as first character in every line that contains rule
807         commands.
808
809 2011-11-13  Bruno Haible  <bruno@clisp.org>
810
811         Syntax check for copyright statements.
812         * check-copyright: New file.
813         * Makefile (sc_check_copyright): New rule.
814
815 2011-11-13  Simon Josefsson  <simon@josefsson.org>
816
817         * build-aux/git-version-gen: Add --prefix to configure the tag
818         match string.
819
820 2011-11-13  Simon Josefsson  <simon@josefsson.org>
821
822         * build-aux/git-version-gen: Add --help and --version.
823
824 2011-11-12  Jim Meyering  <meyering@redhat.com>
825
826         revamp the other test-exclude?.sh scripts to use init.sh, too
827         * tests/test-exclude1.sh: Use init.sh.
828         * tests/test-exclude2.sh: Likewise.
829         * tests/test-exclude3.sh: Likewise.
830         * tests/test-exclude4.sh: Likewise.
831         * tests/test-exclude5.sh: Likewise.
832         * tests/test-exclude6.sh: Likewise.
833         * tests/test-exclude7.sh: Likewise.
834         * tests/test-exclude8.sh: Likewise.
835         * modules/exclude-tests (Files): List init.sh.
836
837         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
838         These shell scripts ignored failure of the binary test-exclude,
839         so making the latter return 77 didn't cause them to be skipped.
840         * tests/test-exclude5.sh: Exit with test-exclude's error status
841         when that program fails.  Revamp to use init.sh.
842         * tests/test-exclude2.sh: Likewise.
843
844         test-exclude: fix a typo
845         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
846
847 2011-11-11  Bruno Haible  <bruno@clisp.org>
848
849         obstack: Fix compilation error on MSVC 9.
850         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
851
852 2011-11-11  Jim Meyering  <meyering@redhat.com>
853
854         test-exclude: skip tests rather than failing on deficient systems
855         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
856         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
857         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
858         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
859
860 2011-11-10  Bruno Haible  <bruno@clisp.org>
861
862         ptsname_r test: Avoid gcc warning on glibc systems.
863         * tests/test-ptsname_r.c (null_ptr): New function.
864         (test_errors): Use it.
865
866 2011-11-10  Bruno Haible  <bruno@clisp.org>
867
868         ptsname_r: Avoid compilation error on OSF/1 5.1.
869         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
871         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
872         function is not declared or incompatibly declared.
873         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
874         * modules/ptsname_r (Depends-on, configure.ac): Update.
875         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
876
877 2011-11-10  Bruno Haible  <bruno@clisp.org>
878
879         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
880         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
881         When cross-compiling, guess yes on all platforms except AIX.
882         Reported by Ludovic Courtès <ludo@gnu.org>.
883
884 2011-11-09  Bruno Haible  <bruno@clisp.org>
885
886         ptsname_r tests: Fix bugs.
887         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
888         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
889
890 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
891
892         fstatat: work with cross-compilation
893         Problem reported by Ludovic Courtès in
894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
895         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
896         "cross-compiling" and assume the bug is present.  Replace
897         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
898         an inverted sense, to be more conservative about our assumptions.
899         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
900
901 2011-11-09  Bruno Haible  <bruno@clisp.org>
902
903         Improve MODULES.html output.
904         * modules/mkfifoat (Description): Use the word "function".
905         * modules/readlinkat (Description): Likewise.
906         * modules/symlinkat (Description): Likewise.
907
908 2011-11-09  Eric Blake  <eblake@redhat.com>
909
910         ptsname_r-tests: new test module
911         * modules/ptsname_r-tests: New module.
912         * tests/test-ptsname_r.c: New file.
913
914         ptsname_r: new module
915         * modules/ptsname_r: New module.
916         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
917         * lib/ptsname.c (__ptsname_r): Split...
918         * lib/ptsname_r.c: ...into new file.
919         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
920         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
921         * modules/stdlib (Makefile.am): Substitute witnesses.
922         * lib/stdlib.in.h (ptsname_r): Declare it.
923         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
924         * MODULES.html.sh (Misc): Likewise.
925         * modules/ptsname (Depends-on): Alter dependency.
926         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
927
928 2011-11-09  Jim Meyering  <meyering@redhat.com>
929
930         announce-gen: be more concise when there's only one URL+tarball
931         * build-aux/announce-gen (get_tool_versions): When you distribute
932         only one type of tarball, combine the first two "Here are..."
933         sections and make the key-checking grammar independent of
934         how many tarballs there are.
935
936 2011-11-09  Eric Blake  <eblake@redhat.com>
937
938         openpty: provide a stub on mingw
939         * lib/pty.in.h (includes): Provide forward declarations.
940         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
941
942         raise: fix mingw handling of SIGPIPE
943         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
944
945 2011-11-08  Bruno Haible  <bruno@clisp.org>
946
947         More conditional dependencies.
948         * modules/faccessat (Depends-on): Add conditions.
949         * modules/fchmodat (Depends-on): Likewise.
950         * modules/fchownat (Depends-on): Likewise.
951         * modules/fstatat (Depends-on): Likewise.
952         * modules/mkfifoat (Depends-on): Likewise.
953         * modules/readlinkat (Depends-on): Likewise.
954         * modules/symlinkat (Depends-on): Likewise.
955         * modules/unlinkat (Depends-on): Likewise.
956         * modules/utimensat (Depends-on): Likewise.
957         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
958         * modules/linkat (Depends-on): Refine the conditions.
959         * modules/renameat (Depends-on): Likewise.
960
961 2011-11-08  Bruno Haible  <bruno@clisp.org>
962
963         faccessat: Move AC_LIBOBJ invocation to module description.
964         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
965         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
966         invocation from here...
967         * modules/faccessat (configure.ac): ... to here. Invoke
968         gl_PREREQ_FACCESSAT.
969
970 2011-11-08  Bruno Haible  <bruno@clisp.org>
971
972         faccessat: Simplify autoconf macro.
973         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
974         gl_FUNC_EUIDACCESS.
975
976 2011-11-08  Bruno Haible  <bruno@clisp.org>
977
978         renameat: Fix dependencies.
979         * modules/renameat (Depends-on): Add stdbool.
980
981 2011-11-08  Bruno Haible  <bruno@clisp.org>
982
983         mkfifoat: Fix module description.
984         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
985         not gl_UNISTD_MODULE_INDICATOR.
986
987 2011-11-08  Bruno Haible  <bruno@clisp.org>
988
989         fstatat: Remove unused dependency.
990         * modules/fstatat (Depends-on): Remove fstat.
991
992 2011-11-08  Simon Josefsson  <simon@josefsson.org>
993
994         GNUmakefile: behave when Makefile is missing.
995         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
996
997 2011-11-08  Bruno Haible  <bruno@clisp.org>
998
999         openat: Conditionalize dependencies.
1000         * lib/openat.c: Reduce the scope of some #includes.
1001         * modules/openat (Depends-on): Add conditions.
1002
1003 2011-11-07  Jim Meyering  <meyering@redhat.com>
1004
1005         maint.mk: extract GPG key ID without using a temporary file
1006         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1007         without using a temporary file.  Based on a suggestion from Werner Koch
1008         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1009
1010 2011-11-07  Eric Blake  <eblake@redhat.com>
1011
1012         grantpt: fix typo
1013         * lib/stdlib.in.h (grantpt): Check correct function.
1014
1015         maint.mk: silence new syntax check
1016         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1017
1018 2011-11-06  Bruno Haible  <bruno@clisp.org>
1019
1020         Doc about floating-point and math API.
1021         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1022         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1023
1024 2011-11-06  Bruno Haible  <bruno@clisp.org>
1025
1026         stdalign tests: Skip the test when compiled by Sun C.
1027         * tests/test-stdalign.c (main): Skip the test on Sun C.
1028
1029 2011-11-06  Bruno Haible  <bruno@clisp.org>
1030
1031         ansi-c++-opt: Complete the 2011-06-05 change.
1032         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1033         does not support namespaces, set the variable to "no", not to ":".
1034
1035 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1038
1039 2011-11-06  Bruno Haible  <bruno@clisp.org>
1040
1041         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1042         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1043         (minus_zerol) [HP-UX]: New macro.
1044         (unary_minus) [HP-UX]: New function.
1045         (copysignl) [HP-UX]: Use unary_minus function.
1046
1047 2011-11-06  Bruno Haible  <bruno@clisp.org>
1048
1049         ldexp, ldexpf, ldexpl: Enhance tests.
1050         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1051         and tests/test-ldexpl.c.
1052         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1053         LDEXP, MIN_EXP, MAX_EXP): New macros.
1054         Include test-ldexp.h.
1055         (main): Just call test_function.
1056         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1057         infinity.h, nan.h.
1058         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1059         MAX_EXP): New macros.
1060         Include test-ldexp.h.
1061         (x, y): Remove variables.
1062         (main): Just call test_function.
1063         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1064         infinity.h, nan.h.
1065         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1066         MAX_EXP): New macros.
1067         Include test-ldexp.h.
1068         (x, y): Remove variables.
1069         (main): Just call test_function.
1070         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1071         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1072         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1073         (Depends-on): Add isnand-nolibm, signbit, float.
1074         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1075         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1076         (Depends-on): Add isnanf-nolibm, signbit, float.
1077
1078 2011-11-06  Bruno Haible  <bruno@clisp.org>
1079
1080         math tests: Cosmetics.
1081         * tests/test-math-c++.cc: Reorder declarations.
1082
1083 2011-11-05  Bruno Haible  <bruno@clisp.org>
1084
1085         fma*: Simplify test.
1086         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1087         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1088
1089         Tests for module 'fmal'.
1090         * modules/fmal-tests: New file.
1091         * tests/test-fmal1.c: New file.
1092         * tests/test-fmal2.c: New file.
1093
1094         New module 'fmal'.
1095         * lib/math.in.h (fmal): New declaration.
1096         * lib/fmal.c: New file.
1097         * m4/fmal.m4: New file.
1098         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1100         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1101         REPLACE_FMAL.
1102         * modules/fmal: New file.
1103         * doc/posix-functions/fmal.texi: Mention the new module and the various
1104         bugs.
1105
1106         Tests for module 'fmaf'.
1107         * modules/fmaf-tests: New file.
1108         * tests/test-fmaf1.c: New file.
1109         * tests/test-fmaf2.c: New file.
1110
1111         New module 'fmaf'.
1112         * lib/math.in.h (fmaf): New declaration.
1113         * lib/fmaf.c: New file.
1114         * m4/fmaf.m4: New file.
1115         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1117         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1118         REPLACE_FMAF.
1119         * modules/fmaf: New file.
1120         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1121         bugs.
1122
1123         Tests for module 'fma'.
1124         * modules/fma-tests: New file.
1125         * tests/test-fma1.c: New file.
1126         * tests/test-fma1.h: New file.
1127         * tests/test-fma2.c: New file.
1128         * tests/test-fma2.h: New file.
1129
1130         New module 'fma'.
1131         * lib/math.in.h (fma): New declaration.
1132         * lib/fma.c: New file.
1133         * m4/fma.m4: New file.
1134         * m4/fegetround.m4: New file.
1135         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1137         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1138         REPLACE_FMA.
1139         * modules/fma: New file.
1140         * doc/posix-functions/fma.texi: Mention the new module and the various
1141         bugs.
1142
1143         Extend gl_MATHFUNC.
1144         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1145         Support 'void' as argument type.
1146         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1147
1148 2011-11-05  Jim Meyering  <meyering@redhat.com>
1149
1150         maint.mk: also prohibit inclusion of dirent.h without use
1151         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1152
1153 2011-11-05  Bruno Haible  <bruno@clisp.org>
1154
1155         ldexpl tests: Avoid test failure on MSVC 9.
1156         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1157         value. Needed in order to enforce the conversion from a value greater
1158         than LDBL_MAX to Infinity.
1159
1160 2011-11-05  Bruno Haible  <bruno@clisp.org>
1161
1162         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1163         * modules/at-internal: New file, extracted from modules/openat.
1164         * modules/openat-h: New file.
1165         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1166         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1167         * modules/openat (Description): Add reference to POSIX function.
1168         (Files): Remove lib/openat.h, lib/openat-proc.c.
1169         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1170         intprops, unistd.
1171         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1172         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1173         gl_FCNTL_MODULE_INDICATOR.
1174         (Include): Remove unistd.h, openat.h.
1175         * modules/areadlinkat (Files): Add lib/at-func.c.
1176         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1177         openat-die, openat-h, save-cwd.
1178         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1179         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1180         openat-die, openat-h, save-cwd, unistd.
1181         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1182         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1183         openat-h, save-cwd. Remove fcntl-h, openat.
1184         * modules/fchmodat (Files): Remove lib/openat.h.
1185         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1186         openat, stdbool, unistd.
1187         * modules/fchownat (Files): Remove lib/openat.h.
1188         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1189         openat, stdbool, sys_stat.
1190         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1191         lib/openat-proc.c.
1192         (Depends-on): Add at-internal.
1193         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1194         * modules/fstatat (Files): Remove lib/openat.h.
1195         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1196         stdbool, unistd.
1197         * modules/fts (Depends-on): Add openat-h.
1198         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1199         openat.
1200         * modules/mkdirat (Files): Remove lib/openat.h.
1201         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1202         openat, stdbool, sys_stat.
1203         * modules/mkfifoat (Files): Add lib/at-func.c.
1204         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1205         openat-h, save-cwd. Remove fcntl-h, openat.
1206         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1207         * modules/readlinkat (Files): Add lib/at-func.c.
1208         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1209         openat-h, save-cwd. Remove fcntl-h, openat.
1210         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1211         openat.
1212         * modules/selinux-at (Files): Add lib/at-func.c.
1213         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1214         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1215         * modules/symlinkat (Files): Add lib/at-func.c.
1216         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1217         openat-h, save-cwd. Remove fcntl-h, openat.
1218         * modules/unlinkat (Files): Remove lib/openat.h.
1219         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1220         stdbool.
1221         * modules/utimensat (Files): Add lib/at-func.c.
1222         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1223         openat-die, openat-h, save-cwd.
1224         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1225         * modules/fdutimensat-tests (Depends-on): Add openat.
1226         * modules/fstatat-tests (Depends-on): Add openat-h.
1227         * modules/readlinkat-tests (Depends-on): Add openat.
1228         * modules/symlinkat-tests (Depends-on): Add openat.
1229
1230 2011-11-05  Bruno Haible  <bruno@clisp.org>
1231
1232         openat: Include <stdbool.h>.
1233         * lib/openat.c: Include <stdbool.h>.
1234
1235 2011-11-04  Bruno Haible  <bruno@clisp.org>
1236
1237         fchownat, renameat, unlinkat: Fix dependencies.
1238         * modules/fchownat (Depends-on): Add fstatat.
1239         * modules/renameat (Depends-on): Likewise.
1240         * modules/unlinkat (Depends-on): Likewise.
1241
1242 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1243
1244         openat: remove direct dependency on dirent
1245         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1246         and hasn't been needed ever since fdopendir was split into its own
1247         module on 2009-08-31.
1248         * modules/openat (Depends-on): Remove dirent.
1249
1250 2011-11-04  Bruno Haible  <bruno@clisp.org>
1251
1252         renameat: Optimize code size.
1253         * modules/renameat (configure.ac): Don't compile at-func2.c if
1254         REPLACE_RENAMEAT is 1.
1255
1256 2011-11-04  Bruno Haible  <bruno@clisp.org>
1257
1258         openat tests: Fix file list.
1259         * modules/openat-tests (Files): Add tests/test-open.h.
1260
1261 2011-11-04  Bruno Haible  <bruno@clisp.org>
1262
1263         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1264         * modules/fchmodat (Depends-on): Add openat-die.
1265         * modules/fchownat (Depends-on): Likewise.
1266         * modules/linkat (Depends-on): Likewise.
1267         * modules/renameat (Depends-on): Likewise.
1268         * modules/openat (Depends-on): Add dirent.
1269
1270 2011-11-04  Jim Meyering  <meyering@redhat.com>
1271
1272         at-func*.c: fix comments
1273         * lib/at-func2.c: Correct/improve first-line comment.
1274         * lib/at-func.c: Correct grammar in first-line comment.
1275
1276 2011-11-04  Bruno Haible  <bruno@clisp.org>
1277
1278         New module 'mkdirat', split off from module 'openat'.
1279         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1280         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1281         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1282         * modules/mkdirat: New file, extracted from modules/openat.
1283         * modules/openat (Files): Remove lib/mkdirat.c.
1284         (Depends-on): Remove mkdir.
1285         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1286         (Include): Remove <sys/stat.h>.
1287         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1288         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1289         tests/test-mkdir.h.
1290         (Depends-on): Remove ignore-value.
1291         (Makefile.am): Remove rules for test-mkdirat.
1292         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1293         of module 'openat'.
1294         * NEWS: Mention the change.
1295
1296 2011-11-04  Bruno Haible  <bruno@clisp.org>
1297
1298         closedir: Avoid warning on mingw.
1299         * lib/closedir.c: Include <unistd.h>.
1300
1301 2011-11-04  Bruno Haible  <bruno@clisp.org>
1302
1303         New module 'fstatat', split off from module 'openat'.
1304         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1305         defined.
1306         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1307         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1308         gl_FUNC_FSTATAT.
1309         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1310         * modules/fstatat: New file, extracted from modules/openat.
1311         * modules/openat (Files): Remove lib/fstatat.c.
1312         (Depends-on): Remove lstat.
1313         (configure.ac): Remove AC_LIBOBJ of fstatat.
1314         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1315         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1316         tests/test-lstat.h, tests/test-stat.h.
1317         (Depends-on): Remove getcwd-lgpl.
1318         (Makefile.am): Remove rules for test-fstatat.
1319         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1320         of module 'openat'.
1321         * NEWS: Mention the change.
1322         * modules/getcwd (Depends-on): Add fstatat.
1323         * modules/linkat (Depends-on): Likewise.
1324         * modules/mkfifoat-tests (Depends-on): Likewise.
1325         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1326
1327 2011-11-03  Bruno Haible  <bruno@clisp.org>
1328
1329         New module 'unlinkat', split off from module 'openat'.
1330         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1331         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1332         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1333         * modules/unlinkat: New file, extracted from modules/openat. Correct
1334         the dependency conditions.
1335         * modules/openat (Files): Remove lib/unlinkat.c.
1336         (Depends-on): Remove rmdir, unlink.
1337         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1338         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1339         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1340         tests/test-rmdir.h, tests/test-unlink.h.
1341         (Depends-on): Remove unlinkdir.
1342         (Makefile.am): Remove rules for test-unlinkat.
1343         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1344         of module 'openat'.
1345         * NEWS: Mention the change.
1346         * modules/linkat-tests (Depends-on): Add unlinkat.
1347         * modules/mkfifoat-tests (Depends-on): Likewise.
1348         * modules/readlinkat-tests (Depends-on): Likewise.
1349
1350 2011-11-02  Bruno Haible  <bruno@clisp.org>
1351
1352         New module 'fchmodat', split off from module 'openat'.
1353         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1354         defined.
1355         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1356         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1357         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1358         * modules/fchmodat: New file, extracted from modules/openat.
1359         * modules/openat (Files): Remove lib/fchmodat.c.
1360         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1361         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1362         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1363         (Makefile.am): Remove rules for test-fchmodat.
1364         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1365         of module 'openat'.
1366         * NEWS: Mention the change.
1367
1368 2011-11-02  Jim Meyering  <meyering@redhat.com>
1369
1370         putenv: indent #definition of "environ" to placate cppi
1371         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1372
1373         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1374         Git logs are often treated as immutable, because editing them
1375         changes the SHA1 checksums of all descendants.  Thus, errors in
1376         git logs tend to stay there forever.  However, when we generate
1377         a ChangeLog file -- typically for distribution -- from that git log,
1378         we can actually make corrections in the generated file.  The key
1379         lies in recording in machine-readable/applicable form the desired
1380         corrections.  See --help for description and an example.
1381         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1382         (usage): Describe it; alphabetize option descriptions.
1383         (main): Honor the new option, carefully.
1384
1385 2011-11-01  Jim Meyering  <meyering@redhat.com>
1386
1387         gitlog-to-changelog: avoid an infloop
1388         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1389         that ends up being empty.
1390
1391 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1392
1393         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1394         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1395         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1396         contains (possibly-quoted) backslashes.  This should avoid
1397         all-too-common shell bugs if COMPLICATED contains backslashes in
1398         the "wrong" places.  Reported by David Evans in
1399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1400         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1401         because we want ASCII ranges.  Is there some reason we don't use
1402         the C locale everywhere in this script?
1403         (func_module, top level): Avoid unwanted pathname expansion when
1404         $repo_url_prefix or $repo_url_suffix_repl contain shell
1405         metacharacters like '?' and '*'.
1406
1407 2011-11-01  Bruno Haible  <bruno@clisp.org>
1408
1409         fchownat: Improve description.
1410         * modules/fchownat (Description): Add link to function.
1411
1412 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1413
1414         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1415         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1417         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1418
1419 2011-11-01  Bruno Haible  <bruno@clisp.org>
1420
1421         alignof: Avoid collision with stdalign module.
1422         * lib/alignof.h (alignof): Remove macro.
1423         * NEWS: Mention the change.
1424         Reported by Paul Eggert.
1425
1426 2011-11-01  Bruno Haible  <bruno@clisp.org>
1427
1428         New module 'fchownat', split off from module 'openat'.
1429         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1430         defined.
1431         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1432         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1433         invoke gl_FUNC_FCHOWNAT.
1434         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1435         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1436         * modules/fchownat: New file, extracted from modules/openat.
1437         * modules/openat (Files): Remove lib/fchownat.c.
1438         (Depends-on): Remove lchown.
1439         (configure.ac): Remove AC_LIBOBJ of fchownat.
1440         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1441         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1442         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1443         (Depends-on): Remove mgetgroups, usleep, stat-time.
1444         (configure.ac): Remove test for getegid.
1445         (Makefile.am): Remove rules for test-fchownat.
1446         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1447         of module 'openat'.
1448         * NEWS: Mention the change.
1449
1450 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1451
1452         stdalign: port better to MSVC and to Sun C 5.11
1453         This fixes some of the problems reported by Bruno Haible in
1454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1455         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1456         shortcomings of MSVC and of Sun C 5.11.
1457         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1458         around __declspec arg.
1459         * modules/stdalign-tests (Files): Add tests/macros.h.
1460         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1461         Include macros.h, for ASSERT.
1462         (DECLARE_ALIGNED): Remove.
1463         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1464         to catch bug), and to 1 if not (simplifies the rest of the code).
1465         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1466         (CHECK_AUTO): Remove.
1467         (CHECK_ALIGNED): Check only the alignment of the static vars,
1468         since auto var alignment isn't supported by Sun C 5.11.
1469         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1470         ASSERT failures are easier to diagnose.
1471
1472 2011-10-31  Bruno Haible  <bruno@clisp.org>
1473
1474         doc about some IRIX 5.3 problems.
1475         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1476         on IRIX 5.3.
1477         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1478         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1479         5.3.
1480         * doc/posix-functions/grantpt.texi: Likewise.
1481         * doc/posix-functions/unlockpt.texi: Likewise.
1482         * doc/posix-functions/lgamma.texi: Likewise.
1483         * doc/posix-functions/nextafter.texi: Likewise.
1484         * doc/posix-functions/remainder.texi: Likewise.
1485         * doc/posix-functions/select.texi: Mention misplaced declaration on
1486         IRIX 5.3.
1487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1488
1489 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1490
1491         gitlog-to-changelog: fix git-log invocation.
1492         git-log mishandles date strings before 1970-01-01 UTC, and there is
1493         no use to specify --since=1970-01-01 by default anyway.
1494         * build-aux/gitlog-to-changelog: By default, when no --since option
1495         was given, do not specify explicit --since option to git-log.
1496
1497 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1498
1499         gitlog-to-changelog: new option --append-dot.
1500         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1501         first non-blank line of each commit message terminated with a dot.
1502
1503 2011-10-30  Bruno Haible  <bruno@clisp.org>
1504
1505         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1506         * lib/ffsl.h: Include <config.h>.
1507         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1508
1509 2011-10-30  Jim Meyering  <meyering@redhat.com>
1510
1511         GNUmakefile: reenable "make syntax-check" for most projects
1512         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1513         build-aux variable", "syntax-check" would do nothing but succeed with
1514         the "No version control files detected..." diagnostic (unless you
1515         happened to override _build-aux via cfg.mk).
1516         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1517         to precede inclusion of maint.mk.  Otherwise, these variables would
1518         be used undefined in any project that does not override the default.
1519
1520 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1521
1522         gitlog-to-changelog: treat a message with only blank lines as empty.
1523         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1524         trailing blank lines before the code that issues a warning about an
1525         empty commit message.
1526
1527 2011-10-30  Jim Meyering  <meyering@redhat.com>
1528
1529         test-parse-datetime.c: avoid new DST-related false positive test failure
1530         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1531         based on the time/date we'll convert, not the current time.
1532         Otherwise, the moment we cross a DST boundary like today's in
1533         Europe, (CEST to CET), that offset ends up being one hour off.
1534
1535 2011-10-27  Bruno Haible  <bruno@clisp.org>
1536
1537         fstat: Tweak documentation.
1538         * modules/fstat (Description): More precise description.
1539
1540 2011-10-27  Bruno Haible  <bruno@clisp.org>
1541
1542         Update documentation regarding 'largefile' module.
1543         * doc/posix-functions/fstat.texi: Tweak wording.
1544         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1545         problems with huge directories and/or small ino_t types.
1546         * doc/posix-functions/readdir.texi: Likewise.
1547         * doc/posix-functions/rewinddir.texi: Likewise.
1548
1549 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1550
1551         maint.mk: don't maintain a second build-aux variable.
1552         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1553         depends on GNUmakefile, which already maintains a cfg.mk
1554         overridable $(_build-aux) for projects with a non-standard
1555         build-aux directory location, although without the $(srcdir)
1556         prefix.  Use that variable consistently instead of introducing a
1557         second one.  Adjust all call sites.
1558
1559 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1560
1561         Add stdalign module and use it in other modules.
1562         This is based on a previous proposal by Bruno Haible
1563         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1564
1565         stdalign: new module
1566         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1567         * modules/stdalign: New files.
1568         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1569         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1570
1571         stdalign-tests: new module
1572         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1573
1574         argp: use stdalign
1575         * lib/argp-parse.c: Include <stdalign.h>.
1576         (alignof): Remove.
1577         * modules/argp (Depends-on): Add stdalign.
1578
1579         crypto libraries: use stdalign
1580         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1581         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1582         Do not include <stdlib.h> twice, in md4.c.
1583         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1584         because we are accessing a pointer's bit-pattern, not a size.
1585         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1586         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1587         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1588         * modules/crypto/sha512: Likewise.
1589
1590         sys_socket: use stdalign, not alignof
1591         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1592         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1593
1594 2011-10-27  Bruno Haible  <bruno@clisp.org>
1595
1596         raise test: Avoid a test failure on Linux/MIPS.
1597         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1598         because 99 is a valid signal on Linux/MIPS.
1599
1600 2011-10-27  Bruno Haible  <bruno@clisp.org>
1601
1602         nonblocking tests: Fix test failure on Linux/MIPS.
1603         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1604         Set to 270000.
1605
1606 2011-10-27  Bruno Haible  <bruno@clisp.org>
1607
1608         utimensat: Work around problem on Linux/hppa.
1609         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1610         values.
1611         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1612
1613 2011-10-25  Jim Meyering  <meyering@redhat.com>
1614
1615         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1616         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1617         after symbols like NULL, size_t, etc.
1618         Reported by Alfred M. Szmidt.
1619
1620         maint.mk: exempt ENODATA from a syntax-check rule
1621         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1622         from the sc_prohibit_always-defined_macros syntax-check rule.
1623         Add a comment.  See this for more details:
1624         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1625
1626 2011-10-23  Jim Meyering  <meyering@redhat.com>
1627
1628         fts: close parent dir FD before returning from post-traversal fts_read
1629         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1630         unlink A, even though an FD open on A remained.  This is suboptimal
1631         (holding a file descriptor open longer than needed), but otherwise not
1632         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1633         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1634         that represents a real problem: it causes the removal of A to fail
1635         with e.g., "rm: cannot remove `A': Device or resource busy"
1636
1637         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1638         directory file descriptors.  After completing the final, FTS_DP,
1639         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1640         cache, but then proceeded to add a new FD to it via the subsequent
1641         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1642         final file descriptor would be closed only via fts_close's call to
1643         fd_ring_clear.  Now, it is usually closed earlier, via the final
1644         FTS_DP-returning fts_read call.
1645         * lib/fts.c (restore_initial_cwd): New function, converted from
1646         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1647         Update callers.
1648         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1649         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1650
1651 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1652             Bruno Haible  <bruno@clisp.org>
1653             Jim Meyering  <jim@meyering.net>
1654
1655         readme-release: improve safety of release prep instructions.
1656         * README-release: Don't git pull all branches when only master
1657         is needed for the release process.
1658         Run make maintainer-clean before changing trees and merging.
1659         Don't try to run ./configure right after git pull in case files
1660         that influence the bootstrap process have changed, move the
1661         ./configure step to after running ./bootstrap.
1662         Don't bootstrap "one last time"... it's the first time!
1663
1664 2011-10-22  Bruno Haible  <bruno@clisp.org>
1665
1666         errno, strerror-override: Support for MSVC 10.
1667         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1668         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1669         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1670         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1671         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1672         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1673         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1674         Assign values compatible with MSVC 10.
1675         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1676         New macros.
1677         (GNULIB_defined_EWINSOCK): New macro.
1678         * lib/strerror-override.c (strerror_override): Update accordingly.
1679         * lib/strerror-override.h: Likewise.
1680         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1681         longer equal to the corresponding errno value.
1682         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1683
1684 2011-10-22  Bruno Haible  <bruno@clisp.org>
1685
1686         perror: Recognize when test program crashes.
1687         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1688         strerror, set gl_cv_func_perror_works to no.
1689         Reported by Daniel Richard G. <skunk@iskunk.org>.
1690
1691         perror: Fix indentation.
1692         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1693
1694 2011-10-22  Bruno Haible  <bruno@clisp.org>
1695
1696         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1697         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1698         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1699         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1700         functions, not as a macro.
1701         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1702         macros.
1703         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1704         absence of macro.
1705         Suggested by Eric Blake.
1706         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1707
1708 2011-10-21  Bruno Haible  <bruno@clisp.org>
1709
1710         relocatable-prog-wrapper: Don't leave object files behind.
1711         * build-aux/install-reloc: Re-synchronize list of .o files to be
1712         removed with list of compilation units.
1713
1714 2011-10-20  Bruno Haible  <bruno@clisp.org>
1715
1716         openpty, posix_openpt: Remove code duplication.
1717         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1718         * lib/openpty.c: Include <stdlib.h>.
1719         (openpty): Use posix_openpt on all platforms except IRIX.
1720         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1721
1722 2011-10-20  Bruno Haible  <bruno@clisp.org>
1723
1724         unlockpt: Detect invalid argument.
1725         * lib/unlockpt.c: Include <fcntl.h>.
1726         (unlockpt): Check whether fd is valid, using fcntl().
1727         * modules/unlockpt (Depends-on): Add fcntl-h.
1728
1729 2011-10-20  Bruno Haible  <bruno@clisp.org>
1730
1731         openpty: Avoid compilation error on AIX 6.1.
1732         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1733
1734 2011-10-20  Bruno Haible  <bruno@clisp.org>
1735
1736         posix_openpt: Support for OpenBSD.
1737         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1738         (posix_openpt) [OpenBSD]: New code.
1739         * lib/grantpt.c: Include <fcntl.h>.
1740         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1741         * modules/grantpt (Depends-on): Add fcntl-h.
1742
1743 2011-10-20  Bruno Haible  <bruno@clisp.org>
1744
1745         posix_openpt test: Coding style.
1746         * tests/test-posix_openpt.c: Use GNU coding style.
1747
1748 2011-10-20  Bruno Haible  <bruno@clisp.org>
1749
1750         grantpt: Support --avoid=pt_chown.
1751         * modules/grantpt (Files): Add lib/pty-private.h.
1752
1753 2011-10-20  Bruno Haible  <bruno@clisp.org>
1754
1755         posix_openpt: Fix autoconf macro.
1756         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1757         unneeded check for _getpty.
1758
1759 2011-10-20  Bruno Haible  <bruno@clisp.org>
1760
1761         openpty: Update comments.
1762         * lib/openpty.c: Add comments about Minix.
1763
1764 2011-10-19  Eric Blake  <eblake@redhat.com>
1765
1766         openpty: relax license
1767         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1768
1769         pt_chown: use configmake to simplify build
1770         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1771
1772         ptsname and others: relax license
1773         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1774         * modules/unlockpt (License): Likewise.
1775         * modules/pt_chown (License): Likewise.
1776         * modules/ptsname (License): Likewise.
1777         * modules/ttyname_r (License): Likewise.
1778
1779 2011-10-19  Jim Meyering  <meyering@redhat.com>
1780
1781         posix_openpt: remove spurious #endif
1782         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1783
1784 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1785
1786         maint.mk: Respect $(build_aux) in web-manual rule.
1787         * top/maint.mk (web-manual): Find gen-announce script in user's
1788         $(build_aux) directory instead of hard-coding 'build-aux'.
1789
1790 2011-10-19  Bruno Haible  <bruno@clisp.org>
1791
1792         posix_openpt: Fix compilation error.
1793         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1794         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1795         Mention the openpty module as an alternative.
1796
1797 2011-10-19  Bruno Haible  <bruno@clisp.org>
1798
1799         Support for old NeXTstep 3.3 frexp().
1800         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1801         execution time of the test to 5 seconds.
1802         Reported by Daniel Richard G. <skunk@iskunk.org>.
1803
1804 2011-10-19  Bruno Haible  <bruno@clisp.org>
1805
1806         Support for old NeXTstep 3.3 sed.
1807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1808         part, use /.../, not \|...|. Escape periods in the header file name.
1809         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1810         Reported by Daniel Richard G. <skunk@iskunk.org>.
1811
1812 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1813
1814         Support for old NeXTstep 3.3 gcc.
1815         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1816         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1817         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1818         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1819         * lib/regex.h (_Restrict_arr_): Likewise.
1820         * lib/regex_internal.h (re_token_t): Likewise.
1821         * lib/regexec.c (check_node_accept_bytes): Likewise.
1822         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1823
1824 2011-10-18  Eric Blake  <eblake@redhat.com>
1825
1826         posix_openpt: new module
1827         * modules/posix_openpt: New module.
1828         * m4/posix_openpt.m4: New file.
1829         * lib/posix_openpt.c: Likewise.
1830         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1831         (gl_STDLIB_H_DEFAULTS): Set defaults.
1832         * modules/stdlib (Makefile.am): Substitute macros.
1833         * lib/stdlib.in.h (posix_openpt): Declare.
1834         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1835         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1836         * modules/posix_openpt-tests: New test module.
1837         * tests/test-posix_openpt.c: New test.
1838
1839 2011-10-15  Bruno Haible  <bruno@clisp.org>
1840
1841         xstrtoll: Fix compilation failure.
1842         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1843         from lib/strtol.c.
1844         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1845         some platforms.
1846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1847
1848 2011-10-15  Bruno Haible  <bruno@clisp.org>
1849
1850         vasnprintf: Optimize bit search operation.
1851         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1853         gl_DOUBLE_EXPONENT_LOCATION.
1854         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1855         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1856         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1857         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1858         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1859         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1860         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1861         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1862         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1863
1864 2011-10-15  Bruno Haible  <bruno@clisp.org>
1865
1866         vasnprintf: Fix comments.
1867         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1868
1869 2011-10-14  Bruno Haible  <bruno@clisp.org>
1870
1871         Tests for module 'integer_length_ll'.
1872         * modules/integer_length_ll-tests: New file.
1873         * tests/test-integer_length_ll.c: New file.
1874
1875         New module 'integer_length_ll'.
1876         * lib/integer_length_ll.c: New file.
1877         * modules/integer_length_ll: New file.
1878
1879 2011-10-14  Bruno Haible  <bruno@clisp.org>
1880
1881         Tests for module 'integer_length_l'.
1882         * modules/integer_length_l-tests: New file.
1883         * tests/test-integer_length_l.c: New file.
1884
1885         New module 'integer_length_l'.
1886         * lib/integer_length_l.c: New file.
1887         * modules/integer_length_l: New file.
1888
1889 2011-10-14  Bruno Haible  <bruno@clisp.org>
1890
1891         Tests for module 'integer_length'.
1892         * modules/integer_length-tests: New file.
1893         * tests/test-integer_length.c: New file.
1894
1895         New module 'integer_length'.
1896         * lib/integer_length.h: New file.
1897         * lib/integer_length.c: New file.
1898         * modules/integer_length: New file.
1899
1900 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1901
1902         popen: Fix dependency conditions.
1903         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1904
1905 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1906
1907         perror: Fix autoconf test.
1908         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1909         <stdlib.h> and <string.h>.
1910
1911 2011-10-14  Bruno Haible  <bruno@clisp.org>
1912
1913         ffsl: Optimize on 64-bit platforms.
1914         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1915         unrolling.
1916
1917 2011-10-13  Bruno Haible  <bruno@clisp.org>
1918
1919         ffsl: Optimize on 32-bit platforms.
1920         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1921         use ffs() without a loop.
1922
1923         ffsl, ffsll: Optimize for GCC.
1924         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1925         * lib/ffsl.c (GCC_BUILTIN): New macro.
1926         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1927
1928 2011-10-13  Bruno Haible  <bruno@clisp.org>
1929
1930         ffs, bcopy, memset: Support symbol renaming via config.h.
1931         * lib/ffs.c: Include <config.h>.
1932         * lib/bcopy.c: Likewise.
1933         * lib/memset.c: Likewise.
1934
1935 2011-10-10  Bruno Haible  <bruno@clisp.org>
1936
1937         atanl: Simplify for platforms where 'long double' == 'double'.
1938         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1939         alternative implementation.
1940         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1941         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1942         * modules/atanl (Depends-on): Add atan. Update conditions.
1943
1944 2011-10-10  Bruno Haible  <bruno@clisp.org>
1945
1946         acosl: Simplify for platforms where 'long double' == 'double'.
1947         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1948         alternative implementation.
1949         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1950         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1951         * modules/acosl (Depends-on): Add acos. Update conditions.
1952
1953 2011-10-10  Bruno Haible  <bruno@clisp.org>
1954
1955         asinl: Simplify for platforms where 'long double' == 'double'.
1956         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1957         alternative implementation.
1958         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1959         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1960         * modules/asinl (Depends-on): Add asin. Update conditions.
1961
1962 2011-10-10  Bruno Haible  <bruno@clisp.org>
1963
1964         tanl: Simplify for platforms where 'long double' == 'double'.
1965         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1966         implementation.
1967         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1968         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1969         * modules/tanl (Depends-on): Add tan. Update conditions.
1970         (configure.ac): Don't compile trigl.c if
1971         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1972
1973 2011-10-10  Bruno Haible  <bruno@clisp.org>
1974
1975         cosl: Simplify for platforms where 'long double' == 'double'.
1976         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1977         implementation.
1978         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1979         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1980         * modules/cosl (Depends-on): Add cos. Update conditions.
1981         (configure.ac): Don't compile sincosl.c and trigl.c if
1982         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1983
1984 2011-10-10  Bruno Haible  <bruno@clisp.org>
1985
1986         sinl: Simplify for platforms where 'long double' == 'double'.
1987         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1988         implementation.
1989         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1990         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1991         * modules/sinl (Depends-on): Add sin. Update conditions.
1992         (configure.ac): Don't compile sincosl.c and trigl.c if
1993         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1994
1995 2011-10-10  Bruno Haible  <bruno@clisp.org>
1996
1997         logl: Simplify for platforms where 'long double' == 'double'.
1998         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1999         implementation.
2000         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2001         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2002         * modules/logl (Depends-on): Add log. Update conditions.
2003
2004 2011-10-10  Bruno Haible  <bruno@clisp.org>
2005
2006         expl: Simplify for platforms where 'long double' == 'double'.
2007         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2008         implementation.
2009         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2010         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2011         * modules/expl (Depends-on): Add exp. Update conditions.
2012
2013 2011-10-10  Bruno Haible  <bruno@clisp.org>
2014
2015         sqrtl: Simplify for platforms where 'long double' == 'double'.
2016         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2017         alternative implementation.
2018         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2019         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2020         * modules/sqrtl (Depends-on): Update conditions.
2021
2022 2011-10-10  Bruno Haible  <bruno@clisp.org>
2023
2024         ldexpl: Simplify for platforms where 'long double' == 'double'.
2025         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2026         alternative implementation.
2027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2028         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2029         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2030
2031 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2032
2033         ffsll: set correct witness
2034         * modules/ffsll (configure.ac): Fix typo.
2035
2036 2011-10-10  Bruno Haible  <bruno@clisp.org>
2037
2038         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2039         * lib/printf-frexpl.c: Include <config.h>.
2040         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2041         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2042         second time.
2043         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2044         gl_LONG_DOUBLE_VS_DOUBLE.
2045         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2046         conditions.
2047
2048 2011-10-10  Bruno Haible  <bruno@clisp.org>
2049
2050         frexpl: Simplify for platforms where 'long double' == 'double'.
2051         * lib/frexpl.c: Include <config.h>.
2052         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2053         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2054         time.
2055         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2056         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2057         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2058         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2059         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2060         conditions.
2061
2062 2011-10-10  Jim Meyering  <meyering@redhat.com>
2063
2064         test-renameat: don't leave behind a temporary file
2065         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2066           ERROR: files left in build directory after distclean:
2067           ./gltests/test-renameat.too
2068           make[1]: *** [distcleancheck] Error 1
2069         Reported by Tom G. Christensen.
2070
2071 2011-10-09  Bruno Haible  <bruno@clisp.org>
2072
2073         rint: Determine RINT_LIBM correctly on AIX 7.
2074         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2075         directly, not only through a function pointer. Also accept an optional
2076         4th argument with extra code.
2077         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2078         rintf() call by gcc when optimizing.
2079
2080         mathfunc.m4: Refactor.
2081         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2082         m4 variable.
2083
2084 2011-10-09  Bruno Haible  <bruno@clisp.org>
2085
2086         rintl: Simplify for platforms where 'long double' == 'double'.
2087         * lib/rintl.c: Include <config.h>.
2088         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2089         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2090         time.
2091         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2092         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2093         * modules/rintl (Depends-on): Add rint. Update conditions.
2094
2095 2011-10-09  Bruno Haible  <bruno@clisp.org>
2096
2097         roundl: Simplify for platforms where 'long double' == 'double'.
2098         * lib/roundl.c: Include <config.h>.
2099         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2100         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2101         time.
2102         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2103         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2104         * modules/roundl (Depends-on): Add round. Update conditions.
2105
2106 2011-10-09  Bruno Haible  <bruno@clisp.org>
2107
2108         truncl: Simplify for platforms where 'long double' == 'double'.
2109         * lib/truncl.c: Include <config.h>.
2110         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2111         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2112         time.
2113         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2114         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2115         * modules/truncl (Depends-on): Add trunc. Update conditions.
2116
2117 2011-10-09  Bruno Haible  <bruno@clisp.org>
2118
2119         ceill: Simplify for platforms where 'long double' == 'double'.
2120         * lib/ceill.c: Include <config.h>.
2121         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2122         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2123         time.
2124         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2125         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2126         * modules/ceill (Depends-on): Add ceil. Update conditions.
2127
2128 2011-10-09  Bruno Haible  <bruno@clisp.org>
2129
2130         floorl: Simplify for platforms where 'long double' == 'double'.
2131         * lib/floorl.c: Include <config.h>.
2132         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2133         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2134         time.
2135         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2136         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2137         * modules/floorl (Depends-on): Add floor. Update conditions.
2138
2139 2011-10-09  Bruno Haible  <bruno@clisp.org>
2140
2141         rint: Fix ordering constraints.
2142         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2143         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2144         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2145
2146 2011-10-09  Bruno Haible  <bruno@clisp.org>
2147
2148         copysignl: Simplify for platforms where 'long double' == 'double'.
2149         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2150         alternative.
2151         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2152         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2153         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2154
2155 2011-10-09  Bruno Haible  <bruno@clisp.org>
2156
2157         Tests for module 'rintl'.
2158         * modules/rintl-tests: New file.
2159         * tests/test-rintl.c: New file.
2160
2161         New module 'rintl'.
2162         * lib/math.in.h (rintl): New declaration.
2163         * lib/rintl.c: New file.
2164         * m4/rintl.m4: New file.
2165         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2167         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2168         * modules/rintl: New file.
2169         * tests/test-math-c++.cc: Check the declaration of rintl.
2170         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2171         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2172         * doc/posix-functions/rintl.texi: Mention the new module.
2173
2174 2011-10-09  Bruno Haible  <bruno@clisp.org>
2175
2176         Tests for module 'rintf'.
2177         * modules/rintf-tests: New file.
2178         * tests/test-rintf.c: New file.
2179
2180         New module 'rintf'.
2181         * lib/math.in.h (rintf): New declaration.
2182         * lib/rintf.c: New file.
2183         * m4/rintf.m4: New file.
2184         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2186         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2187         * modules/rintf: New file.
2188         * tests/test-math-c++.cc: Check the declaration of rintf.
2189         * doc/posix-functions/rintf.texi: Mention the new module.
2190
2191 2011-10-09  Bruno Haible  <bruno@clisp.org>
2192
2193         rint: Support for MSVC.
2194         * lib/math.in.h (rint): New declaration.
2195         * lib/rint.c: New file.
2196         * m4/rint.m4: New file.
2197         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2199         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2200         * modules/rint (Description): Fix.
2201         (Files): Add lib/rint.c, m4/rint.m4.
2202         (Depends-on): Add math.
2203         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2204         gl_MATH_MODULE_INDICATOR.
2205         * tests/test-math-c++.cc: Check the declaration of rint.
2206         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2207         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2208         * doc/posix-functions/rint.texi: Mention the replacement provided by
2209         the module.
2210
2211         rint tests: More tests.
2212         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2213         minus-zero.h, infinity.h, nan.h.
2214         (main): Skip the test if the current rounding mode is not standard. Add
2215         tests for negative numbers, minus zero, infinity, NaN.
2216         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2217         tests/nan.h.
2218         (Depends-on): Add isnand-nolibm.
2219
2220 2011-10-09  Bruno Haible  <bruno@clisp.org>
2221
2222         Tests for module 'copysignl'.
2223         * modules/copysignl-tests: New file.
2224         * tests/test-copysignl.c: New file.
2225
2226         New module 'copysignl'.
2227         * lib/math.in.h (copysignl): New declaration.
2228         * lib/copysignl.c: New file.
2229         * m4/copysignl.m4: New file.
2230         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2232         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2233         HAVE_COPYSIGNL.
2234         * modules/copysignl: New file.
2235         * tests/test-math-c++.cc: Check the declaration of copysignl.
2236         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2237         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2238         * doc/posix-functions/copysignl.texi: Mention the new module.
2239
2240 2011-10-09  Bruno Haible  <bruno@clisp.org>
2241
2242         Tests for module 'copysignf'.
2243         * modules/copysignf-tests: New file.
2244         * tests/test-copysignf.c: New file.
2245
2246         New module 'copysignf'.
2247         * lib/math.in.h (copysignf): New declaration.
2248         * lib/copysignf.c: New file.
2249         * m4/copysignf.m4: New file.
2250         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2252         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2253         HAVE_COPYSIGNF.
2254         * modules/copysignf: New file.
2255         * tests/test-math-c++.cc: Check the declaration of copysignf.
2256         * doc/posix-functions/copysignf.texi: Mention the new module.
2257
2258 2011-10-09  Bruno Haible  <bruno@clisp.org>
2259
2260         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2261         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2262         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2263         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2264         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2265         gl_SIGNAL_H_DEFAULTS.
2266
2267 2011-10-09  Bruno Haible  <bruno@clisp.org>
2268
2269         poll: Make macro safer.
2270         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2271         ac_cv_header_poll_h is not set.
2272
2273 2011-10-09  Bruno Haible  <bruno@clisp.org>
2274
2275         copysign: Provide replacement.
2276         * lib/math.in.h (copysign): New declaration.
2277         * lib/copysign.c: New file.
2278         * m4/copysign.m4: New file.
2279         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2281         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2282         HAVE_COPYSIGN.
2283         * modules/copysign (Description): Clarify.
2284         (Files): Add lib/copysign.c, m4/copysign.m4.
2285         (Depends-on): Add math, signbit.
2286         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2287         gl_MATH_MODULE_INDICATOR.
2288         * tests/test-math-c++.cc: Check the declaration of copysign.
2289         * doc/posix-functions/copysign.texi: Mention the effects of the module
2290         on Minix and MSVC.
2291
2292 2011-10-09  Bruno Haible  <bruno@clisp.org>
2293
2294         isinf: Ensure macro on AIX 5.1.
2295         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2296         macro.
2297         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2298
2299 2011-10-09  Bruno Haible  <bruno@clisp.org>
2300
2301         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2302         * modules/snprintf-posix-tests (configure.ac): Require
2303         gl_LONG_DOUBLE_VS_DOUBLE.
2304         * modules/sprintf-posix-tests (configure.ac): Likewise.
2305         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2306         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2307         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2308         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2309         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2310         tests on platforms where 'long double' is the same as 'double'.
2311         * tests/test-sprintf-posix.h (test_function): Likewise.
2312         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2313         * tests/test-vasprintf-posix.c (test_function): Likewise.
2314
2315         *printf: Fix for platforms where 'long double' == 'double'.
2316         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2317         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2318         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2319         * modules/fprintf-posix (Files): Likewise.
2320         * modules/obstack-printf-posix (Files): Likewise.
2321         * modules/snprintf-posix (Files): Likewise.
2322         * modules/sprintf-posix (Files): Likewise.
2323         * modules/vasnprintf (Files): Likewise.
2324         * modules/vasnprintf-posix (Files): Likewise.
2325         * modules/vasprintf-posix (Files): Likewise.
2326         * modules/vdprintf-posix (Files): Likewise.
2327         * modules/vfprintf-posix (Files): Likewise.
2328         * modules/vsnprintf-posix (Files): Likewise.
2329         * modules/vsprintf-posix (Files): Likewise.
2330         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2331         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2332         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2333         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2334         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2335         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2336         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2337
2338         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2339         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2340         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2341         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2342         'long double'.
2343         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2344
2345         isinf: Fix for platforms where 'long double' == 'double'.
2346         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2347         Don't blindly assume 80-bit 'long double'.
2348
2349         isfinite: Fix for platforms where 'long double' == 'double'.
2350         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2351         Don't blindly assume 80-bit 'long double'.
2352
2353         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2354         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2355         * modules/isfinite-tests (configure.ac): Require
2356         gl_LONG_DOUBLE_VS_DOUBLE.
2357         * modules/isinf-tests (configure.ac): Likewise.
2358         * modules/isnan-tests (configure.ac): Likewise.
2359         * modules/isnanl-tests (configure.ac): Likewise.
2360         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2361         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2362         tests on platforms where 'long double' is the same as 'double'.
2363         * tests/test-isinf.c (test_isinfl): Likewise.
2364         * tests/test-isnan.c (test_long_double): Likewise.
2365         * tests/test-isnanl.h (main): Likewise.
2366
2367 2011-10-08  Bruno Haible  <bruno@clisp.org>
2368
2369         Tests for module 'tanhf'.
2370         * modules/tanhf-tests: New file.
2371         * tests/test-tanhf.c: New file.
2372
2373         New module 'tanhf'.
2374         * lib/math.in.h (tanhf): New declaration.
2375         * lib/tanhf.c: New file.
2376         * m4/tanhf.m4: New file.
2377         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2379         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2380         * modules/tanhf: New file.
2381         * tests/test-math-c++.cc: Check the declaration of tanhf.
2382         * doc/posix-functions/tanhf.texi: Mention the new module.
2383
2384         tanh: Use a .m4 file.
2385         * m4/tanh.m4: New file.
2386         * modules/tanh (Files): Add it.
2387         (configure.ac): Just invoke gl_FUNC_TANH.
2388
2389 2011-10-08  Bruno Haible  <bruno@clisp.org>
2390
2391         Tests for module 'coshf'.
2392         * modules/coshf-tests: New file.
2393         * tests/test-coshf.c: New file.
2394
2395         New module 'coshf'.
2396         * lib/math.in.h (coshf): New declaration.
2397         * lib/coshf.c: New file.
2398         * m4/coshf.m4: New file.
2399         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2401         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2402         * modules/coshf: New file.
2403         * tests/test-math-c++.cc: Check the declaration of coshf.
2404         * doc/posix-functions/coshf.texi: Mention the new module.
2405
2406         cosh: Use a .m4 file.
2407         * m4/cosh.m4: New file.
2408         * modules/cosh (Files): Add it.
2409         (configure.ac): Just invoke gl_FUNC_COSH.
2410
2411 2011-10-08  Bruno Haible  <bruno@clisp.org>
2412
2413         Tests for module 'sinhf'.
2414         * modules/sinhf-tests: New file.
2415         * tests/test-sinhf.c: New file.
2416
2417         New module 'sinhf'.
2418         * lib/math.in.h (sinhf): New declaration.
2419         * lib/sinhf.c: New file.
2420         * m4/sinhf.m4: New file.
2421         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2423         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2424         * modules/sinhf: New file.
2425         * tests/test-math-c++.cc: Check the declaration of sinhf.
2426         * doc/posix-functions/sinhf.texi: Mention the new module.
2427
2428         sinh: Use a .m4 file.
2429         * m4/sinh.m4: New file.
2430         * modules/sinh (Files): Add it.
2431         (configure.ac): Just invoke gl_FUNC_SINH.
2432
2433 2011-10-08  Bruno Haible  <bruno@clisp.org>
2434
2435         Tests for module 'atan2f'.
2436         * modules/atan2f-tests: New file.
2437         * tests/test-atan2f.c: New file.
2438
2439         New module 'atan2f'.
2440         * lib/math.in.h (atan2f): New declaration.
2441         * lib/atan2f.c: New file.
2442         * m4/atan2f.m4: New file.
2443         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2445         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2446         * modules/atan2f: New file.
2447         * tests/test-math-c++.cc: Check the declaration of atan2f.
2448         * doc/posix-functions/atan2f.texi: Mention the new module.
2449
2450         atan2: Use a .m4 file.
2451         * m4/atan2.m4: New file.
2452         * modules/atan2 (Files): Add it.
2453         (configure.ac): Just invoke gl_FUNC_ATAN2.
2454
2455 2011-10-08  Bruno Haible  <bruno@clisp.org>
2456
2457         Tests for module 'atanf'.
2458         * modules/atanf-tests: New file.
2459         * tests/test-atanf.c: New file.
2460
2461         New module 'atanf'.
2462         * lib/math.in.h (atanf): New declaration.
2463         * lib/atanf.c: New file.
2464         * m4/atanf.m4: New file.
2465         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2467         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2468         * modules/atanf: New file.
2469         * tests/test-math-c++.cc: Check the declaration of atanf.
2470         * doc/posix-functions/atanf.texi: Mention the new module.
2471
2472         atan: Use a .m4 file.
2473         * m4/atan.m4: New file.
2474         * modules/atan (Files): Add it.
2475         (configure.ac): Just invoke gl_FUNC_ATAN.
2476
2477 2011-10-08  Bruno Haible  <bruno@clisp.org>
2478
2479         Tests for module 'acosf'.
2480         * modules/acosf-tests: New file.
2481         * tests/test-acosf.c: New file.
2482
2483         New module 'acosf'.
2484         * lib/math.in.h (acosf): New declaration.
2485         * lib/acosf.c: New file.
2486         * m4/acosf.m4: New file.
2487         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2489         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2490         * modules/acosf: New file.
2491         * tests/test-math-c++.cc: Check the declaration of acosf.
2492         * doc/posix-functions/acosf.texi: Mention the new module.
2493
2494         acos: Use a .m4 file.
2495         * m4/acos.m4: New file.
2496         * modules/acos (Files): Add it.
2497         (configure.ac): Just invoke gl_FUNC_ACOS.
2498
2499 2011-10-08  Bruno Haible  <bruno@clisp.org>
2500
2501         Tests for module 'asinf'.
2502         * modules/asinf-tests: New file.
2503         * tests/test-asinf.c: New file.
2504
2505         New module 'asinf'.
2506         * lib/math.in.h (asinf): New declaration.
2507         * lib/asinf.c: New file.
2508         * m4/asinf.m4: New file.
2509         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2511         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2512         * modules/asinf: New file.
2513         * tests/test-math-c++.cc: Check the declaration of asinf.
2514         * doc/posix-functions/asinf.texi: Mention the new module.
2515
2516         asin: Use a .m4 file.
2517         * m4/asin.m4: New file.
2518         * modules/asin (Files): Add it.
2519         (configure.ac): Just invoke gl_FUNC_ASIN.
2520
2521 2011-10-08  Bruno Haible  <bruno@clisp.org>
2522
2523         Tests for module 'tanf'.
2524         * modules/tanf-tests: New file.
2525         * tests/test-tanf.c: New file.
2526
2527         New module 'tanf'.
2528         * lib/math.in.h (tanf): New declaration.
2529         * lib/tanf.c: New file.
2530         * m4/tanf.m4: New file.
2531         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2533         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2534         * modules/tanf: New file.
2535         * tests/test-math-c++.cc: Check the declaration of tanf.
2536         * doc/posix-functions/tanf.texi: Mention the new module.
2537
2538         tan: Use a .m4 file.
2539         * m4/tan.m4: New file.
2540         * modules/tan (Files): Add it.
2541         (configure.ac): Just invoke gl_FUNC_TAN.
2542
2543 2011-10-08  Bruno Haible  <bruno@clisp.org>
2544
2545         Tests for module 'cosf'.
2546         * modules/cosf-tests: New file.
2547         * tests/test-cosf.c: New file.
2548
2549         New module 'cosf'.
2550         * lib/math.in.h (cosf): New declaration.
2551         * lib/cosf.c: New file.
2552         * m4/cosf.m4: New file.
2553         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2555         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2556         * modules/cosf: New file.
2557         * tests/test-math-c++.cc: Check the declaration of cosf.
2558         * doc/posix-functions/cosf.texi: Mention the new module.
2559
2560         cos: Use a .m4 file.
2561         * m4/cos.m4: New file.
2562         * modules/cos (Files): Add it.
2563         (configure.ac): Just invoke gl_FUNC_COS.
2564
2565 2011-10-08  Bruno Haible  <bruno@clisp.org>
2566
2567         Tests for module 'sinf'.
2568         * modules/sinf-tests: New file.
2569         * tests/test-sinf.c: New file.
2570
2571         New module 'sinf'.
2572         * lib/math.in.h (sinf): New declaration.
2573         * lib/sinf.c: New file.
2574         * m4/sinf.m4: New file.
2575         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2577         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2578         * modules/sinf: New file.
2579         * tests/test-math-c++.cc: Check the declaration of sinf.
2580         * doc/posix-functions/sinf.texi: Mention the new module.
2581
2582         sin: Use a .m4 file.
2583         * m4/sin.m4: New file.
2584         * modules/sin (Files): Add it.
2585         (configure.ac): Just invoke gl_FUNC_SIN.
2586
2587 2011-10-08  Bruno Haible  <bruno@clisp.org>
2588
2589         Tests for module 'powf'.
2590         * modules/powf-tests: New file.
2591         * tests/test-powf.c: New file.
2592
2593         New module 'powf'.
2594         * lib/math.in.h (powf): New declaration.
2595         * lib/powf.c: New file.
2596         * m4/powf.m4: New file.
2597         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2599         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2600         * modules/powf: New file.
2601         * tests/test-math-c++.cc: Check the declaration of powf.
2602         * doc/posix-functions/powf.texi: Mention the new module.
2603
2604         pow: Use a .m4 file.
2605         * m4/pow.m4: New file.
2606         * modules/pow (Files): Add it.
2607         (configure.ac): Just invoke gl_FUNC_POW.
2608
2609 2011-10-08  Bruno Haible  <bruno@clisp.org>
2610
2611         Tests for module 'log10f'.
2612         * modules/log10f-tests: New file.
2613         * tests/test-log10f.c: New file.
2614
2615         New module 'log10f'.
2616         * lib/math.in.h (log10f): New declaration.
2617         * lib/log10f.c: New file.
2618         * m4/log10f.m4: New file.
2619         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2621         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2622         * modules/log10f: New file.
2623         * tests/test-math-c++.cc: Check the declaration of log10f.
2624         * doc/posix-functions/log10f.texi: Mention the new module.
2625
2626         log10: Use a .m4 file.
2627         * m4/log10.m4: New file.
2628         * modules/log10 (Files): Add it.
2629         (configure.ac): Just invoke gl_FUNC_LOG10.
2630
2631 2011-10-08  Bruno Haible  <bruno@clisp.org>
2632
2633         Tests for module 'logf'.
2634         * modules/logf-tests: New file.
2635         * tests/test-logf.c: New file.
2636
2637         New module 'logf'.
2638         * lib/math.in.h (logf): New declaration.
2639         * lib/logf.c: New file.
2640         * m4/logf.m4: New file.
2641         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2643         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2644         * modules/logf: New file.
2645         * tests/test-math-c++.cc: Check the declaration of logf.
2646         * doc/posix-functions/logf.texi: Mention the new module.
2647
2648         log: Use a .m4 file.
2649         * m4/log.m4: New file.
2650         * modules/log (Files): Add it.
2651         (configure.ac): Just invoke gl_FUNC_LOG.
2652
2653 2011-10-08  Bruno Haible  <bruno@clisp.org>
2654
2655         Tests for module 'expf'.
2656         * modules/expf-tests: New file.
2657         * tests/test-expf.c: New file.
2658
2659         New module 'expf'.
2660         * lib/math.in.h (expf): New declaration.
2661         * lib/expf.c: New file.
2662         * m4/expf.m4: New file.
2663         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2665         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2666         * modules/expf: New file.
2667         * tests/test-math-c++.cc: Check the declaration of expf.
2668         * doc/posix-functions/expf.texi: Mention the new module.
2669
2670         exp: Use a .m4 file.
2671         * m4/exp.m4: New file.
2672         * modules/exp (Files): Add it.
2673         (configure.ac): Just invoke gl_FUNC_EXP.
2674
2675 2011-10-08  Bruno Haible  <bruno@clisp.org>
2676
2677         Tests for module 'sqrtf'.
2678         * modules/sqrtf-tests: New file.
2679         * tests/test-sqrtf.c: New file.
2680
2681         New module 'sqrtf'.
2682         * lib/math.in.h (sqrtf): New declaration.
2683         * lib/sqrtf.c: New file.
2684         * m4/sqrtf.m4: New file.
2685         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2687         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2688         * modules/sqrtf: New file.
2689         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2690         * doc/posix-functions/sqrtf.texi: Mention the new module.
2691
2692 2011-10-08  Bruno Haible  <bruno@clisp.org>
2693
2694         Tests: Avoid link failures w.r.t. libintl.
2695         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2696         $(LIBINTL).
2697         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2698         $(LIBINTL).
2699         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2700         against $(LIBINTL).
2701         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2702         $(LIBINTL).
2703         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2704         $(LIBINTL).
2705         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2706
2707 2011-10-08  Bruno Haible  <bruno@clisp.org>
2708
2709         pow tests: Defeat compiler optimizations.
2710         * tests/test-pow.c (main): Assign arguments to x and y before use.
2711
2712 2011-10-08  Bruno Haible  <bruno@clisp.org>
2713
2714         gnulib-tool: Improve last commit.
2715         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2716         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2717         ignore dependencies that are not among the modules list.
2718
2719 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2720
2721         gnulib-tool: don't follow dependencies to avoided modules
2722         This fixes a bug that is related to the previous one.
2723         * gnulib-tool (func_modules_transitive_closure)
2724         (func_emit_autoconf_snippets):
2725         Check whether a dependency is acceptable before using it.
2726         (--extract-dependencies): Report an error if --avoid is also used,
2727         since this combination of options is not yet supported.
2728
2729         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2730         Problem reported by Peter Dyballa in
2731         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2732         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2733         when echoing "$condition".
2734
2735 2011-10-07  Bruno Haible  <bruno@clisp.org>
2736
2737         Fix documentation about math functions on MacOS X.
2738         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2739         MacOS X 10.5.
2740         * doc/posix-functions/fdim.texi: Likewise.
2741         * doc/posix-functions/feclearexcept.texi: Likewise.
2742         * doc/posix-functions/fegetenv.texi: Likewise.
2743         * doc/posix-functions/fegetround.texi: Likewise.
2744         * doc/posix-functions/feholdexcept.texi: Likewise.
2745         * doc/posix-functions/feraiseexcept.texi: Likewise.
2746         * doc/posix-functions/fesetenv.texi: Likewise.
2747         * doc/posix-functions/fesetround.texi: Likewise.
2748         * doc/posix-functions/fetestexcept.texi: Likewise.
2749         * doc/posix-functions/feupdateenv.texi: Likewise.
2750         * doc/posix-functions/fmax.texi: Likewise.
2751         * doc/posix-functions/fmin.texi: Likewise.
2752         * doc/posix-functions/log2.texi: Likewise.
2753         * doc/posix-functions/modff.texi: Likewise.
2754         * doc/posix-functions/nan.texi: Likewise.
2755         * doc/posix-functions/nanf.texi: Likewise.
2756         * doc/posix-functions/nextafterf.texi: Likewise.
2757         * doc/posix-functions/remquo.texi: Likewise.
2758
2759 2011-10-07  Bruno Haible  <bruno@clisp.org>
2760
2761         modff: Drop assumption about library that defines modff.
2762         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2763         AC_CHECK_FUNCS.
2764         * modules/modff (Files): Add m4/mathfunc.m4.
2765
2766 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2767
2768         raise tests: Avoid a GCC warning.
2769         * tests/test-raise.c (handler): Use _Noreturn.
2770
2771 2011-10-07  Bruno Haible  <bruno@clisp.org>
2772
2773         Tests for module 'ldexpf'.
2774         * modules/ldexpf-tests: New file.
2775         * tests/test-ldexpf.c: New file.
2776
2777         New module 'ldexpf'.
2778         * lib/math.in.h (ldexpf): New declaration.
2779         * lib/ldexpf.c: New file.
2780         * m4/ldexpf.m4: New file.
2781         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2783         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2784         * modules/ldexpf: New file.
2785         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2786         * doc/posix-functions/ldexpf.texi: Mention the new module.
2787
2788 2011-10-06  Bruno Haible  <bruno@clisp.org>
2789
2790         frexpf: Work around problems on IRIX and mingw.
2791         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2793         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2794         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2795         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2796         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2797         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2798
2799 2011-10-06  Bruno Haible  <bruno@clisp.org>
2800
2801         fabsf: Drop assumption about library that defines fabsf.
2802         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2803         AC_CHECK_FUNCS.
2804         * modules/fabsf (Files): Add m4/mathfunc.m4.
2805
2806 2011-10-06  Bruno Haible  <bruno@clisp.org>
2807
2808         frexpf: Drop assumption about library that defines frexpf.
2809         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2810         'int *', 'float *', 'long double *', 'float', 'long double'.
2811         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2812         AC_CHECK_FUNCS.
2813         * modules/frexpf (Files): Add m4/mathfunc.m4.
2814
2815         Tests for module 'frexpf'.
2816         * modules/frexpf-tests: New file.
2817         * tests/test-frexpf.c: New file.
2818
2819         New module 'frexpf'.
2820         * lib/math.in.h (frexpf): New declaration.
2821         * lib/frexpf.c: New file.
2822         * m4/frexpf.m4: New file.
2823         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2825         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2826         * modules/frexpf: New file.
2827         * tests/test-math-c++.cc: Check the declaration of frexpf.
2828         * doc/posix-functions/frexpf.texi: Mention the new module.
2829
2830 2011-10-06  Bruno Haible  <bruno@clisp.org>
2831
2832         math: Sort function declarations of math.in.h.
2833         * lib/math.in.h (frexp, logb): Move declarations.
2834
2835 2011-10-05  Bruno Haible  <bruno@clisp.org>
2836
2837         Tests for module 'modff'.
2838         * modules/modff-tests: New file.
2839         * tests/test-modff.c: New file.
2840
2841         New module 'modff'.
2842         * lib/math.in.h (modff): New declaration.
2843         * lib/modff.c: New file.
2844         * m4/modff.m4: New file.
2845         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2847         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2848         * modules/modff: New file.
2849         * tests/test-math-c++.cc: Check the declaration of modff.
2850         * doc/posix-functions/modff.texi: Mention the new module.
2851
2852         modf tests: Make test sharper.
2853         * tests/test-modf.c (main): Strengthen upper bound.
2854
2855         modf: Use a .m4 file.
2856         * m4/modf.m4: New file.
2857         * modules/modf (Files): Add it.
2858         (configure.ac): Just invoke gl_FUNC_MODF.
2859
2860 2011-10-05  Bruno Haible  <bruno@clisp.org>
2861
2862         Tests for module 'fmodf'.
2863         * modules/fmodf-tests: New file.
2864         * tests/test-fmodf.c: New file.
2865
2866         New module 'fmodf'.
2867         * lib/math.in.h (fmodf): New declaration.
2868         * lib/fmodf.c: New file.
2869         * m4/fmodf.m4: New file.
2870         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2872         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2873         * modules/fmodf: New file.
2874         * tests/test-math-c++.cc: Check the declaration of fmodf.
2875         * doc/posix-functions/fmodf.texi: Mention the new module.
2876
2877         fmod: Use a .m4 file.
2878         * m4/fmod.m4: New file.
2879         * modules/fmod (Files): Add it.
2880         (configure.ac): Just invoke gl_FUNC_FMOD.
2881
2882 2011-10-05  Bruno Haible  <bruno@clisp.org>
2883
2884         Tests for module 'fabsf'.
2885         * modules/fabsf-tests: New file.
2886         * tests/test-fabsf.c: New file.
2887
2888         New module 'fabsf'.
2889         * lib/math.in.h (fabsf): New declaration.
2890         * lib/fabsf.c: New file.
2891         * m4/fabsf.m4: New file.
2892         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2894         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2895         * modules/fabsf: New file.
2896         * tests/test-math-c++.cc: Check the declaration of fabsf.
2897         * doc/posix-functions/fabsf.texi: Mention the new module.
2898
2899         fabs: Use a .m4 file.
2900         * m4/fabs.m4: New file.
2901         * modules/fabs (Files): Add it.
2902         (configure.ac): Just invoke gl_FUNC_FABS.
2903
2904 2011-10-05  Jim Meyering  <meyering@redhat.com>
2905
2906         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2907         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2908         ls -lL regression introduced in coreutils-8.12, it does so at the
2909         cost of an additional stat call in the common case.  Besides, now
2910         that the kernel change that prompted commit 95f7c57f has been reverted
2911         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2912         we have no use for commit 95f7c57f, "file-has-acl: use
2913         acl_extended_file_nofollow if available".
2914
2915 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2916
2917         file-has-acl: revert unintended change in behavior of ls -L
2918         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2919         derived from...
2920         (file_has_acl): ...code here.  Call it.
2921         This problem was introduced with 2011-07-22 commit 95f7c57f,
2922         "file-has-acl: use acl_extended_file_nofollow if available".
2923         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2924
2925 2011-10-03  Bruno Haible  <bruno@clisp.org>
2926
2927         poll: Avoid link errors on MSVC.
2928         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2929         * modules/poll (Depends-on): Add sockets.
2930         (Link): New section.
2931         * NEWS: Mention the change.
2932         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2933         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2934         $(LIB_POLL) instead of $(LIBSOCKET).
2935
2936 2011-10-03  Bruno Haible  <bruno@clisp.org>
2937
2938         sys_select tests: Fix link error on MSVC 9.
2939         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2940         with $(LIB_SELECT) instead of $(LIBSOCKET).
2941
2942 2011-10-03  Bruno Haible  <bruno@clisp.org>
2943
2944         sys_select: Fix compilation error on mingw.
2945         * lib/sys_select.in.h: On native Windows, include <io.h>.
2946
2947 2011-10-03  Bruno Haible  <bruno@clisp.org>
2948
2949         wmemset: Support for MSVC.
2950         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2951         whether wmemset() exists.
2952
2953 2011-10-03  Bruno Haible  <bruno@clisp.org>
2954
2955         wmemmove: Support for MSVC.
2956         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2957         whether wmemmove() exists.
2958
2959 2011-10-03  Bruno Haible  <bruno@clisp.org>
2960
2961         wmemcpy: Support for MSVC.
2962         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2963         whether wmemcpy() exists.
2964
2965 2011-10-03  Bruno Haible  <bruno@clisp.org>
2966
2967         wmemcmp: Support for MSVC.
2968         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2969         whether wmemcmp() exists.
2970
2971 2011-10-03  Bruno Haible  <bruno@clisp.org>
2972
2973         wmemchr: Support for MSVC.
2974         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2975         whether wmemchr() exists.
2976
2977 2011-10-03  Bruno Haible  <bruno@clisp.org>
2978
2979         glthread/*, strsignal: Support for MSVC.
2980         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2981         including <winsock.h> on MSVC 9.
2982         * lib/glthread/lock.h: Likewise.
2983         * lib/glthread/thread.h: Likewise.
2984         * lib/glthread/tls.h: Likewise.
2985         * lib/glthread/yield.h: Likewise.
2986         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2987         if HAVE_UNISTD_H is false.
2988         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2989
2990 2011-10-03  Bruno Haible  <bruno@clisp.org>
2991
2992         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2993         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2994         Set to 100000.
2995
2996 2011-10-03  Bruno Haible  <bruno@clisp.org>
2997
2998         acl: Fix specification.
2999         * lib/file-has-acl.c (file_has_acl): Fix specification.
3000
3001 2011-10-03  Bruno Haible  <bruno@clisp.org>
3002
3003         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3004         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3005         (compute_curr_prefix, shared_library_fullname,
3006         find_shared_library_fullname, get_shared_library_fullname, relocate):
3007         Use it together with PIC && INSTALLDIR.
3008         Reported by <jojelino@gmail.com>
3009         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3010
3011 2011-10-01  Jim Meyering  <meyering@redhat.com>
3012
3013         maint.mk: adjust a release-related rule not to require use of gzip
3014         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3015         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3016         projects that build only .tar.xz files.  Also fix an erroneous test.
3017
3018         test-linkat: don't leave behind a temporary file
3019         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3020         Otherwise, coreutils' "make distcheck" would fail with this:
3021           Only in /c/cu/tests/torture/coreutils/test/\
3022             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3023           make[2]: *** [my-distcheck] Error 1
3024
3025         float, math: add omitted file
3026         * lib/itold.c: Add file, required for yesterday's float change.
3027
3028 2011-10-01  Bruno Haible  <bruno@clisp.org>
3029
3030         isinf: Fix for OpenBSD/x86.
3031         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3032         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3033         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3034
3035 2011-10-01  Bruno Haible  <bruno@clisp.org>
3036
3037         isfinite: Fix syntax error in configure test.
3038         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3039
3040         isfinite: Fix typo.
3041         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3042         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3043
3044 2011-10-01  Bruno Haible  <bruno@clisp.org>
3045
3046         nonblocking tests: Fix test failure on Linux/IA-64.
3047         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3048         Set to 270000.
3049
3050 2011-10-01  Bruno Haible  <bruno@clisp.org>
3051
3052         mkfifoat tests: Fix a test failure on mingw.
3053         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3054         with error ENOSYS.
3055
3056 2011-09-30  Bruno Haible  <bruno@clisp.org>
3057
3058         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3059         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3060         'long double'. Set REPLACE_ITOLD.
3061         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3062         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3063         * lib/itold.c: New file.
3064         * modules/float (Files): Add lib/itold.c.
3065         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3066         (Makefile.am): Substitute REPLACE_ITOLD.
3067         * modules/math (Depends-on): Add float.
3068         (Makefile.am): Substitute REPLACE_ITOLD.
3069         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3070         * doc/posix-headers/math.texi: Likewise.
3071         * doc/posix-functions/logl.texi: Likewise.
3072
3073 2011-09-30  Bruno Haible  <bruno@clisp.org>
3074
3075         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3076         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3077         Set to 140000.
3078
3079 2011-09-30  Bruno Haible  <bruno@clisp.org>
3080
3081         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3082         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3083         invocation, say "right after AC_PROG_CC_STDC", not "right after
3084         AC_PROG_CC".
3085         Reported by Gary V. Vaughan <gary@gnu.org>.
3086
3087 2011-09-30  Bruno Haible  <bruno@clisp.org>
3088
3089         Centralize C99 requirement.
3090         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3091         * modules/stdarg (configure.ac-early): Invoke it instead of
3092         AC_PROG_CC_STDC.
3093         Reported by Gary V. Vaughan and Paul Eggert.
3094
3095 2011-09-29  Bruno Haible  <bruno@clisp.org>
3096
3097         float: Fix LDBL_MAX value on Linux/PowerPC.
3098         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3099         on Linux/PowerPC.
3100         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3101         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3102         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3103         platform.
3104         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3105
3106 2011-09-29  Bruno Haible  <bruno@clisp.org>
3107
3108         doc: Improve doc about gl_EARLY.
3109         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3110         AC_PROG_CC_STDC invocation.
3111         Reported by Gary V. Vaughan <gary@gnu.org>.
3112
3113 2011-09-28  Bruno Haible  <bruno@clisp.org>
3114
3115         fgetc, fputc, fread, fwrite tests: Fix link error.
3116         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3117         on non-MSVC platforms.
3118         * tests/test-fputc.c (main): Likewise.
3119         * tests/test-fread.c (main): Likewise.
3120         * tests/test-fwrite.c (main): Likewise.
3121         Reported by Jim Meyering.
3122
3123 2011-09-27  Bruno Haible  <bruno@clisp.org>
3124
3125         fputc, fwrite tests: Avoid test failure on MSVC.
3126         * tests/test-fgetc.c: Include msvc-inval.h.
3127         (main): Invoke gl_msvc_inval_ensure_handler.
3128         * tests/test-fputc.c: Include msvc-inval.h.
3129         (main): Invoke gl_msvc_inval_ensure_handler.
3130         * tests/test-fread.c: Include msvc-inval.h.
3131         (main): Invoke gl_msvc_inval_ensure_handler.
3132         * tests/test-fwrite.c: Include msvc-inval.h.
3133         (main): Invoke gl_msvc_inval_ensure_handler.
3134         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3135         * modules/fputc-tests (Depends-on): Likewise.
3136         * modules/fread-tests (Depends-on): Likewise.
3137         * modules/fwrite-tests (Depends-on): Likewise.
3138
3139 2011-09-27  Bruno Haible  <bruno@clisp.org>
3140
3141         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3142         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3143         (raise): Remove older, duplicated declaration.
3144         (_gl_raise_SIGPIPE): New declaration.
3145         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3146         (rpl_raise): Remove function.
3147         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3148         a gnulib-defined SIGPIPE here.
3149         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3150         'sigprocmask' has detected missing signal-blocking and the module
3151         'sigpipe' is enabled.
3152         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3153
3154 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3155
3156         base64-tests: avoid memory leak
3157         * tests/test-base64.c (main): Plug memory leak.
3158
3159         base32: new module
3160         * modules/base32: New module.
3161         * lib/base32.c: New file.
3162         * lib/base32.h: Likewise.
3163         * m4/base32.m4: Likewise.
3164         * modules/base32-tests: New test.
3165         * tests/test-base32.c: Likewise.
3166         * MODULES.html.sh (Misc): Mention it.
3167
3168 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3169
3170         gnulib: use more-standard license notice wording
3171         * gnulib-tool (func_emit_copyright_notice): When emitting a
3172         license notice into a file, use the standard wording as suggested
3173         by the current information for GNU maintainers, except say "file"
3174         rather than "program".  The new wording gives a license version
3175         number, which addresses an issue raised by Glenn Morris in
3176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3177         * m4/onceonly.m4: Use that same wording here, too.
3178
3179         dup2: minor simplification
3180         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3181         as lib/dup2.c no longer uses 'inline'.
3182
3183 2011-09-25  Bruno Haible  <bruno@clisp.org>
3184
3185         strings: Fix compilation error on MSVC.
3186         * lib/strings.in.h: Include <stddef.h> for size_t.
3187
3188 2011-09-25  Bruno Haible  <bruno@clisp.org>
3189
3190         fflush et al.: Document limitation on MSVC.
3191         * doc/posix-functions/fflush.texi: Document possible crash in handling
3192         mode other than DEFAULT_HANDLING.
3193         * doc/posix-functions/fgetc.texi: Likewise.
3194         * doc/posix-functions/fputc.texi: Likewise.
3195         * doc/posix-functions/fread.texi: Likewise.
3196         * doc/posix-functions/fwrite.texi: Likewise.
3197
3198 2011-09-25  Bruno Haible  <bruno@clisp.org>
3199
3200         msvc-inval: Allow three invalid parameter handling modes.
3201         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3202         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3203         macros.
3204         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3205         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3206         SANE_LIBRARY_HANDLING as a no-op.
3207         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3208         <stdlib.h>.
3209         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3210
3211 2011-09-25  Bruno Haible  <bruno@clisp.org>
3212
3213         msvc-inval: Make handler multithread-safe.
3214         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3215         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3216         declarations.
3217         (gl_msvc_inval_current): New declaration.
3218         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3219         Operate on the structure returned by gl_msvc_inval_current().
3220         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3221         Remove varaiables.
3222         (tls_index, tls_initialized): New variables.
3223         (not_per_thread): New variable.
3224         (gl_msvc_inval_current): New function.
3225         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3226         returned by gl_msvc_inval_current().
3227
3228 2011-09-25  Bruno Haible  <bruno@clisp.org>
3229
3230         msvc-inval: Install handler globally.
3231         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3232         !_MSC_VER.
3233         (gl_msvc_invalid_parameter_handler): Remove declaration.
3234         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3235         declarations.
3236         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3237         Install the handler globally, don't uninstall it.
3238         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3239         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3240         currently valid, call RaiseException instead.
3241         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3242         for !_MSC_VER.
3243
3244 2011-09-25  Bruno Haible  <bruno@clisp.org>
3245
3246         strerror_r-posix: Fix for MSVC 9.
3247         * lib/strerror_r.c (local_snprintf): New function.
3248         (snprintf): Define to local_snprintf, not to _snprintf.
3249
3250 2011-09-25  Bruno Haible  <bruno@clisp.org>
3251
3252         ftruncate: Support for MSVC 9.
3253         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3254         (chsize_nothrow): New function.
3255         (chsize): Redefine as a macro.
3256         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3257         * modules/ftruncate (Depends-on): Add msvc-inval.
3258
3259 2011-09-25  Bruno Haible  <bruno@clisp.org>
3260
3261         New module 'fstat'.
3262         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3263         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3264         * lib/fchdir.c (rpl_fstat): Remove function.
3265         * m4/fstat.m4: New file.
3266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3268         declared.
3269         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3270         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3271         * modules/fstat: New file.
3272         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3273         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3274         is set.
3275         * doc/posix-functions/fstat.texi: Mention the new module and the
3276         problem on MSVC.
3277         * NEWS: Mention the change.
3278         * modules/acl (Depends-on): Add fstat.
3279         * modules/chdir-safer (Depends-on): Likewise.
3280         * modules/chown (Depends-on): Likewise.
3281         * modules/copy-file (Depends-on): Likewise.
3282         * modules/fchdir (Depends-on): Likewise.
3283         * modules/fdopendir (Depends-on): Likewise.
3284         * modules/fopen (Depends-on): Likewise.
3285         * modules/fts (Depends-on): Likewise.
3286         * modules/getcwd (Depends-on): Likewise.
3287         * modules/isapipe (Depends-on): Likewise.
3288         * modules/linkat (Depends-on): Likewise.
3289         * modules/lseek (Depends-on): Likewise.
3290         * modules/mkdir-p (Depends-on): Likewise.
3291         * modules/open (Depends-on): Likewise.
3292         * modules/openat (Depends-on): Likewise.
3293         * modules/read-file (Depends-on): Likewise.
3294         * modules/renameat (Depends-on): Likewise.
3295         * modules/utimens (Depends-on): Likewise.
3296
3297 2011-09-25  Bruno Haible  <bruno@clisp.org>
3298
3299         linkat: Fix compilation on MSVC 9.
3300         * lib/linkat.c: Don't include <stdint.h>.
3301
3302 2011-09-25  Bruno Haible  <bruno@clisp.org>
3303
3304         fclose: Support for MSVC 9.
3305         * lib/fclose.c: Include msvc-inval.h.
3306         (fclose_nothrow): New function.
3307         (rpl_fclose): Use it.
3308         * modules/fclose (Depends-on): Add msvc-inval.
3309         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3310
3311 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3312
3313         dup2: minor simplifications
3314         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3315         that it's a performance win.
3316         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3317         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3318
3319 2011-09-24  Jim Meyering  <meyering@redhat.com>
3320
3321         test-futimens: avoid a warning from gcc -Wshadow
3322         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3323         to avoid a shadowing warning.
3324
3325 2011-09-24  Bruno Haible  <bruno@clisp.org>
3326
3327         fdopen: Support for MSVC 9.
3328         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3329         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3330         * lib/fdopen.c: Include msvc-inval.h.
3331         (fdopen_nothrow): New function.
3332         (rpl_fdopen): Use it.
3333         * modules/fdopen (Depends-on): Add msvc-inval.
3334         * modules/fclose-tests (Depends-on): Add fdopen.
3335         * modules/fflush-tests (Depends-on): Likewise.
3336         * modules/fgetc-tests (Depends-on): Likewise.
3337         * modules/fputc-tests (Depends-on): Likewise.
3338         * modules/fread-tests (Depends-on): Likewise.
3339         * modules/freopen-tests (Depends-on): Likewise.
3340         * modules/fseeko-tests (Depends-on): Likewise.
3341         * modules/ftello-tests (Depends-on): Likewise.
3342         * modules/fwrite-tests  (Depends-on): Likewise.
3343         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3344
3345 2011-09-24  Bruno Haible  <bruno@clisp.org>
3346
3347         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3348         * modules/fgetc-tests (Depends-on): Add unistd.
3349         * modules/fputc-tests (Depends-on): Likewise.
3350         * modules/fread-tests (Depends-on): Likewise.
3351         * modules/fwrite-tests (Depends-on): Likewise.
3352
3353 2011-09-24  Bruno Haible  <bruno@clisp.org>
3354
3355         dup: Simplify autoconf test.
3356         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3357         on gl_MSVC_INVAL's result.
3358
3359 2011-09-24  Bruno Haible  <bruno@clisp.org>
3360
3361         Tests for function fwrite().
3362         * modules/fwrite-tests: New file.
3363         * tests/test-fwrite.c: New file.
3364         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3365
3366         Tests for function fread().
3367         * modules/fread-tests: New file.
3368         * tests/test-fread.c: New file.
3369         * modules/stdio-tests (Depends-on): Add fread-tests.
3370
3371         Activate fputc tests.
3372         * modules/stdio-tests (Depends-on): Add fputc-tests.
3373
3374         Enhance fgetc, fputc tests.
3375         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3376         * tests/test-fputc.c (main): Likewise.
3377
3378 2011-09-24  Bruno Haible  <bruno@clisp.org>
3379
3380         write: Support for MSVC 9.
3381         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3382         is not 1.
3383         * lib/write.c (write_nothrow): New function.
3384         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3385         not 1. Use write_nothrow.
3386         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3387         invalid parameter handler.
3388         (gl_PREREQ_WRITE): New macro.
3389         * modules/write (Depends-on): Add msvc-inval.
3390         (configure.ac): Invoke gl_PREREQ_WRITE.
3391         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3392
3393 2011-09-24  Bruno Haible  <bruno@clisp.org>
3394
3395         read: Fix last commit.
3396         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3397
3398 2011-09-24  Bruno Haible  <bruno@clisp.org>
3399
3400         dup2: Fix last commit.
3401         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3402         (rpl_dup2): Disable fcntl workaround on native Windows.
3403
3404         sigprocmask: Make code safer.
3405         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3406         section that changes macro definitions for this compilation unit.
3407
3408 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3409
3410         dup2: clarify by coalescing Windows-specific material
3411         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3412         "msvc-nothrow.h"' to the Windows-specific section, so that the
3413         Emacs source need not contain these include files.
3414         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3415         Windows-specific fixes into this function rather than just the
3416         nothrow fix, as this shortens and clarifies the code.  Always
3417         define as a function, as that's a bit cleaner than having it be
3418         sometimes a function and sometimes a macro.
3419         (rpl_dup2): Move the Windows-specific stuff out of here and into
3420         ms_windows_dup2.  Don't protect the Haiku-related fix with
3421         "#if !defined __linux__", as the same code also works around
3422         a Linux kernel bug, and it doesn't add any system calls on any
3423         platform.  Add comment about FreeBSD 6.1.
3424
3425         sigprocmask: move #include directive
3426         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3427         Windows-specific section, so that the Emacs source need not
3428         contain msvc-inval.h.
3429
3430 2011-09-23  Bruno Haible  <bruno@clisp.org>
3431
3432         read: Support for MSVC 9.
3433         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3434         is not 1.
3435         * lib/read.c (read_nothrow): New function.
3436         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3437         read_nothrow.
3438         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3439         invalid parameter handler.
3440         (gl_PREREQ_READ): New macro.
3441         * modules/read (Depends-on): Add msvc-inval.
3442         (configure.ac): Invoke gl_PREREQ_READ.
3443         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3444
3445 2011-09-23  Bruno Haible  <bruno@clisp.org>
3446
3447         close: Support for MSVC 9.
3448         * lib/close.c: Include <errno.h>, msvc-inval.h.
3449         (close_nothrow): New function.
3450         (rpl_close): Use it.
3451         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3452         invalid parameter handler.
3453         * modules/close (Depends-on): Add msvc-inval.
3454         * modules/dup2-tests (Depends-on): Add close.
3455         * modules/dup3-tests (Depends-on): Likewise.
3456         * modules/fcntl-tests (Depends-on): Likewise.
3457         * modules/spawn-pipe-tests (Depends-on): Likewise.
3458         * modules/unistd-safer-tests (Depends-on): Likewise.
3459         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3460
3461 2011-09-23  Bruno Haible  <bruno@clisp.org>
3462
3463         New module 'dup'.
3464         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3465         Allow replacement.
3466         * lib/dup.c: New file.
3467         * lib/fchdir.c (rpl_dup): Remove function.
3468         * m4/dup.m4: New file.
3469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3470         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3471         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3472         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3473         * modules/dup: New file.
3474         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3475         'dup' module is in use.
3476         * modules/fdopendir (Depends-on): Add dup.
3477         * modules/fdutimensat-tests (Depends-on): Likewise.
3478         * modules/fts (Depends-on): Likewise.
3479         * modules/futimens-tests (Depends-on): Likewise.
3480         * modules/posix_spawnp-tests (Depends-on): Likewise.
3481         * modules/unistd-safer-tests (Depends-on): Likewise.
3482         * modules/utimens-tests (Depends-on): Likewise.
3483         * doc/posix-functions/dup.texi: Mention the new module and the problem
3484         on MSVC.
3485
3486 2011-09-23  Bruno Haible  <bruno@clisp.org>
3487
3488         getdtablesize: Support for MSVC 9.
3489         * lib/getdtablesize.c: Include msvc-inval.h.
3490         (_setmaxstdio_nothrow): New function.
3491         (_setmaxstdio): Redefine it.
3492         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3493         * modules/getdtablesize (Depends-on): Add msvc-inval.
3494         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3495
3496 2011-09-23  Bruno Haible  <bruno@clisp.org>
3497
3498         signal-h: Rename from signal.
3499         * modules/signal-h: Renamed from modules/signal.
3500         * modules/pthread_sigmask (Depends-on): Update.
3501         * modules/raise (Depends-on): Likewise.
3502         * modules/sigaction (Depends-on): Likewise.
3503         * modules/sigpipe (Depends-on): Likewise.
3504         * modules/sigprocmask (Depends-on): Likewise.
3505         * modules/sys_select (Depends-on): Likewise.
3506         * modules/signal-h-tests: Renamed from modules/signal-tests.
3507         (Files, Depends-on, Makefile.am): Update.
3508         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3509         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3510         (Files, Makefile.am): Update.
3511         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3512         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3513         * modules/signal: New placeholder file.
3514         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3515         * doc/posix-headers/signal.texi: Update.
3516         * NEWS: Mention the change.
3517
3518 2011-09-23  Bruno Haible  <bruno@clisp.org>
3519
3520         sigprocmask: Avoid crashes through signal() on MSVC 9.
3521         * lib/sigprocmask.c: Include msvc-inval.h.
3522         (signal_nothrow): New function.
3523         (signal): Redefine it.
3524         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3525         * modules/sigprocmask (Depends-on): Add msvc-inval.
3526         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3527
3528 2011-09-23  Bruno Haible  <bruno@clisp.org>
3529
3530         Tests for module 'raise'.
3531         * modules/raise-tests: New file.
3532         * tests/test-raise.c: New file.
3533
3534         raise: Support for MSVC.
3535         * lib/signal.in.h (raise): New declaration.
3536         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3537         for native Windows platforms.
3538         * m4/raise.m4: New file.
3539         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3540         HAVE_RAISE, REPLACE_RAISE.
3541         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3542         REPLACE_RAISE.
3543         * modules/raise (Status, Notice): Remove fields.
3544         (Files): Add m4/raise.m4.
3545         (Depends-on): Add signal, msvc-inval.
3546         (configure.ac): Use the common idioms.
3547         (Maintainer): Add me.
3548         * tests/test-signal-c++.cc: Check the signature of raise.
3549         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3550
3551 2011-09-23  Bruno Haible  <bruno@clisp.org>
3552
3553         pipe2: Fix compilation on pre-C99 compilers.
3554         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3555
3556 2011-09-23  Bruno Haible  <bruno@clisp.org>
3557
3558         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3559         * lib/msvc-nothrow.h: New file.
3560         * lib/msvc-nothrow.c: New file.
3561         * m4/msvc-nothrow.m4: New file.
3562         * modules/msvc-nothrow: New file.
3563         * lib/dup2.c: Include msvc-nothrow.h.
3564         (rpl_dup2): No need to protect _get_osfhandle call here.
3565         * lib/accept4.c: Include msvc-nothrow.h.
3566         * lib/error.c: Likewise.
3567         * lib/fcntl.c: Likewise.
3568         * lib/lseek.c: Likewise.
3569         * lib/nonblocking.c: Likewise.
3570         * lib/poll.c: Likewise.
3571         * lib/read.c: Likewise.
3572         * lib/select.c: Likewise.
3573         * lib/sockets.h: Likewise.
3574         * lib/sockets.c: Likewise.
3575         * lib/stdio-read.c: Likewise.
3576         * lib/stdio-write.c: Likewise.
3577         * lib/write.c: Likewise.
3578         * lib/w32sock.h: Likewise.
3579         * lib/w32spawn.h: Likewise.
3580         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3581         * lib/fsync.c: Likewise.
3582         * lib/isapipe.c: Likewise.
3583         * modules/dup2 (Depends-on): Add msvc-nothrow.
3584         * modules/accept4 (Depends-on): Likewise.
3585         * modules/error (Depends-on): Likewise.
3586         * modules/fcntl (Depends-on): Likewise.
3587         * modules/lseek (Depends-on): Likewise.
3588         * modules/nonblocking (Depends-on): Likewise.
3589         * modules/poll (Depends-on): Likewise.
3590         * modules/read (Depends-on): Likewise.
3591         * modules/select (Depends-on): Likewise.
3592         * modules/sockets (Depends-on): Likewise.
3593         * modules/sigpipe (Depends-on): Likewise.
3594         * modules/write (Depends-on): Likewise.
3595         * modules/accept (Depends-on): Likewise.
3596         * modules/bind (Depends-on): Likewise.
3597         * modules/connect (Depends-on): Likewise.
3598         * modules/gethostname (Depends-on): Likewise.
3599         * modules/getpeername (Depends-on): Likewise.
3600         * modules/getsockname (Depends-on): Likewise.
3601         * modules/getsockopt (Depends-on): Likewise.
3602         * modules/ioctl (Depends-on): Likewise.
3603         * modules/listen (Depends-on): Likewise.
3604         * modules/recv (Depends-on): Likewise.
3605         * modules/recvfrom (Depends-on): Likewise.
3606         * modules/send (Depends-on): Likewise.
3607         * modules/sendto (Depends-on): Likewise.
3608         * modules/setsockopt (Depends-on): Likewise.
3609         * modules/shutdown (Depends-on): Likewise.
3610         * modules/socket (Depends-on): Likewise.
3611         * modules/execute (Depends-on): Likewise.
3612         * modules/spawn-pipe (Depends-on): Likewise.
3613         * modules/flock (Depends-on): Likewise.
3614         * modules/fsync (Depends-on): Likewise.
3615         * modules/isapipe (Depends-on): Likewise.
3616         * tests/test-cloexec.c: Include msvc-nothrow.h.
3617         * tests/test-dup-safer.c: Likewise.
3618         * tests/test-dup2.c: Likewise.
3619         * tests/test-dup3.c: Likewise.
3620         * tests/test-fcntl.c: Likewise.
3621         * tests/test-pipe.c: Likewise.
3622         * tests/test-pipe2.c: Likewise.
3623         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3624         * modules/unistd-safer-tests (Depends-on): Likewise.
3625         * modules/dup2-tests (Depends-on): Likewise.
3626         * modules/dup3-tests (Depends-on): Likewise.
3627         * modules/fcntl-tests (Depends-on): Likewise.
3628         * modules/pipe-posix-tests (Depends-on): Likewise.
3629         * modules/pipe2-tests (Depends-on): Likewise.
3630
3631 2011-09-23  Bruno Haible  <bruno@clisp.org>
3632
3633         dup2: Make code more maintainable.
3634         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3635         (rpl_dup2): Use it.
3636         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3637         * modules/dup2 (configure.ac): Invoke it.
3638         Reported by Paul Eggert.
3639
3640 2011-09-23  Bruno Haible  <bruno@clisp.org>
3641
3642         msvc-inval: Fix compilation error.
3643         * lib/msvc-inval.h: Include <excpt.h>.
3644
3645 2011-09-23  Bruno Haible  <bruno@clisp.org>
3646
3647         mkdir: Tweak for MSVC 9.
3648         * lib/sys_stat.in.h: Update comments.
3649         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3650
3651         Tests for module 'chdir'.
3652         * modules/chdir-tests: New file.
3653         * tests/test-chdir.c: New file.
3654
3655         New module 'chdir'.
3656         * modules/chdir: New file.
3657         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3658         (chdir): New declaration.
3659         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3660         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3661         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3662         * tests/test-unistd-c++.cc: Check signature of chdir.
3663         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3664         * modules/chdir-long (Depends-on): Add chdir.
3665         * modules/fchdir (Depends-on): Likewise.
3666         * modules/rename (Depends-on): Likewise.
3667         * modules/savewd (Depends-on): Likewise.
3668
3669         rmdir: Support for mingw, MSVC 9.
3670         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3671         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3672
3673         getcwd: Tweak for MSVC 9.
3674         * lib/unistd.in.h: Update comments.
3675         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3676
3677 2011-09-22  Bruno Haible  <bruno@clisp.org>
3678
3679         strerror_r-posix: Avoid a link error on MSVC.
3680         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3681         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3682
3683 2011-09-22  Bruno Haible  <bruno@clisp.org>
3684
3685         select: Avoid link errors on MSVC.
3686         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3687         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3688         * modules/pselect (Link): Likewise.
3689         * NEWS: Mention the change.
3690         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3691         test-select-stdin against $(LIB_SELECT).
3692         * modules/pselect-tests (Makefile.am): Link test-pselect against
3693         $(LIB_SELECT).
3694
3695 2011-09-22  Bruno Haible  <bruno@clisp.org>
3696
3697         select: Avoid compilation error on MSVC.
3698         * lib/select.c: Don't include <stdbool.h>.
3699
3700 2011-09-21  Bruno Haible  <bruno@clisp.org>
3701
3702         Consolidate all uses of PATH_MAX in *.m4 files.
3703         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3704         macros.
3705         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3706         and gl_PATHMAX_SNIPPET.
3707         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3708         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3709         * modules/chdir-long (Files): Add m4/pathmax.m4.
3710         * modules/getcwd (Files): Likewise.
3711
3712 2011-09-21  Bruno Haible  <bruno@clisp.org>
3713
3714         ftruncate: Un-deprecate, concentrate on Win32 support.
3715         * modules/ftruncate (Status, Notice): Remove sections.
3716         (Depends-on): Add largefile.
3717         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3718         non-mingw platforms.
3719         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3720         include <io.h>.
3721         * modules/perror-tests (Depends-on): Add ftruncate.
3722         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3723         'ftruncate' module.
3724
3725 2011-09-21  Bruno Haible  <bruno@clisp.org>
3726
3727         Add dependencies to new dirent related modules.
3728         * modules/opendir (Depends-on): Add closedir.
3729         * modules/getcwd (Depends-on): Add opendir, closedir.
3730         * modules/dirent-safer-tests (Depends-on): Likewise.
3731         * modules/fdopendir-tests (Depends-on): Likewise.
3732         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3733         * modules/renameat-tests (Depends-on): Likewise.
3734
3735 2011-09-21  Bruno Haible  <bruno@clisp.org>
3736
3737         opendir: Avoid compilation error on mingw.
3738         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3739         * modules/opendir (Depends-on): Add unistd.
3740
3741 2011-09-21  Bruno Haible  <bruno@clisp.org>
3742
3743         ftruncate tests: Avoid a test failure on mingw.
3744         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3745
3746 2011-09-21  Bruno Haible  <bruno@clisp.org>
3747
3748         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3749         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3750         native Windows.
3751
3752 2011-09-21  Bruno Haible  <bruno@clisp.org>
3753
3754         New module 'fdopen'.
3755         * lib/stdio.in.h (fdopen): New declaration.
3756         * lib/fdopen.c: New file.
3757         * m4/fdopen.m4: New file.
3758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3759         REPLACE_FDOPEN.
3760         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3761         REPLACE_FDOPEN.
3762         * modules/fdopen: New file.
3763         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3764         * tests/test-stdio-c++.cc: Check signature of fdopen.
3765         * doc/posix-functions/fdopen.texi: Mention the new module.
3766
3767 2011-09-21  Bruno Haible  <bruno@clisp.org>
3768
3769         unlockpt tests: Avoid test failure on NetBSD 5.1.
3770         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3771         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3772
3773 2011-09-21  Bruno Haible  <bruno@clisp.org>
3774
3775         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3776         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3777         * tests/test-getlogin_r.c (main): Likewise.
3778
3779 2011-09-20  Bruno Haible  <bruno@clisp.org>
3780
3781         time tests: Don't require pid_t.
3782         * doc/posix-headers/time.texi: Revert last change.
3783         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3784         * tests/test-time.c: Comment out the check for pid_t.
3785
3786 2011-09-20  Bruno Haible  <bruno@clisp.org>
3787
3788         fsync tests: Avoid a test failure on mingw.
3789         * tests/test-fsync.c (main): Allow a failure with EIO.
3790
3791 2011-09-20  Bruno Haible  <bruno@clisp.org>
3792
3793         euidaccess: Update comments.
3794         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3795
3796 2011-09-20  Bruno Haible  <bruno@clisp.org>
3797
3798         Ensure EBADF returns for socket functions on mingw.
3799         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3800         descriptor is invalid.
3801         * lib/bind.c (rpl_bind): Likewise.
3802         * lib/connect.c (rpl_connect): Likewise.
3803         * lib/getpeername.c (rpl_getpeername): Likewise.
3804         * lib/getsockname.c (rpl_getsockname): Likewise.
3805         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3806         * lib/listen.c (rpl_listen): Likewise.
3807         * lib/recv.c (rpl_recv): Likewise.
3808         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3809         * lib/send.c (rpl_send): Likewise.
3810         * lib/sendto.c (rpl_sendto): Likewise.
3811         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3812         * lib/shutdown.c (rpl_shutdown): Likewise.
3813
3814 2011-09-20  Bruno Haible  <bruno@clisp.org>
3815
3816         select tests: EBADF tests.
3817         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3818         test_bad_fd): New functions.
3819         (test_function): Invoke also test_bad_fd.
3820
3821 2011-09-20  Bruno Haible  <bruno@clisp.org>
3822
3823         Tests for module 'posix_spawn_file_actions_addopen.
3824         * modules/posix_spawn_file_actions_addopen-tests: New file.
3825         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3826
3827         Tests for module 'posix_spawn_file_actions_adddup2'.
3828         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3829         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3830
3831         Tests for module 'posix_spawn_file_actions_addclose'.
3832         * modules/posix_spawn_file_actions_addclose-tests: New file.
3833         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3834
3835 2011-09-20  Bruno Haible  <bruno@clisp.org>
3836
3837         Tests for module 'unlockpt'.
3838         * modules/unlockpt-tests: New file.
3839         * tests/test-unlockpt.c: New file.
3840         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3841
3842         Tests for module 'grantpt'.
3843         * modules/grantpt-tests: New file.
3844         * tests/test-grantpt.c: New file.
3845         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3846
3847 2011-09-20  Bruno Haible  <bruno@clisp.org>
3848
3849         freopen tests: EBADF tests.
3850         * tests/test-freopen.c: Include errno.h, unistd.h.
3851         (main): Add tests for EBADF, commented out for the moment.
3852
3853         fclose tests: EBADF tests.
3854         * tests/test-fclose.c (main): Add tests for EBADF.
3855
3856         fflush tests: EBADF tests.
3857         * tests/test-fflush.c: Include errno.h, macros.h.
3858         (main): Add tests for EBADF.
3859
3860         ftello tests: EBADF tests.
3861         * tests/test-ftello4.sh: New file.
3862         * tests/test-ftello4.c: New file.
3863         * modules/ftello-tests (Files): Add them.
3864         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3865
3866         fseeko tests: EBADF tests.
3867         * tests/test-fseeko4.sh: New file.
3868         * tests/test-fseeko4.c: New file.
3869         * modules/fseeko-tests (Files): Add them.
3870         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3871
3872         Tests for function fputc().
3873         * modules/fputc-tests: New file.
3874         * tests/test-fputc.c: New file.
3875         * modules/stdio-tests (Depends-on): Add fputc-tests.
3876
3877         Tests for function fgetc().
3878         * modules/fgetc-tests: New file.
3879         * tests/test-fgetc.c: New file.
3880         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3881
3882         Tests for function fdopen().
3883         * modules/fdopen-tests: New file.
3884         * tests/test-fdopen.c: New file.
3885         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3886
3887         Tests for module 'vdprintf'.
3888         * modules/vdprintf-tests: New file.
3889         * tests/test-vdprintf.c: New file.
3890
3891         Tests for module 'dprintf'.
3892         * modules/dprintf-tests: New file.
3893         * tests/test-dprintf.c: New file.
3894
3895 2011-09-20  Bruno Haible  <bruno@clisp.org>
3896
3897         Tests for module 'ioctl'.
3898         * modules/ioctl-tests: New file.
3899         * tests/test-ioctl.c: New file.
3900
3901 2011-09-20  Bruno Haible  <bruno@clisp.org>
3902
3903         fcntl tests: EBADF tests.
3904         * tests/test-fcntl.c (main): Add more tests for EBADF.
3905
3906 2011-09-20  Bruno Haible  <bruno@clisp.org>
3907
3908         utimensat tests: EBADF tests.
3909         * tests/test-utimensat.c (main): Add tests for EBADF.
3910
3911         renameat tests: EBADF tests.
3912         * tests/test-renameat.c (main): Add tests for EBADF.
3913
3914         mkfifoat tests: EBADF tests.
3915         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3916
3917         readlinkat tests: EBADF tests.
3918         * tests/test-readlinkat.c (main): Add tests for EBADF.
3919
3920         symlinkat tests: EBADF tests.
3921         * tests/test-symlinkat.c (main): Add tests for EBADF.
3922
3923         linkat tests: EBADF tests.
3924         * tests/test-linkat.c (main): Add tests for EBADF.
3925
3926         Tests for module 'faccessat'.
3927         * modules/faccessat-tests: New file.
3928         * tests/test-faccessat.c: New file.
3929
3930         fdopendir tests: EBADF tests.
3931         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3932
3933         openat tests: EBADF tests.
3934         * tests/test-fchownat.c (main): Add tests for EBADF.
3935         * tests/test-fstatat.c (main): Likewise.
3936         * tests/test-mkdirat.c (main): Likewise.
3937         * tests/test-openat.c (main): Likewise.
3938         * tests/test-unlinkat.c (main): Likewise.
3939         * tests/test-fchmodat.c: New file.
3940         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3941         (Makefile.am): Also run 'test-fchmodat'.
3942
3943 2011-09-20  Bruno Haible  <bruno@clisp.org>
3944
3945         utimens, futimens, fdutimensat tests: EBADF tests.
3946         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3947
3948         Tests for function fstat().
3949         * modules/fstat-tests: New file.
3950         * tests/test-fstat.c: New file.
3951         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3952
3953 2011-09-20  Bruno Haible  <bruno@clisp.org>
3954
3955         test-ttyname_r tests: EBADF tests.
3956         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3957
3958         Tests for module 'isatty'.
3959         * modules/isatty-tests: New file.
3960         * tests/test-isatty.c: New file.
3961
3962         Tests for module 'write'.
3963         * modules/write-tests: New file.
3964         * tests/test-write.c: New file.
3965
3966         Tests for module 'read'.
3967         * modules/read-tests: New file.
3968         * tests/test-read.c: New file.
3969
3970         pwrite tests: EBADF tests.
3971         * tests/test-pwrite.c (main): Add tests for EBADF.
3972
3973         pread tests: EBADF tests.
3974         * tests/test-pread.c (main): Add tests for EBADF.
3975
3976         lseek tests: EBADF tests.
3977         * tests/test-lseek.c (main): Add more tests for EBADF.
3978
3979         Tests for module 'ftruncate'.
3980         * modules/ftruncate-tests: New file.
3981         * tests/test-ftruncate.sh: New file.
3982         * tests/test-ftruncate.c: New file.
3983
3984         fsync tests: EBADF tests.
3985         * tests/test-fsync.c (main): Add more tests for EBADF.
3986
3987         fdatasync tests: EBADF tests.
3988         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3989
3990         Tests for module 'fchown'.
3991         * modules/fchown-tests: New file.
3992         * tests/test-fchown.c: New file.
3993
3994         Tests for module 'fchmod'.
3995         * modules/fchmod-tests: New file.
3996         * tests/test-fchmod.c: New file.
3997
3998         fchdir tests: EBADF tests.
3999         * tests/test-fchdir.c (main): Add more tests for EBADF.
4000
4001         dup2 tests: EBADF tests.
4002         * tests/test-dup2.c (main): Add more tests for EBADF.
4003
4004         Tests for module 'dup'.
4005         * modules/dup-tests: New file.
4006         * tests/test-dup.c: New file.
4007
4008         Tests for module 'close'.
4009         * modules/close-tests: New file.
4010         * tests/test-close.c: New file.
4011
4012 2011-09-20  Bruno Haible  <bruno@clisp.org>
4013
4014         Tests for module 'shutdown'.
4015         * modules/shutdown-tests: New file.
4016         * tests/test-shutdown.c: New file.
4017
4018         Tests for module 'setsockopt'.
4019         * modules/setsockopt-tests: New file.
4020         * tests/test-setsockopt.c: New file.
4021
4022         Tests for module 'sendto'.
4023         * modules/sendto-tests: New file.
4024         * tests/test-sendto.c: New file.
4025
4026         Tests for module 'send'.
4027         * modules/send-tests: New file.
4028         * tests/test-send.c: New file.
4029
4030         Tests for module 'recvfrom'.
4031         * modules/recvfrom-tests: New file.
4032         * tests/test-recvfrom.c: New file.
4033
4034         Tests for module 'recv'.
4035         * modules/recv-tests: New file.
4036         * tests/test-recv.c: New file.
4037
4038         Tests for module 'listen'.
4039         * modules/listen-tests: New file.
4040         * tests/test-listen.c: New file.
4041
4042         Tests for module 'getsockopt'.
4043         * modules/getsockopt-tests: New file.
4044         * tests/test-getsockopt.c: New file.
4045
4046         Tests for module 'getsockname'.
4047         * modules/getsockname-tests: New file.
4048         * tests/test-getsockname.c: New file.
4049
4050         Tests for module 'getpeername'.
4051         * modules/getpeername-tests: New file.
4052         * tests/test-getpeername.c: New file.
4053
4054         Tests for module 'connect'.
4055         * modules/connect-tests: New file.
4056         * tests/test-connect.c: New file.
4057
4058         Tests for module 'bind'.
4059         * modules/bind-tests: New file.
4060         * tests/test-bind.c: New file.
4061
4062         accept4 tests: Fix for native Windows.
4063         * tests/test-accept4.c: Include sockets.h.
4064         (main): Invoke gl_sockets_startup.
4065         * modules/accept4-tests (Depends-on): Add sockets.
4066
4067         accept tests: Fix for native Windows.
4068         * tests/test-accept.c: Include sockets.h.
4069         (main): Invoke gl_sockets_startup.
4070         * modules/accept-tests (Depends-on): Add sockets.
4071
4072 2011-09-19  Bruno Haible  <bruno@clisp.org>
4073
4074         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4075         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4076         do...while(0).
4077         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4078         Suggested by Paul Eggert.
4079
4080 2011-09-19  Bruno Haible  <bruno@clisp.org>
4081
4082         sched: Ensure pid_t is defined.
4083         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4084         not define pid_t.
4085         * lib/sched.in.h: Include <sys/types.h>.
4086         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4088
4089 2011-09-19  Bruno Haible  <bruno@clisp.org>
4090
4091         msvc-inval: Ensure the entire expansion is a single statement.
4092         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4093         of braces.
4094
4095 2011-09-19  Jim Meyering  <meyering@redhat.com>
4096
4097         tests: use printf, not echo in init.sh's warn_ function
4098         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4099         misbehave when given strings containing a backslash or starting
4100         with e.g., -n.  James Youngman suggested setting IFS.
4101
4102 2011-09-19  Eric Blake  <eblake@redhat.com>
4103
4104         futimens: enhance test
4105         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4106         closed non-negative fd.
4107
4108         date: accept 'hence' as opposite of 'ago'
4109         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4110         * tests/test-parse-datetime.c (main): Enhance test.
4111         Suggested by Jesse Wilson.
4112
4113 2011-09-19  Jim Meyering  <meyering@redhat.com>
4114
4115         getcwd: don't fail in a deep directory on a system without openat
4116         Before this change, getcwd would fail when called from a directory
4117         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4118         the non-openat implementation used "..", "../..", "../../..", etc.
4119         to access ancestor directories.  With too many, that string would
4120         be longer than PATH_MAX.
4121         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4122         using gnulib's openat replacement.
4123         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4124         we're using the replacement function.
4125
4126 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4127
4128         maint.mk: avoid warnings from perl about missing files
4129         * top/maint.mk (def_sym_regex): Ignore files listed in
4130         $(gl_other_headers_) that do not exist, say because a project
4131         does not use a corresponding module.
4132
4133 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4134
4135         stat: use pathmax.h only if needed
4136         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4137         This is better for Emacs, which does not have a mingw port and
4138         therefore can avoid the pathmax module.
4139
4140         utimens: remove dependency on dup2
4141         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4142         to work around the Linux kernel bug.
4143         * modules/utimens (Depends-on): Remove dup2.
4144
4145 2011-09-18  Bruno Haible  <bruno@clisp.org>
4146
4147         inet_ntop, inet_pton: Look for it also in libresolv.
4148         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4149         libnsl, search for it in libresolv.
4150         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4151         Needed on Solaris 7.
4152
4153 2011-09-18  Bruno Haible  <bruno@clisp.org>
4154
4155         accept, accept4 tests: Avoid link error on Solaris.
4156         * modules/accept-tests (Makefile.am): Link test-accept against
4157         $(LIBSOCKET).
4158         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4159         $(LIBSOCKET).
4160
4161         accept4: Avoid link error on Solaris.
4162         * modules/accept4 (Link): New section.
4163
4164         socket functions: Avoid link errors on Solaris.
4165         * modules/accept (Depends-on): Add socketlib.
4166         (Link): New section.
4167         * modules/bind (Depends-on): Add socketlib.
4168         (Link): New section.
4169         * modules/connect (Depends-on): Add socketlib.
4170         (Link): New section.
4171         * modules/getpeername (Depends-on): Add socketlib.
4172         (Link): New section.
4173         * modules/getsockname (Depends-on): Add socketlib.
4174         (Link): New section.
4175         * modules/getsockopt (Depends-on): Add socketlib.
4176         (Link): New section.
4177         * modules/listen (Depends-on): Add socketlib.
4178         (Link): New section.
4179         * modules/recv (Depends-on): Add socketlib.
4180         (Link): New section.
4181         * modules/recvfrom (Depends-on): Add socketlib.
4182         (Link): New section.
4183         * modules/send (Depends-on): Add socketlib.
4184         (Link): New section.
4185         * modules/sendto (Depends-on): Add socketlib.
4186         (Link): New section.
4187         * modules/setsockopt (Depends-on): Add socketlib.
4188         (Link): New section.
4189         * modules/shutdown (Depends-on): Add socketlib.
4190         (Link): New section.
4191         * modules/socket (Depends-on): Add socketlib.
4192         (Link): New section.
4193
4194 2011-09-18  Bruno Haible  <bruno@clisp.org>
4195
4196         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4197         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4198         than 5 seconds.
4199         * modules/ptsname-tests (configure.ac): Test for alarm.
4200
4201 2011-09-18  Bruno Haible  <bruno@clisp.org>
4202
4203         posix_spawn_file_actions_add*: Fix module dependencies.
4204         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4205         posix_spawn_file_actions_init.
4206         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4207         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4208
4209 2011-09-18  Bruno Haible  <bruno@clisp.org>
4210
4211         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4212         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4213         * tests/test-renameat.c (main): Likewise.
4214
4215 2011-09-18  Bruno Haible  <bruno@clisp.org>
4216
4217         Tests for module 'accept4'.
4218         * modules/accept4-tests: New file.
4219         * tests/test-accept4.c: New file.
4220
4221 2011-09-18  Bruno Haible  <bruno@clisp.org>
4222
4223         Tests for module 'accept'.
4224         * modules/accept-tests: New file.
4225         * tests/test-accept.c: New file.
4226
4227 2011-09-18  Bruno Haible  <bruno@clisp.org>
4228
4229         dup2: Support for MSVC.
4230         * lib/dup2.c: Include msvc-inval.h.
4231         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4232         _get_osfhandle calls.
4233         * modules/dup2 (Depends-on): Add msvc-inval.
4234         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4235
4236         New module 'msvc-inval'.
4237         * lib/msvc-inval.h: New file.
4238         * lib/msvc-inval.c: New file.
4239         * m4/msvc-inval.m4: New file.
4240         * modules/msvc-inval: New file.
4241
4242 2011-09-17  Bruno Haible  <bruno@clisp.org>
4243
4244         Tests for module 'pclose'.
4245         * modules/pclose-tests: New file.
4246
4247         New module 'pclose'.
4248         * lib/stdio.in.h (pclose): New declaration.
4249         * lib/pclose.c: New file.
4250         * m4/pclose.m4: New file.
4251         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4252         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4253         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4254         * modules/pclose: New file.
4255         * modules/popen-tests (Depends-on): Add pclose.
4256         * modules/popen-safer-tests (Depends-on): Likewise.
4257         * doc/posix-functions/pclose.texi: Mention the new module.
4258
4259 2011-09-17  Bruno Haible  <bruno@clisp.org>
4260
4261         popen: Support for MSVC.
4262         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4263         * lib/popen.c (popen): Provide alternate definition for native Windows.
4264         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4266         * modules/popen (Depends-on, configure.ac): Update condition.
4267         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4268         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4269         fixed.
4270
4271 2011-09-17  Bruno Haible  <bruno@clisp.org>
4272
4273         isnanl, isnand, isnanf: Work around MSVC bug.
4274         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4275
4276 2011-09-17  Bruno Haible  <bruno@clisp.org>
4277
4278         sys_socket tests: Fix recent mistake.
4279         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4280
4281 2011-09-17  Bruno Haible  <bruno@clisp.org>
4282
4283         putenv: Support for MSVC.
4284         * modules/putenv (Depends-on): Add environ.
4285         * lib/putenv.c (environ): Disable declaration.
4286         * lib/unistd.in.h: Update comment.
4287
4288 2011-09-17  Bruno Haible  <bruno@clisp.org>
4289
4290         math: Avoid macro redefinition warnings on MSVC.
4291         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4292         Undefine before redefining.
4293
4294 2011-09-17  Bruno Haible  <bruno@clisp.org>
4295
4296         doc: Mention functions which are declared as macros.
4297         * doc/posix-functions/*[fl].texi: Mention that some functions are
4298         defined as macros with arguments only.
4299
4300 2011-09-17  Bruno Haible  <bruno@clisp.org>
4301
4302         Add dependencies to new dirent related modules.
4303         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4304         * modules/fts (Depends-on): Likewise.
4305         * modules/glob (Depends-on): Likewise.
4306         * modules/savedir (Depends-on): Likewise.
4307         * modules/scandir (Depends-on): Likewise.
4308         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4309         * modules/fdopendir (Depends-on): Add opendir.
4310
4311 2011-09-17  Bruno Haible  <bruno@clisp.org>
4312
4313         inet_pton: Support for MSVC on Windows Vista or newer.
4314         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4315         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4316         HAVE_DECL_INET_PTON is defined.
4317         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4318         On platforms with <winsock2.h>, test whether inet_pton is declared in
4319         <ws2tcpip.h>. If so, arrange to replace it.
4320         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4321         REPLACE_INET_PTON.
4322         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4323         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4324         (Depends-on, configure.ac): Update condition.
4325         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4326
4327 2011-09-17  Bruno Haible  <bruno@clisp.org>
4328
4329         inet_ntop: Support for MSVC on Windows Vista or newer.
4330         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4331         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4332         HAVE_DECL_INET_NTOP is defined.
4333         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4334         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4335         <ws2tcpip.h>. If so, arrange to replace it.
4336         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4337         REPLACE_INET_NTOP.
4338         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4339         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4340         (Depends-on, configure.ac): Update condition.
4341         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4342
4343 2011-09-16  Eric Blake  <eblake@redhat.com>
4344
4345         test-fsync: yet another enhancement
4346         * tests/test-fsync.c (main): Also test behavior on read-only text
4347         file.
4348
4349 2011-09-16  Bruno Haible  <bruno@clisp.org>
4350
4351         Enhance fsync, fdatasync tests.
4352         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4353         * tests/test-fdatasync.c (main): Likewise.
4354
4355 2011-09-16  Bruno Haible  <bruno@clisp.org>
4356
4357         Support for MSVC compiler: Ensure mode_t gets defined.
4358         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4359         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4360         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4361         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4362         * tests/test-fcntl-h.c: Check that mode_t is defined.
4363         * tests/test-sys_stat.c: Likewise.
4364         * tests/test-sys_types.c: Likewise.
4365         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4366         * doc/posix-headers/sys_stat.texi: Likewise.
4367         * doc/posix-headers/sys_types.texi: Likewise.
4368
4369 2011-09-16  Bruno Haible  <bruno@clisp.org>
4370
4371         sys_stat: Support for MSVC.
4372         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4373         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4374         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4375         MSVC.
4376
4377 2011-09-16  Bruno Haible  <bruno@clisp.org>
4378
4379         Support for MSVC compiler: Ensure off_t gets defined.
4380         * lib/unistd.in.h: Include <sys/types.h>.
4381         * tests/test-fcntl-h.c: Check that off_t is defined.
4382         * tests/test-sys_stat.c: Likewise.
4383         * tests/test-sys_types.c: Likewise.
4384
4385 2011-09-16  Eric Blake  <eblake@redhat.com>
4386
4387         fdatasync: port to Solaris
4388         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4389         * modules/fdatasync (Link): Document it.
4390         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4391
4392         fdatasync: port to MacOS X 10.7
4393         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4394         declared.
4395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4396         * modules/unistd (Makefile.am): Substitute it.
4397         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4398         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4399
4400         fdatasync: minor improvements
4401         * modules/fdatasync (Depends-on): Add condition for fsync.
4402         * lib/fdatasync.c (fdatasync): Add comment.
4403         * tests/test-unistd-c++.cc: Test fdatasync.
4404
4405         unistd: update refs to newer POSIX
4406         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4407         Suggested by Bruno Haible.
4408
4409         fdatasync: new module
4410         * modules/fsync (Description): Document difference to fdatasync.
4411         * modules/fdatasync: New module.
4412         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4413         * lib/fdatasync.c (fdatasync): Likewise.
4414         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4415         defaults.
4416         * modules/unistd (Makefile.am): Set witnesses.
4417         * lib/unistd.in.h (fdatasync): Declare.
4418         * MODULES.html.sh: Document it.
4419         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4420         * modules/fdatasync-tests: New test.
4421         * tests/test-fdatasync.c: Likewise.
4422
4423 2011-09-16  Eric Blake  <eblake@redhat.com>
4424
4425         test-fsync: enhance tests
4426         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4427         * tests/test-fsync.c (main): Enhance test.
4428
4429 2011-09-15  Bruno Haible  <bruno@clisp.org>
4430
4431         Support for MSVC compiler: Ensure ssize_t gets defined.
4432         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4433         * doc/posix-headers/stdio.texi: Likewise.
4434         * modules/stdio (Depends-on): Add ssize_t.
4435         * modules/sys_socket (Depends-on): Likewise.
4436         * modules/sys_types (Depends-on): Likewise.
4437         * modules/sys_uio (Depends-on): Likewise.
4438         * modules/unistd (Depends-on): Likewise.
4439         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4440         * tests/test-sys_types.c: Check that ssize_t is defined.
4441
4442 2011-09-14  Bruno Haible  <bruno@clisp.org>
4443
4444         Avoid using #, the m4 comment starter character, near brackets.
4445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4446         delimiter character in sed expressions.
4447         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4448         Suggested by Eric Blake.
4449
4450         Properly quote AC_CHECK_DECLS' 4th argument.
4451         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4452         argument.
4453         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4454         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4455         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4456         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4457         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4458         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4460         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4461         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4462         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4463         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4464         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4465         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4466         * m4/isinf.m4 (gl_ISINF): Likewise.
4467         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4468         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4469         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4470         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4472         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4473         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4474         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4475         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4476         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4477         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4478         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4480         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4482         Reported by Eric Blake.
4483
4484         Properly quote AC_CHECK_DECL's 4th argument.
4485         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4486         argument.
4487         * m4/argp.m4 (gl_ARGP): Likewise.
4488         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4489         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4490         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4491         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4492         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4493         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4494         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4495         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4496         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4497         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4498         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4499         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4500         Reported by Eric Blake.
4501
4502 2011-09-14  Eric Blake  <eblake@redhat.com>
4503
4504         opendir: avoid compile warning
4505         * lib/opendir.c (includes): Always include errno.h.
4506         Reported by Tatsuro MATSUOKA.
4507
4508 2011-09-14  Jim Meyering  <meyering@redhat.com>
4509
4510         maint.mk: sc_tight_scope: propagate failure from sub-make
4511         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4512         Reported by Martin von Gagern.
4513
4514 2011-09-13  Bruno Haible  <bruno@clisp.org>
4515
4516         tempname: Support for MSVC.
4517         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4518         MSVC.
4519         * modules/tempname (Depends-on): Add fcntl-h.
4520
4521 2011-09-13  Bruno Haible  <bruno@clisp.org>
4522
4523         sys_time: Support for MSVC.
4524         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4525         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4526         include <winsock2.h>.
4527         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4528         function declarations that collide with POSIX.
4529         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4530         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4531
4532 2011-09-13  Bruno Haible  <bruno@clisp.org>
4533
4534         stat: Support for MSVC.
4535         * lib/stat.c: Include pathmax.h.
4536         * modules/stat (Depends-on): Add pathmax.
4537
4538         pathmax: Support for native Windows.
4539         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4540
4541 2011-09-12  Bruno Haible  <bruno@clisp.org>
4542
4543         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4544         * lib/dirent.in.h (struct dirent): New type.
4545         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4546         DT_WHT): New macros.
4547         (DIR): New type.
4548         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4549         (readdir, rewinddir): New declarations.
4550         * lib/dirent-private.h: New file.
4551         * lib/opendir.c: New file.
4552         * lib/readdir.c: New file.
4553         * lib/rewinddir.c: New file.
4554         * lib/closedir.c: New file.
4555         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4556         * m4/opendir.m4: New file.
4557         * m4/readdir.m4: New file.
4558         * m4/rewinddir.m4: New file.
4559         * m4/closedir.m4: New file.
4560         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4561         REPLACE_CLOSEDIR here.
4562         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4563         readdir, rewinddir are declared.
4564         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4565         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4566         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4567         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4568         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4569         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4570         * modules/opendir: New file.
4571         * modules/readdir: New file.
4572         * modules/rewinddir: New file.
4573         * modules/closedir: New file.
4574         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4575         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4576         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4577         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4578         * NEWS: Mention the 'fchdir' change.
4579
4580 2011-09-11  Bruno Haible  <bruno@clisp.org>
4581
4582         asm-underscore.m4: Support for MSVC.
4583         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4584         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4585
4586 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4587
4588         Doc about crypt functions.
4589         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4590         needing for _GNU_SOURCE to get crypt.
4591         * doc/posix-functions/encrypt.texi: Likewise.
4592         * doc/posix-functions/setkey.texi: Likewise.
4593
4594 2011-09-11  Bruno Haible  <bruno@clisp.org>
4595
4596         doc: Update regarding MSVC 9.
4597         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4598         tested".
4599         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4600         * doc/posix-headers/*.texi: Likewise.
4601         * doc/pastposix-functions/*.texi: Likewise.
4602         * doc/glibc-functions/*.texi: Likewise.
4603         * doc/glibc-headers/*.texi: Likewise.
4604
4605 2011-09-11  Bruno Haible  <bruno@clisp.org>
4606
4607         unistd et al.: Don't assume <unistd.h> exists.
4608         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4609         does not exist.
4610         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4611         exist. But include <stdlib.h>.
4612         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4613         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4614         symlink() does not exist.
4615         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4616         include <io.h> instead.
4617         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4618         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4619         include <direct.h> instead.
4620         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4621         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4622         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4623         <io.h> instead.
4624         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4625         correctly if the system does not have hard links.
4626         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4627         <direct.h> instead.
4628         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4629         it when looking for function declarations.
4630         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4631         <direct.h> and <io.h> instead.
4632         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4633
4634 2011-09-11  Bruno Haible  <bruno@clisp.org>
4635
4636         strcase: Support for MSVC.
4637         * modules/strcase (Status, Notice): Remove obsoletion mark.
4638         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4639         * doc/posix-functions/strncasecmp.texi: Likewise.
4640
4641         strings: Don't assume <strings.h> exists.
4642         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4643         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4644         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4645         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4646
4647 2011-09-11  Bruno Haible  <bruno@clisp.org>
4648
4649         dirent: Don't assume <dirent.h> exists.
4650         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4651         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4652         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4653         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4654
4655 2011-09-11  Bruno Haible  <bruno@clisp.org>
4656
4657         Fix wint_t on MSVC.
4658         * lib/wchar.in.h (wint_t): On MSVC, override it.
4659         * lib/wctype.in.h (wint_t): Likewise.
4660         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4661         MSVC.
4662         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4663         * doc/posix-headers/wctype.texi: Likewise.
4664
4665 2011-09-11  Bruno Haible  <bruno@clisp.org>
4666
4667         sys_types: Fix typo.
4668         * lib/sys_types.in.h: Fix typo in comment.
4669         Reported by Paul Eggert.
4670
4671         Support for MSVC compiler: Ensure size_t gets defined.
4672         * modules/strings (Depends-on): Add 'sys_types'.
4673         * modules/sys_uio (Depends-on): Likewise.
4674         * lib/sys_uio.in.h: Update comment.
4675
4676         C++ tests for module 'sys_types'.
4677         * modules/sys_types-c++-tests: New file.
4678         * tests/test-sys_types-c++.cc: New file.
4679
4680         Tests for module 'sys_types'.
4681         * modules/sys_types-tests: New file.
4682         * tests/test-sys_types.c: New file.
4683
4684         New module 'sys_types'.
4685         * lib/sys_types.in.h: New file.
4686         * m4/sys_types_h.m4: New file.
4687         * modules/sys_types: New file.
4688         * doc/posix-headers/sys_types.texi: Mention the new module and the
4689         size_t problem on MSVC 9.
4690
4691 2011-09-11  Bruno Haible  <bruno@clisp.org>
4692
4693         Support for MSVC compiler: Avoid division by a literal 0.
4694         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4695         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4696         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4697         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4698         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4699         * tests/infinity.h: New file.
4700         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4701         on MSVC.
4702         * tests/test-ceilf1.c: Include infinity.h.
4703         (main): Use Infinityf.
4704         * tests/test-ceil1.c: Include infinity.h.
4705         (main): Use Infinityd.
4706         * tests/test-ceill.c: Include infinity.h.
4707         (main): Use Infinityl.
4708         * tests/test-dprintf-posix.c: Include infinity.h.
4709         (test_function): Use Infinityd.
4710         * tests/test-floorf1.c: Include infinity.h.
4711         (main): Use Infinityf.
4712         * tests/test-floor1.c: Include infinity.h.
4713         (main): Use Infinityd.
4714         * tests/test-floorl.c: Include infinity.h.
4715         (main): Use Infinityl.
4716         * tests/test-fprintf-posix.c: Include infinity.h.
4717         (test_function): Use Infinityd.
4718         * tests/test-frexp.c: Include infinity.h.
4719         (main): Use Infinityd.
4720         * tests/test-frexpl.c: Include infinity.h.
4721         (main): Use Infinityl.
4722         * tests/test-isfinite.c: Include infinity.h.
4723         (test_isfinitef): Use Infinityf.
4724         (test_isfinited): Use Infinityd.
4725         (test_isfinitel): Use Infinityl.
4726         * tests/test-isinf.c: Include infinity.h.
4727         (test_isinff): Use Infinityf.
4728         (test_isinfd): Use Infinityd.
4729         (test_isinfl): Use Infinityl.
4730         * tests/test-isnan.c: Include infinity.h.
4731         (test_float): Use Infinityf.
4732         (test_double): Use Infinityd.
4733         (test_long_double): Use Infinityl.
4734         * tests/test-isnanf.h: Include infinity.h.
4735         (main): Use Infinityf.
4736         * tests/test-isnand.h: Include infinity.h.
4737         (main): Use Infinityd.
4738         * tests/test-isnanl.h: Include infinity.h.
4739         (main): Use Infinityl.
4740         * tests/test-ldexpl.c: Include infinity.h.
4741         (main): Use Infinityl.
4742         * tests/test-printf-posix.h: Include infinity.h.
4743         (test_function): Use Infinityd.
4744         * tests/test-roundf1.c: Include infinity.h.
4745         (main): Use Infinityf.
4746         * tests/test-round1.c: Include infinity.h.
4747         (main): Use Infinityd.
4748         * tests/test-roundl.c: Include infinity.h.
4749         (main): Use Infinityl.
4750         * tests/test-signbit.c: Include infinity.h.
4751         (test_signbitf): Use Infinityf.
4752         (test_signbitd): Use Infinityd.
4753         (test_signbitl): Use Infinityl.
4754         * tests/test-snprintf-posix.h: Include infinity.h.
4755         (test_function): Use Infinityd, Infinityl.
4756         * tests/test-sprintf-posix.h: Include infinity.h.
4757         (test_function): Use Infinityd, Infinityl.
4758         * tests/test-truncf1.c: Include infinity.h.
4759         (main): Use Infinityf.
4760         * tests/test-trunc1.c: Include infinity.h.
4761         (main): Use Infinityd.
4762         * tests/test-truncl.c: Include infinity.h.
4763         (main): Use Infinityl.
4764         * tests/test-vasnprintf-posix.c: Include infinity.h.
4765         (test_function): Use Infinityd, Infinityl.
4766         * tests/test-vasprintf-posix.c: Include infinity.h.
4767         (test_function): Use Infinityd, Infinityl.
4768         * modules/ceilf-tests (Files): Add tests/infinity.h.
4769         * modules/ceil-tests (Files): Likewise.
4770         * modules/ceill-tests (Files): Likewise.
4771         * modules/dprintf-posix-tests (Files): Likewise.
4772         * modules/floorf-tests (Files): Likewise.
4773         * modules/floor-tests (Files): Likewise.
4774         * modules/floorl-tests (Files): Likewise.
4775         * modules/fprintf-posix-tests (Files): Likewise.
4776         * modules/frexp-tests (Files): Likewise.
4777         * modules/frexp-nolibm-tests (Files): Likewise.
4778         * modules/frexpl-tests (Files): Likewise.
4779         * modules/frexpl-nolibm-tests (Files): Likewise.
4780         * modules/isfinite-tests (Files): Likewise.
4781         * modules/isinf-tests (Files): Likewise.
4782         * modules/isnan-tests (Files): Likewise.
4783         * modules/isnanf-tests (Files): Likewise.
4784         * modules/isnanf-nolibm-tests (Files): Likewise.
4785         * modules/isnand-tests (Files): Likewise.
4786         * modules/isnand-nolibm-tests (Files): Likewise.
4787         * modules/isnanl-tests (Files): Likewise.
4788         * modules/isnanl-nolibm-tests (Files): Likewise.
4789         * modules/ldexpl-tests (Files): Likewise.
4790         * modules/printf-posix-tests (Files): Likewise.
4791         * modules/roundf-tests (Files): Likewise.
4792         * modules/round-tests (Files): Likewise.
4793         * modules/roundl-tests (Files): Likewise.
4794         * modules/signbit-tests (Files): Likewise.
4795         * modules/snprintf-posix-tests (Files): Likewise.
4796         * modules/sprintf-posix-tests (Files): Likewise.
4797         * modules/truncf-tests (Files): Likewise.
4798         * modules/trunc-tests (Files): Likewise.
4799         * modules/truncl-tests (Files): Likewise.
4800         * modules/vasnprintf-posix-tests (Files): Likewise.
4801         * modules/vasprintf-posix-tests (Files): Likewise.
4802         * modules/vdprintf-posix-tests (Files): Likewise.
4803         * modules/vfprintf-posix-tests (Files): Likewise.
4804         * modules/vprintf-posix-tests (Files): Likewise.
4805         * modules/vsnprintf-posix-tests (Files): Likewise.
4806         * modules/vsprintf-posix-tests (Files): Likewise.
4807         * modules/xprintf-posix-tests (Files): Likewise.
4808
4809 2011-09-11  Bruno Haible  <bruno@clisp.org>
4810
4811         Ensure pid_t gets defined.
4812         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4813         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4814         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4815         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4816         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4817         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4818         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4819         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4820         * tests/test-fcntl-h.c: Check that pid_t is defined.
4821         * tests/test-sched.c: Likewise.
4822         * tests/test-termios.c: Likewise.
4823         * tests/test-time.c: Likewise.
4824         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4825         * doc/posix-headers/signal.texi: Likewise.
4826         * doc/posix-headers/sys_types.texi: Likewise.
4827         * doc/posix-headers/time.texi: Likewise.
4828
4829 2011-09-11  Bruno Haible  <bruno@clisp.org>
4830
4831         acl: Fix compilation on Solaris 10 (older version).
4832         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4833         of ACE_EVERYONE.
4834         * lib/set-mode-acl.c (qset_acl): Likewise.
4835         Reported by Christian Jullien <eligis@orange.fr>.
4836
4837 2011-09-10  Bruno Haible  <bruno@clisp.org>
4838
4839         iconv, unsetenv: Add support for MSVC compiler.
4840         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4841         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4842
4843 2011-09-10  Bruno Haible  <bruno@clisp.org>
4844
4845         *printf: Add support for MSVC compiler.
4846         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4847         handles the exception caused by the %n directive. When cross-compiling,
4848         guess no on native Windows.
4849         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4850         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4851         emulate it through vsnprintf.
4852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4853         * doc/posix-functions/dprintf.texi: Update documentation regarding
4854         MSVC 9.
4855         * doc/posix-functions/fprintf.texi: Likewise.
4856         * doc/posix-functions/printf.texi: Likewise.
4857         * doc/posix-functions/snprintf.texi: Likewise.
4858         * doc/posix-functions/sprintf.texi: Likewise.
4859         * doc/posix-functions/swprintf.texi: Likewise.
4860         * doc/posix-functions/vdprintf.texi: Likewise.
4861         * doc/posix-functions/vfprintf.texi: Likewise.
4862         * doc/posix-functions/vprintf.texi: Likewise.
4863         * doc/posix-functions/vsnprintf.texi: Likewise.
4864         * doc/posix-functions/vsprintf.texi: Likewise.
4865         * doc/glibc-functions/asprintf.texi: Likewise.
4866         * doc/glibc-functions/obstack_printf.texi: Likewise.
4867         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4868         * doc/glibc-functions/vasprintf.texi: Likewise.
4869
4870 2011-09-10  Bruno Haible  <bruno@clisp.org>
4871
4872         nocrash: Add support for native Windows.
4873         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4874
4875 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4876             Bruno Haible  <bruno@clisp.org>
4877
4878         absolute-header, include-next: Add support for MSVC compiler.
4879         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4880         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4881         directory separator in #line directives.
4882         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4883         recognize also backslash as directory separator in #line directives.
4884
4885 2011-09-08  Jim Meyering  <meyering@redhat.com>
4886
4887         maint.mk: mark the post-release commit log with "maint: " prefix
4888         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4889         one-line commit-log summary.
4890
4891 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4892             Bruno Haible  <bruno@clisp.org>
4893
4894         Doc about crypt functions.
4895         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4896         systems.
4897         * doc/posix-functions/encrypt.texi: Likewise.
4898         * doc/posix-functions/setkey.texi: Likewise.
4899
4900 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4901
4902         * lib/gc.h: Fix copyright header.
4903
4904 2011-09-07  Bruno Haible  <bruno@clisp.org>
4905
4906         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4907         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4908         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4909
4910 2011-09-07  Bruno Haible  <bruno@clisp.org>
4911
4912         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4913         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4914         * lib/freopen.c: Likewise.
4915         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4916         * lib/lstat.c: Likewise.
4917         * lib/stat.c: Likewise.
4918         * lib/open.c: Use different syntax for include of <fcntl.h>.
4919         * lib/openat.c: Include fcntl.h again, explicitly.
4920
4921 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4922
4923         parse-datetime: document the newly accepted format
4924         * doc/parse-datetime.texi (Combined date and time of day items):
4925         New section.
4926
4927 2011-09-06  Bruno Haible  <bruno@clisp.org>
4928
4929         acl: Fix a test failure on newer Solaris 10 with ZFS.
4930         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4931         ENOSYS as no ACL.
4932         Reported by Jim Meyering.
4933
4934 2011-09-06  Bruno Haible  <bruno@clisp.org>
4935
4936         acl: Update for AIX >= 5.3 with NFS.
4937         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4938         ENOSYS as no ACL.
4939
4940         acl: Fix a test failure on AIX >= 5.3 with NFS.
4941         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4942         as no ACL.
4943
4944 2011-09-06  Bruno Haible  <bruno@clisp.org>
4945
4946         acl: Fix a test failure on IRIX 6.5 with NFS.
4947         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4948         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4949         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4950         * lib/copy-acl.c (qcopy_acl): Likewise.
4951
4952 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4953
4954         openat: port to AIX 7.1 with large files
4955         AIX 7.1 does a "#define openat open64at" if large files are in use,
4956         so we can't simply #undef openat.  Use the orig_openat trick (similar
4957         to orig_open in lib/open.c) to work around the problem.  Problem
4958         reported by Kevin Brott for GNU tar, in the thread containing
4959         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4960         * lib/openat.c (__need_system_fcntl_h): Define first.
4961         Include <fcntl.h> and <sys/types.h> before undefining.
4962         (orig_openat) [HAVE_OPENAT]: New inline function.
4963         (openat) [HAVE_OPENAT]: Do not undef.
4964         (rpl_openat): Use orig_openat, not openat.
4965
4966 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4967             Bruno Haible  <bruno@clisp.org>
4968
4969         acl: Avoid errors on NonStop Kernel.
4970         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4971         ENOTSUP errors.
4972
4973 2011-09-05  Bruno Haible  <bruno@clisp.org>
4974
4975         acl: Clean up Solaris code.
4976         * lib/acl-internal.h: Remove no-op #if.
4977         * lib/file-has-acl.c: Likewise.
4978         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4979         * lib/copy-acl.c (qcopy_acl): Likewise.
4980
4981 2011-09-05  Bruno Haible  <bruno@clisp.org>
4982
4983         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4984         binaries built on the original Solaris 10.
4985         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4986         trivial.
4987
4988 2011-09-05  Bruno Haible  <bruno@clisp.org>
4989
4990         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4991         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4992         10.
4993         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4994         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4995         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4996         instead of acl_get, facl_get, acl_set, facl_set.
4997
4998 2011-09-05  Bruno Haible  <bruno@clisp.org>
4999
5000         copy-file: Try unit tests on more file systems.
5001         * tests/test-copy-file-1.sh: New file.
5002         * tests/test-copy-file-2.sh: New file.
5003         * modules/copy-file-tests (Files): Add them.
5004         (Makefile.am): Add them to TESTS.
5005
5006         acl: Try unit tests on more file systems.
5007         * tests/test-file-has-acl-1.sh: New file.
5008         * tests/test-file-has-acl-2.sh: New file.
5009         * tests/test-set-mode-acl-1.sh: New file.
5010         * tests/test-set-mode-acl-2.sh: New file.
5011         * tests/test-copy-acl-1.sh: New file.
5012         * tests/test-copy-acl-2.sh: New file.
5013         * modules/acl-tests (Files): Add them.
5014         (Makefile.am): Add them to TESTS.
5015
5016 2011-09-04  Bruno Haible  <bruno@clisp.org>
5017
5018         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5019         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5020         10.
5021         (OLD_ALLOW, OLD_DENY): New macros.
5022         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5023         ACE_ACCESS_ALLOWED_ACE_TYPE.
5024         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5025         ACE_ACCESS_DENIED_ACE_TYPE.
5026         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5027         (NEW_ACE_EXECUTE): Fix value.
5028         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5029         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5030         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5031         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5032         NEW_ACE_SYNCHRONIZE): New macros.
5033         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5034         instead of acl_fromtext, acl_set, facl_set.
5035         Fixes a coreutils/tests/cp/perm failure.
5036
5037 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5038
5039         openat: test for fstatat (..., 0) bug
5040         Further testing with tar suggests that fstatat (..., 0)
5041         does not work in general, on AIX 7.1; see
5042         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5043         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5044         replacement fstatat (which is what older AIX releases were using
5045         anyway).
5046         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5047         use is now changed to orig_fstatat.  This was probably the right
5048         thing to do anyway.
5049         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5050         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5051         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5052         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5053         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5054         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5055         if the bug is found.
5056
5057         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5058         This tests for another fstatat bug on AIX 7.1:
5059         fstatat (AT_FDCWD, ..., 0) does not work.  See
5060         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5061         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5062         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5063         (rpl_fstatat): Adjust so that it works around either (or both)
5064         bugs if present.
5065         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5066
5067 2011-09-03  Karl Berry  <karl@gnu.org>
5068
5069         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5070         in index entries.
5071
5072 2011-09-02  Bruno Haible  <bruno@clisp.org>
5073
5074         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5075         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5076         values of AR, ARFLAGS, RANLIB.
5077         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5078
5079 2011-09-02  Bruno Haible  <bruno@clisp.org>
5080
5081         Find 'ar' program that fits with --host argument.
5082         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5083
5084 2011-09-02  Bruno Haible  <bruno@clisp.org>
5085
5086         tests: init.sh: Support any non-GNU diff.
5087         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5088         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5089         Solaris 8.
5090
5091 2011-09-02  Bruno Haible  <bruno@clisp.org>
5092
5093         tests: init.sh: work also with any non-GNU diff that supports -u
5094         * tests/init.sh: Relax check for diff -u support.
5095         Rather than checking for GNU diff via --version, simply check
5096         for support for -u itself.  Useful at least on OpenBSD 4.9,
5097         AIX 7.1, IRIX 6.5, and Solaris 10.
5098
5099 2011-09-01  Bruno Haible  <bruno@clisp.org>
5100
5101         strtoimax, strtoumax: Document problem on HP-UX 11.
5102         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5103         * doc/posix-functions/strtoumax.texi: Likewise.
5104
5105 2011-09-01  Bruno Haible  <bruno@clisp.org>
5106
5107         strtoumax: Avoid link error on OSF/1 with DTK cc.
5108         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5109         defined as a function.
5110         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5111         strtoumax is defined, not whether it is declared.
5112
5113 2011-09-01  Bruno Haible  <bruno@clisp.org>
5114
5115         strtoimax: Avoid link error on OSF/1 with DTK cc.
5116         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5117         defined as a function.
5118         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5119         strtoimax is defined, not whether it is declared.
5120
5121 2011-09-01  Bruno Haible  <bruno@clisp.org>
5122
5123         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5124         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5125         as a function.
5126         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5127         whether it is declared.
5128
5129 2011-09-01  Bruno Haible  <bruno@clisp.org>
5130
5131         imaxabs: Avoid link error on OSF/1 with DTK cc.
5132         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5133         as a function.
5134         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5135         whether it is declared.
5136
5137 2011-09-01  Bruno Haible  <bruno@clisp.org>
5138
5139         Tests for module 'strtoumax'.
5140         * modules/strtoumax-tests: New file.
5141         * tests/test-strtoumax.c: New file.
5142
5143         Tests for module 'strtoimax'.
5144         * modules/strtoimax-tests: New file.
5145         * tests/test-strtoimax.c: New file.
5146
5147         Tests for module 'imaxdiv'.
5148         * modules/imaxdiv-tests: New file.
5149         * tests/test-imaxdiv.c: New file.
5150
5151         Tests for module 'imaxabs'.
5152         * modules/imaxabs-tests: New file.
5153         * tests/test-imaxabs.c: New file.
5154
5155 2011-09-01  Bruno Haible  <bruno@clisp.org>
5156
5157         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5158         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5159         pthread_create.
5160
5161 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5162
5163         openat: work around AIX 7.1 fstatat issue
5164         This should fix the problem that was not properly fixed
5165         in the previous change, dated 2011-08-30.
5166         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5167         __need_system_stat_h defined.
5168         (orig_fstatat) [HAVE_FSTATAT]: New function.
5169         (rpl_fstatat): Go back to the old way of doing things,
5170         except call orig_fstatat instead of fstatat.
5171         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5172         Remove unnecessary check whether fstatat fills in st_size etc.
5173
5174 2011-09-01  Bruno Haible  <bruno@clisp.org>
5175
5176         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5177         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5178         just include the system's header.
5179
5180 2011-08-31  Jim Meyering  <meyering@redhat.com>
5181
5182         tests: avoid spurious assertion failure in test-float.c on ppc64
5183         * tests/test-float.c (test_long_double): Comment out an assertion,
5184         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5185         with gcc-4.4.4.
5186
5187         maint: indent with spaces, not TABs
5188         I need to get in the habit of running gnulib's "make check".
5189         Both of these would have been caught.
5190         * m4/largefile.m4: Indent with spaces, not TABs.
5191         * lib/parse-datetime.y (iso_8601_time): Likewise.
5192         Spotted by Pádraig Brady.
5193
5194         test-parse-datetime.c: accommodate a relatively strict gcc warning
5195         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5196         to avoid a warning from gcc's -Werror=missing-declarations.
5197         Insert a few spaces-before-funcall-parenthesis.
5198
5199 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5200
5201         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5202         The parser now accepts ISO 8601 date-time strings with "T" as the
5203         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5204         with a space between the date and time strings.  Now it also parses
5205         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5206         variants like "2004-02-29T16:21:42.333-07:00"
5207         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5208         of day representation using the 'T' separator character.
5209         * doc/parse-datetime.texi (General date syntax): replace use of
5210         deprecated --iso-8601 option with --rfc-3339 in example of date
5211         command output formats that can be parsed.
5212         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5213         lib/parse-datetime.y.
5214         (gmt_offset): New function.
5215         (main): Add additional test cases to validate ISO8601 extended
5216         date and time of day parsing.
5217
5218 2011-08-31  Bruno Haible  <bruno@clisp.org>
5219
5220         freopen: Documentation.
5221         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5222         name.
5223         Reported by Claudio Bley <claudio.bley@gmail.com>.
5224
5225 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5226
5227         freopen: Don't crash if the filename argument is NULL.
5228         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5229         NULL.
5230
5231 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5232
5233         openat: work around AIX 7.1 fstatat bug
5234         Problem reported by Kevin Brott for GNU tar, in the thread containing
5235         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5236         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5237         FSTATAT_ST_SIZE_ETC_BROKEN.
5238         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5239         rpl_fstatat.
5240         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5241         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5242         AC_CHECK_FUNCS_ONCE for fstatat.
5243         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5244         fchmodat, mkdirat, openat and unlinkat.
5245
5246 2011-08-30  Bruno Haible  <bruno@clisp.org>
5247
5248         Avoid endless recursions if config.h includes some header files.
5249         * lib/fopen.c (__need_FILE): Define already before including config.h.
5250         * lib/freopen.c (__need_FILE): Likewise.
5251         * lib/open.c (__need_system_fcntl_h): Likewise.
5252         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5253         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5254         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5255
5256 2011-08-25  Karl Berry  <karl@gnu.org>
5257
5258         * config/srclist.txt (ylwrap): new try.
5259         * build-aux/ylwrap: new file.
5260
5261 2011-08-23  Bruno Haible  <bruno@clisp.org>
5262
5263         tmpdir: Use a good default directory on native Windows.
5264         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5265         (P_tmpdir): Default to _P_tmpdir on native Windows.
5266         (path_search): On native Windows, try the value returned by GetTempPath
5267         before trying P_tmpdir.
5268         * modules/tmpdir (Depends-on): Add pathmax.
5269         Suggested by John Darrington <john@darrington.wattle.id.au>.
5270
5271 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5272
5273         doc: fix typo in README-release
5274         * top/README-release: Capitalize first word of a sentence.
5275
5276 2011-08-19  Jim Meyering  <meyering@redhat.com>
5277
5278         fts: do not exhaust memory when processing million-entry directories
5279         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5280         directory would require about 256*N bytes of memory.  Thus, it was
5281         easy to construct a directory too large to be processed by any of
5282         those tools.  With this change, fts' maximum memory utilization is
5283         now limited to around 30MB.
5284         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5285         (fts_read): When we've processed the final entry (i.e., when
5286         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5287         using the parent entry to read any remaining entries.  Dispatch
5288         depending on what fts_build returns:
5289         - NULL+stop, aka failure: stop
5290         - NULL otherwise: move up in the dir hierarchy
5291         - non-NULL: handle this new entry
5292         (fts_build): Declare and use new local, continue_readdir.
5293         Prepare to be called from fts_read, when the entries
5294         from a partially-read directory have just been exhausted.
5295         In that case, we'll skip the opendir and instead use the parent's
5296         fts_dirp and derive dir_fd from that.
5297         Finally, in the readdir loop, if we read max_entries entries,
5298         exit the loop ensuring *not* to call closedir.  This is required
5299         so that fts_dirp can be reused on a subsequent call.
5300         Prompted by Ben England's report of memory exhaustion in find
5301         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5302
5303         maint: fts: move decl of `dp' down into while loop; split a long line
5304         * lib/fts.c (fts_build): No semantic change.
5305
5306         fts: add/use new struct member, fts_dirp
5307         We are about to use this to manage any directory with
5308         too many entries to read all of them into memory at once.
5309         To do that, we'll need to save the DIR* pointer in each
5310         affected FTSENT struct.
5311         * lib/fts_.h: Include <dirent.h>.
5312         (struct FTSENT) [fts_dirp]: New member.
5313         * lib/fts.c (closedir_and_clear): Define.
5314         Use it in place of closedir so that we are sure to
5315         clear the new fts_dirp member when done with it.
5316         (fts_alloc): Initialize the new member.
5317         (fts_lfree): Free, if needed.
5318
5319         maint: fts: give __opendir2 a new parameter and rename
5320         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5321         than surreptitiously using sole caller's "dir_fd".
5322         (fts_opendir): Rename from __opendir2.
5323
5324         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5325         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5326
5327         maint: fts.c: correct off-by-one indentation
5328         * lib/fts.c (fts_build): Correct indentation, change style
5329         of a couple of block comments, and bracing style.
5330
5331         maint: fts.c: move __opendir2 #define "up" out of function body
5332         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5333
5334         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5335         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5336         out for a long time and besides was useful only on BSD systems.
5337
5338 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5339
5340         regex: port to Stratus OpenVOS
5341         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5342         define to empty, rather than attempting nonportable optimizations.
5343         Problem reported by Paul Green in:
5344         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5345         and fix suggested by Eric Blake in:
5346         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5347
5348 2011-08-17  Eric Blake  <eblake@redhat.com>
5349
5350         getcwd: fix test failures on mingw
5351         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5352         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5353         test if long directory cannot be created, and allow mingw errno.
5354
5355         getcwd-lgpl: fix m4 to match relaxed test for BSD
5356         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5357         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5358         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5359         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5360         signature problem.
5361
5362         getcwd: fix compilation on mingw64
5363         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5364         getcwd.
5365         Reported by Marc-André Lureau.
5366
5367         pipe2: silence compiler warning
5368         * lib/pipe2.c (pipe2): Hide label if it is not used.
5369
5370 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5371
5372         relocatable-prog: fix link error
5373         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5374         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5375         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5376         into modules/relocatable-lib without noticing that
5377         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5378         also needs to build relocatable.c.
5379
5380 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5381
5382         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5384         shell code: it contained a 'break' that was not in a loop.
5385         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5386         via a shell-language loop; this may have been true in old Autoconf
5387         versions, but it's not true in Autoconf 2.68.  I found this bug
5388         when testing coreutils git on Solaris 8, whose shell complains
5389         about the syntax error.
5390
5391 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5392
5393         * lib/base64.c: Fix comment to reference RFC 4648.
5394         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5395         <gvtulder@gmail.com>.
5396
5397 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5398
5399         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5400
5401         po/Makefile.in.in: fix make -q problem
5402         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5403         rule, since there's no file named 'check-macro-version' and its
5404         use as a file breaks make -q.
5405         (all): Don't depend on check-macro-version.
5406         (CHECK_MACRO_VERSION): New macro.
5407         (stamp-po): Use it.
5408
5409         configmake: fix make -q problem
5410         * modules/configmake (configmake.h): Update configmake.h's time stamp
5411         even if the file does not change.  Otherwise, 'make -q' fails.
5412         Problem reported by Simon Josefsson in
5413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5414
5415 2011-08-11  Jim Meyering  <meyering@redhat.com>
5416
5417         git-version-gen: correct the advice in a comment
5418         * build-aux/git-version-gen: Correct comment.
5419         Don't recommend to list .tarball-version in .gitignore.
5420
5421 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5422
5423         base64: fix off-by-one buffer size bug
5424         Problem and (trivial) fix reported by Gijs van Tulder in
5425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5426         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5427         * tests/test-base64.c (main): Catch the bug.
5428
5429 2011-08-10  Eric Blake  <eblake@redhat.com>
5430
5431         closein: correct comments
5432         * lib/closein.c (close_stdin): Improve comments.
5433
5434 2011-08-09  Bruno Haible  <bruno@clisp.org>
5435
5436         More tests for 'fseeko'.
5437         * tests/test-fseeko3.c: New file, from Eric Blake.
5438         * tests/test-fseeko3.sh: New file.
5439         * modules/fseeko-tests (Files): Add them.
5440         (TESTS): Add test-fseeko3.sh.
5441         (check_PROGRAMS): Add test-fseeko3.
5442
5443 2011-08-09  Eric Blake  <eblake@redhat.com>
5444
5445         fseeko: remove unneeded hack
5446         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5447
5448         fseeko: fix bug on glibc
5449         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5450         Reported by John W. Eaton.
5451
5452 2011-08-08  Bruno Haible  <bruno@clisp.org>
5453
5454         unictype/base: Fix interoperability with preinstalled libunistring.
5455         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5456         Reported by Simon Josefsson.
5457
5458 2011-08-08  Bruno Haible  <bruno@clisp.org>
5459
5460         iswblank: Detect declaration correctly.
5461         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5462         AC_CHECK_DECLS invocation.
5463
5464 2011-08-08  Bruno Haible  <bruno@clisp.org>
5465
5466         tcgetsid: Detect declaration correctly.
5467         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5468         AC_CHECK_DECLS invocation.
5469         Reported by Simon Josefsson.
5470
5471 2011-08-08  Eric Blake  <eblake@redhat.com>
5472
5473         largefile: fix typo that regressed large file support
5474         * modules/largefile (configure.ac-early): Fix section name.
5475
5476 2011-08-06  Karl Berry  <karl@gnu.org>
5477
5478         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5479         a separate module.
5480
5481 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5482
5483         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5484         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5485         get prototype for free.
5486
5487 2011-08-04  Bruno Haible  <bruno@clisp.org>
5488
5489         Tests for module 'pathmax'.
5490         * modules/pathmax-tests: New file.
5491         * tests/test-pathmax.c: New file.
5492
5493         canonicalize-lgpl: Support larger filenames on the Hurd.
5494         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5495         Reported by Paul Eggert.
5496
5497         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5498         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5499         * lib/chdir-long.h: Include pathmax.h.
5500         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5501         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5502         (PATH_MAX): Remove code that is done by pathmax.h.
5503         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5504         * lib/tmpfile.c: Add a comment.
5505         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5506         * modules/chdir-long (Depends-on): Add pathmax.
5507         * modules/getcwd (Depends-on): Add pathmax.
5508         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5509         is not defined.
5510         * doc/posix-headers/limits.texi: Mention the pathmax module.
5511         * NEWS: Mention the change.
5512
5513 2011-08-02  Bruno Haible  <bruno@clisp.org>
5514
5515         pthread_sigmask: Actually use results of gl_THREADLIB.
5516         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5517         gl_THREADLIB, not gl_[]THREADLIB.
5518         Reported by Eric Blake.
5519
5520 2011-08-02  Jim Meyering  <meyering@redhat.com>
5521
5522         maint.mk: relax the default _gl_TS_function_match regexp
5523         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5524         space between function name and "(" in an "extern" declaration.
5525         That would fail to match a decl with no space there: extern void foo();
5526
5527 2011-07-31  Iain Nicol  <iain@thenicols.net>
5528
5529         git-version-gen: document that EXTRA_DIST must include .version
5530         * build-aux/git-version-gen: In the how-to-use comment, document
5531         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5532         will fail when run from an unpacked distribution tarball.
5533
5534 2011-08-01  Bruno Haible  <bruno@clisp.org>
5535
5536         wctype-h: Fix last change.
5537         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5538         REPLACE_TOWLOWER to 0.
5539         Reported by Sam Steingold <sds@gnu.org>.
5540
5541 2011-07-31  Bruno Haible  <bruno@clisp.org>
5542
5543         frexpl: Update autoconf test.
5544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5545         according to changes of 2011-06-20.
5546
5547 2011-07-31  Bruno Haible  <bruno@clisp.org>
5548
5549         sys_utsname: Add support for Minix.
5550         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5551         <sys/utsname.h>.
5552         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5553         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5554
5555 2011-07-31  Bruno Haible  <bruno@clisp.org>
5556
5557         strings: Add support for Minix.
5558         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5559         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5560         * doc/posix-headers/strings.texi: Document the Minix problem.
5561
5562 2011-07-31  Bruno Haible  <bruno@clisp.org>
5563
5564         wctype-h: Add support for Minix.
5565         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5566         REPLACE_TOWLOWER.
5567         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5568         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5569         REPLACE_ISWCNTRL.
5570
5571 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5572
5573         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5574         This is a performance improvement for 64-bit hosts: it causes the
5575         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5576
5577 2011-07-31  Bruno Haible  <bruno@clisp.org>
5578
5579         stdioext: Add support for Minix.
5580         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5581         * lib/fpurge.c (fpurge): Likewise.
5582         * lib/freadahead.c (freadahead): Likewise.
5583         * lib/freadable.c (freadable): Likewise.
5584         * lib/freading.c (freading): Likewise.
5585         * lib/freadptr.c (freadptr): Likewise.
5586         * lib/freadseek.c (freadptrinc): Likewise.
5587         * lib/fseeko.c (rpl_fseeko): Likewise.
5588         * lib/fseterr.c (fseterr): Likewise.
5589         * lib/fwritable.c (fwritable): Likewise.
5590         * lib/fwriting.c (fwriting): Likewise.
5591         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5592         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5593
5594 2011-07-31  Bruno Haible  <bruno@clisp.org>
5595
5596         errno: Port to Minix.
5597         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5598         ECONNABORTED are defined.
5599         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5600         GNULIB_defined_ECONNABORTED): New macros.
5601         * lib/strerror-override.h (strerror_override): Test also
5602         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5603         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5604         ECONNABORTED.
5605         * doc/posix-headers/errno.texi: Mention the Minix problem.
5606
5607 2011-07-31  Bruno Haible  <bruno@clisp.org>
5608
5609         Work around declaration collisions on Minix.
5610         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5611         defined, set REPLACE_MBSINIT.
5612         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5613         defined, set REPLACE_MBRTOWC.
5614         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5615         set REPLACE_MBRLEN.
5616         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5617         defined, set REPLACE_MBSRTOWCS.
5618         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5619         defined, set REPLACE_WCRTOMB.
5620         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5621         defined, set REPLACE_WCSRTOMBS.
5622
5623 2011-07-31  Bruno Haible  <bruno@clisp.org>
5624
5625         Add support for Minix with ACK compiler.
5626         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5627         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5628         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5629
5630 2011-07-31  Bruno Haible  <bruno@clisp.org>
5631
5632         Documentation about Minix.
5633         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5634         * doc/glibc-headers/*.texi: Likewise.
5635         * doc/posix-functions/*.texi: Likewise.
5636         * doc/glibc-functions/*.texi: Likewise.
5637
5638 2011-07-31  Bruno Haible  <bruno@clisp.org>
5639
5640         snippet/warn-on-use: Fix indentation.
5641         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5642
5643 2011-07-25  Jim Meyering  <meyering@redhat.com>
5644
5645         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5646         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5647         commands.
5648
5649 2011-07-27  Jim Meyering  <meyering@redhat.com>
5650
5651         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5652         * top/maint.mk (gl_extract_significant_defines_): Now that
5653         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5654         gnulib/lib/signal.in.h, and now that we recommend to
5655         define-if-undefined those two symbols in application code,
5656         we must filter them out of the "significant" list.
5657         This avoids a "make syntax-check" failure in coreutils.
5658
5659 2011-07-26  Eric Blake  <eblake@redhat.com>
5660
5661         warnings: add comments about previous patch
5662         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5663         * m4/include_next.m4: Likewise.
5664         * m4/warn-on-use.m4: Likewise.
5665         * m4/warnings.m4: Likewise, and simplify use.
5666         Suggested by Stefano Lattarini.
5667
5668         include-next, warnings: support older autoconf
5669         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5670         AS_VAR_PUSHDEF in a way that works with older autoconf.
5671         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5672         Reported by Daniel P. Berrange.
5673
5674 2011-07-25  Bruno Haible  <bruno@clisp.org>
5675
5676         fseek, ftell: Fix doc.
5677         * doc/posix-functions/fseek.texi: Reword statement about
5678         AC_SYS_LARGEFILE.
5679         * doc/posix-functions/ftell.texi: Likewise.
5680
5681 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5682             Bruno Haible  <bruno@clisp.org>
5683
5684         Add dependencies to the 'largefile' module.
5685         * modules/fopen (Depends-on): Add 'largefile'.
5686         * modules/freopen (Depends-on): Likewise.
5687         * modules/fseeko (Depends-on): Likewise.
5688         * modules/ftello (Depends-on): Likewise.
5689         * modules/glob (Depends-on): Likewise.
5690         * modules/lseek (Depends-on): Likewise.
5691         * modules/lstat (Depends-on): Likewise.
5692         * modules/mkostemp (Depends-on): Likewise.
5693         * modules/mkostemps (Depends-on): Likewise.
5694         * modules/mkstemp (Depends-on): Likewise.
5695         * modules/mkstemps (Depends-on): Likewise.
5696         * modules/open (Depends-on): Likewise.
5697         * modules/openat (Depends-on): Likewise.
5698         * modules/pread (Depends-on): Likewise.
5699         * modules/pwrite (Depends-on): Likewise.
5700         * modules/scandir (Depends-on): Likewise.
5701         * modules/stat (Depends-on): Likewise.
5702         * modules/tmpfile (Depends-on): Likewise.
5703         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5704         since the containing module now depends on the largefile module.
5705         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5706         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5707         off_t is fixed by gnulib.
5708         * doc/posix-functions/freopen.texi: Likewise.
5709         * doc/posix-functions/fseeko.texi: Likewise.
5710         * doc/posix-functions/fstatat.texi: Likewise.
5711         * doc/posix-functions/ftello.texi: Likewise.
5712         * doc/posix-functions/glob.texi: Likewise.
5713         * doc/posix-functions/lseek.texi: Likewise.
5714         * doc/posix-functions/lstat.texi: Likewise.
5715         * doc/posix-functions/mkstemp.texi: Likewise.
5716         * doc/posix-functions/open.texi: Likewise.
5717         * doc/posix-functions/openat.texi: Likewise.
5718         * doc/posix-functions/pread.texi: Likewise.
5719         * doc/posix-functions/pwrite.texi: Likewise.
5720         * doc/posix-functions/scandir.texi: Likewise.
5721         * doc/posix-functions/stat.texi: Likewise.
5722         * doc/posix-functions/tmpfile.texi: Likewise.
5723         * doc/glibc-functions/mkostemp.texi: Likewise.
5724         * doc/glibc-functions/mkostemps.texi: Likewise.
5725         * doc/glibc-functions/mkstemps.texi: Likewise.
5726
5727 2011-07-25  Bruno Haible  <bruno@clisp.org>
5728
5729         fcntl: Move AC_LIBOBJ invocation to module description.
5730         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5731         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5732
5733         fcntl: Remove call-in from fchdir.m4.
5734         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5736
5737         dup3: Remove potential call-in from fchdir.m4.
5738         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5740
5741         dup2: Move AC_LIBOBJ invocation to module description.
5742         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5743         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5744         Don't invoke AC_LIBOBJ.
5745         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5746
5747         dup2: Remove call-in from fchdir.m4.
5748         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5750
5751         fclose: Move AC_LIBOBJ invocation to module description.
5752         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5753         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5754         to 1.
5755         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5756
5757         fclose: Remove call-in from close.m4.
5758         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5759         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5760
5761         close: Move AC_LIBOBJ invocation to module description.
5762         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5763         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5764         1.
5765         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5766
5767         close: Remove call-in from fchdir.m4.
5768         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5770
5771         open: Move AC_LIBOBJ invocation to module description.
5772         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5773         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5774         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5775
5776         open: Remove call-in from fchdir.m4.
5777         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5779
5780         fchdir: Start to remove gl_REPLACE_* idiom.
5781         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5782         (gl_FUNC_FCHDIR): Invoke it.
5783
5784 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5785
5786         * lib/ftell.c (ftell): Comment out cast.
5787
5788         close: use gl_REPLACE_FCLOSE only if defined
5789         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5790         is defined.  The close module doesn't depend on the fclose module
5791         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5793         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5794
5795 2011-07-24  Jim Meyering  <meyering@redhat.com>
5796
5797         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5798         * tests/test-select.h (test_function): Declare as "static".
5799
5800 2011-07-24  Bruno Haible  <bruno@clisp.org>
5801
5802         doc: Mention the effects of AC_SYS_LARGEFILE.
5803         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5804         on this function.
5805         * doc/posix-functions/aio_error.texi: Likewise.
5806         * doc/posix-functions/aio_fsync.texi: Likewise.
5807         * doc/posix-functions/aio_read.texi: Likewise.
5808         * doc/posix-functions/aio_return.texi: Likewise.
5809         * doc/posix-functions/aio_suspend.texi: Likewise.
5810         * doc/posix-functions/aio_write.texi: Likewise.
5811         * doc/posix-functions/fgetpos.texi: Likewise.
5812         * doc/posix-functions/fopen.texi: Likewise.
5813         * doc/posix-functions/freopen.texi: Likewise.
5814         * doc/posix-functions/fsetpos.texi: Likewise.
5815         * doc/posix-functions/fstatvfs.texi: Likewise.
5816         * doc/posix-functions/ftruncate.texi: Likewise.
5817         * doc/posix-functions/ftw.texi: Likewise.
5818         * doc/posix-functions/getrlimit.texi: Likewise.
5819         * doc/posix-functions/glob.texi: Likewise.
5820         * doc/posix-functions/lio_listio.texi: Likewise.
5821         * doc/posix-functions/lockf.texi: Likewise.
5822         * doc/posix-functions/mkstemp.texi: Likewise.
5823         * doc/posix-functions/mmap.texi: Likewise.
5824         * doc/posix-functions/nftw.texi: Likewise.
5825         * doc/posix-functions/openat.texi: Likewise.
5826         * doc/posix-functions/opendir.texi: Likewise.
5827         * doc/posix-functions/posix_fadvise.texi: Likewise.
5828         * doc/posix-functions/posix_fallocate.texi: Likewise.
5829         * doc/posix-functions/pread.texi: Likewise.
5830         * doc/posix-functions/pwrite.texi: Likewise.
5831         * doc/posix-functions/readdir.texi: Likewise.
5832         * doc/posix-functions/readdir_r.texi: Likewise.
5833         * doc/posix-functions/rewinddir.texi: Likewise.
5834         * doc/posix-functions/scandir.texi: Likewise.
5835         * doc/posix-functions/seekdir.texi: Likewise.
5836         * doc/posix-functions/setrlimit.texi: Likewise.
5837         * doc/posix-functions/statvfs.texi: Likewise.
5838         * doc/posix-functions/telldir.texi: Likewise.
5839         * doc/posix-functions/tmpfile.texi: Likewise.
5840         * doc/posix-functions/truncate.texi: Likewise.
5841         * doc/glibc-functions/fallocate.texi: Likewise.
5842         * doc/glibc-functions/fstatfs.texi: Likewise.
5843         * doc/glibc-functions/fts_children.texi: Likewise.
5844         * doc/glibc-functions/fts_read.texi: Likewise.
5845         * doc/glibc-functions/getdirentries.texi: Likewise.
5846         * doc/glibc-functions/mkostemp.texi: Likewise.
5847         * doc/glibc-functions/mkostemps.texi: Likewise.
5848         * doc/glibc-functions/mkstemps.texi: Likewise.
5849         * doc/glibc-functions/preadv.texi: Likewise.
5850         * doc/glibc-functions/pwritev.texi: Likewise.
5851         * doc/glibc-functions/sendfile.texi: Likewise.
5852         * doc/glibc-functions/statfs.texi: Likewise.
5853
5854 2011-07-24  Bruno Haible  <bruno@clisp.org>
5855
5856         doc: Fix typo.
5857         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5858
5859 2011-07-24  Bruno Haible  <bruno@clisp.org>
5860
5861         doc: Mention fsusage.
5862         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5863
5864 2011-07-24  Bruno Haible  <bruno@clisp.org>
5865
5866         doc: Mention new glibc headers and functions.
5867         * doc/glibc-headers/gshadow.texi: New file.
5868         * doc/glibc-functions/endsgent.texi: New file.
5869         * doc/glibc-functions/fgetsgent.texi: New file.
5870         * doc/glibc-functions/fgetsgent_r.texi: New file.
5871         * doc/glibc-functions/getsgent.texi: New file.
5872         * doc/glibc-functions/getsgent_r.texi: New file.
5873         * doc/glibc-functions/getsgnam.texi: New file.
5874         * doc/glibc-functions/getsgnam_r.texi: New file.
5875         * doc/glibc-functions/putsgent.texi: New file.
5876         * doc/glibc-functions/setsgent.texi: New file.
5877         * doc/glibc-functions/sgetsgent.texi: New file.
5878         * doc/glibc-functions/sgetsgent_r.texi: New file.
5879         * doc/glibc-functions/malloc_info.texi: New file.
5880         * doc/glibc-functions/preadv.texi: New file.
5881         * doc/glibc-functions/pwritev.texi: New file.
5882         * doc/glibc-functions/register_printf_modifier.texi: New file.
5883         * doc/glibc-functions/register_printf_specifier.texi: New file.
5884         * doc/glibc-functions/register_printf_type.texi: New file.
5885         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5886         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5887         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5888         * doc/glibc-functions/pthread_getname_np.texi: New file.
5889         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5890         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5891         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5892         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5893         * doc/glibc-functions/pthread_setname_np.texi: New file.
5894         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5895         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5896         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5897         * doc/glibc-functions/qsort_r.texi: New file.
5898         * doc/glibc-functions/quick_exit.texi: New file.
5899         * doc/glibc-functions/syncfs.texi: New file.
5900         * doc/gnulib.texi: Include them.
5901         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5902         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5903         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5904         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5905         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5906         * doc/glibc-functions/execvpe.texi: Likewise.
5907
5908 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5909
5910         ftell: don't include <unistd.h>
5911         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5912         guaranteed to define off_t, and the ftell module depends on the
5913         stdio module.
5914
5915         ftell: do not assume wraparound signed arithmetic
5916         * lib/ftell.c: Include <limits.h>.
5917         (ftell): Don't assume wraparound signed arithmetic.
5918
5919 2011-07-24  Bruno Haible  <bruno@clisp.org>
5920
5921         close: No longer depend on module 'fclose'.
5922         * modules/close (Depends-on): Remove fclose.
5923         * NEWS: Mention the change.
5924         Suggested by Sam Steingold <sds@gnu.org>.
5925
5926 2011-07-24  Bruno Haible  <bruno@clisp.org>
5927
5928         fsusage: Enable large volume support on AIX >= 5.2.
5929         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5930         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5931         instead of STAT_STATVFS.
5932         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5933
5934         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5936         f_blocks field only on MacOS X.
5937
5938         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5940         * modules/fsusage (Depends-on): Add largefile.
5941
5942 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5943
5944         * README: Modernize discussion of signed integers.
5945         Assuming overflow wraparound is no longer safe.
5946         Mention ones' complement and signed magnitude.
5947
5948 2011-07-22  Bruno Haible  <bruno@clisp.org>
5949
5950         select tests, pselect tests: Refactor.
5951         * tests/test-select.h: New file, extracted from tests/test-select.c.
5952         (select_fn): New type.
5953         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5954         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5955         test_pipe): Add my_select argument.
5956         (test_function): Renamed from main. Add my_select argument.
5957         * tests/test-select.c: Move most code to tests/test-select.h. Include
5958         test-select.h.
5959         * modules/select-tests (Files): Add tests/test-select.h.
5960         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5961         (my_select, main): New functions.
5962         * modules/pselect-tests (Files): Add tests/test-select.h,
5963         tests/macros.h, tests/signature.h.
5964         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5965         (configure.ac): Check for <sys/wait.h>.
5966
5967 2011-07-22  Bruno Haible  <bruno@clisp.org>
5968
5969         sys_select tests: Check the signature of FD_*.
5970         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5971         signature tests from here...
5972         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5973         here.
5974         * modules/sys_select-tests (Files): Add tests/signature.h.
5975
5976 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5977
5978         largefile: new module, replacing large-inode
5979         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5980         * MODULES.html.sh: Add largefile, remove large-inode.
5981         * modules/largefile, m4/largefile.m4: New files.
5982         * modules/large-inode, m4/large-inode.m4: Remove.
5983
5984         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5985         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5986         implementations that use only 32 bits to count blocks.
5987         On typical hosts with 1024-byte blocks, this fails with file
5988         systems as small as 4 TiB.  Problem reported by Herb Wartens
5989         <http://debbugs.gnu.org/9140> and this should also fix a similar
5990         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5991
5992         large-inode: New module
5993         * MODULES.html.sh: Add it.
5994         * modules/large-inode, m4/large-inode.m4: New files.
5995
5996         extensions: Enable extensions on MacOS X 10.5 and later.
5997         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5998
5999 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6000
6001         file-has-acl: use acl_extended_file_nofollow if available
6002         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6003         (acl_extended_file): New macro.
6004         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6005         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6006
6007 2011-07-21  Bruno Haible  <bruno@clisp.org>
6008
6009         Declare system functions in a way that works with C++.
6010         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6011         declare fdopendir as extern "C".
6012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6013         declare frexpl as extern "C".
6014         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6015         declare gai_strerror as extern "C".
6016         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6017         programs, declare gai_strerror as extern "C".
6018         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6019         declare getlogin_r as extern "C".
6020         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6021         as extern "C".
6022         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6023         declare ldexpl as extern "C".
6024         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6025         as extern "C".
6026         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6027         program, declare getmntinfo as extern "C".
6028         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6029         stpncpy as extern "C".
6030         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6031         program, declare __xpg_strerror_r as extern "C".
6032         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6033         strndup as extern "C".
6034         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6035         declare memset and bzero as extern "C".
6036         Reported by Sam Steingold <sds@gnu.org>.
6037
6038 2011-07-12  Jim Meyering  <meyering@redhat.com>
6039
6040         maint.mk: prohibit inclusion of "verify.h" without use
6041         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6042
6043 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6044
6045         timer-time: A new module to check for timer_settime()
6046         * m4/timer_time.m4: Check for the posix function.
6047         * modules/timer-time: Add the new module.
6048         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6049         Mention it.
6050
6051 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6052             Bruno Haible  <bruno@clisp.org>
6053
6054         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6055         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6056         not defined, assume POSIX threads and look for pthread_sigmask in
6057         $LIBS, without changing $CPPFLAGS.
6058
6059 2011-07-19  Bruno Haible  <bruno@clisp.org>
6060
6061         strstr: Update cross-compilation guess.
6062         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6063         CPUs, guess no, in view of glibc
6064         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6065         Suggested by Eric Blake. Reported by Reuben Thomas.
6066
6067 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6068
6069         getopt-gnu: suppress core dumps from detection code
6070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6071         to suppress core dumps that may well occur on glibc systems.
6072         * modules/getopt-gnu: Depend on nocrash.
6073
6074 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6075
6076         pthread_sigmask: ensure usleep is declared
6077         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6078         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6079
6080 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6081
6082         doc: Document NonStop portability issues.
6083         * doc/posix-functions/sigaction.texi (sigaction):
6084         * doc/posix-headers/signal.texi (signal.h):
6085         Document NonStop.  See Joachim Schmitz in
6086         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6087
6088 2011-07-15  Bruno Haible  <bruno@clisp.org>
6089
6090         ffsl, ffsll: Avoid unportable behaviour.
6091         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6092
6093 2011-07-15  Bruno Haible  <bruno@clisp.org>
6094
6095         ffs: More tests.
6096         * tests/test-ffs.c (NBITS): New macro.
6097         (main): Add more tests.
6098         * tests/test-ffsl.c (NBITS): New macro.
6099         (main): Add more tests.
6100         * tests/test-ffsll.c (NBITS): New macro.
6101         (main): Add more tests.
6102
6103 2011-07-15  Eric Blake  <eblake@redhat.com>
6104
6105         ffsl, ffsll: new modules
6106         * modules/ffsl: New file.
6107         * modules/ffsll: Likewise.
6108         * m4/ffsl.m4: Likewise.
6109         * m4/ffsll.m4: Likewise.
6110         * lib/ffsl.c: Likewise.
6111         * lib/ffsl.h: Likewise.
6112         * lib/ffsll.c: Likewise.
6113         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6114         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6115         * modules/string (Makefile.am): Substitute witnesses.
6116         * lib/strings.in.h (ffsl, ffsll): Declare.
6117         * modules/ffsl-tests: New test file.
6118         * modules/ffsll-tests: Likewise.
6119         * tests/test-ffsl.c: Likewise.
6120         * tests/test-ffsll.c: Likewise.
6121         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6122         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6123         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6124
6125         ffs: fix m4 prerequisite
6126         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6127
6128         ffs: avoid undefined behavior
6129         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6130         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6131         Reported by Bruno Haible.
6132
6133 2011-07-12  Bruno Haible  <bruno@clisp.org>
6134
6135         pthread_sigmask: Rely on module 'threadlib'.
6136         * modules/pthread_sigmask (Depends-on): Add threadlib.
6137         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6138         is defined.
6139
6140 2011-07-12  Bruno Haible  <bruno@clisp.org>
6141
6142         regex: Depend on module 'strcase'.
6143         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6144
6145 2011-07-12  Jim Meyering  <meyering@redhat.com>
6146
6147         warn-on-use: fix typo in file name
6148         * modules/snippet/warn-on-use (Files): Correct file name:
6149         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6150
6151 2011-07-12  Bruno Haible  <bruno@clisp.org>
6152
6153         strings: Document module.
6154         * doc/posix-headers/strings.texi: Mention module 'strings'.
6155
6156 2011-07-12  Bruno Haible  <bruno@clisp.org>
6157
6158         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6159         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6160         (Files, Makefile.am): Update.
6161         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6162         * modules/stdlib (Depends-on): Update.
6163
6164 2011-07-12  Bruno Haible  <bruno@clisp.org>
6165
6166         * NEWS: Mention the changes.
6167
6168         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6169         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6170         (Files, Makefile.am): Update.
6171         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6172         * modules/arpa_inet (Depends-on): Update.
6173         * modules/ctype (Depends-on): Update.
6174         * modules/dirent (Depends-on): Update.
6175         * modules/fcntl-h (Depends-on): Update.
6176         * modules/glob (Depends-on): Update.
6177         * modules/iconv-h (Depends-on): Update.
6178         * modules/inttypes-incomplete (Depends-on): Update.
6179         * modules/langinfo (Depends-on): Update.
6180         * modules/locale (Depends-on): Update.
6181         * modules/math (Depends-on): Update.
6182         * modules/netdb (Depends-on): Update.
6183         * modules/poll-h (Depends-on): Update.
6184         * modules/pty (Depends-on): Update.
6185         * modules/search (Depends-on): Update.
6186         * modules/signal (Depends-on): Update.
6187         * modules/spawn (Depends-on): Update.
6188         * modules/stdio (Depends-on): Update.
6189         * modules/stdlib (Depends-on): Update.
6190         * modules/string (Depends-on): Update.
6191         * modules/strings (Depends-on): Update.
6192         * modules/sys_file (Depends-on): Update.
6193         * modules/sys_ioctl (Depends-on): Update.
6194         * modules/sys_select (Depends-on): Update.
6195         * modules/sys_socket (Depends-on): Update.
6196         * modules/sys_stat (Depends-on): Update.
6197         * modules/sys_time (Depends-on): Update.
6198         * modules/sys_times (Depends-on): Update.
6199         * modules/sys_utsname (Depends-on): Update.
6200         * modules/sys_wait (Depends-on): Update.
6201         * modules/termios (Depends-on): Update.
6202         * modules/time (Depends-on): Update.
6203         * modules/unistd (Depends-on): Update.
6204         * modules/wchar (Depends-on): Update.
6205         * modules/wctype-h (Depends-on): Update.
6206         * MODULES.html.sh (Support for building libraries and executables):
6207         Update.
6208
6209         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6210         * modules/snippet/unused-parameter: Renamed from
6211         modules/unused-parameter.
6212         (Files, Makefile.am): Update.
6213         * build-aux/snippet/unused-parameter.h: Renamed from
6214         build-aux/unused-parameter.h.
6215         * modules/selinux-h (Depends-on): Update.
6216         * modules/unistr/base (Depends-on): Update.
6217         * MODULES.html.sh (Core language properties): Update.
6218
6219         Rename module 'link-warning' to 'snippet/link-warning'.
6220         * modules/snippet/link-warning: Renamed from modules/link-warning.
6221         (Files, Makefile.am): Update.
6222         * build-aux/snippet/link-warning.h: Renamed from
6223         build-aux/link-warning.h.
6224         * MODULES.html.sh (Support for building libraries and executables):
6225         Update.
6226
6227         Rename module 'c++defs' to 'snippet/c++defs'.
6228         * modules/snippet/c++defs: Renamed from modules/c++defs.
6229         (Files, Makefile.am): Update.
6230         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6231         * modules/arpa_inet (Depends-on): Update.
6232         * modules/ctype (Depends-on): Update.
6233         * modules/dirent (Depends-on): Update.
6234         * modules/fcntl-h (Depends-on): Update.
6235         * modules/glob (Depends-on): Update.
6236         * modules/iconv-h (Depends-on): Update.
6237         * modules/langinfo (Depends-on): Update.
6238         * modules/locale (Depends-on): Update.
6239         * modules/math (Depends-on): Update.
6240         * modules/netdb (Depends-on): Update.
6241         * modules/poll-h (Depends-on): Update.
6242         * modules/pty (Depends-on): Update.
6243         * modules/search (Depends-on): Update.
6244         * modules/signal (Depends-on): Update.
6245         * modules/spawn (Depends-on): Update.
6246         * modules/stdio (Depends-on): Update.
6247         * modules/stdlib (Depends-on): Update.
6248         * modules/string (Depends-on): Update.
6249         * modules/strings (Depends-on): Update.
6250         * modules/sys_ioctl (Depends-on): Update.
6251         * modules/sys_select (Depends-on): Update.
6252         * modules/sys_socket (Depends-on): Update.
6253         * modules/sys_stat (Depends-on): Update.
6254         * modules/sys_time (Depends-on): Update.
6255         * modules/sys_wait (Depends-on): Update.
6256         * modules/termios (Depends-on): Update.
6257         * modules/time (Depends-on): Update.
6258         * modules/unistd (Depends-on): Update.
6259         * modules/wchar (Depends-on): Update.
6260         * modules/wctype-h (Depends-on): Update.
6261
6262         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6263         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6264         (Files, Makefile.am): Update.
6265         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6266         * modules/argv-iter (Depends-on): Update.
6267         * modules/arpa_inet (Depends-on): Update.
6268         * modules/dirent (Depends-on): Update.
6269         * modules/fcntl-h (Depends-on): Update.
6270         * modules/fnmatch (Depends-on): Update.
6271         * modules/getopt-posix (Depends-on): Update.
6272         * modules/glob (Depends-on): Update.
6273         * modules/iconv-h (Depends-on): Update.
6274         * modules/inttypes-incomplete (Depends-on): Update.
6275         * modules/locale (Depends-on): Update.
6276         * modules/math (Depends-on): Update.
6277         * modules/netdb (Depends-on): Update.
6278         * modules/search (Depends-on): Update.
6279         * modules/signal (Depends-on): Update.
6280         * modules/spawn (Depends-on): Update.
6281         * modules/stdio (Depends-on): Update.
6282         * modules/stdlib (Depends-on): Update.
6283         * modules/string (Depends-on): Update.
6284         * modules/strings (Depends-on): Update.
6285         * modules/sys_socket (Depends-on): Update.
6286         * modules/sys_stat (Depends-on): Update.
6287         * modules/sys_time (Depends-on): Update.
6288         * modules/sys_times (Depends-on): Update.
6289         * modules/sys_utsname (Depends-on): Update.
6290         * modules/time (Depends-on): Update.
6291         * modules/unistd (Depends-on): Update.
6292         * modules/wchar (Depends-on): Update.
6293         * MODULES.html.sh (Support for building libraries and executables):
6294         Update.
6295
6296 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6297
6298         Improvements on _Noreturn and related modules.
6299
6300         modules/_Exit-tests: test _Noreturn too
6301         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6302         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6303         (main): Use them.
6304
6305         stdnoreturn, stdnoreturn-tests: remove modules
6306         They're not needed here and a bit premature for use elsewhere.  See
6307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6308         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6309         * tests/test-stdnoreturn.c: Remove files.
6310         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6311         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6312         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6313         and using noreturn.
6314         * modules/openat, modules/sigpipe-die, modules/xalloc:
6315         * modules/xmemdup0, modules/xstrtol:
6316         Remove dependency on stdnoreturn.
6317
6318         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6319         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6320         Reparenthesize to avoid GCC warning.
6321         Support Microsoft's syntax.
6322         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6323
6324         _Noreturn-tests: remove module
6325         * modules/_Noreturn-tests: Remove.
6326         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6327         * tests/test-_Noreturn.c: Remove.
6328         * tests/test-stdnoreturn.c: Merge from the old
6329         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6330
6331 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6332
6333         _Noreturn, stdnoreturn, and related modules.
6334
6335         * top/maint.mk: Adjust to new noreturn support.
6336         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6337         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6338
6339         xalloc: use stdnoreturn.h
6340         * lib/xalloc.h: Include <stdnoreturn.h>.
6341         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6342         * modules/xalloc (Depends-on): Add stdnoreturn.
6343
6344         xstrtol: use stdnoreturn.h
6345         * lib/xstrtol.h: Include <stdnoreturn.h>.
6346         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6347         * modules/xstrtol (Depends-on): Add stdnoreturn.
6348
6349         xmemdup0: use stdnoreturn.h
6350         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6351         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6352         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6353
6354         sigpipe-die: use stdnoreturn.h
6355         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6356         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6357         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6358
6359         openat: use stdnoreturn.h
6360         * lib/openat.h: Include <stdnoreturn.h>.
6361         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6362         * modules/openat (Depends-on): Add stdnoreturn.
6363
6364         * lib/openat-die.c (openat_save_fail): Modernize comment.
6365
6366         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6367
6368         * lib/glthread/thread.h: Modernize comment.
6369
6370         obstack: use _Noreturn
6371         * lib/obstack.c (__attribute__): Remove macro.
6372         (print_and_abort): Use _Noreturn.
6373
6374         c-stack: use _Noreturn
6375         * lib/c-stack.c (die, overflow_handler, segv_handler):
6376         Use _Noreturn rather than __attribute__((noreturn)).
6377
6378         argmatch-tests, exclude_tests: use _Noreturn
6379         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6380         Remove.
6381         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6382
6383         stdlib: use _Noreturn
6384         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6385         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6386         * modules/stdlib (Depends-on): Add _Noreturn.
6387         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6388
6389         stdnoreturn-tests: new module
6390         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6391
6392         stdnoreturn: new module
6393         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6394         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6395
6396         _Noreturn-tests: new module
6397         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6398
6399         _Noreturn: new module
6400         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6401         New section, mentioning it.
6402         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6403
6404         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6405
6406 2011-07-11  Eric Blake  <eblake@redhat.com>
6407
6408         ffs: new module
6409         * modules/ffs: New file.
6410         * m4/ffs.m4: Likewise.
6411         * lib/ffs.c: Likewise.
6412         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6413         * modules/strings (Makefile.am): Substitute witness.
6414         (Depends-on): Add c++defs.
6415         * lib/strings.in.h (ffs): Declare.
6416         * modules/ffs-tests: New test file.
6417         * tests/test-ffs.c: Test new module.
6418         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6419         * doc/posix-functions/ffs.texi (ffs): Likewise.
6420
6421         regex: avoid compiler warning
6422         * lib/regex.c (includes): Include <strings.h>, for use of
6423         strcasecmp in regcomp.c.
6424         Reported by Joachim Schmitz.
6425
6426 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6427
6428         stdint: respect system's intmax_t if INTMAX_MAX
6429         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6430         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6431         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6432         long but int64_t is long long, and where we will clash with the
6433         system intmax_t if we override it.  See
6434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6435         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6436         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6437         similarly for UINTMAX_C.
6438
6439 2011-07-08  Bruno Haible  <bruno@clisp.org>
6440
6441         pthread_sigmask tests: Avoid a compiler warning.
6442         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6443         non-zero.
6444
6445         sigprocmask tests: A better way to avoid a compiler warning.
6446         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6447         (main): Complain if system() returns non-zero.
6448         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6449
6450 2011-07-08  Bruno Haible  <bruno@clisp.org>
6451
6452         pthread_sigmask: Work around IRIX bug.
6453         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6454         bug.
6455         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6456         there may be unblocked pending signals.
6457         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6458
6459 2011-07-08  Bruno Haible  <bruno@clisp.org>
6460
6461         pthread_sigmask: Work around Cygwin bug.
6462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6463         bug.
6464         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6465         the system's pthread_sigmask function.
6466         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6467
6468 2011-07-08  Bruno Haible  <bruno@clisp.org>
6469
6470         pthread_sigmask: Work around bug in single-threaded implementation.
6471         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6472         FreeBSD, HP-UX, Solaris bug.
6473         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6474         * lib/pthread_sigmask.c: Include <stddef.h>.
6475         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6476         the system's pthread_sigmask function.
6477         * modules/pthread_sigmask (configure.ac): Invoke
6478         gl_PREREQ_PTHREAD_SIGMASK.
6479         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6480         HP-UX, Solaris.
6481
6482 2011-07-08  Eric Blake  <eblake@redhat.com>
6483
6484         test-sigprocmask: avoid compiler warning
6485         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6486         * tests/test-sigprocmask.c (main): Use it to silence warning.
6487         Reported by Jim Meyering.
6488
6489         test-snprintf: avoid compiler warning
6490         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6491         * tests/test-vsnprintf.c (main): Likewise.
6492         Reported by Jim Meyering.
6493
6494 2011-07-08  Bruno Haible  <bruno@clisp.org>
6495
6496         Tests for module 'pthread_sigmask'.
6497         * modules/pthread_sigmask-tests: New file.
6498         * tests/test-pthread_sigmask1.c: New file, based on
6499         tests/test-sigprocmask.c.
6500         * tests/test-pthread_sigmask2.c: New file.
6501
6502 2011-07-08  Jim Meyering  <meyering@redhat.com>
6503
6504         test-getopt.h: avoid warning about an unused variable
6505         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6506
6507 2011-07-07  Jim Meyering  <meyering@redhat.com>
6508
6509         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6510         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6511         now that it no longer contains leading TABs.
6512         Remove unused "url=FIXME" statement.
6513
6514 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6515
6516         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6517         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6518         When gl_THREADLIB is not in use, assume that the POSIX sematics
6519         are desired.  This is better for Emacs, which uses POSIX semantics
6520         on GNUish and/or POSIXish platforms, and does not use threads at
6521         all otherwise.
6522
6523         pthread_sigmask: fix typo when testing for libraries
6524         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6525         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6526
6527 2011-07-08  Eric Blake  <eblake@redhat.com>
6528
6529         fts: introduce FTS_NOATIME
6530         * lib/fts_.h (FTS_NOATIME): New bit flag.
6531         (FTS_OPTIONMASK): Adjust.
6532         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6533         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6534
6535 2011-07-08  Bruno Haible  <bruno@clisp.org>
6536
6537         Tests for module 'thread'.
6538         * modules/thread-tests: New file.
6539         * tests/test-thread_self.c: New file.
6540         * tests/test-thread_create.cc: New file.
6541
6542 2011-07-08  Bruno Haible  <bruno@clisp.org>
6543
6544         thread: Avoid gcc warnings when using gl_thread_self().
6545         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6546         'void *'.
6547         (gl_thread_self_pointer): Update.
6548
6549 2011-07-07  Bruno Haible  <bruno@clisp.org>
6550
6551         signal-c++-tests: Check declaration of pthread_sigmask.
6552         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6553         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6554         $(LIB_PTHREAD_SIGMASK).
6555
6556 2011-07-07  Bruno Haible  <bruno@clisp.org>
6557
6558         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6559         * lib/signal.in.h (pthread_sigmask): Override if
6560         REPLACE_PTHREAD_SIGMASK is 1.
6561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6562         REPLACE_PTHREAD_SIGMASK.
6563         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6564         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6565         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6566         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6567         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6568
6569 2011-07-07  Bruno Haible  <bruno@clisp.org>
6570
6571         pthread_sigmask: Ensure declaration in <signal.h>.
6572         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6573         include <pthread.h>.
6574         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6575         problem.
6576
6577 2011-07-07  Bruno Haible  <bruno@clisp.org>
6578
6579         pthread_sigmask: Document the module.
6580         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6581
6582 2011-07-07  Bruno Haible  <bruno@clisp.org>
6583
6584         pthread_sigmask: Follow gnulib conventions.
6585         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6586         gl_PTHREAD_SIGMASK.
6587         * modules/pthread_sigmask (configure.ac): Update.
6588
6589 2011-07-07  Bruno Haible  <bruno@clisp.org>
6590
6591         pthread_sigmask: Make declaration C++ safe.
6592         * lib/signal.in.h: In two special conditions, just do an #include_next.
6593         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6594         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6595         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6596         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6597         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6598         not REPLACE_PTHREAD_MASK.
6599         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6600         not REPLACE_PTHREAD_MASK.
6601         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6602
6603 2011-07-07  Bruno Haible  <bruno@clisp.org>
6604
6605         pthread_sigmask: Fix return value.
6606         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6607         * lib/pthread_sigmask.c: New file.
6608         * modules/pthread_sigmask (Files): Add it.
6609         (configure.ac): Invoke AC_LIBOBJ.
6610
6611 2011-07-07  Eric Blake  <eblake@redhat.com>
6612
6613         getopt: more portable argv creation
6614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6615         const, use char arrays rather than strings.
6616         Suggested by Paul Eggert.
6617
6618 2011-07-07  Bruno Haible  <bruno@clisp.org>
6619
6620         Tests for module 'sigprocmask'.
6621         * modules/sigprocmask-tests: New file.
6622         * tests/test-sigprocmask.c: New file.
6623
6624 2011-07-07  Bruno Haible  <bruno@clisp.org>
6625
6626         float tests: Tweak.
6627         * tests/test-float.c (main): Tweak skip message.
6628
6629 2011-07-07  Eric Blake  <eblake@redhat.com>
6630
6631         getopt: avoid compiler warning during configure
6632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6633         assigning string literals to non-const pointer.
6634
6635         getopt-gnu: avoid crash in glibc getopt
6636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6637         * tests/test-getopt.h (test_getopt): Enhance test.
6638         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6639         * doc/posix-functions/getopt.texi (getopt): Document it.
6640         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6641         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6642         Likewise.
6643
6644 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6645
6646         getopt: handle W; without long options in getopt [BZ #12922]
6647         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6648         but no long options are defined, just return 'W'.
6649
6650 2011-07-07  Bruno Haible  <bruno@clisp.org>
6651
6652         Avoid literal tabs.
6653         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6654         variable containing a tab instead of a literal tab.
6655         Reported by Jim Meyering.
6656
6657 2011-07-07  Bruno Haible  <bruno@clisp.org>
6658
6659         Comments.
6660         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6661
6662 2011-07-06  Bruno Haible  <bruno@clisp.org>
6663
6664         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6665         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6666         <winsock2.h>.
6667         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6668         lib/sys_socket.in.h.
6669         (close, gethostname): Hide declarations from <winsock2.h>.
6670         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6671         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6672         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6673         (select): Don't override if gnulib's <sys/select.h> was already
6674         included.
6675         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6676         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6677         setsockopt, shutdown, select): Tweak indentation.
6678
6679 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6682         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6683         in an application that does not use the sys_select module.
6684
6685 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6686
6687         poll: do not return 0 on timeout=-1
6688         * lib/poll.c: Loop with yield if no events occured
6689
6690 2011-07-06  Eric Blake  <eblake@redhat.com>
6691
6692         pthread_sigmask: always replace when not using pthread
6693         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6694         replacement when using some threading other than pthread.  Fix
6695         logic bug.
6696
6697 2011-07-06  Bruno Haible  <bruno@clisp.org>
6698
6699         Comments.
6700         * m4/printf.m4: Update comments about mingw.
6701
6702 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6703
6704         sys_select: define sigset_t more portably
6705         * lib/sys_select.in.h: Always include <sys/types.h>, since
6706         we now need sigset_t and mingw defines it there.
6707         Include <signal.h> before split inclusion guard, to avoid
6708         mishaps on Solaris, whose <signal.h> eventually includes us.
6709         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6710         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6711         which come from ...
6712         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6713         gl_CHECK_TYPE_SIGSET_T.
6714         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6715         does the real work.
6716         * modules/sys_select (Depends-on): Add 'signal'.
6717
6718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6719         Suggested by Bruno Haible.
6720
6721         pselect: Use pthread_sigmask, not sigprocmask.
6722         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6723         multithreaded apps better than sigprocmask does.
6724         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6725         sigprocmask directly.
6726
6727 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6728
6729         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6730         Don't #undef,  since we don't need any underlying pselect.
6731         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6732         (Depends-on): Add select.
6733         (Link): Add $(LIBSOCKET).
6734         These changes suggested by Bruno Haible.
6735
6736         pselect: document better
6737         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6738         * doc/posix-functions/pselect.texi (pselect): Document new module.
6739
6740         pthread_sigmask: new module
6741         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6742         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6743         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6744         This is done only as a macro; I don't know how well that'll
6745         work for C++.  Move <sys/types.h> include before the include_next,
6746         to avoid mishap on Solaris.
6747         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6748         * modules/signal (Makefile.am): Substitute the check's results.
6749         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6750
6751         test-pselect: new module
6752         * modules/pselect-tests, tests/test-pselect.c: New files.
6753         * tests/test-select.c, tests/test-sys_select-c++.cc:
6754         If TEST_PSELECT is defined, test pselect instead of testing select.
6755
6756         * tests/test-sys_select.c (sigset_t): Test for it, too.
6757         Suggested by Bruno Haible.
6758
6759 2011-07-05  Eric Blake  <eblake@redhat.com>
6760
6761         snprintf: guarantee %1$d, for libintl
6762         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6763         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6764         * doc/posix-functions/snprintf.texi (snprintf): Update.
6765         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6766         * tests/test-snprintf.c (main): Enhance test.
6767         * tests/test-vsnprintf.c (main): Likewise.
6768
6769 2011-07-05  Jim Meyering  <meyering@redhat.com>
6770
6771         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6772         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6773         per Bruno's request, to accommodate this idiom (no space after "#")
6774         even when the function is inside an #if block:
6775         char *
6776         gets (char *s)
6777         #undef gets
6778         {
6779           ...
6780         }
6781
6782 2011-07-04  Jim Meyering  <meyering@redhat.com>
6783
6784         maint: indent with spaces, not TABs, and add a rule to check this
6785         * tests/test-userspec.c: Indent with spaces, not TABs.
6786         * tests/test-argp.c: Likewise.
6787         * tests/test-c-stack2.sh: Likewise.
6788         * tests/test-parse-duration.sh: Likewise
6789         * m4/strtod.m4: Likewise.
6790         * m4/alloca.m4: Likewise.
6791         * m4/pselect.m4: Likewise.
6792         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6793
6794 2011-07-03  Jim Meyering  <meyering@redhat.com>
6795
6796         maint.mk: correct omissions in prohibit_argmatch_without_use check
6797         This rule would mistakenly report that argmatch.h is included without
6798         use even when both the argmatch and invalid_arg macro were used.
6799         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6800         of argmatch and invalid_arg.
6801
6802 2011-07-03  Bruno Haible  <bruno@clisp.org>
6803
6804         Comments about EINTR.
6805         * lib/safe-read.h: Explain the purpose of this module.
6806         * lib/safe-write.h: Likewise.
6807         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6808         module.
6809         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6810         module.
6811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6812
6813 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         xnanosleep: Rewrite to use new dtotimespec module.
6816         It has the conversion code that used to be in xnanosleep.
6817         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6818         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6819         (TIME_T_MAX): Remove.
6820         (xnanosleep): Rewrite in terms of dtotimespec.
6821         * modules/xnanosleep (Depends-on): Add dtotimespec.
6822         Remove intprops, stdbool.
6823
6824         timespec-add, timespec-sub: new modules
6825         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6826         * lib/timespec-add.c, lib/timespec-sub.c:
6827         * modules/timespec-add, modules/timespec-sub: New files.
6828
6829         dtotimespec: new module
6830         * lib/timespec.h (dtotimespec): New decl.
6831         * lib/dtotimespec.c, modules/dtotimespec: New files.
6832
6833         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6834
6835         pselect: new module
6836         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6837         (pselect): New decls.
6838         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6839         since the standard pselect decl uses 'restrict'.
6840         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6841         HAVE_PSELECT, REPLACE_PSELECT.
6842         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6843         HAVE_PSELECT, REPLACE_PSELECT.
6844         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6845
6846         sys_select: don't depend on sys_socket
6847         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6849         This fix works on GNU and GNU-like platforms, but has not been tested
6850         on native Windows.
6851         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6852         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6853         gl_HEADER_SYS_SOCKET.
6854         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6855         gl_PREREQ_SYS_H_WINSOCK2.
6856
6857 2011-06-29  Eric Blake  <eblake@redhat.com>
6858
6859         pipe2: fix C89 compile problem
6860         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6861         Reported by Bruno Haible.
6862
6863         pipe, pipe2: don't corrupt fd on error
6864         * lib/pipe.c (pipe): Leave fd unchanged on error.
6865         * lib/pipe2.c (pipe2): Likewise.
6866         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6867         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6868
6869 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6870
6871         mmap-anon: do not use regular expressions inadvertently
6872         * m4/mmap-anon.m4: Remove trailing period from strings sought
6873         in the output.
6874
6875 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6876
6877         nanosleep: fix integer overflow problem
6878         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6879         arithmetic wraps around on overflow.
6880
6881         nanosleep: simplify carrying
6882         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6883         first call to the underyling nanosleep, not for the last one.
6884         This doesn't fix any bugs, but it simplifies the computation of
6885         the remaining delay.  Found while auditing integer overflow issues.
6886
6887         dup2: remove test for existence of fcntl
6888         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6889         "#if HAVE_FCNTL", in the configure-time test program.
6890         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6891         and therefore speeds up "configure" a bit.  Found while
6892         adding the dup2 module to Emacs.
6893
6894 2011-06-24  Eric Blake  <eblake@redhat.com>
6895
6896         maint.mk: enhance useless header checks
6897         * top/maint.mk (_sc_header_without_use): Check both include
6898         styles.
6899         (sc_prohibit_assert_without_use)
6900         (sc_prohibit_close_stream_without_use)
6901         (sc_prohibit_getopt_without_use)
6902         (sc_prohibit_quotearg_without_use)
6903         (sc_prohibit_quote_without_use)
6904         (sc_prohibit_long_options_without_use)
6905         (sc_prohibit_inttostr_without_use)
6906         (sc_prohibit_ignore_value_without_use)
6907         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6908         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6909         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6910         (sc_prohibit_hash_pjw_without_use)
6911         (sc_prohibit_safe_read_without_use)
6912         (sc_prohibit_argmatch_without_use)
6913         (sc_prohibit_canonicalize_without_use)
6914         (sc_prohibit_root_dev_ino_without_use)
6915         (sc_prohibit_openat_without_use)
6916         (sc_prohibit_c_ctype_without_use)
6917         (sc_prohibit_signal_without_use)
6918         (sc_prohibit_stdio--_without_use)
6919         (sc_prohibit_stdio-safer_without_use)
6920         (sc_prohibit_strings_without_use)
6921         (sc_prohibit_intprops_without_use)
6922         (sc_prohibit_stddef_without_use)
6923         (sc_prohibit_xfreopen_without_use): Update clients.
6924
6925 2011-06-24  Jim Meyering  <meyering@redhat.com>
6926
6927         syntax-check: keep one maint.mk rule in sync with its header
6928         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6929         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6930         I prefer to avoid temporary files here, so use <(...), but that
6931         is not supported by /bin/sh, so...
6932         (SHELL): Define to /bin/bash.
6933
6934 2011-06-24  Eric Blake  <eblake@redhat.com>
6935
6936         maint.mk: update sc_prohibit_intprops_without_use
6937         * top/maint.mk (_intprops_names): Match recent changes.
6938
6939 2011-06-24  Bruno Haible  <bruno@clisp.org>
6940
6941         strerror-override: No-op tweak.
6942         * lib/strerror-override.h (strerror_override): Reorder conditions,
6943         for consistency with lib/strerror-override.c.
6944
6945 2011-06-23  Eric Blake  <eblake@redhat.com>
6946
6947         maint.mk: test further PATH_MAX issues
6948         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6949         (sc_prohibit_path_max_allocation): ...and also test alloca.
6950         Suggested by Jim Meyering.
6951
6952 2011-06-22  Eric Blake  <eblake@redhat.com>
6953
6954         maint.mk: add syntax-check to avoid char[PATH_MAX]
6955         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6956
6957         stat: be robust to PATH_MAX definition
6958         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6959         * modules/stat (Depends-on): Add verify.
6960
6961         link: work around IRIX bug
6962         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6963         * lib/link.c (rpl_link): Work around it.
6964         * tests/test-link.h (test_link): Enhance test.
6965         * doc/posix-functions/link.texi (link): Document the bug.
6966
6967         getopt: silence clang warning
6968         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6969         dereference.
6970         Reported by Gustavo Martin Domato.
6971
6972 2011-06-22  Jim Meyering  <meyering@redhat.com>
6973
6974         bootstrap: do not insert a blank line into each .gitignore file
6975         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6976
6977 2011-06-21  Eric Blake  <eblake@redhat.com>
6978
6979         perror: test for output mismatch
6980         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6981         perror on IRIX.
6982
6983         strerror_r: fix OpenBSD behavior on out-of-range
6984         * lib/strerror_r.c (strerror_r): Always use maximal string.
6985         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6986
6987         strerror_r: fix OpenBSD behavior on 0
6988         * lib/strerror-override.c (strerror_override): Also override 0
6989         when needed.
6990         * lib/strerror-override.h (strerror_override): Likewise.
6991         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6992         earlier.
6993         * lib/strerror_r.c (strerror_r): Likewise.
6994         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6995         behavior...
6996         (gl_FUNC_STRERROR_0): ...into new macro.
6997         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6998         is overridden.
6999         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7000         * modules/strerror-override (Files): Add strerror.m4.
7001         (configure.ac): Also provide override for 0 when needed.
7002         * doc/posix-functions/strerror.texi (strerror): Document this.
7003         * doc/posix-functions/perror.texi (perror): Likewise.
7004
7005         perror: adjust array size
7006         * modules/perror (Depends-on): Add strerror-override.
7007         * lib/perror.c (perror): Use it to avoid magic number.
7008
7009         strerror-override: reduce size
7010         * lib/strerror-override.c (strerror_override): Use fewer lines.
7011
7012 2011-06-20  Bruno Haible  <bruno@clisp.org>
7013
7014         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7015         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7016
7017 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7018
7019         alloca: port to compilers that can optimize like GCC 4.6.0
7020         * lib/alloca.c (find_stack_direction): New signature, taken from
7021         Autoconf git.  This works with GCC 4.6.0.  This code should never
7022         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7023         be used with other compilers that optimize as well as GCC 4.6.0 does.
7024         (alloca): Adjust to new signature.
7025         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7026         New macro, which patches Autoconf in a similar way.
7027
7028         c-stack: stop worrying about stack direction
7029         * lib/c-stack.c (find_stack_direction): Remove.
7030         (segv_handler): Don't worry about stack direction growth, as it's
7031         too much of a pain to configure this correctly, given how compilers
7032         are optimizing-away our stack-growth detection code.  Instead, assume
7033         that any access to just before or just after the stack is OK.
7034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7035         Don't require AC_FUNC_ALLOCA; no longer needed.
7036
7037 2011-06-20  Eric Blake  <eblake@redhat.com>
7038
7039         test-stat: don't allocate PATH_MAX bytes
7040         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7041         PATH_MAX-sized buffer.
7042         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7043         * modules/stat-tests (Depends-on): Likewise.
7044         * tests/test-fstatat.c (includes): Drop pathmax.h.
7045         * tests/test-stat.c (includes): Likewise.
7046         Reported by Bruno Haible.
7047
7048 2011-06-20  Bruno Haible  <bruno@clisp.org>
7049
7050         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7051         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7052         * lib/float.c: New file.
7053         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7054         REPLACE_FLOAT_LDBL.
7055         * modules/float (Files): Add lib/float.c.
7056         (configure.ac): Invoke AC_LIBOBJ.
7057         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7058
7059 2011-06-20  Bruno Haible  <bruno@clisp.org>
7060
7061         Tests for module 'float'.
7062         * modules/float-tests: New file.
7063         * tests/test-float.c: New file.
7064
7065 2011-06-19  Bruno Haible  <bruno@clisp.org>
7066
7067         isinf: Coding style.
7068         * lib/isinf.c: Use GNU coding style.
7069
7070 2011-06-19  Bruno Haible  <bruno@clisp.org>
7071
7072         linkat test: Avoid test failure on AIX 7.1.
7073         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7074         * tests/test-link.h (test_link): Likewise.
7075
7076 2011-06-19  Bruno Haible  <bruno@clisp.org>
7077
7078         pread test: Avoid test failure on OpenBSD 4.9.
7079         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7080
7081 2011-06-19  Bruno Haible  <bruno@clisp.org>
7082
7083         sprintf-posix: Fix test failure on AIX 7.1.
7084         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7085         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7086         on AIX.
7087         * doc/posix-functions/fprintf.texi: Likewise.
7088         * doc/posix-functions/printf.texi: Likewise.
7089         * doc/posix-functions/snprintf.texi: Likewise.
7090         * doc/posix-functions/sprintf.texi: Likewise.
7091         * doc/posix-functions/vdprintf.texi: Likewise.
7092         * doc/posix-functions/vfprintf.texi: Likewise.
7093         * doc/posix-functions/vprintf.texi: Likewise.
7094         * doc/posix-functions/vsnprintf.texi: Likewise.
7095         * doc/posix-functions/vsprintf.texi: Likewise.
7096
7097 2011-06-19  Bruno Haible  <bruno@clisp.org>
7098
7099         roundl-ieee: Fix test failure on AIX 7.1.
7100         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7101         * doc/posix-functions/roundl.texi: Mention problem with negative
7102         arguments.
7103
7104 2011-06-19  Bruno Haible  <bruno@clisp.org>
7105
7106         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7107         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7108         * doc/posix-functions/round.texi: Mention problem with negative
7109         arguments.
7110         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7111
7112 2011-06-19  Bruno Haible  <bruno@clisp.org>
7113
7114         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7116         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7117         * doc/posix-functions/roundf.texi: Mention problem with negative
7118         arguments.
7119         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7120
7121 2011-06-19  Bruno Haible  <bruno@clisp.org>
7122
7123         ceilf-ieee: Work around bug on MacOS X 10.5.
7124         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7125
7126         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7127         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7128         IEEE compliant, avoid compiler optimizations.
7129         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7130         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7131         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7132         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7133         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7134         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7135         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7136         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7137         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7139
7140 2011-06-19  Bruno Haible  <bruno@clisp.org>
7141
7142         ceilf-ieee: Work around bug on AIX 7.1.
7143         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7144         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7145
7146 2011-06-19  Bruno Haible  <bruno@clisp.org>
7147
7148         ceil-ieee: Work around bug on AIX 7.1.
7149         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7150         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7151
7152 2011-06-18  Bruno Haible  <bruno@clisp.org>
7153
7154         fsync test: Avoid test failure on MacOS X and AIX.
7155         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7156         EINVAL.
7157
7158 2011-06-18  Bruno Haible  <bruno@clisp.org>
7159
7160         openat, fdopendir tests: Fix link errors.
7161         * modules/openat-tests (Depends-on): Add progname.
7162         * modules/fdopendir-tests (Depends-on): Likewise.
7163         * tests/test-fchownat.c: Include progname.h.
7164         (main): Call set_program_name.
7165         * tests/test-fstatat.c: Include progname.h.
7166         (main): Call set_program_name.
7167         * tests/test-mkdirat.c: Include progname.h.
7168         (main): Call set_program_name.
7169         * tests/test-openat.c: Include progname.h.
7170         (main): Call set_program_name.
7171         * tests/test-unlinkat.c: Include progname.h.
7172         (main): Call set_program_name.
7173         * tests/test-fdopendir.c: Include progname.h.
7174         (main): Call set_program_name.
7175
7176 2011-06-18  Bruno Haible  <bruno@clisp.org>
7177
7178         Doc update.
7179         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7180         HP-UX.
7181         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7182
7183 2011-06-18  Bruno Haible  <bruno@clisp.org>
7184
7185         getcwd tests: Avoid compilation error on HP-UX 11.31.
7186         * modules/getcwd-tests (Depends-on): Add pathmax.
7187         * tests/test-getcwd.c: Include pathmax.h.
7188
7189 2011-06-18  Bruno Haible  <bruno@clisp.org>
7190
7191         isfinite, isinf: Fix link error on AIX 6 and 7.
7192         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7193         needed, also test the macro with a 'float' argument.
7194         * m4/isinf.m4 (gl_ISINF): Likewise.
7195
7196 2011-06-18  Bruno Haible  <bruno@clisp.org>
7197
7198         getloadavg: Don't clobber LIBS. Regression from previous commit.
7199         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7200         AC_CHECK_LIB from here...
7201         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7202         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7203         gl_func_getloadavg_done.
7204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7205
7206 2011-06-18  Bruno Haible  <bruno@clisp.org>
7207
7208         clean-temp: Improve documentation.
7209         * lib/clean-temp.h: Explain better how to use this module.
7210         Reported by John Darrington <john@darrington.wattle.id.au>.
7211
7212 2011-06-17  Bruno Haible  <bruno@clisp.org>
7213
7214         pread, pwrite: Avoid cc warning on AIX.
7215         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7216         (pwrite): Likewise.
7217
7218 2011-06-17  Bruno Haible  <bruno@clisp.org>
7219
7220         spawn-pipe tests: Fix link error.
7221         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7223
7224 2011-06-17  Bruno Haible  <bruno@clisp.org>
7225
7226         Tests: Remove unnecessary dependency.
7227         * modules/canonicalize-tests (Depends-on): Remove progname.
7228         * modules/chown-tests (Depends-on): Likewise.
7229         * modules/dirname-tests (Depends-on): Likewise.
7230         * modules/fdopendir-tests (Depends-on): Likewise.
7231         * modules/fdutimensat-tests (Depends-on): Likewise.
7232         * modules/hash-tests (Depends-on): Likewise.
7233         * modules/lchown-tests (Depends-on): Likewise.
7234         * modules/linkat-tests (Depends-on): Likewise.
7235         * modules/renameat-tests (Depends-on): Likewise.
7236         * modules/spawn-pipe-tests (Depends-on): Likewise.
7237         * modules/utimensat-tests (Depends-on): Likewise.
7238
7239 2011-06-17  Bruno Haible  <bruno@clisp.org>
7240
7241         spawn-pipe tests: Fix link error.
7242         * tests/test-spawn-pipe-child.c: Undefine fflush.
7243
7244 2011-06-17  Bruno Haible  <bruno@clisp.org>
7245
7246         Fix tests link errors.
7247         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7248         * modules/chown-tests (Makefile.am): Don't link test-chown with
7249         LIBINTL.
7250         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7251         LIBINTL.
7252         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7253         LIBINTL.
7254         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7255         LIBINTL.
7256
7257 2011-06-16  Bruno Haible  <bruno@clisp.org>
7258
7259         crypto/gc-sha1: Fix recent regression.
7260         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7261         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7262
7263         crypto/gc-md5: Fix recent regression.
7264         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7265
7266         crypto/gc-md4: Fix recent regression.
7267         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7268         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7269
7270         crypto/gc-arctwo: Fix recent regression.
7271         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7272         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7273
7274         crypto/gc-rijndael: Fix recent regression.
7275         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7276         (configure.ac): Invoke AC_LIBOBJ here.
7277         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7279
7280         crypto/gc-hmac-sha1: Fix recent regression.
7281         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7282         (configure.ac): Invoke AC_LIBOBJ here.
7283         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7284         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7285
7286         crypto/gc-hmac-md5: Fix recent regression.
7287         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7288         (configure.ac): Invoke AC_LIBOBJ here.
7289         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7291
7292         crypto/gc-des: Fix recent regression.
7293         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7294         (configure.ac): Invoke AC_LIBOBJ here.
7295         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7297
7298         crypto/gc-arcfour: Fix recent regression.
7299         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7300         (configure.ac): Invoke AC_LIBOBJ here.
7301         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7303
7304 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7305
7306         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7307         After the 2011-05-21 change, this macro requires
7308         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7309         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7310
7311 2011-06-16  Bruno Haible  <bruno@clisp.org>
7312
7313         fprintftime: Move AC_LIBOBJ invocations to module description.
7314         * m4/fprintftime.m4: Remove file.
7315         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7316         (configure.ac): Remove gl_FPRINTFTIME call.
7317         (Makefile.am): Augment lib_SOURCES.
7318         Reported by Jim Meyering.
7319
7320 2011-06-16  Bruno Haible  <bruno@clisp.org>
7321
7322         tmpfile-safer: Finish 2011-05-23 commit.
7323         * m4/stdio-safer.m4: Really remove file.
7324         Reported by Jim Meyering.
7325
7326 2011-06-16  Bruno Haible  <bruno@clisp.org>
7327
7328         syntax-check: Fix typo.
7329         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7330         printf-posix.m4.
7331         Reported by Jim Meyering.
7332
7333 2011-06-13  Jim Meyering  <meyering@redhat.com>
7334
7335         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7336         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7337
7338 2011-05-23  Bruno Haible  <bruno@clisp.org>
7339
7340         yesno: Move AC_LIBOBJ invocations to module description.
7341         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7342         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7343
7344 2011-05-23  Bruno Haible  <bruno@clisp.org>
7345
7346         xstrtol: Move AC_LIBOBJ invocations to module description.
7347         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7348         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7349
7350 2011-05-23  Bruno Haible  <bruno@clisp.org>
7351
7352         xstrtold: Move AC_LIBOBJ invocations to module description.
7353         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7354         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7355
7356 2011-05-23  Bruno Haible  <bruno@clisp.org>
7357
7358         xstrtod: Move AC_LIBOBJ invocations to module description.
7359         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7360         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7361
7362 2011-05-23  Bruno Haible  <bruno@clisp.org>
7363
7364         xnanosleep: Move AC_LIBOBJ invocations to module description.
7365         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7366         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7367
7368 2011-05-23  Bruno Haible  <bruno@clisp.org>
7369
7370         xgetcwd: Move AC_LIBOBJ invocations to module description.
7371         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7372         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7373
7374 2011-05-23  Bruno Haible  <bruno@clisp.org>
7375
7376         xalloc: Move AC_LIBOBJ invocations to module description.
7377         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7378         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7379
7380 2011-05-23  Bruno Haible  <bruno@clisp.org>
7381
7382         write-any-file: Move AC_LIBOBJ invocations to module description.
7383         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7384         invocation.
7385         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7386
7387 2011-05-23  Bruno Haible  <bruno@clisp.org>
7388
7389         utimens: Move AC_LIBOBJ invocations to module description.
7390         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7391         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7392
7393 2011-05-23  Bruno Haible  <bruno@clisp.org>
7394
7395         utimecmp: Move AC_LIBOBJ invocations to module description.
7396         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7397         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7398
7399 2011-05-23  Bruno Haible  <bruno@clisp.org>
7400
7401         userspec: Move AC_LIBOBJ invocations to module description.
7402         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7403         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7404
7405 2011-05-23  Bruno Haible  <bruno@clisp.org>
7406
7407         unlinkdir: Move AC_LIBOBJ invocations to module description.
7408         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7409         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7410
7411 2011-05-23  Bruno Haible  <bruno@clisp.org>
7412
7413         unistd-safer: Move AC_LIBOBJ invocations to module description.
7414         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7415         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7416
7417 2011-05-23  Bruno Haible  <bruno@clisp.org>
7418
7419         tempname: Move AC_LIBOBJ invocations to module description.
7420         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7421         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7422
7423 2011-05-23  Bruno Haible  <bruno@clisp.org>
7424
7425         strftime: Move AC_LIBOBJ invocations to module description.
7426         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7427         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7428
7429 2011-05-23  Bruno Haible  <bruno@clisp.org>
7430
7431         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7432         * m4/stdlib-safer.m4: Remove file.
7433         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7434         (configure.ac): Remove gl_STDLIB_SAFER call.
7435         (Makefile.am): Augment lib_SOURCES.
7436
7437 2011-05-23  Bruno Haible  <bruno@clisp.org>
7438
7439         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7440         * m4/stdio-safer.m4: Remove file.
7441         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7442         (configure.ac): Remove gl_TMPFILE_SAFER call.
7443         (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         popen-safer: Move AC_LIBOBJ invocations to module description.
7448         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7449         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7450         (configure.ac): Remove gl_POPEN_SAFER call.
7451         (Makefile.am): Augment lib_SOURCES.
7452
7453 2011-05-23  Bruno Haible  <bruno@clisp.org>
7454
7455         freopen-safer: Move AC_LIBOBJ invocations to module description.
7456         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7457         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7458         (configure.ac): Remove gl_FREOPEN_SAFER call.
7459         (Makefile.am): Augment lib_SOURCES.
7460
7461 2011-05-23  Bruno Haible  <bruno@clisp.org>
7462
7463         fopen-safer: Move AC_LIBOBJ invocations to module description.
7464         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7465         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7466         (configure.ac): Remove gl_FOPEN_SAFER call.
7467         (Makefile.am): Augment lib_SOURCES.
7468
7469 2011-05-23  Bruno Haible  <bruno@clisp.org>
7470
7471         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7472         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7473         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7474
7475 2011-05-23  Bruno Haible  <bruno@clisp.org>
7476
7477         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7478         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7479         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7480
7481 2011-05-23  Bruno Haible  <bruno@clisp.org>
7482
7483         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7484         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7485         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         settime: Move AC_LIBOBJ invocations to module description.
7490         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7491         * modules/settime (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         savedir: Move AC_LIBOBJ invocations to module description.
7496         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7497         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7498
7499 2011-05-23  Bruno Haible  <bruno@clisp.org>
7500
7501         save-cwd: Move AC_LIBOBJ invocations to module description.
7502         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7503         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7504
7505 2011-05-23  Bruno Haible  <bruno@clisp.org>
7506
7507         same: Move AC_LIBOBJ invocations to module description.
7508         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7509         * modules/same (Makefile.am): Augment lib_SOURCES.
7510
7511 2011-05-23  Bruno Haible  <bruno@clisp.org>
7512
7513         safe-write: Move AC_LIBOBJ invocations to module description.
7514         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7515         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7516         instead of gl_SAFE_WRITE.
7517         (Makefile.am): Augment lib_SOURCES.
7518
7519 2011-05-23  Bruno Haible  <bruno@clisp.org>
7520
7521         safe-read: Move AC_LIBOBJ invocations to module description.
7522         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7523         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7524         of gl_SAFE_READ.
7525         (Makefile.am): Augment lib_SOURCES.
7526
7527 2011-05-23  Bruno Haible  <bruno@clisp.org>
7528
7529         safe-alloc: Move AC_LIBOBJ invocations to module description.
7530         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7531         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7532
7533 2011-05-23  Bruno Haible  <bruno@clisp.org>
7534
7535         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7536         * m4/rijndael.m4: Remove file.
7537         * modules/crypto/rijndael (Files): Remove it.
7538         (configure.ac): Remove gl_RIJNDAEL call.
7539         (Makefile.am): Augment lib_SOURCES.
7540
7541 2011-05-23  Bruno Haible  <bruno@clisp.org>
7542
7543         readtokens: Move AC_LIBOBJ invocations to module description.
7544         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7545         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7546
7547 2011-05-23  Bruno Haible  <bruno@clisp.org>
7548
7549         read-file: Move AC_LIBOBJ invocations to module description.
7550         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7551         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7552         of gl_FUNC_READ_FILE.
7553         (Makefile.am): Augment lib_SOURCES.
7554
7555 2011-05-23  Bruno Haible  <bruno@clisp.org>
7556
7557         quotearg: Move AC_LIBOBJ invocations to module description.
7558         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7559         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7560
7561 2011-05-23  Bruno Haible  <bruno@clisp.org>
7562
7563         quote: Move AC_LIBOBJ invocations to module description.
7564         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7565         * modules/quote (Makefile.am): Augment lib_SOURCES.
7566
7567 2011-05-23  Bruno Haible  <bruno@clisp.org>
7568
7569         posixver: Move AC_LIBOBJ invocations to module description.
7570         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7571         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7572
7573 2011-05-23  Bruno Haible  <bruno@clisp.org>
7574
7575         posixtm: Move AC_LIBOBJ invocations to module description.
7576         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7577         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7578
7579 2011-05-23  Bruno Haible  <bruno@clisp.org>
7580
7581         physmem: Move AC_LIBOBJ invocations to module description.
7582         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7583         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7584
7585 2011-05-23  Bruno Haible  <bruno@clisp.org>
7586
7587         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7588         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7589         invocation.
7590         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7591
7592 2011-05-23  Bruno Haible  <bruno@clisp.org>
7593
7594         mpsort: Move AC_LIBOBJ invocations to module description.
7595         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7596         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7597
7598 2011-05-23  Bruno Haible  <bruno@clisp.org>
7599
7600         modechange: Move AC_LIBOBJ invocations to module description.
7601         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7602         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7603
7604 2011-05-23  Bruno Haible  <bruno@clisp.org>
7605
7606         mkdir-p: Move AC_LIBOBJ invocations to module description.
7607         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7608         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7609
7610 2011-05-23  Bruno Haible  <bruno@clisp.org>
7611
7612         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7613         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7614         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7615
7616 2011-05-23  Bruno Haible  <bruno@clisp.org>
7617
7618         mgetgroups: Move AC_LIBOBJ invocations to module description.
7619         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7620         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7621
7622 2011-05-23  Bruno Haible  <bruno@clisp.org>
7623
7624         memxor: Move AC_LIBOBJ invocations to module description.
7625         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7626         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7627
7628 2011-05-23  Bruno Haible  <bruno@clisp.org>
7629
7630         memcoll: Move AC_LIBOBJ invocations to module description.
7631         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7632         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7633
7634 2011-05-23  Bruno Haible  <bruno@clisp.org>
7635
7636         memcasecmp: Move AC_LIBOBJ invocations to module description.
7637         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7638         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7639
7640 2011-05-23  Bruno Haible  <bruno@clisp.org>
7641
7642         crypto/md5: Move AC_LIBOBJ invocations to module description.
7643         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7644         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7645
7646 2011-05-23  Bruno Haible  <bruno@clisp.org>
7647
7648         crypto/md4: Move AC_LIBOBJ invocations to module description.
7649         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7650         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7651
7652 2011-05-23  Bruno Haible  <bruno@clisp.org>
7653
7654         crypto/md2: Move AC_LIBOBJ invocations to module description.
7655         * m4/md2.m4: Remove file.
7656         * modules/crypto/md2 (Files): Remove it.
7657         (configure.ac): Remove gl_MD2 call.
7658         (Makefile.am): Augment lib_SOURCES.
7659
7660 2011-05-23  Bruno Haible  <bruno@clisp.org>
7661
7662         long-options: Move AC_LIBOBJ invocations to module description.
7663         * m4/long-options.m4: Remove file.
7664         * modules/long-options (Files): Remove it.
7665         (configure.ac): Remove gl_LONG_OPTIONS call.
7666         (Makefile.am): Augment lib_SOURCES.
7667
7668 2011-05-23  Bruno Haible  <bruno@clisp.org>
7669
7670         i-ring: Move AC_LIBOBJ invocations to module description.
7671         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7672         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7673
7674 2011-05-23  Bruno Haible  <bruno@clisp.org>
7675
7676         idcache: Move AC_LIBOBJ invocations to module description.
7677         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7678         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7679
7680 2011-05-23  Bruno Haible  <bruno@clisp.org>
7681
7682         human: Move AC_LIBOBJ invocations to module description.
7683         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7684         * modules/human (Makefile.am): Augment lib_SOURCES.
7685
7686 2011-05-23  Bruno Haible  <bruno@clisp.org>
7687
7688         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7689         * m4/hmac-sha1.m4: Remove file.
7690         * modules/crypto/hmac-sha1 (Files): Remove it.
7691         (configure.ac): Remove gl_HMAC_SHA1 call.
7692         (Makefile.am): Augment lib_SOURCES.
7693
7694 2011-05-23  Bruno Haible  <bruno@clisp.org>
7695
7696         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7697         * m4/hmac-md5.m4: Remove file.
7698         * modules/crypto/hmac-md5 (Files): Remove it.
7699         (configure.ac): Remove gl_HMAC_MD5 call.
7700         (Makefile.am): Augment lib_SOURCES.
7701
7702 2011-05-23  Bruno Haible  <bruno@clisp.org>
7703
7704         hash: Move AC_LIBOBJ invocations to module description.
7705         * m4/hash.m4: Remove file.
7706         * modules/hash (Files): Remove it.
7707         (configure.ac): Remove gl_HASH call.
7708         (Makefile.am): Augment lib_SOURCES.
7709
7710 2011-05-23  Bruno Haible  <bruno@clisp.org>
7711
7712         hard-locale: Move AC_LIBOBJ invocations to module description.
7713         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7714         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7715
7716 2011-05-23  Bruno Haible  <bruno@clisp.org>
7717
7718         getugroups: Move AC_LIBOBJ invocations to module description.
7719         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7720         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7721
7722 2011-05-23  Bruno Haible  <bruno@clisp.org>
7723
7724         gettime: Move AC_LIBOBJ invocations to module description.
7725         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7726         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7727
7728 2011-05-23  Bruno Haible  <bruno@clisp.org>
7729
7730         getndelim2: Move AC_LIBOBJ invocations to module description.
7731         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7732         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7733
7734 2011-05-23  Bruno Haible  <bruno@clisp.org>
7735
7736         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7737         * m4/gc-pbkdf2-sha1.m4: Remove file.
7738         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7739         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7740         (Makefile.am): Augment lib_SOURCES.
7741
7742 2011-05-23  Bruno Haible  <bruno@clisp.org>
7743
7744         fts: Move AC_LIBOBJ invocations to module description.
7745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7746         * modules/fts (configure.ac): ... to here.
7747
7748 2011-05-23  Bruno Haible  <bruno@clisp.org>
7749
7750         file-type: Move AC_LIBOBJ invocations to module description.
7751         * m4/file-type.m4: Remove file.
7752         * modules/file-type (Files): Remove it.
7753         (configure.ac): Remove gl_FILE_TYPE call.
7754         (Makefile.am): Augment lib_SOURCES.
7755
7756 2011-05-23  Bruno Haible  <bruno@clisp.org>
7757
7758         filenamecat*: Respect rules for use of AC_LIBOBJ.
7759         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7760         Remove AC_LIBOBJ invocation.
7761         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7762         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7763
7764 2011-05-23  Bruno Haible  <bruno@clisp.org>
7765
7766         filemode: Move AC_LIBOBJ invocations to module description.
7767         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7768         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7769
7770 2011-05-23  Bruno Haible  <bruno@clisp.org>
7771
7772         openat-safer: Move AC_LIBOBJ invocations to module description.
7773         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7774         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7775
7776 2011-05-23  Bruno Haible  <bruno@clisp.org>
7777
7778         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7779         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7780         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7781
7782 2011-05-23  Bruno Haible  <bruno@clisp.org>
7783
7784         exclude: Move AC_LIBOBJ invocations to module description.
7785         * m4/exclude.m4: Remove file.
7786         * modules/exclude (Files): Remove it.
7787         (configure.ac): Remove gl_EXCLUDE call.
7788         (Makefile.am): Augment lib_SOURCES.
7789
7790 2011-05-23  Bruno Haible  <bruno@clisp.org>
7791
7792         dirname*: Respect rules for use of AC_LIBOBJ.
7793         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7794         invocations.
7795         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7796         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7797
7798 2011-05-23  Bruno Haible  <bruno@clisp.org>
7799
7800         dirent-safer: Move AC_LIBOBJ invocations to module description.
7801         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7802         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7803
7804 2011-05-23  Bruno Haible  <bruno@clisp.org>
7805
7806         crypto/des: Move AC_LIBOBJ invocations to module description.
7807         * m4/des.m4: Remove file.
7808         * modules/crypto/des (Files): Remove it.
7809         (configure.ac): Remove gl_DES call.
7810         (Makefile.am): Augment lib_SOURCES.
7811
7812 2011-05-23  Bruno Haible  <bruno@clisp.org>
7813
7814         cycle-check: Move AC_LIBOBJ invocations to module description.
7815         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7816         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7817
7818 2011-05-23  Bruno Haible  <bruno@clisp.org>
7819
7820         c-strtold: Move AC_LIBOBJ invocations to module description.
7821         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7822         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7823
7824 2011-05-23  Bruno Haible  <bruno@clisp.org>
7825
7826         c-strtod: Move AC_LIBOBJ invocations to module description.
7827         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7828         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7829
7830 2011-05-23  Bruno Haible  <bruno@clisp.org>
7831
7832         crc: Move AC_LIBOBJ invocations to module description.
7833         * m4/crc.m4: Remove file.
7834         * modules/crc (Files): Remove it.
7835         (configure.ac): Remove gl_CRC call.
7836         (Makefile.am): Augment lib_SOURCES.
7837
7838 2011-05-23  Bruno Haible  <bruno@clisp.org>
7839
7840         close-stream: Move AC_LIBOBJ invocations to module description.
7841         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7842         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7843
7844 2011-05-23  Bruno Haible  <bruno@clisp.org>
7845
7846         closeout: Move AC_LIBOBJ invocations to module description.
7847         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7848         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7849
7850 2011-05-23  Bruno Haible  <bruno@clisp.org>
7851
7852         closein: Move AC_LIBOBJ invocations to module description.
7853         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7854         * modules/closein (Makefile.am): Augment lib_SOURCES.
7855
7856 2011-05-23  Bruno Haible  <bruno@clisp.org>
7857
7858         cloexec: Move AC_LIBOBJ invocations to module description.
7859         * m4/cloexec.m4: Remove file.
7860         * modules/cloexec (Files): Remove it.
7861         (configure.ac): Remove gl_CLOEXEC call.
7862         (Makefile.am): Augment lib_SOURCES.
7863
7864 2011-05-23  Bruno Haible  <bruno@clisp.org>
7865
7866         check-version: Move AC_LIBOBJ invocations to module description.
7867         * m4/check-version.m4: Remove file.
7868         * modules/check-version (Files): Remove it.
7869         (configure.ac): Remove gl_CHECK_VERSION call.
7870         (Makefile.am): Augment lib_SOURCES.
7871
7872 2011-05-23  Bruno Haible  <bruno@clisp.org>
7873
7874         chdir-safer: Move AC_LIBOBJ invocations to module description.
7875         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7876         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7877
7878 2011-05-23  Bruno Haible  <bruno@clisp.org>
7879
7880         canonicalize: Move AC_LIBOBJ invocations to module description.
7881         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7882         AC_LIBOBJ invocation.
7883         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7884
7885 2011-05-23  Bruno Haible  <bruno@clisp.org>
7886
7887         canon-host: Move AC_LIBOBJ invocations to module description.
7888         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7889         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7890         instead of gl_CANON_HOST.
7891         (Makefile.am): Augment lib_SOURCES.
7892
7893 2011-05-23  Bruno Haible  <bruno@clisp.org>
7894
7895         backupfile: Move AC_LIBOBJ invocations to module description.
7896         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7897         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7898
7899 2011-05-23  Bruno Haible  <bruno@clisp.org>
7900
7901         argmatch: Move AC_LIBOBJ invocations to module description.
7902         * m4/argmatch.m4: Remove file.
7903         * modules/argmatch (Files): Remove it.
7904         (configure.ac): Remove gl_ARGMATCH call.
7905         (Makefile.am): Augment lib_SOURCES.
7906
7907 2011-05-23  Bruno Haible  <bruno@clisp.org>
7908
7909         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7910         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7911         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7912
7913 2011-05-23  Bruno Haible  <bruno@clisp.org>
7914
7915         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7916         * m4/arcfour.m4: Remove file.
7917         * modules/crypto/arcfour (Files): Remove it.
7918         (configure.ac): Remove gl_ARCFOUR call.
7919         (Makefile.am): Augment lib_SOURCES.
7920
7921 2011-05-22  Bruno Haible  <bruno@clisp.org>
7922
7923         write: Move AC_LIBOBJ invocations to module description.
7924         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7925         * modules/write (configure.ac): ... to here.
7926
7927 2011-05-22  Bruno Haible  <bruno@clisp.org>
7928
7929         wmemset: Move AC_LIBOBJ invocations to module description.
7930         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7931         here...
7932         * modules/wmemset (configure.ac): ... to here.
7933
7934 2011-05-22  Bruno Haible  <bruno@clisp.org>
7935
7936         wmemmove: Move AC_LIBOBJ invocations to module description.
7937         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7938         here...
7939         * modules/wmemmove (configure.ac): ... to here.
7940
7941 2011-05-22  Bruno Haible  <bruno@clisp.org>
7942
7943         wmemcpy: Move AC_LIBOBJ invocations to module description.
7944         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7945         here...
7946         * modules/wmemcpy (configure.ac): ... to here.
7947
7948 2011-05-22  Bruno Haible  <bruno@clisp.org>
7949
7950         wmemcmp: Move AC_LIBOBJ invocations to module description.
7951         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7952         here...
7953         * modules/wmemcmp (configure.ac): ... to here.
7954
7955 2011-05-22  Bruno Haible  <bruno@clisp.org>
7956
7957         wmemchr: Move AC_LIBOBJ invocations to module description.
7958         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7959         here...
7960         * modules/wmemchr (configure.ac): ... to here.
7961
7962 2011-05-22  Bruno Haible  <bruno@clisp.org>
7963
7964         wcswidth: Move AC_LIBOBJ invocations to module description.
7965         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7966         here...
7967         * modules/wcswidth (configure.ac): ... to here.
7968
7969 2011-05-22  Bruno Haible  <bruno@clisp.org>
7970
7971         wcwidth: Respect rules for use of AC_LIBOBJ.
7972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7973         invocation from here...
7974         * modules/wcwidth (configure.ac): ... to here.
7975         (Depends-on): Update conditions.
7976
7977 2011-05-22  Bruno Haible  <bruno@clisp.org>
7978
7979         wctype: Move AC_LIBOBJ invocations to module description.
7980         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7981         invocation from here...
7982         * modules/wctype (configure.ac): ... to here.
7983         (Depends-on): Update conditions.
7984
7985 2011-05-22  Bruno Haible  <bruno@clisp.org>
7986
7987         wctrans: Move AC_LIBOBJ invocations to module description.
7988         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7989         invocation from here...
7990         * modules/wctrans (configure.ac): ... to here.
7991
7992 2011-05-22  Bruno Haible  <bruno@clisp.org>
7993
7994         wctomb: Move AC_LIBOBJ invocations to module description.
7995         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7996         invocations from here...
7997         * modules/wctomb (configure.ac): ... to here.
7998
7999 2011-05-22  Bruno Haible  <bruno@clisp.org>
8000
8001         wctob: Move AC_LIBOBJ invocations to module description.
8002         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8003         gl_PREREQ_WCTOB invocations from here...
8004         * modules/wctob (configure.ac): ... to here.
8005         (Depends-on): Update conditions.
8006
8007 2011-05-22  Bruno Haible  <bruno@clisp.org>
8008
8009         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8010         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8011         here...
8012         * modules/wcsxfrm (configure.ac): ... to here.
8013
8014 2011-05-22  Bruno Haible  <bruno@clisp.org>
8015
8016         wcstok: Move AC_LIBOBJ invocations to module description.
8017         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8018         * modules/wcstok (configure.ac): ... to here.
8019
8020 2011-05-22  Bruno Haible  <bruno@clisp.org>
8021
8022         wcsstr: Move AC_LIBOBJ invocations to module description.
8023         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8024         * modules/wcsstr (configure.ac): ... to here.
8025
8026 2011-05-22  Bruno Haible  <bruno@clisp.org>
8027
8028         wcsspn: Move AC_LIBOBJ invocations to module description.
8029         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8030         * modules/wcsspn (configure.ac): ... to here.
8031
8032 2011-05-22  Bruno Haible  <bruno@clisp.org>
8033
8034         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8035         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8036         gl_PREREQ_WCSRTOMBS invocations from here...
8037         * modules/wcsrtombs (configure.ac): ... to here.
8038
8039 2011-05-22  Bruno Haible  <bruno@clisp.org>
8040
8041         wcsrchr: Move AC_LIBOBJ invocations to module description.
8042         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8043         here...
8044         * modules/wcsrchr (configure.ac): ... to here.
8045
8046 2011-05-22  Bruno Haible  <bruno@clisp.org>
8047
8048         wcspbrk: Move AC_LIBOBJ invocations to module description.
8049         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8050         here...
8051         * modules/wcspbrk (configure.ac): ... to here.
8052
8053 2011-05-22  Bruno Haible  <bruno@clisp.org>
8054
8055         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8056         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8057         gl_PREREQ_WCSNRTOMBS invocations from here...
8058         * modules/wcsnrtombs (configure.ac): ... to here.
8059
8060 2011-05-22  Bruno Haible  <bruno@clisp.org>
8061
8062         wcsnlen: Move AC_LIBOBJ invocations to module description.
8063         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8064         here...
8065         * modules/wcsnlen (configure.ac): ... to here.
8066
8067 2011-05-22  Bruno Haible  <bruno@clisp.org>
8068
8069         wcsncpy: Move AC_LIBOBJ invocations to module description.
8070         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8071         here...
8072         * modules/wcsncpy (configure.ac): ... to here.
8073
8074 2011-05-22  Bruno Haible  <bruno@clisp.org>
8075
8076         wcsncmp: Move AC_LIBOBJ invocations to module description.
8077         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8078         here...
8079         * modules/wcsncmp (configure.ac): ... to here.
8080
8081 2011-05-22  Bruno Haible  <bruno@clisp.org>
8082
8083         wcsncat: Move AC_LIBOBJ invocations to module description.
8084         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8085         here...
8086         * modules/wcsncat (configure.ac): ... to here.
8087
8088 2011-05-22  Bruno Haible  <bruno@clisp.org>
8089
8090         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8091         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8092         from here...
8093         * modules/wcsncasecmp (configure.ac): ... to here.
8094
8095 2011-05-22  Bruno Haible  <bruno@clisp.org>
8096
8097         wcslen: Move AC_LIBOBJ invocations to module description.
8098         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8099         * modules/wcslen (configure.ac): ... to here.
8100
8101 2011-05-22  Bruno Haible  <bruno@clisp.org>
8102
8103         wcsdup: Move AC_LIBOBJ invocations to module description.
8104         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8105         * modules/wcsdup (configure.ac): ... to here.
8106
8107 2011-05-22  Bruno Haible  <bruno@clisp.org>
8108
8109         wcscspn: Move AC_LIBOBJ invocations to module description.
8110         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8111         here...
8112         * modules/wcscspn (configure.ac): ... to here.
8113
8114 2011-05-22  Bruno Haible  <bruno@clisp.org>
8115
8116         wcscpy: Move AC_LIBOBJ invocations to module description.
8117         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8118         * modules/wcscpy (configure.ac): ... to here.
8119
8120 2011-05-22  Bruno Haible  <bruno@clisp.org>
8121
8122         wcscoll: Move AC_LIBOBJ invocations to module description.
8123         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8124         here...
8125         * modules/wcscoll (configure.ac): ... to here.
8126
8127 2011-05-22  Bruno Haible  <bruno@clisp.org>
8128
8129         wcscmp: Move AC_LIBOBJ invocations to module description.
8130         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8131         * modules/wcscmp (configure.ac): ... to here.
8132
8133 2011-05-22  Bruno Haible  <bruno@clisp.org>
8134
8135         wcschr: Move AC_LIBOBJ invocations to module description.
8136         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8137         * modules/wcschr (configure.ac): ... to here.
8138
8139 2011-05-22  Bruno Haible  <bruno@clisp.org>
8140
8141         wcscat: Move AC_LIBOBJ invocations to module description.
8142         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8143         * modules/wcscat (configure.ac): ... to here.
8144
8145 2011-05-22  Bruno Haible  <bruno@clisp.org>
8146
8147         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8148         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8149         here...
8150         * modules/wcscasecmp (configure.ac): ... to here.
8151
8152 2011-05-22  Bruno Haible  <bruno@clisp.org>
8153
8154         wcrtomb: Move AC_LIBOBJ invocations to module description.
8155         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8156         invocations from here...
8157         * modules/wcrtomb (configure.ac): ... to here.
8158
8159 2011-05-22  Bruno Haible  <bruno@clisp.org>
8160
8161         wcpncpy: Move AC_LIBOBJ invocations to module description.
8162         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8163         here...
8164         * modules/wcpncpy (configure.ac): ... to here.
8165
8166 2011-05-22  Bruno Haible  <bruno@clisp.org>
8167
8168         wcpcpy: Move AC_LIBOBJ invocations to module description.
8169         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8170         * modules/wcpcpy (configure.ac): ... to here.
8171
8172 2011-05-22  Bruno Haible  <bruno@clisp.org>
8173
8174         waitpid: Move AC_LIBOBJ invocations to module description.
8175         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8176         invocation from here...
8177         * modules/waitpid (configure.ac): ... to here.
8178
8179 2011-05-22  Bruno Haible  <bruno@clisp.org>
8180
8181         utimensat: Move AC_LIBOBJ invocations to module description.
8182         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8183         here...
8184         * modules/utimensat (configure.ac): ... to here.
8185
8186 2011-05-22  Bruno Haible  <bruno@clisp.org>
8187
8188         usleep: Move AC_LIBOBJ invocations to module description.
8189         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8190         here...
8191         * modules/usleep (configure.ac): ... to here.
8192
8193 2011-05-22  Bruno Haible  <bruno@clisp.org>
8194
8195         unlockpt: Move AC_LIBOBJ invocations to module description.
8196         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8197         gl_PREREQ_UNLOCKPT invocations from here...
8198         * modules/unlockpt (configure.ac): ... to here.
8199
8200 2011-05-22  Bruno Haible  <bruno@clisp.org>
8201
8202         unlink: Respect rules for use of AC_LIBOBJ.
8203         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8204         * modules/unlink (configure.ac): ... to here.
8205
8206 2011-05-22  Bruno Haible  <bruno@clisp.org>
8207
8208         uname: Move AC_LIBOBJ invocations to module description.
8209         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8211         here...
8212         * modules/uname (configure.ac): ... to here.
8213
8214 2011-05-22  Bruno Haible  <bruno@clisp.org>
8215
8216         ttyname_r: Move AC_LIBOBJ invocations to module description.
8217         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8218         gl_PREREQ_TTYNAME_R invocations from here...
8219         * modules/ttyname_r (configure.ac): ... to here.
8220
8221 2011-05-22  Bruno Haible  <bruno@clisp.org>
8222
8223         tsearch: Move AC_LIBOBJ invocations to module description.
8224         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8225         invocations from here...
8226         * modules/tsearch (configure.ac): ... to here.
8227
8228 2011-05-22  Bruno Haible  <bruno@clisp.org>
8229
8230         towctrans: Move AC_LIBOBJ invocations to module description.
8231         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8232         AC_LIBOBJ invocation from here...
8233         * modules/towctrans (configure.ac): ... to here.
8234
8235 2011-05-22  Bruno Haible  <bruno@clisp.org>
8236
8237         tmpfile: Move AC_LIBOBJ invocations to module description.
8238         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8239         invocations from here...
8240         * modules/tmpfile (configure.ac): ... to here.
8241
8242 2011-05-22  Bruno Haible  <bruno@clisp.org>
8243
8244         times: Move AC_LIBOBJ invocations to module description.
8245         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8246         * modules/times (configure.ac): ... to here.
8247
8248 2011-05-22  Bruno Haible  <bruno@clisp.org>
8249
8250         time_r: Move AC_LIBOBJ invocations to module description.
8251         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8252         invocations from here...
8253         * modules/time_r (configure.ac): ... to here.
8254
8255 2011-05-22  Bruno Haible  <bruno@clisp.org>
8256
8257         timegm: Move AC_LIBOBJ invocations to module description.
8258         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8259         invocations from here...
8260         * modules/timegm (configure.ac): ... to here.
8261
8262 2011-05-22  Bruno Haible  <bruno@clisp.org>
8263
8264         tcgetsid: Move AC_LIBOBJ invocations to module description.
8265         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8266         and gl_PREREQ_TCGETSID invocations from here...
8267         * modules/tcgetsid (configure.ac): ... to here.
8268         (Depends-on): Update conditions.
8269
8270 2011-05-22  Bruno Haible  <bruno@clisp.org>
8271
8272         symlinkat: Move AC_LIBOBJ invocations to module description.
8273         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8274         here...
8275         * modules/symlinkat (configure.ac): ... to here.
8276
8277 2011-05-22  Bruno Haible  <bruno@clisp.org>
8278
8279         symlink: Move AC_LIBOBJ invocations to module description.
8280         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8281         here...
8282         * modules/symlink (configure.ac): ... to here.
8283
8284 2011-05-22  Bruno Haible  <bruno@clisp.org>
8285
8286         strverscmp: Move AC_LIBOBJ invocations to module description.
8287         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8289         from here...
8290         * modules/strverscmp (configure.ac): ... to here.
8291
8292 2011-05-22  Bruno Haible  <bruno@clisp.org>
8293
8294         strtok_r: Move AC_LIBOBJ invocations to module description.
8295         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8296         and gl_PREREQ_STRTOK_R invocations from here...
8297         * modules/strtok_r (configure.ac): ... to here.
8298         (Depends-on): Update conditions.
8299
8300 2011-05-22  Bruno Haible  <bruno@clisp.org>
8301
8302         strtoumax: Move AC_LIBOBJ invocations to module description.
8303         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8305         from here...
8306         * modules/strtoumax (configure.ac): ... to here.
8307
8308 2011-05-22  Bruno Haible  <bruno@clisp.org>
8309
8310         strtoimax: Move AC_LIBOBJ invocations to module description.
8311         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8313         from here...
8314         * modules/strtoimax (configure.ac): ... to here.
8315
8316 2011-05-22  Bruno Haible  <bruno@clisp.org>
8317
8318         strtoull: Move AC_LIBOBJ invocations to module description.
8319         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8321         from here...
8322         * modules/strtoull (configure.ac): ... to here.
8323
8324 2011-05-22  Bruno Haible  <bruno@clisp.org>
8325
8326         strtoll: Move AC_LIBOBJ invocations to module description.
8327         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8329         here...
8330         * modules/strtoll (configure.ac): ... to here.
8331
8332 2011-05-22  Bruno Haible  <bruno@clisp.org>
8333
8334         strtoul: Move AC_LIBOBJ invocations to module description.
8335         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8336         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8337         * modules/strtoul (configure.ac): ... to here.
8338
8339 2011-05-22  Bruno Haible  <bruno@clisp.org>
8340
8341         strtol: Move AC_LIBOBJ invocations to module description.
8342         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8343         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8344         * modules/strtol (configure.ac): ... to here.
8345
8346 2011-05-22  Bruno Haible  <bruno@clisp.org>
8347
8348         strtod: Move AC_LIBOBJ invocations to module description.
8349         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8350         invocations from here...
8351         * modules/strtod (configure.ac): ... to here.
8352
8353 2011-05-22  Bruno Haible  <bruno@clisp.org>
8354
8355         strstr*: Move AC_LIBOBJ invocations to module description.
8356         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8357         invocations from here...
8358         * modules/strstr-simple (configure.ac): ... to here.
8359         * modules/strstr (configure.ac): ... and here.
8360
8361 2011-05-22  Bruno Haible  <bruno@clisp.org>
8362
8363         strsignal: Move AC_LIBOBJ invocations to module description.
8364         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8365         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8366         * modules/strsignal (configure.ac): ... to here.
8367         (Depends-on): Update conditions.
8368
8369 2011-05-22  Bruno Haible  <bruno@clisp.org>
8370
8371         strsep: Move AC_LIBOBJ invocations to module description.
8372         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8373         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8374         here...
8375         * modules/strsep (configure.ac): ... to here.
8376
8377 2011-05-22  Bruno Haible  <bruno@clisp.org>
8378
8379         strptime: Move AC_LIBOBJ invocations to module description.
8380         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8381         gl_PREREQ_STRPTIME invocations from here...
8382         * modules/strptime (configure.ac): ... to here.
8383
8384 2011-05-22  Bruno Haible  <bruno@clisp.org>
8385
8386         strpbrk: Move AC_LIBOBJ invocations to module description.
8387         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8388         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8389         here...
8390         * modules/strpbrk (configure.ac): ... to here.
8391
8392 2011-05-22  Bruno Haible  <bruno@clisp.org>
8393
8394         strnlen: Move AC_LIBOBJ invocations to module description.
8395         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8396         invocations from here...
8397         * modules/strnlen (configure.ac): ... to here.
8398
8399 2011-05-22  Bruno Haible  <bruno@clisp.org>
8400
8401         strndup: Move AC_LIBOBJ invocations to module description.
8402         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8403         invocations from here...
8404         * modules/strndup (configure.ac): ... to here.
8405         (Depends-on): Update conditions.
8406
8407 2011-05-22  Bruno Haible  <bruno@clisp.org>
8408
8409         strncat: Move AC_LIBOBJ invocations to module description.
8410         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8411         invocations from here...
8412         * modules/strncat (configure.ac): ... to here.
8413
8414 2011-05-22  Bruno Haible  <bruno@clisp.org>
8415
8416         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8417         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8418         invocations from here...
8419         * modules/strdup (configure.ac): ... to here.
8420         * modules/strdup-posix (configure.ac): ... and here.
8421
8422 2011-05-22  Bruno Haible  <bruno@clisp.org>
8423
8424         strcspn: Move AC_LIBOBJ invocations to module description.
8425         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8426         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8427         here...
8428         * modules/strcspn (configure.ac): ... to here.
8429
8430 2011-05-22  Bruno Haible  <bruno@clisp.org>
8431
8432         strchrnul: Move AC_LIBOBJ invocations to module description.
8433         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8434         gl_PREREQ_STRCHRNUL invocations from here...
8435         * modules/strchrnul (configure.ac): ... to here.
8436
8437 2011-05-22  Bruno Haible  <bruno@clisp.org>
8438
8439         strcasestr*: Move AC_LIBOBJ invocations to module description.
8440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8441         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8442         * modules/strcasestr-simple (configure.ac): ... to here.
8443         * modules/strcasestr (configure.ac): ... and here.
8444
8445 2011-05-22  Bruno Haible  <bruno@clisp.org>
8446
8447         strcase: Move AC_LIBOBJ invocations to module description.
8448         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8449         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8450         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8451         gl_PREREQ_STRNCASECMP invocations from here...
8452         * modules/strcase (configure.ac): ... to here.
8453
8454 2011-05-22  Bruno Haible  <bruno@clisp.org>
8455
8456         stpncpy: Move AC_LIBOBJ invocations to module description.
8457         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8458         here...
8459         * modules/stpncpy (configure.ac): ... to here.
8460
8461 2011-05-22  Bruno Haible  <bruno@clisp.org>
8462
8463         stpcpy: Move AC_LIBOBJ invocations to module description.
8464         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8465         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8466         here...
8467         * modules/stpcpy (configure.ac): ... to here.
8468
8469 2011-05-21  Bruno Haible  <bruno@clisp.org>
8470
8471         stat: Move AC_LIBOBJ invocations to module description.
8472         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8473         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8474         here...
8475         * modules/stat (configure.ac): ... to here.
8476
8477 2011-05-21  Bruno Haible  <bruno@clisp.org>
8478
8479         sleep: Move AC_LIBOBJ invocations to module description.
8480         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8481         * modules/sleep (configure.ac): ... to here.
8482
8483 2011-05-21  Bruno Haible  <bruno@clisp.org>
8484
8485         signbit: Move AC_LIBOBJ invocations to module description.
8486         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8487         * modules/signbit (configure.ac): ... to here.
8488
8489 2011-05-21  Bruno Haible  <bruno@clisp.org>
8490
8491         sigprocmask: Move AC_LIBOBJ invocations to module description.
8492         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8493         gl_PREREQ_SIGPROMASK invocations from here...
8494         * modules/sigprocmask (configure.ac): ... to here.
8495
8496 2011-05-21  Bruno Haible  <bruno@clisp.org>
8497
8498         sigaction: Move AC_LIBOBJ invocations to module description.
8499         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8500         gl_PREREQ_SIGACTION invocations from here...
8501         * modules/sigaction (configure.ac): ... to here.
8502
8503 2011-05-21  Bruno Haible  <bruno@clisp.org>
8504
8505         sig2str: Move AC_LIBOBJ invocations to module description.
8506         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8508         here...
8509         * modules/sig2str (configure.ac): ... to here.
8510
8511 2011-05-21  Bruno Haible  <bruno@clisp.org>
8512
8513         setlocale: Move AC_LIBOBJ invocations to module description.
8514         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8515         gl_PREREQ_SETLOCALE invocations from here...
8516         * modules/setlocale (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         unsetenv: Move AC_LIBOBJ invocations to module description.
8521         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8522         and gl_PREREQ_UNSETENV invocations from here...
8523         * modules/unsetenv (configure.ac): ... to here.
8524         (Depends-on): Update.
8525
8526 2011-05-21  Bruno Haible  <bruno@clisp.org>
8527
8528         setenv: Move AC_LIBOBJ invocations to module description.
8529         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8530         here...
8531         * modules/setenv (configure.ac): ... to here.
8532
8533 2011-05-21  Bruno Haible  <bruno@clisp.org>
8534
8535         selinux-h: Move AC_LIBOBJ invocations to module description.
8536         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8537         AC_LIBOBJ invocation from here...
8538         * modules/selinux-h (configure.ac): ... to here.
8539
8540 2011-05-21  Bruno Haible  <bruno@clisp.org>
8541
8542         select: Respect rules for use of AC_LIBOBJ.
8543         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8544         here...
8545         * modules/select (configure.ac): ... to here.
8546
8547 2011-05-21  Bruno Haible  <bruno@clisp.org>
8548
8549         scandir: Move AC_LIBOBJ invocations to module description.
8550         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8551         invocations from here...
8552         * modules/scandir (configure.ac): ... to here.
8553
8554 2011-05-21  Bruno Haible  <bruno@clisp.org>
8555
8556         rpmatch: Move AC_LIBOBJ invocations to module description.
8557         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8558         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8559         here...
8560         * modules/rpmatch (configure.ac): ... to here.
8561
8562 2011-05-21  Bruno Haible  <bruno@clisp.org>
8563
8564         rmdir: Respect rules for use of AC_LIBOBJ.
8565         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8566         * modules/rmdir (configure.ac): ... to here.
8567
8568 2011-05-21  Bruno Haible  <bruno@clisp.org>
8569
8570         renameat: Move AC_LIBOBJ invocations to module description.
8571         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8572         here...
8573         * modules/renameat (configure.ac): ... to here.
8574
8575 2011-05-21  Bruno Haible  <bruno@clisp.org>
8576
8577         rename: Respect rules for use of AC_LIBOBJ.
8578         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8579         here...
8580         * modules/rename (configure.ac): ... to here.
8581
8582 2011-05-21  Bruno Haible  <bruno@clisp.org>
8583
8584         remove: Move AC_LIBOBJ invocations to module description.
8585         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8586         here...
8587         * modules/remove (configure.ac): ... to here.
8588
8589 2011-05-21  Bruno Haible  <bruno@clisp.org>
8590
8591         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8592         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8593         macro.
8594         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8595         * modules/relocatable-lib (configure.ac): ... to here.
8596         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8597         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8598
8599 2011-05-21  Bruno Haible  <bruno@clisp.org>
8600
8601         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8602         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8603         here...
8604         * modules/relocatable-prog (configure.ac): ... to here.
8605
8606 2011-05-21  Bruno Haible  <bruno@clisp.org>
8607
8608         regex: Move AC_LIBOBJ invocations to module description.
8609         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8610         invocations from here...
8611         * modules/regex (configure.ac): ... to here.
8612
8613 2011-05-21  Bruno Haible  <bruno@clisp.org>
8614
8615         realloc-*: Move AC_LIBOBJ invocations to module description.
8616         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8617         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8618         AC_LIBOBJ invocations from here...
8619         * modules/realloc-gnu (configure.ac): ... to here.
8620         * modules/realloc-posix (configure.ac): ... and here.
8621
8622 2011-05-21  Bruno Haible  <bruno@clisp.org>
8623
8624         readutmp: Move AC_LIBOBJ invocations to module description.
8625         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8626         * modules/readutmp (configure.ac): ... to here.
8627
8628 2011-05-21  Bruno Haible  <bruno@clisp.org>
8629
8630         readlinkat: Move AC_LIBOBJ invocations to module description.
8631         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8632         here...
8633         * modules/readlinkat (configure.ac): ... to here.
8634
8635 2011-05-21  Bruno Haible  <bruno@clisp.org>
8636
8637         readlink: Move AC_LIBOBJ invocations to module description.
8638         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8639         gl_PREREQ_READLINK invocations from here...
8640         * modules/readlink (configure.ac): ... to here.
8641
8642 2011-05-21  Bruno Haible  <bruno@clisp.org>
8643
8644         readline: Move AC_LIBOBJ invocations to module description.
8645         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8646         gl_PREREQ_READLINE invocations from here...
8647         * modules/readline (configure.ac): ... to here.
8648
8649 2011-05-21  Bruno Haible  <bruno@clisp.org>
8650
8651         read: Move AC_LIBOBJ invocations to module description.
8652         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8653         * modules/read (configure.ac): ... to here.
8654
8655 2011-05-21  Bruno Haible  <bruno@clisp.org>
8656
8657         rawmemchr: Move AC_LIBOBJ invocations to module description.
8658         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8659         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8660         from here...
8661         * modules/rawmemchr (configure.ac): ... to here.
8662
8663 2011-05-21  Bruno Haible  <bruno@clisp.org>
8664
8665         random_r: Move AC_LIBOBJ invocations to module description.
8666         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8667         gl_PREREQ_RANDOM_R invocations from here...
8668         * modules/random_r (configure.ac): ... to here.
8669
8670 2011-05-21  Bruno Haible  <bruno@clisp.org>
8671
8672         pwrite: Move AC_LIBOBJ invocations to module description.
8673         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8674         * modules/pwrite (configure.ac): ... to here.
8675
8676 2011-05-21  Bruno Haible  <bruno@clisp.org>
8677
8678         putenv: Move AC_LIBOBJ invocations to module description.
8679         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8680         * modules/putenv (configure.ac): ... to here.
8681
8682 2011-05-21  Bruno Haible  <bruno@clisp.org>
8683
8684         login_tty: Move AC_LIBOBJ invocations to module description.
8685         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8686         * modules/login_tty (configure.ac): ... to here.
8687
8688 2011-05-21  Bruno Haible  <bruno@clisp.org>
8689
8690         openpty: Move AC_LIBOBJ invocations to module description.
8691         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8692         * modules/openpty (configure.ac): ... to here.
8693
8694 2011-05-21  Bruno Haible  <bruno@clisp.org>
8695
8696         forkpty: Move AC_LIBOBJ invocations to module description.
8697         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8698         * modules/forkpty (configure.ac): ... to here.
8699
8700 2011-05-21  Bruno Haible  <bruno@clisp.org>
8701
8702         ptsname: Move AC_LIBOBJ invocations to module description.
8703         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8704         invocations from here...
8705         * modules/ptsname (configure.ac): ... to here.
8706
8707 2011-05-21  Bruno Haible  <bruno@clisp.org>
8708
8709         pread: Move AC_LIBOBJ invocations to module description.
8710         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8711         * modules/pread (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8716         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8717         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8718         * modules/posix_spawn (configure.ac): ... to here.
8719         * modules/posix_spawnp (configure.ac): ... and here.
8720
8721 2011-05-21  Bruno Haible  <bruno@clisp.org>
8722
8723         popen: Move AC_LIBOBJ invocations to module description.
8724         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8725         invocations from here...
8726         * modules/popen (configure.ac): ... to here.
8727
8728 2011-05-21  Bruno Haible  <bruno@clisp.org>
8729
8730         poll: Move AC_LIBOBJ invocations to module description.
8731         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8732         invocations from here...
8733         * modules/poll (configure.ac): ... to here.
8734
8735 2011-05-21  Bruno Haible  <bruno@clisp.org>
8736
8737         pipe-posix: Move AC_LIBOBJ invocations to module description.
8738         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8739         * modules/pipe-posix (configure.ac): ... to here.
8740
8741 2011-05-21  Bruno Haible  <bruno@clisp.org>
8742
8743         openat: Respect rules for use of AC_LIBOBJ.
8744         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8745         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8746         * modules/openat (configure.ac): ... to here.
8747
8748 2011-05-21  Bruno Haible  <bruno@clisp.org>
8749
8750         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8751         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8752         invocation from here...
8753         * modules/obstack-printf (configure.ac): ... to here.
8754         * modules/obstack-printf-posix (configure.ac): ... and here.
8755
8756 2011-05-21  Bruno Haible  <bruno@clisp.org>
8757
8758         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8759         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8760         from here...
8761         * modules/nl_langinfo (configure.ac): ... to here.
8762
8763 2011-05-21  Bruno Haible  <bruno@clisp.org>
8764
8765         nanosleep: Move AC_LIBOBJ invocations to module description.
8766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8767         gl_PREREQ_NANOSLEEP invocations from here...
8768         * modules/nanosleep (configure.ac): ... to here.
8769
8770 2011-05-21  Bruno Haible  <bruno@clisp.org>
8771
8772         mountlist: Move AC_LIBOBJ invocations to module description.
8773         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8774         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8775         * modules/mountlist (configure.ac): ... to here.
8776
8777 2011-05-21  Bruno Haible  <bruno@clisp.org>
8778
8779         mktime: Respect rules for use of AC_LIBOBJ.
8780         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8781         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8782         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8783         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8784         * modules/mktime (configure.ac): ... to here.
8785         * modules/mktime-internal (configure.ac): ... and here.
8786         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8787
8788 2011-05-21  Bruno Haible  <bruno@clisp.org>
8789
8790         mkstemps: Move AC_LIBOBJ invocations to module description.
8791         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8792         here...
8793         * modules/mkstemps (configure.ac): ... to here.
8794
8795 2011-05-21  Bruno Haible  <bruno@clisp.org>
8796
8797         mkstemp: Move AC_LIBOBJ invocations to module description.
8798         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8799         gl_PREREQ_MKSTEMP invocations from here...
8800         * modules/mkstemp (configure.ac): ... to here.
8801
8802 2011-05-21  Bruno Haible  <bruno@clisp.org>
8803
8804         mkostemps: Move AC_LIBOBJ invocations to module description.
8805         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8806         here...
8807         * modules/mkostemps (configure.ac): ... to here.
8808
8809 2011-05-21  Bruno Haible  <bruno@clisp.org>
8810
8811         mkostemp: Move AC_LIBOBJ invocations to module description.
8812         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8813         gl_PREREQ_MKOSTEMP invocations from here...
8814         * modules/mkostemp (configure.ac): ... to here.
8815
8816 2011-05-21  Bruno Haible  <bruno@clisp.org>
8817
8818         mknod: Move AC_LIBOBJ invocations to module description.
8819         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8820         * modules/mknod (configure.ac): ... to here.
8821
8822 2011-05-21  Bruno Haible  <bruno@clisp.org>
8823
8824         mkfifoat: Move AC_LIBOBJ invocations to module description.
8825         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8826         here...
8827         * modules/mkfifoat (configure.ac): ... to here.
8828
8829 2011-05-21  Bruno Haible  <bruno@clisp.org>
8830
8831         mkfifo: Respect rules for use of AC_LIBOBJ.
8832         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8833         here...
8834         * modules/mkfifo (configure.ac): ... to here.
8835
8836 2011-05-21  Bruno Haible  <bruno@clisp.org>
8837
8838         mkdtemp: Move AC_LIBOBJ invocations to module description.
8839         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8840         invocations from here...
8841         * modules/mkdtemp (configure.ac): ... to here.
8842
8843 2011-05-21  Bruno Haible  <bruno@clisp.org>
8844
8845         mkdir: Move AC_LIBOBJ invocations to module description.
8846         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8847         * modules/mkdir (configure.ac): ... to here.
8848
8849 2011-05-21  Bruno Haible  <bruno@clisp.org>
8850
8851         memset: Move AC_LIBOBJ invocations to module description.
8852         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8853         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8854         here...
8855         * modules/memset (configure.ac): ... to here.
8856
8857 2011-05-21  Bruno Haible  <bruno@clisp.org>
8858
8859         memrchr: Move AC_LIBOBJ invocations to module description.
8860         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8862         here...
8863         * modules/memrchr (configure.ac): ... to here.
8864
8865 2011-05-21  Bruno Haible  <bruno@clisp.org>
8866
8867         mempcpy: Move AC_LIBOBJ invocations to module description.
8868         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8869         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8870         here...
8871         * modules/mempcpy (configure.ac): ... to here.
8872
8873 2011-05-21  Bruno Haible  <bruno@clisp.org>
8874
8875         memmove: Move AC_LIBOBJ invocations to module description.
8876         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8878         here...
8879         * modules/memmove (configure.ac): ... to here.
8880
8881 2011-05-21  Bruno Haible  <bruno@clisp.org>
8882
8883         memmem*: Move AC_LIBOBJ invocations to module description.
8884         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8885         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8886         here...
8887         (gl_FUNC_MEMMEM): ... and here...
8888         * modules/memmem-simple (configure.ac): ... to here.
8889         * modules/memmem (configure.ac): ... and here.
8890
8891 2011-05-21  Bruno Haible  <bruno@clisp.org>
8892
8893         memcpy: Move AC_LIBOBJ invocations to module description.
8894         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8896         here...
8897         * modules/memcpy (configure.ac): ... to here.
8898
8899 2011-05-21  Bruno Haible  <bruno@clisp.org>
8900
8901         memcmp: Simplify autoconf macro.
8902         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8903         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8904         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8905
8906 2011-05-21  Bruno Haible  <bruno@clisp.org>
8907
8908         memcmp: Move AC_LIBOBJ invocations to module description.
8909         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8910         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8911         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8912         * modules/memcmp (configure.ac): ... to here.
8913         (Depends-on): Update conditions.
8914
8915 2011-05-21  Bruno Haible  <bruno@clisp.org>
8916
8917         memchr: Respect rules for use of AC_LIBOBJ.
8918         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8919         invocations from here...
8920         * modules/memchr (configure.ac): ... to here.
8921
8922 2011-05-21  Bruno Haible  <bruno@clisp.org>
8923
8924         mbtowc: Move AC_LIBOBJ invocations to module description.
8925         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8926         invocations from here...
8927         * modules/mbtowc (configure.ac): ... to here.
8928
8929 2011-05-21  Bruno Haible  <bruno@clisp.org>
8930
8931         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8932         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8933         gl_PREREQ_MBSRTOWCS invocations from here...
8934         * modules/mbsrtowcs (configure.ac): ... to here.
8935
8936 2011-05-21  Bruno Haible  <bruno@clisp.org>
8937
8938         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8939         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8940         gl_PREREQ_MBSNRTOWCS invocations from here...
8941         * modules/mbsnrtowcs (configure.ac): ... to here.
8942
8943 2011-05-21  Bruno Haible  <bruno@clisp.org>
8944
8945         mbsinit: Move AC_LIBOBJ invocations to module description.
8946         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8947         invocations from here...
8948         * modules/mbsinit (configure.ac): ... to here.
8949
8950 2011-05-21  Bruno Haible  <bruno@clisp.org>
8951
8952         mbrlen: Move AC_LIBOBJ invocations to module description.
8953         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8954         invocations from here...
8955         * modules/mbrlen (configure.ac): ... to here.
8956
8957 2011-05-21  Bruno Haible  <bruno@clisp.org>
8958
8959         mbrtowc: Respect rules for use of AC_LIBOBJ.
8960         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8961         invocations from here...
8962         * modules/mbrtowc (configure.ac): ... to here.
8963
8964 2011-05-21  Bruno Haible  <bruno@clisp.org>
8965
8966         malloc-*: Move AC_LIBOBJ invocations to module description.
8967         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8968         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8969         AC_LIBOBJ invocations from here...
8970         * modules/malloc-gnu (configure.ac): ... to here.
8971         * modules/malloc-posix (configure.ac): ... and here.
8972
8973 2011-05-21  Bruno Haible  <bruno@clisp.org>
8974
8975         lstat, openat: Respect rules for use of AC_LIBOBJ.
8976         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8977         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8978         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8979         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8980         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8981         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8982         here.
8983         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8984
8985 2011-05-21  Bruno Haible  <bruno@clisp.org>
8986
8987         lseek: Move AC_LIBOBJ invocations to module description.
8988         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8989         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8990         * modules/lseek (configure.ac): ... to here.
8991
8992 2011-05-21  Bruno Haible  <bruno@clisp.org>
8993
8994         linkat: Move AC_LIBOBJ invocations to module description.
8995         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8996         here...
8997         * modules/linkat (configure.ac): ... to here.
8998
8999 2011-05-21  Bruno Haible  <bruno@clisp.org>
9000
9001         link: Respect rules for use of AC_LIBOBJ.
9002         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9003         * modules/link (configure.ac): ... to here.
9004
9005 2011-05-21  Bruno Haible  <bruno@clisp.org>
9006
9007         lchown: Move AC_LIBOBJ invocations to module description.
9008         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9009         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9010         * modules/lchown (configure.ac): ... to here.
9011
9012 2011-05-21  Bruno Haible  <bruno@clisp.org>
9013
9014         iswctype: Move AC_LIBOBJ invocations to module description.
9015         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9016         here...
9017         * modules/iswctype (configure.ac): ... to here.
9018
9019 2011-05-21  Bruno Haible  <bruno@clisp.org>
9020
9021         iswblank: Move AC_LIBOBJ invocations to module description.
9022         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9023         here...
9024         * modules/iswblank (configure.ac): ... to here.
9025
9026 2011-05-21  Bruno Haible  <bruno@clisp.org>
9027
9028         atanl: Move AC_LIBOBJ invocations to module description.
9029         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9030         * modules/atanl (configure.ac): ... to here.
9031
9032 2011-05-21  Bruno Haible  <bruno@clisp.org>
9033
9034         acosl: Move AC_LIBOBJ invocations to module description.
9035         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9036         * modules/acosl (configure.ac): ... to here.
9037
9038 2011-05-21  Bruno Haible  <bruno@clisp.org>
9039
9040         asinl: Respect rules for use of AC_LIBOBJ.
9041         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9042         * modules/asinl (configure.ac): ... to here.
9043
9044 2011-05-21  Bruno Haible  <bruno@clisp.org>
9045
9046         tanl: Move AC_LIBOBJ invocations to module description.
9047         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9048         * modules/tanl (configure.ac): ... to here.
9049
9050 2011-05-21  Bruno Haible  <bruno@clisp.org>
9051
9052         cosl: Move AC_LIBOBJ invocations to module description.
9053         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9054         * modules/cosl (configure.ac): ... to here.
9055
9056 2011-05-21  Bruno Haible  <bruno@clisp.org>
9057
9058         sinl: Move AC_LIBOBJ invocations to module description.
9059         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9060         * modules/sinl (configure.ac): ... to here.
9061
9062 2011-05-21  Bruno Haible  <bruno@clisp.org>
9063
9064         logl: Move AC_LIBOBJ invocations to module description.
9065         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9066         * modules/logl (configure.ac): ... to here.
9067
9068 2011-05-21  Bruno Haible  <bruno@clisp.org>
9069
9070         expl: Move AC_LIBOBJ invocations to module description.
9071         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9072         * modules/expl (configure.ac): ... to here.
9073
9074 2011-05-21  Bruno Haible  <bruno@clisp.org>
9075
9076         roundl: Move AC_LIBOBJ invocations to module description.
9077         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9078         * modules/roundl (configure.ac): ... to here.
9079
9080 2011-05-21  Bruno Haible  <bruno@clisp.org>
9081
9082         round: Move AC_LIBOBJ invocations to module description.
9083         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9084         * modules/round (configure.ac): ... to here.
9085
9086 2011-05-21  Bruno Haible  <bruno@clisp.org>
9087
9088         roundf: Move AC_LIBOBJ invocations to module description.
9089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9090         * modules/roundf (configure.ac): ... to here.
9091
9092 2011-05-21  Bruno Haible  <bruno@clisp.org>
9093
9094         truncl: Move AC_LIBOBJ invocations to module description.
9095         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9096         * modules/truncl (configure.ac): ... to here.
9097
9098 2011-05-21  Bruno Haible  <bruno@clisp.org>
9099
9100         trunc: Move AC_LIBOBJ invocations to module description.
9101         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9102         * modules/trunc (configure.ac): ... to here.
9103
9104 2011-05-21  Bruno Haible  <bruno@clisp.org>
9105
9106         truncf: Move AC_LIBOBJ invocations to module description.
9107         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9108         * modules/truncf (configure.ac): ... to here.
9109
9110 2011-05-21  Bruno Haible  <bruno@clisp.org>
9111
9112         ceill: Move AC_LIBOBJ invocations to module description.
9113         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9114         * modules/ceill (configure.ac): ... to here.
9115
9116 2011-05-21  Bruno Haible  <bruno@clisp.org>
9117
9118         ceil: Move AC_LIBOBJ invocations to module description.
9119         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9120         * modules/ceil (configure.ac): ... to here.
9121
9122 2011-05-21  Bruno Haible  <bruno@clisp.org>
9123
9124         ceilf: Move AC_LIBOBJ invocations to module description.
9125         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9126         * modules/ceilf (configure.ac): ... to here.
9127
9128 2011-05-21  Bruno Haible  <bruno@clisp.org>
9129
9130         floorl: Respect rules for use of AC_LIBOBJ.
9131         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9132         * modules/floorl (configure.ac): ... to here.
9133
9134 2011-05-21  Bruno Haible  <bruno@clisp.org>
9135
9136         floor: Respect rules for use of AC_LIBOBJ.
9137         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9138         * modules/floor (configure.ac): ... to here.
9139
9140 2011-05-21  Bruno Haible  <bruno@clisp.org>
9141
9142         floorf: Move AC_LIBOBJ invocations to module description.
9143         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9144         * modules/floorf (configure.ac): ... to here.
9145
9146 2011-05-20  Bruno Haible  <bruno@clisp.org>
9147
9148         sqrtl: Respect rules for use of AC_LIBOBJ.
9149         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9150         * modules/sqrtl (configure.ac): ... to here.
9151
9152 2011-05-20  Bruno Haible  <bruno@clisp.org>
9153
9154         ldexpl: Respect rules for use of AC_LIBOBJ.
9155         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9156         * modules/ldexpl (configure.ac): ... to here.
9157
9158 2011-05-20  Bruno Haible  <bruno@clisp.org>
9159
9160         frexpl*: Respect rules for use of AC_LIBOBJ.
9161         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9162         invocation from here...
9163         * modules/frexpl (configure.ac): ... to here.
9164         * modules/frexpl-nolibm (configure.ac): ... and here.
9165
9166 2011-05-20  Bruno Haible  <bruno@clisp.org>
9167
9168         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9169         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9170         invocation from here...
9171         * modules/frexp (configure.ac): ... to here.
9172         * modules/frexp-nolibm (configure.ac): ... and here.
9173
9174 2011-05-20  Bruno Haible  <bruno@clisp.org>
9175
9176         isnan: Respect rules for use of AC_LIBOBJ.
9177         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9178         invocations here.
9179         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9180         REPLACE_ISNAN.
9181         * modules/isnand (configure.ac): Likewise.
9182         * modules/isnanl (configure.ac): Likewise.
9183
9184 2011-05-20  Bruno Haible  <bruno@clisp.org>
9185
9186         isnanl*: Respect rules for use of AC_LIBOBJ.
9187         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9188         invocation from here...
9189         * modules/isnanl (configure.ac): ... to here.
9190         * modules/isnanl-nolibm (configure.ac): ... and here.
9191
9192 2011-05-20  Bruno Haible  <bruno@clisp.org>
9193
9194         isnand*: Move AC_LIBOBJ invocations to module description.
9195         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9196         invocation from here...
9197         * modules/isnand (configure.ac): ... to here.
9198         * modules/isnand-nolibm (configure.ac): ... and here.
9199
9200 2011-05-20  Bruno Haible  <bruno@clisp.org>
9201
9202         isnanf*: Move AC_LIBOBJ invocations to module description.
9203         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9204         invocation from here...
9205         * modules/isnanf (configure.ac): ... to here.
9206         * modules/isnanf-nolibm (configure.ac): ... and here.
9207
9208 2011-05-20  Bruno Haible  <bruno@clisp.org>
9209
9210         isnan*: Separate the AC_LIBOBJ invocations.
9211         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9212         AC_LIBOBJ invocation.
9213         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9214         here.
9215         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9216         AC_LIBOBJ invocation.
9217         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9218         here.
9219         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9220         AC_LIBOBJ invocation.
9221         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9222         here.
9223         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9224
9225 2011-05-08  Bruno Haible  <bruno@clisp.org>
9226
9227         isinf: Move AC_LIBOBJ invocations to module description.
9228         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9229         * modules/isinf (configure.ac): ... to here.
9230
9231 2011-05-08  Bruno Haible  <bruno@clisp.org>
9232
9233         isfinite: Move AC_LIBOBJ invocations to module description.
9234         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9235         * modules/isfinite (configure.ac): ... to here.
9236
9237 2011-05-08  Bruno Haible  <bruno@clisp.org>
9238
9239         isblank: Move AC_LIBOBJ invocations to module description.
9240         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9241         here...
9242         * modules/isblank (configure.ac): ... to here.
9243
9244 2011-05-08  Bruno Haible  <bruno@clisp.org>
9245
9246         isapipe: Move AC_LIBOBJ invocations to module description.
9247         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9248         gl_PREREQ_ISAPIPE invocations from here...
9249         * modules/isapipe (configure.ac): ... to here.
9250         (Depends-on): Update condition.
9251
9252 2011-05-08  Bruno Haible  <bruno@clisp.org>
9253
9254         ioctl: Move AC_LIBOBJ invocations to module description.
9255         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9256         invocations from here...
9257         * modules/ioctl (configure.ac): ... to here.
9258         (Depends-on): Update condition.
9259
9260 2011-05-08  Bruno Haible  <bruno@clisp.org>
9261
9262         imaxdiv: Move AC_LIBOBJ invocations to module description.
9263         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9264         invocations from here...
9265         * modules/imaxdiv (configure.ac): ... to here.
9266
9267 2011-05-08  Bruno Haible  <bruno@clisp.org>
9268
9269         imaxabs: Move AC_LIBOBJ invocations to module description.
9270         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9271         invocations from here...
9272         * modules/imaxabs (configure.ac): ... to here.
9273
9274 2011-05-08  Bruno Haible  <bruno@clisp.org>
9275
9276         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9277         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9278         AC_LIBOBJ invocations from here...
9279         * modules/getaddrinfo (configure.ac): ... to here.
9280         (Depends-on): Add conditions.
9281
9282 2011-05-08  Bruno Haible  <bruno@clisp.org>
9283
9284         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9285         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9286         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9287         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9288         (gl_PREREQ_INET_PTON): ... from here.
9289         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9290         gl_PREREQ_INET_PTON here.
9291         (Depends-on): Update condition.
9292
9293 2011-05-08  Bruno Haible  <bruno@clisp.org>
9294
9295         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9296         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9297         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9298         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9299         (gl_PREREQ_INET_NTOP): ... from here.
9300         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9301         gl_PREREQ_INET_NTOP here.
9302         (Depends-on): Update condition.
9303
9304 2011-05-08  Bruno Haible  <bruno@clisp.org>
9305
9306         iconv_open: Move AC_LIBOBJ invocations to module description.
9307         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9308         AC_LIBOBJ invocations from here...
9309         * modules/iconv_open (configure.ac): ... to here.
9310
9311 2011-05-08  Bruno Haible  <bruno@clisp.org>
9312
9313         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9314         If module 'iconv_open' is among the main modules and module
9315         'iconv_open-utf' is among the tests dependencies, then
9316         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9317         return the special iconv_t values. Therefore iconv() and iconv_close()
9318         must support these special iconv_t values, already in lib, not only in
9319         tests.
9320         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9321         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9322         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9323         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9324         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9325         (Depends-on): Add the dependencies of iconv_open-utf.
9326         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9327         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9328         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9329
9330 2011-05-08  Bruno Haible  <bruno@clisp.org>
9331
9332         group-member: Move AC_LIBOBJ invocations to module description.
9333         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9334         gl_PREREQ_GROUP_MEMBER invocations from here...
9335         * modules/group-member (configure.ac): ... to here.
9336
9337 2011-05-08  Bruno Haible  <bruno@clisp.org>
9338
9339         grantpt: Move AC_LIBOBJ invocations to module description.
9340         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9341         invocations from here...
9342         * modules/grantpt (configure.ac): ... to here.
9343
9344 2011-05-08  Bruno Haible  <bruno@clisp.org>
9345
9346         glob: Move AC_LIBOBJ invocations to module description.
9347         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9348         from here...
9349         * modules/glob (configure.ac): ... to here.
9350
9351 2011-05-08  Bruno Haible  <bruno@clisp.org>
9352
9353         getusershell: Move AC_LIBOBJ invocations to module description.
9354         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9355         Move AC_LIBOBJ invocation from here...
9356         * modules/getusershell (configure.ac): ... to here.
9357         (Depends-on): Update condition.
9358
9359 2011-05-08  Bruno Haible  <bruno@clisp.org>
9360
9361         gettimeofday: Move AC_LIBOBJ invocations to module description.
9362         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9363         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9364         gl_PREREQ_GETTIMEOFDAY invocations from here...
9365         * modules/gettimeofday (configure.ac): ... to here.
9366
9367 2011-05-08  Bruno Haible  <bruno@clisp.org>
9368
9369         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9370         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9371         just gl_FUNC_TZSET.
9372         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9373         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9375         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9376
9377 2011-05-08  Bruno Haible  <bruno@clisp.org>
9378
9379         getsubopt: Move AC_LIBOBJ invocations to module description.
9380         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9381         gl_PREREQ_GETSUBOPT invocations from here...
9382         * modules/getsubopt (configure.ac): ... to here.
9383
9384 2011-05-08  Bruno Haible  <bruno@clisp.org>
9385
9386         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9387         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9388         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9389         * modules/getpass-gnu (configure.ac): ... to here.
9390
9391 2011-05-08  Bruno Haible  <bruno@clisp.org>
9392
9393         getpass: Move AC_LIBOBJ invocations to module description.
9394         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9395         gl_PREREQ_GETPASS invocations from here...
9396         * modules/getpass (configure.ac): ... to here.
9397
9398 2011-05-08  Bruno Haible  <bruno@clisp.org>
9399
9400         getpagesize: Move AC_LIBOBJ invocations to module description.
9401         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9402         from here...
9403         * modules/getpagesize (configure.ac): ... to here.
9404
9405 2011-05-08  Bruno Haible  <bruno@clisp.org>
9406
9407         getopt: Move AC_LIBOBJ invocations to module description.
9408         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9409         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9410         invocations from here...
9411         * modules/getopt-gnu (configure.ac): ... to here.
9412         * modules/getopt-posix (configure.ac): ... and here.
9413         (Depends-on): Update condition.
9414
9415 2011-05-08  Bruno Haible  <bruno@clisp.org>
9416
9417         getopt, argp: Respect rules for use of AC_LIBOBJ.
9418         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9419         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9420         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9421         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9422
9423 2011-05-08  Bruno Haible  <bruno@clisp.org>
9424
9425         getlogin_r: Move AC_LIBOBJ invocations to module description.
9426         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9427         gl_PREREQ_GETLOGIN_R invocations from here...
9428         * modules/getlogin_r (configure.ac): ... to here.
9429
9430 2011-05-08  Bruno Haible  <bruno@clisp.org>
9431
9432         getlogin: Move AC_LIBOBJ invocations to module description.
9433         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9434         here...
9435         * modules/getlogin (configure.ac): ... to here.
9436
9437 2011-05-08  Bruno Haible  <bruno@clisp.org>
9438
9439         getloadavg: Move AC_LIBOBJ invocations to module description.
9440         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9441         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9442         * modules/getloadavg (configure.ac): ... to here.
9443
9444 2011-05-08  Bruno Haible  <bruno@clisp.org>
9445
9446         gethrxtime: Move AC_LIBOBJ invocations to module description.
9447         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9448         LIB_GETHRXTIME from here...
9449         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9450         invocations from here...
9451         * modules/gethrxtime (configure.ac): ... to here.
9452
9453 2011-05-08  Bruno Haible  <bruno@clisp.org>
9454
9455         gethostname: Move AC_LIBOBJ invocations to module description.
9456         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9457         gl_PREREQ_GETHOSTNAME invocations from here...
9458         * modules/gethostname (configure.ac): ... to here.
9459
9460 2011-05-08  Bruno Haible  <bruno@clisp.org>
9461
9462         getgroups: Move AC_LIBOBJ invocations to module description.
9463         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9464         here...
9465         * modules/getgroups (configure.ac): ... to here.
9466
9467 2011-05-08  Bruno Haible  <bruno@clisp.org>
9468
9469         getdtablesize: Move AC_LIBOBJ invocations to module description.
9470         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9471         invocation from here...
9472         * modules/getdtablesize (configure.ac): ... to here.
9473
9474 2011-05-08  Bruno Haible  <bruno@clisp.org>
9475
9476         getdomainname: Move AC_LIBOBJ invocations to module description.
9477         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9478         gl_PREREQ_GETDOMAINNAME invocations from here...
9479         * modules/getdomainname (configure.ac): ... to here.
9480
9481 2011-05-08  Bruno Haible  <bruno@clisp.org>
9482
9483         getline: Move AC_LIBOBJ invocations to module description.
9484         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9485         invocations from here...
9486         * modules/getline (configure.ac): ... to here.
9487
9488 2011-05-08  Bruno Haible  <bruno@clisp.org>
9489
9490         getline: Simplify.
9491         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9492         It's already handled through the module dependency.
9493
9494 2011-05-08  Bruno Haible  <bruno@clisp.org>
9495
9496         getdelim: Move AC_LIBOBJ invocations to module description.
9497         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9498         and gl_PREREQ_GETDELIM invocations from here...
9499         * modules/getdelim (configure.ac): ... to here.
9500         (Depends-on): Fix condition.
9501
9502 2011-05-08  Bruno Haible  <bruno@clisp.org>
9503
9504         getcwd: Move AC_LIBOBJ invocations to module description.
9505         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9506         invocations from here...
9507         * modules/getcwd (configure.ac): ... to here.
9508
9509 2011-05-08  Bruno Haible  <bruno@clisp.org>
9510
9511         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9512         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9513         here...
9514         * modules/getcwd-lgpl (configure.ac): ... to here.
9515
9516 2011-05-07  Bruno Haible  <bruno@clisp.org>
9517
9518         crypto/gc: Move AC_LIBOBJ invocations to module description.
9519         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9520         * modules/crypto/gc (configure.ac): ... to here.
9521
9522 2011-05-07  Bruno Haible  <bruno@clisp.org>
9523
9524         fwriting: Move AC_LIBOBJ invocations to module description.
9525         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9526         here...
9527         * modules/fwriting (configure.ac): ... to here.
9528
9529 2011-05-07  Bruno Haible  <bruno@clisp.org>
9530
9531         fwritable: Move AC_LIBOBJ invocations to module description.
9532         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9533         here...
9534         * modules/fwritable (configure.ac): ... to here.
9535
9536 2011-05-07  Bruno Haible  <bruno@clisp.org>
9537
9538         futimens: Move AC_LIBOBJ invocations to module description.
9539         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9540         here...
9541         * modules/futimens (configure.ac): ... to here.
9542
9543 2011-05-07  Bruno Haible  <bruno@clisp.org>
9544
9545         ftruncate: Move AC_LIBOBJ invocations to module description.
9546         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9547         gl_PREREQ_FTRUNCATE invocations from here...
9548         * modules/ftruncate (configure.ac): ... to here.
9549
9550 2011-05-07  Bruno Haible  <bruno@clisp.org>
9551
9552         fsync: Move AC_LIBOBJ invocations to module description.
9553         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9554         invocations from here...
9555         * modules/fsync (configure.ac): ... to here.
9556
9557 2011-05-07  Bruno Haible  <bruno@clisp.org>
9558
9559         fsusage: Move AC_LIBOBJ invocations to module description.
9560         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9561         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9562         * modules/fsusage (configure.ac): ... to here.
9563
9564 2011-05-07  Bruno Haible  <bruno@clisp.org>
9565
9566         freopen: Move AC_LIBOBJ invocations to module description.
9567         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9568         invocations from here...
9569         * modules/freopen (configure.ac): ... to here.
9570
9571 2011-05-07  Bruno Haible  <bruno@clisp.org>
9572
9573         free: Move AC_LIBOBJ invocations to module description.
9574         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9575         invocations from here...
9576         * modules/free (configure.ac): ... to here.
9577
9578 2011-05-07  Bruno Haible  <bruno@clisp.org>
9579
9580         freadable: Move AC_LIBOBJ invocations to module description.
9581         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9582         here...
9583         * modules/freadable (configure.ac): ... to here.
9584
9585 2011-05-07  Bruno Haible  <bruno@clisp.org>
9586
9587         fpurge: Move AC_LIBOBJ invocations to module description.
9588         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9589         invocations from here...
9590         * modules/fpurge (configure.ac): ... to here.
9591
9592 2011-05-07  Bruno Haible  <bruno@clisp.org>
9593
9594         fpending: Move AC_LIBOBJ invocations to module description.
9595         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9596         gl_FUNC_FPENDING.
9597         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9598         invocations from here...
9599         * modules/fpending (configure.ac): ... to here.
9600
9601 2011-05-07  Bruno Haible  <bruno@clisp.org>
9602
9603         fopen: Move AC_LIBOBJ invocations to module description.
9604         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9605         invocations from here...
9606         * modules/fopen (configure.ac): ... to here.
9607
9608 2011-05-07  Bruno Haible  <bruno@clisp.org>
9609
9610         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9611         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9612         gl_FUNC_FNMATCH_POSIX.
9613         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9614         invocations from here...
9615         * modules/fnmatch (configure.ac): ... to here.
9616         * modules/fnmatch-gnu (configure.ac): ... and here.
9617
9618 2011-05-07  Bruno Haible  <bruno@clisp.org>
9619
9620         flock: Move AC_LIBOBJ invocations to module description.
9621         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9622         invocations from here...
9623         * modules/flock (configure.ac): ... to here.
9624
9625 2011-05-07  Bruno Haible  <bruno@clisp.org>
9626
9627         fileblocks: Move AC_LIBOBJ invocations to module description.
9628         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9629         gl_PREREQ_FILEBLOCKS invocations from here...
9630         * modules/fileblocks (configure.ac): ... to here.
9631
9632 2011-05-06  Bruno Haible  <bruno@clisp.org>
9633
9634         fflush: Move AC_LIBOBJ invocations to module description.
9635         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9636         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9637         invocations from here...
9638         * modules/fflush (configure.ac): ... to here.
9639
9640 2011-05-06  Bruno Haible  <bruno@clisp.org>
9641
9642         fdopendir: Move AC_LIBOBJ invocations to module description.
9643         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9644         here...
9645         * modules/fdopendir (configure.ac): ... to here.
9646         (Depends-on): Improve conditions.
9647
9648 2011-05-06  Bruno Haible  <bruno@clisp.org>
9649
9650         _Exit: Move AC_LIBOBJ invocations to module description.
9651         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9652         invocations from here...
9653         * modules/_Exit (configure.ac): ... to here.
9654
9655 2011-05-21  Bruno Haible  <bruno@clisp.org>
9656
9657         euidaccess: Respect rules for use of AC_LIBOBJ.
9658         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9659         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9660         from here...
9661         * modules/euidaccess (configure.ac): ... to here.
9662
9663 2011-05-06  Bruno Haible  <bruno@clisp.org>
9664
9665         error: Move AC_LIBOBJ invocations to module description.
9666         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9667         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9668         invocations from here...
9669         * modules/error (configure.ac): ... to here.
9670
9671 2011-05-06  Bruno Haible  <bruno@clisp.org>
9672
9673         duplocale: Move AC_LIBOBJ invocations to module description.
9674         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9675         gl_PREREQ_DUPLOCALE invocations from here...
9676         * modules/duplocale (configure.ac): ... to here.
9677
9678 2011-05-05  Bruno Haible  <bruno@clisp.org>
9679
9680         dirfd: Move AC_LIBOBJ invocations to module description.
9681         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9682         gl_FUNC_DIRFD.
9683         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9684         here...
9685         * modules/dirfd (configure.ac): ... to here.
9686         (Depends-on): Fix condition.
9687
9688 2011-05-05  Bruno Haible  <bruno@clisp.org>
9689
9690         chown: Respect rules for use of AC_LIBOBJ.
9691         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9692         * modules/chown (configure.ac): ... to here.
9693
9694 2011-05-05  Bruno Haible  <bruno@clisp.org>
9695
9696         chdir-long: Move AC_LIBOBJ invocations to module description.
9697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9698         gl_PREREQ_CHDIR_LONG invocations from here...
9699         * modules/chdir-long (configure.ac): ... to here.
9700
9701 2011-05-05  Bruno Haible  <bruno@clisp.org>
9702
9703         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9704         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9705         from here...
9706         * modules/canonicalize-lgpl (configure.ac): ... to here.
9707
9708 2011-05-05  Bruno Haible  <bruno@clisp.org>
9709
9710         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9711         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9712         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9713         REPLACE_CALLOC.
9714         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9715         * modules/calloc-gnu (configure.ac): Likewise.
9716
9717 2011-05-05  Bruno Haible  <bruno@clisp.org>
9718
9719         btowc: Move AC_LIBOBJ invocations to module description.
9720         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9721         invocations from here...
9722         * modules/btowc (configure.ac): ... to here.
9723
9724 2011-05-21  Bruno Haible  <bruno@clisp.org>
9725
9726         atexit: Move AC_LIBOBJ invocations to module description.
9727         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9728         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9729         here...
9730         * modules/atexit (configure.ac): ... to here.
9731
9732 2011-05-05  Bruno Haible  <bruno@clisp.org>
9733
9734         atoll: Move AC_LIBOBJ invocations to module description.
9735         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9736         invocations from here...
9737         * modules/atoll (configure.ac): ... to here.
9738
9739 2011-05-05  Bruno Haible  <bruno@clisp.org>
9740
9741         argz: Move AC_LIBOBJ invocations to module description.
9742         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9743         * modules/argz (configure.ac): ... to here.
9744
9745 2011-05-05  Bruno Haible  <bruno@clisp.org>
9746
9747         alphasort: Move AC_LIBOBJ invocations to module description.
9748         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9749         gl_PREREQ_ALPHASORT invocations from here...
9750         * modules/alphasort (configure.ac): ... to here.
9751
9752 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9753
9754         verify: new macro verify_expr; verify_true deprecated
9755         * NEWS: Mention this.
9756         * doc/verify.texi (Compile-time Assertions): Document this.
9757         * lib/verify.h (verify_true): Deprecate.
9758         (verify_expr): New macro.
9759         * tests/test-verify.c (function): Test verify_expr.
9760
9761 2011-06-14  Jim Meyering  <meyering@redhat.com>
9762
9763         init.sh: give more portable redirection-related advice in a comment
9764         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9765         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9766         for lots of discussion.  Stefano Lattarini suggested the solution
9767         of putting "9>&2" after the command.  Reported by Bruno Haible.
9768
9769 2011-06-13  Bruno Haible  <bruno@clisp.org>
9770
9771         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9772         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9773         'none'.
9774
9775 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9776
9777         ftoastr: use strtof only if HAVE_STRTOF
9778         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9780         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9781         * modules/ftoastr (configure.ac): Check for strtof.
9782
9783 2011-06-13  Bruno Haible  <bruno@clisp.org>
9784
9785         gnulib-tool: Addendum to 2011-06-08 commit.
9786         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9787         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9788
9789 2011-06-13  Bruno Haible  <bruno@clisp.org>
9790
9791         fseeko: Provide a non-inline replacement of fseek().
9792         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9793         * modules/fseeko (Depends-on): Add fseek.
9794         * modules/fseek (License): Change to LGPLv2+.
9795
9796 2011-06-13  Bruno Haible  <bruno@clisp.org>
9797
9798         ftello: Provide a non-inline replacement of ftell().
9799         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9800         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9801         not have ftello() (such as on mingw).
9802         * modules/ftello (Depends-on): Add ftell.
9803         * modules/ftell (License): Change to LGPLv2+.
9804
9805 2011-05-07  Bruno Haible  <bruno@clisp.org>
9806
9807         ftell: Move AC_LIBOBJ invocations to module description.
9808         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9809         * modules/ftell (configure.ac): ... to here.
9810
9811 2011-05-07  Bruno Haible  <bruno@clisp.org>
9812
9813         ftello: Respect rules for use of AC_LIBOBJ.
9814         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9815         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9816         here...
9817         * modules/ftello (configure.ac): ... to here.
9818
9819 2011-05-07  Bruno Haible  <bruno@clisp.org>
9820
9821         fseeko: Simplify.
9822         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9823         (gl_FUNC_FSEEKO): Inline it here.
9824
9825 2011-05-07  Bruno Haible  <bruno@clisp.org>
9826
9827         fseek: Move AC_LIBOBJ invocations to module description.
9828         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9829         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9830         * modules/fseek (configure.ac): ... to here.
9831
9832 2011-05-07  Bruno Haible  <bruno@clisp.org>
9833
9834         fseek: Respect rules for use of AC_LIBOBJ.
9835         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9836         here...
9837         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9838
9839 2011-05-07  Bruno Haible  <bruno@clisp.org>
9840
9841         fseeko: Respect rules for use of AC_LIBOBJ.
9842         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9843         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9844         here...
9845         * modules/fseeko (configure.ac): ... to here.
9846
9847 2011-06-13  Bruno Haible  <bruno@clisp.org>
9848
9849         gnulib-tool: Allow comments in the 'Depends-on' section.
9850         * doc/gnulib.texi (Module description): Mention comment syntax in the
9851         Depends-on section.
9852         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9853
9854 2011-06-13  Bruno Haible  <bruno@clisp.org>
9855
9856         file-set.h: guard __attibute__ use, now that it's not always defined
9857         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9858         versions that support it.  This fixes a coreutils build failure with
9859         the vendor cc on HP-UX 11.31.
9860
9861 2011-06-12  Bruno Haible  <bruno@clisp.org>
9862
9863         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9864         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9865         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9866         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9867         (acl, aclsort): New declarations.
9868         (aclv_nontrivial): New declaration.
9869         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9870         (file_has_acl): Read also the second kind of HP-UX ACLs.
9871         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9872         kind of HP-UX ACLs if the first kind fails.
9873         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9874         second kind of HP-UX ACLs.
9875         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9876         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9877         agree.
9878         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9879         hpuxjfs.
9880         Handle hpuxjfs.
9881         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9882         hpuxjfs.
9883         Handle hpuxjfs.
9884         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9885         (func_test_same_acls): Use both lsacl and getacl.
9886         Handle hpuxjfs.
9887         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9888         (func_test_same_acls): Use both lsacl and getacl.
9889         Handle hpuxjfs.
9890
9891 2011-06-12  Bruno Haible  <bruno@clisp.org>
9892
9893         acl: Complete the 2010-08-10 fix.
9894         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9895         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9896         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9897         explicitly.
9898         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9899         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9900
9901 2011-06-12  Bruno Haible  <bruno@clisp.org>
9902
9903         spawn-pipe tests: Comments.
9904         * tests/test-spawn-pipe-child.c (main): Update comment.
9905         Reported by James Youngman <jay@gnu.org>.
9906
9907 2011-06-11  James Youngman  <jay@gnu.org>
9908
9909         New module 'stat-size'.
9910         * modules/stat-size: New module.  Provides macros for accessing
9911         file size information in instances of struct stat.  Depends on the
9912         fileblocks module because it calls st_blocks.
9913         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9914         * doc/gnulib.texi: Include stat-size.texi.
9915         * doc/stat-size.texi: Documentation for this module.
9916         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9917         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9918         AC_STRUCT_ST_BLOCKS.
9919
9920 2011-06-09  Bruno Haible  <bruno@clisp.org>
9921
9922         thread: Support pthreads-win32.
9923         * lib/glthread/thread.h (gl_thread_self): Define differently on
9924         pthreads-win32.
9925         (gl_null_thread): New declaration.
9926         (gl_thread_self_pointer): New macro.
9927         * lib/glthread/thread.c (gl_null_thread): New constant.
9928         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9929         gl_thread_self.
9930         * tests/test-tls.c: Likewise.
9931         Suggested by Paul Eggert. Reported by Eric Blake.
9932
9933 2011-06-09  Bruno Haible  <bruno@clisp.org>
9934
9935         thread: Fix confusion between NULL and 0.
9936         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9937         Reported by Paul Eggert.
9938
9939 2011-06-09  Bruno Haible  <bruno@clisp.org>
9940
9941         spawn-pipe tests: Avoid test failure on HP-UX 11.
9942         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9943         is closed.
9944
9945 2011-06-09  Bruno Haible  <bruno@clisp.org>
9946
9947         acl tests: Fix compilation error on HP-UX 11.
9948         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9949
9950 2011-06-09  Bruno Haible  <bruno@clisp.org>
9951
9952         rmdir: Avoid test failure on HP-UX 10.20.
9953         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9954         EEXIST.
9955
9956 2011-06-08  Eric Blake  <eblake@redhat.com>
9957
9958         perror: fix test on mingw
9959         * modules/perror-tests (Depends-on): Add dup2.
9960
9961         strerror_r-posix: fix on MacOS
9962         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9963         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9964         logic bug.
9965         * lib/strerror_r.c (strerror_r): Fix the bug.
9966         * lib/strerror.c (strerror): Likewise.
9967         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9968         problem.
9969         * doc/posix-functions/strerror.texi (strerror): Likewise.
9970         * doc/posix-functions/perror.texi (perror): Likewise.
9971         * tests/test-strerror.c (main): Enhance test.
9972         * tests/test-strerror_r.c (main): Likewise.
9973
9974 2011-06-08  Bruno Haible  <bruno@clisp.org>
9975
9976         gnulib-tool: Better isolation between different gnulib-tool invocations.
9977         * gnulib-tool: New option --witness-c-macro.
9978         (witness_c_macro): New variable.
9979         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9980         AM_CPPFLAGS define it as a C macro.
9981         (func_emit_tests_Makefile_am): Likewise.
9982         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9983         read it from there.
9984         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9985         m4_define, not AC_DEFUN.
9986         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9987         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9988         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9989         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9990         s|...|...|, to substitute the values of the GNULIB_* module indicator
9991         variables.
9992         * modules/dirent (Makefile.am): Likewise.
9993         * modules/fcntl-h (Makefile.am): Likewise.
9994         * modules/iconv-h (Makefile.am): Likewise.
9995         * modules/langinfo (Makefile.am): Likewise.
9996         * modules/locale (Makefile.am): Likewise.
9997         * modules/math (Makefile.am): Likewise.
9998         * modules/netdb (Makefile.am): Likewise.
9999         * modules/poll-h (Makefile.am): Likewise.
10000         * modules/pty (Makefile.am): Likewise.
10001         * modules/search (Makefile.am): Likewise.
10002         * modules/signal (Makefile.am): Likewise.
10003         * modules/spawn (Makefile.am): Likewise.
10004         * modules/stdio (Makefile.am): Likewise.
10005         * modules/stdlib (Makefile.am): Likewise.
10006         * modules/string (Makefile.am): Likewise.
10007         * modules/sys_ioctl (Makefile.am): Likewise.
10008         * modules/sys_select (Makefile.am): Likewise.
10009         * modules/sys_socket (Makefile.am): Likewise.
10010         * modules/sys_stat (Makefile.am): Likewise.
10011         * modules/sys_times (Makefile.am): Likewise.
10012         * modules/sys_utsname (Makefile.am): Likewise.
10013         * modules/sys_wait (Makefile.am): Likewise.
10014         * modules/termios (Makefile.am): Likewise.
10015         * modules/time (Makefile.am): Likewise.
10016         * modules/unistd (Makefile.am): Likewise.
10017         * modules/wchar (Makefile.am): Likewise.
10018
10019 2011-06-08  Eric Blake  <eblake@redhat.com>
10020
10021         strerror: simplify replacement
10022         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10023         * modules/strerror (configure.ac): No prereqs needed here...
10024         * modules/strerror-override (configure.ac): ...but this needs it.
10025         (Files): Add file for needed prereq macro.
10026
10027 2011-06-08  Bruno Haible  <bruno@clisp.org>
10028
10029         strerror_r-posix: Tweaks.
10030         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10031         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10032         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10033         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10034         (gl_FUNC_STRERROR_R): ... to here.
10035         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10036
10037 2011-06-07  Eric Blake  <eblake@redhat.com>
10038
10039         perror: document fixed bugs
10040         * doc/posix-functions/perror.texi (perror): Document recent
10041         patches.
10042
10043 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10044
10045         stat-time: get_stat_birthtime failure is better-defined
10046         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10047         return a timestamp whose tv_sec and tv_nsec values are both -1.
10048         Previously, the spec said only that the tv_nsec value was negative.
10049         This upward-compatible change simplifies GNU tar a bit.
10050
10051 2011-06-07  Eric Blake  <eblake@redhat.com>
10052
10053         strerror_r-posix: work around cygwin 1.7.9
10054         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10055         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10056         bug without replacing strerror_r.
10057         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10058         strerror_r is buggy, but without requiring strerror_r compilation.
10059         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10060
10061         test-perror: relax test to ignore cygwin bug
10062         * tests/test-perror2.c (main): Relax test on requiring detection
10063         of stream errors, and use unbuffered stream.
10064         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10065         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10066         * doc/posix-functions/fputc.texi (fputc): Likewise.
10067         * doc/posix-functions/fputs.texi (fputs): Likewise.
10068         * doc/posix-functions/fputws.texi (fputws): Likewise.
10069         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10070         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10071         * doc/posix-functions/getopt.texi (getopt): Likewise.
10072         * doc/posix-functions/perror.texi (perror): Likewise.
10073         * doc/posix-functions/printf.texi (printf): Likewise.
10074         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10075         * doc/posix-functions/psignal.texi (psignal): Likewise.
10076         * doc/posix-functions/putc.texi (putc): Likewise.
10077         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10078         Likewise.
10079         * doc/posix-functions/putchar.texi (putchar): Likewise.
10080         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10081         Likewise.
10082         * doc/posix-functions/puts.texi (puts): Likewise.
10083         * doc/posix-functions/putwc.texi (putwc): Likewise.
10084         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10085         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10086         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10087         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10088         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10089         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10090         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10091         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10092
10093 2011-05-22  Bruno Haible  <bruno@clisp.org>
10094
10095         strerror: Move AC_LIBOBJ invocations to module description.
10096         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10097         gl_PREREQ_STRERROR invocations from here...
10098         * modules/strerror (configure.ac): ... to here.
10099
10100 2011-05-21  Bruno Haible  <bruno@clisp.org>
10101
10102         perror: Use common idiom.
10103         * modules/perror (configure.ac): Reorder statements.
10104
10105 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10106
10107         tests: fix usage message in 'mktempd_'
10108         * tests/init.sh (mktempd_): In the usage message, use literal
10109         'mktempd_', not '$ME' (which is even undefined), as the name of
10110         the subroutine.
10111
10112 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10113
10114         tests init: new function 'fatal_', for hard errors
10115         Before this patch, the only way offered by tests/init.sh to
10116         properly signal a hard error was the `framework_failure_'
10117         function.  But the error message issued by that function,
10118         as its name would suggest, refers to a set-up failure in the
10119         testsuite, while hard errors can obviously also be due to
10120         other reasons.  The best way to fix this inconsistency is to
10121         introduce a new function with a more general error message.
10122         * tests/init.sh (fatal_): New function.
10123
10124 2011-06-06  Eric Blake  <eblake@redhat.com>
10125
10126         canonicalize-lgpl: use common idiom
10127         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10128         over newer POSIX -Rf.
10129         Reported by Bruno Haible.
10130
10131         canonicalize-lgpl: work around AIX realpath bug
10132         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10133         * doc/posix-functions/realpath.texi (realpath): Document it.
10134         Reported by Bruno Haible.
10135
10136         strerror: work around FreeBSD bug
10137         * lib/strerror.c (strerror): Special case 0.
10138         Reported by Bruno Haible.
10139
10140         strerror-override: avoid bloating errno module
10141         * modules/errno (Files, configure.ac): Move replacement strings...
10142         * modules/strerror-override: ...to new module.
10143         * modules/strerror (Depends-on): Add strerror-override.
10144         * modules/strerror_r-posix (Depends-on): Likewise.
10145         * MODULES.html.sh: Document new module.
10146         Reported by Bruno Haible.
10147
10148 2011-06-06  Bruno Haible  <bruno@clisp.org>
10149
10150         spawn-pipe tests: Rename program.
10151         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10152         * tests/test-spawn-pipe-child.c: Update comment.
10153         * tests/test-spawn-pipe.sh: Update.
10154         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10155
10156         spawn-pipe tests: Link the child program only against libc.
10157         * tests/test-spawn-pipe-child.c: New file, extracted from
10158         tests/test-spawn-pipe.c.
10159         (main): Expect only one argument.
10160         (is_open): New function, copied from tests/test-pipe.c.
10161         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10162         (child_main): Remove function.
10163         (test_pipe): Pass only one argument to the child program.
10164         (main): Remove child process code. Expect the child program's name as
10165         first argument.
10166         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10167         argument.
10168         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10169         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10170         test-spawn-pipe-child against no libraries.
10171
10172 2011-06-06  Bruno Haible  <bruno@clisp.org>
10173
10174         careadlinkat: Avoid mismatch between ssize_t and int.
10175         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10176         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10177
10178 2011-06-06  Jim Meyering  <meyering@redhat.com>
10179
10180         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10181         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10182         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10183
10184 2011-06-05  Bruno Haible  <bruno@clisp.org>
10185
10186         ansi-c++-opt: Interoperability with libtool.
10187         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10188         set the variable to "no", not to ":".
10189         * NEWS: Mention the change.
10190
10191 2011-06-05  Bruno Haible  <bruno@clisp.org>
10192
10193         acl: Fix test failure on AIX 7.
10194         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10195         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10196
10197 2011-06-05  Bruno Haible  <bruno@clisp.org>
10198
10199         pipe-filter-ii: Fix test failure on AIX and IRIX.
10200         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10201         with EAGAIN, retry with a smaller buffer size.
10202
10203 2011-06-05  Bruno Haible  <bruno@clisp.org>
10204
10205         localename: Fix link dependencies.
10206         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10207         * modules/localename-tests (Makefile.am): Link test-localename with
10208         $(LIBTHREAD).
10209
10210 2011-06-05  Bruno Haible  <bruno@clisp.org>
10211
10212         error: Avoid gcc warning.
10213         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10214
10215 2011-06-05  Bruno Haible  <bruno@clisp.org>
10216
10217         unsetenv: Avoid gcc warning.
10218         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10219
10220 2011-06-05  Bruno Haible  <bruno@clisp.org>
10221
10222         setenv: Avoid gcc warning.
10223         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10224
10225 2011-06-05  Bruno Haible  <bruno@clisp.org>
10226
10227         sys_select: Ensure memset is declared also on AIX 7.
10228         * lib/sys_select.in.h: Include <string.h> also on AIX.
10229         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10230         self-contained also on AIX 7.1.
10231
10232 2011-06-04  Jim Meyering  <meyering@redhat.com>
10233
10234         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10235         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10236         function name, "error".
10237         (_gl_translatable_diag_func_re): New configurable variable.
10238
10239 2011-06-04  Bruno Haible  <bruno@clisp.org>
10240
10241         getopt: Avoid gcc warning.
10242         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10243
10244 2011-06-04  Bruno Haible  <bruno@clisp.org>
10245
10246         strerror_r: Fix comments.
10247         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10248         commit.
10249
10250 2011-06-04  Bruno Haible  <bruno@clisp.org>
10251
10252         perror: Fix compilation error.
10253         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10254         Undefine fprintf, not sprintf.
10255         * modules/perror (Depends-on): Remove intprops, verify.
10256
10257 2011-06-04  Bruno Haible  <bruno@clisp.org>
10258
10259         setlocale: Enable replacement on Cygwin 1.5.
10260         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10261         Cygwin 1.5.x.
10262         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10263         LC_CTYPE category also exists on Cygwin 1.5.x.
10264
10265 2011-06-04  Bruno Haible  <bruno@clisp.org>
10266
10267         strerror-override: Don't disable symbol renamings.
10268         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10269         * lib/strerror-override.c: Include config.h.
10270         (strerror_override): Don't undefine.
10271
10272 2011-06-03  Bruno Haible  <bruno@clisp.org>
10273
10274         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10275         * lib/localename.h: Update copyright header.
10276         * lib/localename.c: Likewise.
10277         * lib/relocatable.h: Likewise.
10278         * lib/relocatable.c: Likewise.
10279
10280 2011-06-02  Bruno Haible  <bruno@clisp.org>
10281
10282         doc: Fix a module name.
10283         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10284
10285 2011-06-02  Bruno Haible  <bruno@clisp.org>
10286
10287         pipe2: Remove dependency on 'nonblocking' module.
10288         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10289         O_NONBLOCK is defined by gnulib.
10290         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10291         is zero.
10292         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10293         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10294         defined by gnulib.
10295         (get_nonblocking_flag): New function.
10296         (main): Test O_NONBLOCK flag only if it is nonzero.
10297         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10298
10299 2011-06-03  Jim Meyering  <meyering@redhat.com>
10300
10301         maint: three new prohibit-header-without-use rules
10302         Prohibit use of cloexec.h, posixver.h, same.h without use.
10303         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10304         (sc_prohibit_posixver_without_use): Likewise.
10305         (sc_prohibit_same_without_use): Likewise.
10306
10307 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10308
10309         allocator: 'die' routine is now given requested size
10310         * lib/allocator.h (struct allocator.die): New size arg.
10311         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10312         If the actual problem is an ssize_t limitation, not a size_t or
10313         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10314
10315 2011-06-01  Eric Blake  <eblake@redhat.com>
10316
10317         strerror: drop strerror_r dependency
10318         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10319         * lib/strerror-override.c (strerror_override): ...to new file.
10320         * lib/strerror-override.h: Add prototype.
10321         * lib/strerror-impl.h: Delete.
10322         * lib/strerror.c (strerror): New implementation.
10323         * modules/errno (Files): Add new files.
10324         (configure.ac): Compile new file as appropriate.
10325         * modules/strerror (Files): Drop unused file.
10326         (Depends-on): Drop strerror_r-posix.
10327         * MODULES.html.sh: Document strerror_r-posix.
10328         Requested by Sam Steingold.
10329
10330         perror: call strerror_r directly
10331         * modules/perror (Files): Drop strerror-impl.h.
10332         * lib/perror.c (perror): Use our own stack buffer, rather than
10333         calling a wrapper that uses static storage.
10334         * doc/posix-functions/perror.texi (perror): Document a limitation
10335         of our replacement.
10336
10337         strerror_r: fix includes for FreeBSD
10338         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10339         since we use abort on some platforms.
10340         Reported by Matthias Bolte.
10341
10342 2011-05-31  Bruno Haible  <bruno@clisp.org>
10343
10344         Fix link errors in tests: openat-die uses gettext-h.
10345         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10346         against $(LIBINTL).
10347         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10348         against $(LIBINTL).
10349         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10350         $(LIBINTL).
10351         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10352         against $(LIBINTL).
10353         * modules/linkat-tests (Makefile.am): Link test-linkat against
10354         $(LIBINTL).
10355         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10356         $(LIBINTL).
10357         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10358         against $(LIBINTL).
10359         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10360         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10361         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10362         $(LIBINTL).
10363         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10364         $(LIBINTL).
10365         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10366         $(LIBINTL).
10367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10368
10369 2011-05-31  Bruno Haible  <bruno@clisp.org>
10370
10371         Fix link errors in tests: wait-process uses gettext-h.
10372         * modules/nonblocking-pipe-tests (Makefile.am): Set
10373         test_nonblocking_pipe_main_LDADD.
10374         * modules/nonblocking-socket-tests (Makefile.am): Link
10375         test-nonblocking-socket-main against $(LIBINTL).
10376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10377
10378 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10379
10380         assert-h: work around 'verify' incompatibility
10381         * lib/verify.h: Use @...@ directives, not ifdef.
10382         * modules/assert-h (assert.h): Implement the directives.
10383         (assert.h): Substitute the symbol-prefix more consistently.
10384
10385 2011-05-29  Jim Meyering  <meyering@redhat.com>
10386
10387         trim: remove three superfluous assignments
10388         * lib/trim.c (trim2): Remove three superfluous assignments
10389         and correct brace positioning.
10390
10391 2011-05-29  Bruno Haible  <bruno@clisp.org>
10392
10393         wctype-h: Avoid namespace pollution on Solaris 2.6.
10394         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10395         identifiers.
10396         * doc/posix-headers/wctype.texi: Mention the problem.
10397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10398
10399 2011-05-28  Jim Meyering  <meyering@redhat.com>
10400
10401         parse-datetime.y: accommodate -Wstrict-overflow
10402         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10403         placate -Wstrict-overflow.
10404
10405         trim: avoid a warning from -O2 -Wstrict-overflow
10406         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10407
10408 2011-05-29  Bruno Haible  <bruno@clisp.org>
10409
10410         gnulib-tool: Fix bug in yesterday's commit.
10411         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10412         twice.
10413
10414 2011-05-29  Bruno Haible  <bruno@clisp.org>
10415
10416         Allow multiple gnulib generated include files to be combined.
10417         * gnulib-tool (func_compute_include_guard_prefix): New function.
10418         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10419         ${gl_include_guard_prefix} references.
10420         (func_import, func_create_testdir): Invoke
10421         func_compute_include_guard_prefix.
10422         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10423         * lib/ctype.in.h: Likewise.
10424         * lib/dirent.in.h: Likewise.
10425         * lib/errno.in.h: Likewise.
10426         * lib/fcntl.in.h: Likewise.
10427         * lib/float.in.h: Likewise.
10428         * lib/getopt.in.h: Likewise.
10429         * lib/iconv.in.h: Likewise.
10430         * lib/langinfo.in.h: Likewise.
10431         * lib/locale.in.h: Likewise.
10432         * lib/math.in.h: Likewise.
10433         * lib/netdb.in.h: Likewise.
10434         * lib/netinet_in.in.h: Likewise.
10435         * lib/poll.in.h: Likewise.
10436         * lib/pthread.in.h: Likewise.
10437         * lib/pty.in.h: Likewise.
10438         * lib/sched.in.h: Likewise.
10439         * lib/se-selinux.in.h: Likewise.
10440         * lib/search.in.h: Likewise.
10441         * lib/signal.in.h: Likewise.
10442         * lib/spawn.in.h: Likewise.
10443         * lib/stdarg.in.h: Likewise.
10444         * lib/stddef.in.h: Likewise.
10445         * lib/stdint.in.h: Likewise.
10446         * lib/stdio.in.h: Likewise.
10447         * lib/stdlib.in.h: Likewise.
10448         * lib/string.in.h: Likewise.
10449         * lib/strings.in.h: Likewise.
10450         * lib/sys_file.in.h: Likewise.
10451         * lib/sys_ioctl.in.h: Likewise.
10452         * lib/sys_select.in.h: Likewise.
10453         * lib/sys_socket.in.h: Likewise.
10454         * lib/sys_stat.in.h: Likewise.
10455         * lib/sys_time.in.h: Likewise.
10456         * lib/sys_times.in.h: Likewise.
10457         * lib/sys_uio.in.h: Likewise.
10458         * lib/sys_utsname.in.h: Likewise.
10459         * lib/sys_wait.in.h: Likewise.
10460         * lib/sysexits.in.h: Likewise.
10461         * lib/termios.in.h: Likewise.
10462         * lib/time.in.h: Likewise.
10463         * lib/unistd.in.h: Likewise.
10464         * lib/wchar.in.h: Likewise.
10465         * lib/wctype.in.h: Likewise.
10466         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10467         * modules/ctype (Makefile.am): Likewise.
10468         * modules/dirent (Makefile.am): Likewise.
10469         * modules/errno (Makefile.am): Likewise.
10470         * modules/fcntl-h (Makefile.am): Likewise.
10471         * modules/float (Makefile.am): Likewise.
10472         * modules/getopt-posix (Makefile.am): Likewise.
10473         * modules/iconv-h (Makefile.am): Likewise.
10474         * modules/langinfo (Makefile.am): Likewise.
10475         * modules/locale (Makefile.am): Likewise.
10476         * modules/math (Makefile.am): Likewise.
10477         * modules/netdb (Makefile.am): Likewise.
10478         * modules/netinet_in (Makefile.am): Likewise.
10479         * modules/poll-h (Makefile.am): Likewise.
10480         * modules/pthread (Makefile.am): Likewise.
10481         * modules/pty (Makefile.am): Likewise.
10482         * modules/sched (Makefile.am): Likewise.
10483         * modules/search (Makefile.am): Likewise.
10484         * modules/selinux-h (Makefile.am): Likewise.
10485         * modules/signal (Makefile.am): Likewise.
10486         * modules/spawn (Makefile.am): Likewise.
10487         * modules/stdarg (Makefile.am): Likewise.
10488         * modules/stddef (Makefile.am): Likewise.
10489         * modules/stdint (Makefile.am): Likewise.
10490         * modules/stdio (Makefile.am): Likewise.
10491         * modules/stdlib (Makefile.am): Likewise.
10492         * modules/string (Makefile.am): Likewise.
10493         * modules/strings (Makefile.am): Likewise.
10494         * modules/sys_file (Makefile.am): Likewise.
10495         * modules/sys_ioctl (Makefile.am): Likewise.
10496         * modules/sys_select (Makefile.am): Likewise.
10497         * modules/sys_socket (Makefile.am): Likewise.
10498         * modules/sys_stat (Makefile.am): Likewise.
10499         * modules/sys_time (Makefile.am): Likewise.
10500         * modules/sys_times (Makefile.am): Likewise.
10501         * modules/sys_uio (Makefile.am): Likewise.
10502         * modules/sys_utsname (Makefile.am): Likewise.
10503         * modules/sys_wait (Makefile.am): Likewise.
10504         * modules/sysexits (Makefile.am): Likewise.
10505         * modules/termios (Makefile.am): Likewise.
10506         * modules/time (Makefile.am): Likewise.
10507         * modules/unistd (Makefile.am): Likewise.
10508         * modules/wchar (Makefile.am): Likewise.
10509         * modules/wctype-h (Makefile.am): Likewise.
10510         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10511
10512 2011-05-29  Bruno Haible  <bruno@clisp.org>
10513
10514         assert-h: Allow multiple gnulib generated replacements to coexist.
10515         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10516
10517 2011-05-29  Bruno Haible  <bruno@clisp.org>
10518
10519         argp: Allow coexistence with strerror_r-posix module.
10520         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10521         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10522         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10523         not the glibc signature.
10524
10525 2011-05-28  Bruno Haible  <bruno@clisp.org>
10526
10527         gnulib-tool: Alternative structure of testdirs, similar to --import.
10528         * gnulib-tool: New option --single-configure.
10529         (func_usage): Document it.
10530         (single_configure): New variable.
10531         (func_modules_transitive_closure_separately,
10532         func_modules_transitive_closure_separately,
10533         func_determine_use_libtests, func_modules_add_dummy_separately,
10534         func_modules_to_filelist_separately): New functions, extracted from
10535         func_import.
10536         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10537         (func_import): Use the new functions.
10538         (func_create_testdir): Set final_modules. Handle $single_configure =
10539         true case.
10540
10541 2011-05-28  Bruno Haible  <bruno@clisp.org>
10542
10543         getloadavg: Remove an unreliable safety check.
10544         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10545         getloadavg.c is in place.
10546         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10547         Reported by Sam Steingold <sds@gnu.org>.
10548
10549 2011-05-28  Bruno Haible  <bruno@clisp.org>
10550
10551         doc: Cleanup yet another file produced by texinfo.tex.
10552         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10553
10554 2011-05-28  Bruno Haible  <bruno@clisp.org>
10555
10556         Finish the conditional dependencies mechanism.
10557         * gnulib-tool: New option --no-conditional-dependencies.
10558         (func_usage): Document it. Don't mark --conditional-dependencies as
10559         experimental.
10560         (cond_dependencies): The possible values can now be true, false, empty.
10561         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10562         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10563         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10564
10565 2011-05-28  Bruno Haible  <bruno@clisp.org>
10566
10567         doc: Use a recent texinfo.tex.
10568         * doc/Makefile (tex_opts): New variable.
10569         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10570
10571 2011-05-28  Jim Meyering  <meyering@redhat.com>
10572
10573         intprops.h: adjust comment to match code change
10574         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10575         only once, it *may* have side effects.  Also fix an unrelated typo.
10576         (_GL_INT_SIGNED): Likewise.
10577
10578 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10579
10580         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10581
10582 2011-05-26  Bruno Haible  <bruno@clisp.org>
10583
10584         mbsrchr: Avoid collision with system function on Interix.
10585         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10586         Reported by Markus Duft <mduft@gentoo.org>.
10587
10588 2011-05-15  James Youngman  <jay@gnu.org>
10589
10590         getopt: for ambiguous options, enumerate the possibilities.
10591         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10592         the ambiguous options when an ambiguous prefix is given. This was
10593         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10594         glibc change was
10595         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10596
10597 2011-05-25  Eric Blake  <eblake@redhat.com>
10598
10599         getcwd: work around mingw bug
10600         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10601         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10602         Reported by Matthias Bolte.
10603
10604 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10605
10606         test-intprops: disable -Wtype-limits diagnostics
10607         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10608         diagnostics.  Otherwise, the integer overflow macros generate many
10609         diagnostics.  Reported by Jim Meyering in
10610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10611
10612         intprops: shorten, to pacify gcc -Woverlength-strings
10613         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10614         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10615         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10616         likely to run afoul of C compiler limits for string constant lengths.
10617         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10618
10619 2011-05-24  Eric Blake  <eblake@redhat.com>
10620
10621         docs: document recently fixed glibc printf bug
10622         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10623         * doc/posix-functions/printf.texi (printf): Likewise.
10624         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10625         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10626
10627         closein-tests: convert to init.sh
10628         * modules/closein-tests (Files): Add init.sh
10629         * tests/test-closein.sh Use it.
10630
10631         yesno-tests: convert to init.sh
10632         * modules/yesno-tests (Files): Add init.sh.
10633         * tests/test-yesno.sh: Use it.
10634
10635         atexit-tests: ensure reliable exit status
10636         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10637         Reported by Bruno Haible.
10638
10639 2011-05-24  Bruno Haible  <bruno@clisp.org>
10640
10641         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10642         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10643         gl_PREREQ_STRERROR_R invocations from here...
10644         * modules/strerror_r-posix (configure.ac): ... to here.
10645
10646 2011-05-24  Eric Blake  <eblake@redhat.com>
10647
10648         strerror_r: fix missing header
10649         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10650
10651         strerror_r: fix AIX test failures
10652         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10653         ERANGE failure.
10654
10655         strerror_r: fix Solaris test failures
10656         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10657         failures.
10658         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10659
10660         strerror_r: enforce POSIX recommendations
10661         * lib/strerror_r.c (safe_copy): New helper method.
10662         (strerror_r): Guarantee a non-empty string.
10663         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10664         recent POSIX rulings and to match our strerror guarantees.
10665         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10666
10667 2011-05-24  Jim Meyering  <meyering@redhat.com>
10668
10669         test-perror2.c: avoid warning about unused variable
10670         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10671
10672 2011-05-24  Eric Blake  <eblake@redhat.com>
10673
10674         perror: avoid spurious test failure on HP-UX
10675         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10676
10677         tests: fix logic bug in init.sh
10678         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10679         shell.
10680
10681 2011-05-24  Jim Meyering  <meyering@redhat.com>
10682
10683         utimensat: do not reference an out-of-scope buffer
10684         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10685         declared in an inner scope, yet "times" would be dereferenced outside
10686         the scope in which "ts" was valid.
10687         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10688         of ts[2] "out/up", so that the use of aliased "times" (via
10689         "times = ts;") does not end up referencing an out-of-scope "ts"
10690
10691         opendir-safer.c: don't clobber errno; don't close negative FD
10692         * lib/opendir-safer.c (opendir_safer):
10693         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10694         file descriptor, and more importantly, don't clobber the
10695         offending errno value with EINVAL.  Before, upon failure
10696         of dup_safer, we would pass the negative file descriptor to
10697         fdopendir, which would clobber errno.
10698
10699 2011-05-23  Bruno Haible  <bruno@clisp.org>
10700
10701         idcache: Fix module description.
10702         * modules/idcache (Include): Set to "idcache.h".
10703
10704 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10705
10706         gnulib-tool: fix portability problem with MacOS sed
10707         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10708         before the "}".  Problem reported by Leo in
10709         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10710         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10711         sed_extract_condition1, sed_extract_condition2.
10712
10713 2011-05-23  Bruno Haible  <bruno@clisp.org>
10714
10715         hash: Simplify autoconf macro.
10716         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10717
10718 2011-05-23  Bruno Haible  <bruno@clisp.org>
10719
10720         getugroups: Fix module description.
10721         * modules/getugroups (Include): Set to "getugroups.h".
10722
10723 2011-05-23  Bruno Haible  <bruno@clisp.org>
10724
10725         linkat: Simplify autoconf macro.
10726         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10727
10728 2011-05-23  Bruno Haible  <bruno@clisp.org>
10729             Eric Blake  <eblake@redhat.com>
10730
10731         linkat, renameat: Update dependencies.
10732         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10733         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10734         symlinkat.
10735
10736 2011-05-23  Jim Meyering  <meyering@redhat.com>
10737
10738         maint.mk: more tight_scope improvements
10739         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10740         (_gl_TS_headers): Define only in if-0'd block.
10741         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10742         sometimes we must *not* use it.  Adjust uses accordingly.
10743         (sc_tight_scope): Use much simpler grep-based test to determine
10744         whether we skip this rule.
10745
10746         maint.mk: generalize/improve the tight-scope rule
10747         * top/maint.mk: Emit a warning when the test is skipped.
10748         (_gl_TS_dir): Add $(srcdir)/ prefix.
10749         (_gl_TS_function_match): Simplify, rather than trying
10750         to enumerate common types.  Otherwise, it would fail to match an
10751         "extern unsigned char const *" declaration in idutils.
10752         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10753         a way to support use of that type of macro.
10754         (_gl_TS_var_match): Simplify regexp.
10755         (_gl_TS_obj_files): New configurable variable.
10756         (_gl_TS_headers): Likewise.
10757
10758 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10759
10760         verify: fix bug when gnulib <assert.h> is also included
10761         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10762         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10763         Perhaps there's a better way, but this fixes the immediate problem.
10764         Problem reported by Bruno Haible in
10765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10766
10767 2011-05-22  Bruno Haible  <bruno@clisp.org>
10768
10769         xgetcwd: Simplify autoconf macro.
10770         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10771
10772 2011-05-22  Bruno Haible  <bruno@clisp.org>
10773
10774         New module 'mktime-internal'.
10775         * modules/mktime-internal: New file.
10776         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10777         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10778         mktime_internal as a C macro if libc has __mktime_internal.
10779         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10780         conditions.
10781         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10782
10783 2011-05-22  Bruno Haible  <bruno@clisp.org>
10784
10785         timegm: Correct mktime replacement statements.
10786         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10787         defining mktime as a C macro. This completes a 2009-07-28 commit.
10788
10789 2011-05-22  Bruno Haible  <bruno@clisp.org>
10790
10791         timegm: Simplify autoconf macro.
10792         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10793
10794 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10795
10796         clock-time: change to LGPLv2+.
10797         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10798         BSD-like but we have no mark for that; this is good enough for now.
10799
10800 2011-05-21  Bruno Haible  <bruno@clisp.org>
10801
10802         strerror_r: Fix comments.
10803         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10804
10805 2011-05-21  Bruno Haible  <bruno@clisp.org>
10806
10807         relocatable-prog-wrapper: Fix possible link error.
10808         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10809         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10810         (gl_FUNC_SETENV): ... to here.
10811         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10812         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10813
10814 2011-05-21  Bruno Haible  <bruno@clisp.org>
10815
10816         relocatable-prog-wrapper: Assume strerror() exists.
10817         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10818         m4/strerror.m4.
10819         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10820         * lib/relocwrapper.c: Remove mention of strerror module.
10821         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10822         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10823         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10824         C macro.
10825
10826 2011-05-21  Bruno Haible  <bruno@clisp.org>
10827
10828         select: Simplify replacement idiom.
10829         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10830         Win32 platforms.
10831         * lib/sys_select.in.h (select): Simplify accordingly.
10832         * modules/select (Depends-on): Likewise.
10833
10834 2011-05-21  Bruno Haible  <bruno@clisp.org>
10835
10836         mkdir-p: Simplify autoconf macro.
10837         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10838         gl_FUNC_LCHOWN.
10839
10840 2011-05-21  Eric Blake  <eblake@redhat.com>
10841
10842         strerror_r: avoid clobbering strerror on cygwin
10843         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10844         fall back instead to sys_errlist.
10845         * modules/strerror (configure.ac): Add witness.
10846         * tests/test-strerror_r.c (main): Enhance test.
10847         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10848         * tests/test-perror2.c (main): Free memory before exit.
10849
10850 2011-05-21  Bruno Haible  <bruno@clisp.org>
10851
10852         mkdtemp: Use gnulib naming conventions.
10853         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10854         * modules/mkdtemp (configure.ac): Update.
10855
10856 2011-05-20  Eric Blake  <eblake@redhat.com>
10857
10858         strerror_r: avoid corrupting errno on Solaris
10859         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10860         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10861
10862         strerror_r: avoid compiler warning
10863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10864
10865         strerror_r: simplify AIX code
10866         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10867
10868         test-perror: avoid spurious failure on FreeBSD
10869         * modules/perror-tests (Depends-on): Add strerror, now that
10870         strerror_r no longer pulls it in.
10871
10872 2011-05-20  Bruno Haible  <bruno@clisp.org>
10873
10874         strerror_r-posix: Remove unused dependencies.
10875         * modules/strerror_r-posix (Depends-on): Remove strerror.
10876         Reported by Eric Blake.
10877
10878 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10879
10880         intprops: remove assumption about A|B representation
10881         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10882         is a valid integer if both A and B are.  Although this is true for
10883         all known practical hosts, the C standard doesn't guarantee it,
10884         and the code need not assume it.  Also, this change may work around
10885         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10887
10888 2011-05-20  Eric Blake  <eblake@redhat.com>
10889
10890         perror: work around FreeBSD bug
10891         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10892         is broken.  Move AC_LIBOBJ...
10893         * modules/perror (configure.ac): Here.
10894         * doc/posix-functions/perror.texi (perror): Document this.
10895         * tests/test-perror2.c (main): Enhance test.
10896
10897         test-perror: check for strerror interactions
10898         * tests/macros.h (STREQ): Add macro.
10899         * modules/perror-tests (Files): Add second test.
10900         * tests/test-perror2.c (main): New file.
10901         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10902
10903         test-perror: rewrite to use init script
10904         * modules/perror-tests (Files): Add init.sh.
10905         * tests/test-perror.sh: Use temporary directory.
10906
10907 2011-05-20  Jim Meyering  <meyering@redhat.com>
10908
10909         maint: replace misused "a" with "an"
10910         * doc/intprops.texi: "a integer"
10911         * doc/regex.texi: "a explanation"
10912         * lib/alignof.h: "a object"
10913         * lib/argmatch.h: "a explanation"
10914         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10915         * lib/stdint.in.h: "a integer"
10916         * lib/userspec.c: "a owner"
10917         * doc/gnulib.texi: Fix "a idea", and reword.
10918
10919 2011-05-19  Jim Meyering  <meyering@redhat.com>
10920
10921         maint: correct misuse of "a" and "an"
10922         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10923         * lib/argp-help.c: "an docum...": s/an/a/
10924         * lib/argp-parse.c: "An vector": s/An/A/
10925         * lib/execute.c: "an native": s/an/a/
10926         * lib/spawn-pipe.c: Likewise.
10927         * lib/gc.h: "an Gc_rc": s/an/a/
10928         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10929         * lib/fts.c: "an stat.st_dev": s/an/a/
10930
10931 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10932
10933         intprops-tests: work around HP-UX 11.23 cc bug with constants
10934         * tests/test-intprops.c (VERIFY): New macro.
10935         (main): Use it, instead of verify, to work around the compiler bug; see
10936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10937
10938         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10939         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10940         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10941         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10942         (_GL_REMAINDER_OVERFLOW): Use it.
10943
10944         intprops-tests: revert unsigned part of previous change
10945         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10946         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10947         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10949
10950 2011-05-19  Bruno Haible  <bruno@clisp.org>
10951
10952         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10953         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10954         strerror_r() returned without filling the buffer.
10955         Reported by Eric Blake.
10956
10957 2011-05-19  Eric Blake  <eblake@redhat.com>
10958
10959         strerror_r: guarantee unchanged errno
10960         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10961         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10962         failure.
10963         * tests/test-strerror_r.c (main): Enhance test.
10964
10965 2011-05-19  Bruno Haible  <bruno@clisp.org>
10966
10967         strerror_r: Reorder #if blocks.
10968         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10969         for consistency with the previous commit.
10970
10971 2011-05-19  Bruno Haible  <bruno@clisp.org>
10972
10973         perror: Avoid clobbering the strerror buffer when possible.
10974         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10975         * lib/strerror.c: Include it.
10976         * modules/strerror (Files): Add lib/strerror-impl.h.
10977         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10978         (my_strerror): New function, defined through lib/strerror-impl.h.
10979         (perror): Use it instead of strerror.
10980         * modules/perror (Files): Add lib/strerror-impl.h.
10981         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10982
10983 2011-05-19  Eric Blake  <eblake@redhat.com>
10984
10985         strerror_r: fix on newer cygwin
10986         * lib/strerror_r.c (strerror_r): Cygwin now has
10987         __xpg_strerror_r, use it.
10988
10989 2011-05-19  Bruno Haible  <bruno@clisp.org>
10990
10991         strerror_r: Avoid clobbering the strerror buffer when possible.
10992         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10993         (sys_nerr, sys_errlist): New declarations.
10994         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10995         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10996         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10997
10998 2011-05-19  Bruno Haible  <bruno@clisp.org>
10999
11000         strerror_r: Fix test failure on mingw.
11001         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11002         EXTEND_STRERROR_R.
11003         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11004         macros from errno.in.h instead.
11005
11006 2011-05-19  Eric Blake  <eblake@redhat.com>
11007
11008         strerror: relax test for Solaris
11009         * tests/test-strerror.c (main): Permit Solaris behavior.
11010         * tests/test-strerror_r.c (main): Likewise.
11011
11012         strerror: enforce POSIX ruling on strerror(0)
11013         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11014         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11015         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11016         * doc/posix-functions/strerror.texi (strerror): Document it.
11017         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11018         * tests/test-strerror.c (main): Strengthen test.
11019         * tests/test-strerror_r.c (main): Likewise.
11020
11021 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11022
11023         intprop-tests: port to older and more-pedantic compilers
11024         * modules/intprops-tests (Files): Add tests/macros.h.
11025         * tests/test-intprops.c: Include macros.h.
11026         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11027         it's no longer documented to expand to an integer constant expression.
11028         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11029         argument is floating point, as it's no longer documented to expand
11030         to an integer constant expression in that case.
11031         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11032         compiler bugs reported by Bruno Haible.  See
11033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11034         (U0, U1): New constants, to work around the same bugs.  Also,
11035         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11036
11037         intprops: work around C compiler bugs
11038         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11039         bug in Sun C 5.11 2010/08/13 and other compilers; see
11040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11041
11042         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11043         * doc/intprops.texi (Integer Type Determination): Fix
11044         documentation for TYPE_IS_INTEGER: it returns an constant
11045         expression, not an integer constant expression.  Fix doc for
11046         TYPE_SIGNED: it returns an integer constant expression only if its
11047         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11048         hardly worth documented that way....)
11049
11050 2011-05-18  Bruno Haible  <bruno@clisp.org>
11051
11052         strerror_r: Avoid clobbering the strerror buffer when possible.
11053         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11054         Handle gnulib defined errno values here. When strerror() returns NULL
11055         or an empty string, return EINVAL.
11056         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11057         gnulib defined errno values here.
11058         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11059
11060 2011-05-18  Eric Blake  <eblake@redhat.com>
11061
11062         fnmatch: avoid compiler warning
11063         * lib/fnmatch_loop.c (FCT): Use correct type.
11064         Reported by Matthias Bolte.
11065
11066 2011-05-13  Jim Meyering  <meyering@redhat.com>
11067
11068         maint.mk: three new prohibit_<HDR>_without_use rules
11069         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11070         (sc_prohibit_stdio-safer_without_use): Likewise.
11071         (sc_prohibit_xfreopen_without_use): Likewise.
11072
11073 2011-05-17  Jim Meyering  <meyering@redhat.com>
11074
11075         announce-gen: fail if the NEWS delta is empty
11076         If there's nothing noteworthy in NEWS, then either you forgot
11077         or you shouldn't be releasing.
11078         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11079
11080 2011-05-17  Pádraig Brady <P@draigBrady.com>
11081
11082         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11083         reserved symbols starting with double underscore from the check.
11084
11085 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11086
11087         intprops: add doc
11088         * doc/intprops.texi: New file, documenting intprops.
11089         * doc/gnulib.texi (Particular Modules): Include it.
11090
11091         verify: add doc to gnulib manual and fix example
11092         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11093         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11094         (Compile-time Assertions): Fix example so it can't overflow.
11095
11096 2011-05-17  Jim Meyering  <meyering@redhat.com>
11097
11098         warnings.m4: don't usurp save_CPPFLAGS variable name
11099         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11100
11101         doc: fix typo
11102         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11103
11104 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11105             Bruno Haible  <bruno@clisp.org>
11106
11107         doc: Tweak recent change.
11108         * README (Portability guidelines): Tweak new text.
11109         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11110         Interix 6.1.
11111
11112 2011-05-16  Eric Blake  <eblake@redhat.com>
11113
11114         inttypes: avoid autoconf warning
11115         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11116         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11117
11118 2011-05-16  Sam Steingold <sds@gnu.org>
11119         and Eric Blake  <eblake@redhat.com>
11120
11121         vc-list-files: accept multiple directory operands
11122         * build-aux/vc-list-files: Iterate over all remaining operands.
11123
11124 2011-05-16  Bruno Haible  <bruno@clisp.org>
11125
11126         Fix confusion regarding deprecated modules.
11127         * modules/calloc (Status, Notice): Mark module as deprecated, not
11128         obsolete.
11129         * modules/fnmatch-posix (Status, Notice): Likewise.
11130         * modules/getdate (Status, Notice): Likewise.
11131         * modules/getopt (Status, Notice): Likewise.
11132         * modules/malloc (Status, Notice): Likewise.
11133         * modules/pipe (Status, Notice): Likewise.
11134         * modules/realloc (Status, Notice): Likewise.
11135         * modules/rename-dest-slash (Status, Notice): Likewise.
11136         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11137         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11138         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11139         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11140         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11141
11142 2011-05-16  Bruno Haible  <bruno@clisp.org>
11143
11144         doc: List the target platforms.
11145         * doc/gnulib-intro.texi (Target Platforms): New section.
11146         * doc/gnulib.texi (Introduction): Update menu.
11147         * README (Portability guidelines): Refer to the new section. Update
11148         statement about oldest supported environment. Remove rationale why
11149         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11150         unportable C89 function.
11151         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11152         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11153
11154 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11155
11156         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11157
11158 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11159
11160         intprops-tests: new module
11161         * modules/intprops-tests, tests/test-intprops.c: New files.
11162
11163         intprops: add safe, portable integer overflow checking
11164         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11165         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11166         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11167         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11168         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11169         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11170         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11171         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11172         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11173         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11174         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11175
11176 2011-05-12  James Youngman  <jay@gnu.org>
11177
11178         Add a test for glibc's Bugzilla bug #12378.
11179         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11180         doesn't allow the literal matching of a lone "[" (which is
11181         required by POSIX).
11182         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11183
11184 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11185
11186         Sync glibc change fixing Bugzilla bug #12378.
11187         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11188         beginning and fall back to matching as normal character if the
11189         string ends before the matching ']' is found.  This is what POSIX
11190         requires.
11191
11192 2011-05-13  Eric Blake  <eblake@redhat.com>
11193
11194         getcwd-lgpl: relax test for FreeBSD
11195         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11196         issue.
11197         * tests/test-getcwd-lgpl.c (main): Relax test.
11198         Reported by Matthias Bolte.
11199
11200 2011-05-11  Eric Blake  <eblake@redhat.com>
11201
11202         test-fflush: silence compiler warning
11203         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11204
11205 2011-05-11  Bruno Haible  <bruno@clisp.org>
11206
11207         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11208         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11209         * modules/canonicalize (Depends-on): Add 'nocrash'.
11210         * modules/canonicalize-lgpl (Depends-on): Likewise.
11211         * doc/posix-functions/realpath.texi: Update platforms list.
11212         Reported by Ryan Schmidt <ryandesign@macports.org>.
11213
11214 2011-05-11  Bruno Haible  <bruno@clisp.org>
11215
11216         group-member: Declare function in <unistd.h>.
11217         * lib/unistd.in.h (group_member): New declaration.
11218         * lib/group-member.h: Remove file.
11219         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11220         * tests/test-unistd-c++.cc: Check signature of group_member.
11221         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11222         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11223         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11224         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11225         HAVE_GROUP_MEMBER.
11226         * modules/group-member (Files): Remove lib/group-member.h.
11227         (Depends-on): Add unistd. Specify conditions.
11228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11229         (Include): Change to <unistd.h>.
11230         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11231         HAVE_GROUP_MEMBER.
11232         * NEWS: Mention the change.
11233         * lib/euidaccess.c: Don't include group-member.h.
11234
11235 2011-05-11  Bruno Haible  <bruno@clisp.org>
11236
11237         group-member: Document module.
11238         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11239         module.
11240
11241 2011-05-11  Bruno Haible  <bruno@clisp.org>
11242
11243         fclose: Fix mistake earlier today.
11244         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11245
11246 2011-05-11  Eric Blake  <eblake@redhat.com>
11247
11248         fclose: preserve fflush errors
11249         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11250         Reported by Jim Meyering.
11251
11252         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11253         * build-aux/bootstrap (check_versions): When no specific version
11254         is required, merely check that the app produces an exit status
11255         that indicates its existence.
11256
11257         maint.mk: drop redundant check
11258         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11259         the same but better.
11260
11261 2011-05-11  Bruno Haible  <bruno@clisp.org>
11262
11263         fclose: Fix possible link error.
11264         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11265         unregister_shadow_fd. Improve comments.
11266         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11267         Eric Blake.
11268
11269 2011-05-11  Jim Meyering  <meyering@redhat.com>
11270
11271         maint.mk: improve "can not" detection and generalize rule name
11272         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11273         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11274         Use the same technique as in sc_prohibit_doubled_word, so that
11275         we recognize "can not" also when the words are separated by a newline.
11276         Suggested by Eric Blake.
11277         (perl_filename_lineno_text_): Define.  Factored out of...
11278         (prohibit_doubled_word_): ...here.  Use the new definition.
11279         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11280         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11281         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11282
11283 2011-05-10  Eric Blake  <eblake@redhat.com>
11284
11285         fclose: avoid double close race when possible
11286         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11287         all but WINDOWS_SOCKETS.
11288
11289 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11290
11291         openat: correct new comment
11292         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11293
11294 2011-05-10  Jim Meyering  <meyering@redhat.com>
11295
11296         openat: add comments
11297         * lib/openat-proc.c (openat_proc_name): Add comments,
11298         mostly from Eric Blake.
11299
11300 2011-05-09  Eric Blake  <eblake@redhat.com>
11301
11302         openat: reduce syscalls in first probe of /proc
11303         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11304         be a directory.  Simplify the probe for .. bugs.
11305         * modules/openat (Depends-on): Drop same-inode.
11306         Reported by Bastien ROUCARIES.
11307
11308 2011-05-09  Jim Meyering  <meyering@redhat.com>
11309
11310         maint.mk: change semantics/name of tight_scope variables
11311         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11312         Rename variables to align with semantics that make them more useful.
11313
11314         maint.mk: tweak new rule's name not to impinge
11315         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11316         (sc_tight_scope): Use new rule name rather than $@-0.
11317
11318         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11319         * top/maint.mk (sc_tight_scope): New rule.
11320         (sc_tight_scope-0): New rule, ifdef'd out.
11321         (_gl_TS_dir): Default.
11322         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11323         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11324
11325 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11326
11327         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11328         Haible <bruno@clisp.org>.
11329
11330 2011-05-08  Bruno Haible  <bruno@clisp.org>
11331
11332         Comments.
11333         * m4/isnanf.m4: Add comment.
11334         * m4/isnanl.m4: Likewise.
11335
11336 2011-05-08  Bruno Haible  <bruno@clisp.org>
11337
11338         glob: Remove obsolete macro.
11339         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11340
11341 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11342
11343         intprops: Sun C 5.11 supports __typeof__
11344         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11345         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11346         which is new.
11347         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11348
11349         intprops: switch to usual gnulib indenting and naming
11350         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11351         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11352
11353         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11354
11355 2011-05-08  Jim Meyering  <meyering@redhat.com>
11356
11357         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11358         * top/maint.mk (release-prep): Use make's --no-print-directory
11359         option when generating the announcement.  This eliminates the
11360         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11361         generated announcement template.
11362
11363 2011-05-08  Bruno Haible  <bruno@clisp.org>
11364
11365         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11366         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11367         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11368
11369 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11370
11371         ignore-value, verify: Omit include files from lib_SOURCES.
11372         * modules/ignore-value, modules/verify (Makefile.am):
11373         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11374         that leads Automake to duplicate use of am__objects_... variables
11375         in Makefile.in.  See
11376         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11377
11378 2011-05-07  Bruno Haible  <bruno@clisp.org>
11379
11380         fclose: Simplify autoconf macro.
11381         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11382         defined.
11383
11384 2011-05-07  Bruno Haible  <bruno@clisp.org>
11385
11386         canonicalize-lgpl: Fix autoconf macro ordering bug.
11387         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11388         gl_STDLIB_H_DEFAULTS.
11389
11390 2011-05-06  Eric Blake  <eblake@redhat.com>
11391
11392         maintainer-makefile: make sc_po_check easier to tune
11393         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11394         to probe for strings, such as an alternate location for gnulib.
11395
11396         fclose: guarantee behavior on seekable stdin
11397         * modules/fclose (Depends-on): Add fflush.
11398         * doc/posix-functions/fclose.texi (fclose): Document this.
11399         * tests/test-fclose.c (main): Make test for this unconditional.
11400
11401 2011-05-06  Bruno Haible  <bruno@clisp.org>
11402
11403         fflush, fpurge: Relicense under LGPLv2+.
11404         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11405         * modules/fpurge (License): Likewise.
11406         With permission from Eric Blake and Jim Meyering.
11407         Suggested by Eric Blake.
11408
11409 2011-05-06  Karl Berry  <karl@gnu.org>
11410
11411         * MODULES.html.sh (func_all_modules): remove exit.
11412
11413 2011-05-06  Jim Meyering  <meyering@redhat.com>
11414
11415         maint.mk: use info-gnu@ as the default only for a stable release
11416         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11417         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11418         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11419         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11420
11421 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         assert-h: new module, which supports C1X-style static_assert
11424         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11425         * lib/verify.h: Revamp so that this can be copied into assert.h,
11426         while retaining the ability to use it standalone as before.
11427         Rename private identifiers so as not to encroach on the
11428         standard C namespace, since this is now used by assert.h.
11429         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11430         the old verify_true.
11431         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11432         the old verify_true.  Use _GL_VERIFY_TYPE.
11433         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11434         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11435         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11436         defined when this file is copied into the replacement assert.h.
11437         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11438         and _Static_assert is not built in.
11439         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11440         defined, and use the new macros mentioned above.
11441         * doc/posix-headers/assert.texi: Document this.
11442
11443 2011-05-05  Bruno Haible  <bruno@clisp.org>
11444
11445         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11446         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11447         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11448         gl_REPLACE_FCLOSE here.
11449         * modules/fflush (Depends-on): Remove fclose.
11450         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11451         combination with module 'fclose'.
11452
11453 2011-05-05  Bruno Haible  <bruno@clisp.org>
11454
11455         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11456         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11457         gl_FUNC_FFLUSH.
11458         (gl_FUNC_FFLUSH): Use it.
11459         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11460         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11461         gl_REPLACE_FSEEKO here.
11462
11463 2011-05-05  Bruno Haible  <bruno@clisp.org>
11464
11465         tzset: Relicense under LGPL.
11466         * modules/tzset (License): Change to LGPL.
11467         No agreement needed; it's a no-op.
11468
11469         strtoimax, strtoumax: Relicense under LGPL.
11470         * modules/strtoimax (License): Change to LGPL.
11471         * modules/strtoumax (License): Likewise.
11472         With permission from Jim Meyering, Paul Eggert:
11473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11475
11476         getgroups: Relicense under LGPL.
11477         * modules/getgroups (License): Change to LGPL.
11478         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11482
11483         nanosleep: Relicense under LGPL.
11484         * modules/nanosleep (License): Change to LGPL.
11485         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11486         Haible:
11487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11491
11492         futimens: Relicense under LGPL.
11493         * modules/futimens (License): Change to LGPL.
11494         With permission from Eric Blake:
11495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11496
11497         fflush: Relicense under LGPL.
11498         * modules/fflush (License): Change to LGPL.
11499         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11503
11504         tmpfile: Relicense under LGPL.
11505         * modules/tmpfile (License): Change to LGPL.
11506         With permission from Ben Pfaff:
11507         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11508
11509         isfinite: Relicense under LGPL.
11510         * modules/isfinite (License): Change to LGPL.
11511         With permission from Ben Pfaff, Bruno Haible:
11512         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11514
11515         acosl..tanl: Relicense under LGPL.
11516         * modules/acosl (License): Change to LGPL.
11517         * modules/asinl (License): Likewise.
11518         * modules/atanl (License): Likewise.
11519         * modules/cosl (License): Likewise.
11520         * modules/expl (License): Likewise.
11521         * modules/logl (License): Likewise.
11522         * modules/sinl (License): Likewise.
11523         * modules/sqrtl (License): Likewise.
11524         * modules/tanl (License): Likewise.
11525         Source code originally from glibc and Paolo Bonzini. Agreements:
11526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11528
11529 2011-05-05  Bruno Haible  <bruno@clisp.org>
11530
11531         signal: Define sighandler_t.
11532         * lib/signal.in.h (sighandler_t): New type.
11533         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11534         whether sighandler_t is defined.
11535         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11536         * modules/signal (Depends-on): Add extensions.
11537         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11538         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11539         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11540
11541 2011-05-05  Eric Blake  <eblake@redhat.com>
11542
11543         maint: remove useless REPLACE_*_H macros
11544         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11545         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11546         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11547         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11548         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11549         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11550         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11551         * m4/btowc.m4: Update callers.
11552         * m4/dirfd.m4: Likewise.
11553         * m4/duplocale.m4: Likewise.
11554         * m4/fchdir.m4: Likewise.
11555         * m4/fdopendir.m4: Likewise.
11556         * m4/inet_ntop.m4: Likewise.
11557         * m4/inet_pton.m4: Likewise.
11558         * m4/ioctl.m4: Likewise.
11559         * m4/mbrlen.m4: Likewise.
11560         * m4/mbrtowc.m4: Likewise.
11561         * m4/mbsinit.m4: Likewise.
11562         * m4/mbsnrtowcs.m4: Likewise.
11563         * m4/mbsrtowcs.m4: Likewise.
11564         * m4/poll.m4: Likewise.
11565         * m4/setlocale.m4: Likewise.
11566         * m4/wcrtomb.m4: Likewise.
11567         * m4/wcsnrtombs.m4: Likewise.
11568         * m4/wcsrtombs.m4: Likewise.
11569         * m4/wctob.m4: Likewise.
11570         * m4/wcwidth.m4: Likewise.
11571         * modules/posix_spawn: Likewise.
11572         * modules/posix_spawn_file_actions_addclose: Likewise.
11573         * modules/posix_spawn_file_actions_adddup2: Likewise.
11574         * modules/posix_spawn_file_actions_addopen: Likewise.
11575         * modules/posix_spawn_file_actions_destroy: Likewise.
11576         * modules/posix_spawn_file_actions_init: Likewise.
11577         * modules/posix_spawnattr_destroy: Likewise.
11578         * modules/posix_spawnattr_getflags: Likewise.
11579         * modules/posix_spawnattr_getpgroup: Likewise.
11580         * modules/posix_spawnattr_getschedparam: Likewise.
11581         * modules/posix_spawnattr_getschedpolicy: Likewise.
11582         * modules/posix_spawnattr_getsigdefault: Likewise.
11583         * modules/posix_spawnattr_getsigmask: Likewise.
11584         * modules/posix_spawnattr_init: Likewise.
11585         * modules/posix_spawnattr_setflags: Likewise.
11586         * modules/posix_spawnattr_setpgroup: Likewise.
11587         * modules/posix_spawnattr_setschedparam: Likewise.
11588         * modules/posix_spawnattr_setschedpolicy: Likewise.
11589         * modules/posix_spawnattr_setsigdefault: Likewise.
11590         * modules/posix_spawnattr_setsigmask: Likewise.
11591         * modules/posix_spawnp: Likewise.
11592
11593 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11594
11595         Add option to do-release-commit-and-tag to specify branch.
11596         * build-aux/do-release-commit-and-tag: Add --branch.
11597
11598 2011-05-03  Bruno Haible  <bruno@clisp.org>
11599
11600         Avoid unnecessary compilation units, through conditional dependencies.
11601         * modules/accept (Depends-on): Add conditions to the dependencies.
11602         * modules/acosl (Depends-on): Likewise.
11603         * modules/argz (Depends-on): Likewise.
11604         * modules/asinl (Depends-on): Likewise.
11605         * modules/atanl (Depends-on): Likewise.
11606         * modules/atoll (Depends-on): Likewise.
11607         * modules/bind (Depends-on): Likewise.
11608         * modules/btowc (Depends-on): Likewise.
11609         * modules/canonicalize-lgpl (Depends-on): Likewise.
11610         * modules/ceil (Depends-on): Likewise.
11611         * modules/ceilf (Depends-on): Likewise.
11612         * modules/ceill (Depends-on): Likewise.
11613         * modules/chdir-long (Depends-on): Likewise.
11614         * modules/chown (Depends-on): Likewise.
11615         * modules/close (Depends-on): Likewise.
11616         * modules/connect (Depends-on): Likewise.
11617         * modules/cosl (Depends-on): Likewise.
11618         * modules/dirfd (Depends-on): Likewise.
11619         * modules/dprintf (Depends-on): Likewise.
11620         * modules/dprintf-posix (Depends-on): Likewise.
11621         * modules/error (Depends-on): Likewise.
11622         * modules/euidaccess (Depends-on): Likewise.
11623         * modules/expl (Depends-on): Likewise.
11624         * modules/faccessat (Depends-on): Likewise.
11625         * modules/fchdir (Depends-on): Likewise.
11626         * modules/fclose (Depends-on): Likewise.
11627         * modules/fcntl (Depends-on): Likewise.
11628         * modules/fdopendir (Depends-on): Likewise.
11629         * modules/fflush (Depends-on): Likewise.
11630         * modules/floor (Depends-on): Likewise.
11631         * modules/floorf (Depends-on): Likewise.
11632         * modules/floorl (Depends-on): Likewise.
11633         * modules/fnmatch (Depends-on): Likewise.
11634         * modules/fopen (Depends-on): Likewise.
11635         * modules/fprintf-posix (Depends-on): Likewise.
11636         * modules/frexp (Depends-on): Likewise.
11637         * modules/frexp-nolibm (Depends-on): Likewise.
11638         * modules/frexpl (Depends-on): Likewise.
11639         * modules/frexpl-nolibm (Depends-on): Likewise.
11640         * modules/fseek (Depends-on): Likewise.
11641         * modules/fsusage (Depends-on): Likewise.
11642         * modules/ftell (Depends-on): Likewise.
11643         * modules/ftello (Depends-on): Likewise.
11644         * modules/futimens (Depends-on): Likewise.
11645         * modules/getcwd (Depends-on): Likewise.
11646         * modules/getcwd-lgpl (Depends-on): Likewise.
11647         * modules/getdelim (Depends-on): Likewise.
11648         * modules/getdomainname (Depends-on): Likewise.
11649         * modules/getgroups (Depends-on): Likewise.
11650         * modules/gethostname (Depends-on): Likewise.
11651         * modules/getline (Depends-on): Likewise.
11652         * modules/getlogin_r (Depends-on): Likewise.
11653         * modules/getopt-posix (Depends-on): Likewise.
11654         * modules/getpeername (Depends-on): Likewise.
11655         * modules/getsockname (Depends-on): Likewise.
11656         * modules/getsockopt (Depends-on): Likewise.
11657         * modules/getsubopt (Depends-on): Likewise.
11658         * modules/getusershell (Depends-on): Likewise.
11659         * modules/glob (Depends-on): Likewise.
11660         * modules/grantpt (Depends-on): Likewise.
11661         * modules/iconv_open (Depends-on): Likewise.
11662         * modules/iconv_open-utf (Depends-on): Likewise.
11663         * modules/inet_ntop (Depends-on): Likewise.
11664         * modules/inet_pton (Depends-on): Likewise.
11665         * modules/ioctl (Depends-on): Likewise.
11666         * modules/isapipe (Depends-on): Likewise.
11667         * modules/isfinite (Depends-on): Likewise.
11668         * modules/isinf (Depends-on): Likewise.
11669         * modules/lchown (Depends-on): Likewise.
11670         * modules/ldexpl (Depends-on): Likewise.
11671         * modules/link (Depends-on): Likewise.
11672         * modules/linkat (Depends-on): Likewise.
11673         * modules/listen (Depends-on): Likewise.
11674         * modules/logl (Depends-on): Likewise.
11675         * modules/lstat (Depends-on): Likewise.
11676         * modules/mbrlen (Depends-on): Likewise.
11677         * modules/mbrtowc (Depends-on): Likewise.
11678         * modules/mbsinit (Depends-on): Likewise.
11679         * modules/mbsnrtowcs (Depends-on): Likewise.
11680         * modules/mbsrtowcs (Depends-on): Likewise.
11681         * modules/mbtowc (Depends-on): Likewise.
11682         * modules/memcmp (Depends-on): Likewise.
11683         * modules/mkdir (Depends-on): Likewise.
11684         * modules/mkdtemp (Depends-on): Likewise.
11685         * modules/mkfifo (Depends-on): Likewise.
11686         * modules/mkfifoat (Depends-on): Likewise.
11687         * modules/mknod (Depends-on): Likewise.
11688         * modules/mkostemp (Depends-on): Likewise.
11689         * modules/mkostemps (Depends-on): Likewise.
11690         * modules/mkstemp (Depends-on): Likewise.
11691         * modules/mkstemps (Depends-on): Likewise.
11692         * modules/mktime (Depends-on): Likewise.
11693         * modules/nanosleep (Depends-on): Likewise.
11694         * modules/open (Depends-on): Likewise.
11695         * modules/openat (Depends-on): Likewise.
11696         * modules/perror (Depends-on): Likewise.
11697         * modules/poll (Depends-on): Likewise.
11698         * modules/popen (Depends-on): Likewise.
11699         * modules/posix_spawn (Depends-on): Likewise.
11700         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11701         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11702         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11703         * modules/posix_spawnp (Depends-on): Likewise.
11704         * modules/pread (Depends-on): Likewise.
11705         * modules/printf-posix (Depends-on): Likewise.
11706         * modules/ptsname (Depends-on): Likewise.
11707         * modules/putenv (Depends-on): Likewise.
11708         * modules/pwrite (Depends-on): Likewise.
11709         * modules/readline (Depends-on): Likewise.
11710         * modules/readlink (Depends-on): Likewise.
11711         * modules/readlinkat (Depends-on): Likewise.
11712         * modules/recv (Depends-on): Likewise.
11713         * modules/recvfrom (Depends-on): Likewise.
11714         * modules/regex (Depends-on): Likewise.
11715         * modules/remove (Depends-on): Likewise.
11716         * modules/rename (Depends-on): Likewise.
11717         * modules/renameat (Depends-on): Likewise.
11718         * modules/rmdir (Depends-on): Likewise.
11719         * modules/round (Depends-on): Likewise.
11720         * modules/roundf (Depends-on): Likewise.
11721         * modules/roundl (Depends-on): Likewise.
11722         * modules/rpmatch (Depends-on): Likewise.
11723         * modules/select (Depends-on): Likewise.
11724         * modules/send (Depends-on): Likewise.
11725         * modules/sendto (Depends-on): Likewise.
11726         * modules/setenv (Depends-on): Likewise.
11727         * modules/setlocale (Depends-on): Likewise.
11728         * modules/setsockopt (Depends-on): Likewise.
11729         * modules/shutdown (Depends-on): Likewise.
11730         * modules/sigaction (Depends-on): Likewise.
11731         * modules/signbit (Depends-on): Likewise.
11732         * modules/sigprocmask (Depends-on): Likewise.
11733         * modules/sinl (Depends-on): Likewise.
11734         * modules/sleep (Depends-on): Likewise.
11735         * modules/snprintf (Depends-on): Likewise.
11736         * modules/snprintf-posix (Depends-on): Likewise.
11737         * modules/socket (Depends-on): Likewise.
11738         * modules/sprintf-posix (Depends-on): Likewise.
11739         * modules/sqrtl (Depends-on): Likewise.
11740         * modules/stat (Depends-on): Likewise.
11741         * modules/strchrnul (Depends-on): Likewise.
11742         * modules/strdup-posix (Depends-on): Likewise.
11743         * modules/strerror (Depends-on): Likewise.
11744         * modules/strerror_r-posix (Depends-on): Likewise.
11745         * modules/strndup (Depends-on): Likewise.
11746         * modules/strnlen (Depends-on): Likewise.
11747         * modules/strptime (Depends-on): Likewise.
11748         * modules/strsep (Depends-on): Likewise.
11749         * modules/strsignal (Depends-on): Likewise.
11750         * modules/strstr-simple (Depends-on): Likewise.
11751         * modules/strtod (Depends-on): Likewise.
11752         * modules/strtoimax (Depends-on): Likewise.
11753         * modules/strtok_r (Depends-on): Likewise.
11754         * modules/strtoumax (Depends-on): Likewise.
11755         * modules/symlink (Depends-on): Likewise.
11756         * modules/symlinkat (Depends-on): Likewise.
11757         * modules/tanl (Depends-on): Likewise.
11758         * modules/tcgetsid (Depends-on): Likewise.
11759         * modules/tmpfile (Depends-on): Likewise.
11760         * modules/trunc (Depends-on): Likewise.
11761         * modules/truncf (Depends-on): Likewise.
11762         * modules/truncl (Depends-on): Likewise.
11763         * modules/uname (Depends-on): Likewise.
11764         * modules/unlink (Depends-on): Likewise.
11765         * modules/unlockpt (Depends-on): Likewise.
11766         * modules/unsetenv (Depends-on): Likewise.
11767         * modules/usleep (Depends-on): Likewise.
11768         * modules/utimensat (Depends-on): Likewise.
11769         * modules/vasprintf (Depends-on): Likewise.
11770         * modules/vdprintf (Depends-on): Likewise.
11771         * modules/vdprintf-posix (Depends-on): Likewise.
11772         * modules/vfprintf-posix (Depends-on): Likewise.
11773         * modules/vprintf-posix (Depends-on): Likewise.
11774         * modules/vsnprintf (Depends-on): Likewise.
11775         * modules/vsnprintf-posix (Depends-on): Likewise.
11776         * modules/vsprintf-posix (Depends-on): Likewise.
11777         * modules/wcrtomb (Depends-on): Likewise.
11778         * modules/wcscasecmp (Depends-on): Likewise.
11779         * modules/wcscspn (Depends-on): Likewise.
11780         * modules/wcsdup (Depends-on): Likewise.
11781         * modules/wcsncasecmp (Depends-on): Likewise.
11782         * modules/wcsnrtombs (Depends-on): Likewise.
11783         * modules/wcspbrk (Depends-on): Likewise.
11784         * modules/wcsrtombs (Depends-on): Likewise.
11785         * modules/wcsspn (Depends-on): Likewise.
11786         * modules/wcsstr (Depends-on): Likewise.
11787         * modules/wcstok (Depends-on): Likewise.
11788         * modules/wcswidth (Depends-on): Likewise.
11789         * modules/wctob (Depends-on): Likewise.
11790         * modules/wctomb (Depends-on): Likewise.
11791         * modules/wctype (Depends-on): Likewise.
11792         * modules/wcwidth (Depends-on): Likewise.
11793         * modules/write (Depends-on): Likewise.
11794
11795 2011-05-03  Bruno Haible  <bruno@clisp.org>
11796
11797         Support for conditional dependencies.
11798         * doc/gnulib.texi (Module description): Document the syntax of
11799         conditional dependencies.
11800         * gnulib-tool: New option --conditional-dependencies.
11801         (func_usage): Document it.
11802         (cond_dependencies): New variable.
11803         (func_get_automake_snippet_conditional,
11804         func_get_automake_snippet_unconditional): New functions, extracted from
11805         func_get_automake_snippet.
11806         (func_get_automake_snippet): Use them.
11807         (sed_first_32_chars): New variable.
11808         (func_module_shellfunc_name): New function.
11809         (func_module_shellvar_name): New function.
11810         (func_module_conditional_name): New function.
11811         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11812         func_cond_module_condition): New functions.
11813         (func_modules_transitive_closure): Add support for conditional
11814         dependencies.
11815         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11816         conditional automake snippet in an automake conditional.
11817         (func_emit_autoconf_snippets): Emit shell functions that contain the
11818         code for conditional modules.
11819         (func_import, func_create_testdir): Update specification.
11820
11821 2011-05-03  Eric Blake  <eblake@redhat.com>
11822
11823         test-getaddrinfo: report error information
11824         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11825
11826 2011-05-03  Jim Meyering  <meyering@redhat.com>
11827
11828         bootstrap: avoid build failure when $GZIP is set
11829         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11830         program name.  If defined at all, it is supposed to list gzip options.
11831         Reported by Alan Curry in http://debbugs.gnu.org/8609
11832
11833 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11834
11835         readme-release: new module with release instructions
11836         * modules/readme-release: New module.
11837         * top/README-release: New file, from coreutils, grep, diffutils.
11838         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11839
11840 2011-05-02  Eric Blake  <eblake@redhat.com>
11841
11842         fflush: also replace fclose when fixing fflush
11843         * modules/fflush (Depends-on): Add fclose.
11844         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11845         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11846         memstreams with no backing fd.
11847         * doc/posix-functions/fclose.texi (fclose): Document the use of
11848         fflush module to fix the bug.
11849         * tests/test-fclose.c (main): Relax test when fclose is used in
11850         isolation.
11851
11852         fclose: add some tests
11853         * modules/fclose-tests: New test module.
11854         * tests/test-fclose.c: New file.
11855         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11856
11857         fclose: reduced dependencies
11858         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11859         simpler lseek.
11860         * lib/fclose.c (rpl_fclose): Likewise.
11861         Reported by Simon Josefsson.
11862
11863         exit: drop remaining clients
11864         * modules/argmatch (Depends-on): Replace exit with stdlib.
11865         * modules/copy-file (Depends-on): Likewise.
11866         * modules/execute (Depends-on): Likewise.
11867         * modules/exitfail (Depends-on): Likewise.
11868         * modules/obstack (Depends-on): Likewise.
11869         * modules/pagealign_alloc (Depends-on): Likewise.
11870         * modules/pipe-filter-gi (Depends-on): Likewise.
11871         * modules/pipe-filter-ii (Depends-on): Likewise.
11872         * modules/savewd (Depends-on): Likewise.
11873         * modules/spawn-pipe (Depends-on): Likewise.
11874         * modules/wait-process (Depends-on): Likewise.
11875         * modules/xsetenv (Depends-on): Likewise.
11876         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11877         * modules/git-merge-changelog (Depends-on): Likewise.
11878         * modules/long-options (Depends-on): Likewise.
11879         * modules/pt_chown (Depends-on): Likewise.
11880         * modules/sysexits (Depends-on): Likewise.
11881
11882         freading: relax license from LGPLv3+ to LGPLv2+
11883         * modules/freading (License): Relax LGPL version.
11884
11885 2011-05-02  Bruno Haible  <bruno@clisp.org>
11886
11887         fchdir: Remove unused dependencies.
11888         * modules/fchdir (Depends-on): Remove include_next.
11889
11890 2011-05-02  Bruno Haible  <bruno@clisp.org>
11891
11892         gnulib-tool: Refactor.
11893         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11894         from func_emit_autoconf_snippets.
11895         (func_emit_autoconf_snippets): Use it.
11896
11897 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11898
11899         * NEWS: Document removal of 'exit'.
11900         * modules/exit: Remove file.
11901
11902 2011-05-01  Bruno Haible  <bruno@clisp.org>
11903
11904         Update DEPENDENCIES.
11905         * DEPENDENCIES (gettext): Recommend the newest release.
11906         Reported by Simon Josefsson.
11907
11908 2011-05-01  Bruno Haible  <bruno@clisp.org>
11909
11910         gnulib-tool: Reduce code duplication.
11911         * gnulib-tool (func_emit_autoconf_snippets): New function.
11912         (func_import, func_create_testdir): Use it.
11913
11914 2011-04-30  Eric Blake  <eblake@redhat.com>
11915
11916         fclose: don't fail on non-seekable input stream
11917         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11918         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11919         since fflush is allowed to fail in that case.
11920
11921 2011-04-30  Bruno Haible  <bruno@clisp.org>
11922
11923         dup3: cleanup
11924         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11925
11926 2011-04-30  Bruno Haible  <bruno@clisp.org>
11927
11928         netdb: Make it work in C++ mode.
11929         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11930         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11931         module.
11932         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11933         gl_MODULE_INDICATOR_FOR_TESTS.
11934         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11935         * modules/netdb-c++-tests: New file.
11936         * tests/test-netdb-c++.cc: New file.
11937
11938 2011-04-30  Bruno Haible  <bruno@clisp.org>
11939
11940         New modules 'vfscanf', 'vscanf'.
11941         * modules/vfscanf: New file.
11942         * modules/vscanf: New file.
11943         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11944         here.
11945         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11946         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11947
11948 2011-04-30  Bruno Haible  <bruno@clisp.org>
11949
11950         passfd: Add comments.
11951         * lib/passfd.c: Add comments about platforms.
11952
11953 2011-04-30  Bruno Haible  <bruno@clisp.org>
11954
11955         sys_uio: Make <sys/uio.h> self-contained.
11956         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11957         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11958
11959 2011-04-30  Bruno Haible  <bruno@clisp.org>
11960
11961         sys_socket: Ensure 'struct iovec' definition.
11962         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11963         <sys/socket.h>.
11964         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11965
11966 2011-04-30  Bruno Haible  <bruno@clisp.org>
11967
11968         sys_uio: Protect definition of 'struct iovec'.
11969         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11970         it as a C struct.
11971
11972 2011-04-30  Bruno Haible  <bruno@clisp.org>
11973
11974         manywarnings: fix indentation
11975         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11976
11977 2011-04-30  Pádraig Brady <P@draigBrady.com>
11978
11979         manywarnings: add -Wno-missing-field-initializers if needed.
11980         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11981         option if it's needed to allow initialization with { 0, }
11982
11983 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11984
11985         announce-gen: cosmetic improvement
11986         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11987
11988 2011-04-29  Jim Meyering  <meyering@redhat.com>
11989
11990         vc-list-files: indent with spaces, not TABs
11991         * build-aux/vc-list-files: Convert leading TABs to spaces,
11992         to match the style of most other files in gnulib.
11993
11994         announce-gen: indent with spaces, not TABs
11995         * build-aux/announce-gen: Convert all TABs to spaces, to match
11996         the style of most other files in gnulib.
11997
11998 2011-04-29  Eric Blake  <eblake@redhat.com>
11999
12000         quotearg: avoid uninitialized variable use
12001         * lib/quotearg.c (quoting_options_from_style): Initialize
12002         remaining fields, and ensure that custom styles are only used via
12003         quoting_options rather than quoting_style.
12004
12005 2011-04-29  Jim Meyering  <meyering@redhat.com>
12006
12007         maint.mk: remove unused VC-tag variable
12008         * top/maint.mk (VC-tag): Remove unused variable.
12009
12010 2011-04-29  Bruno Haible  <bruno@clisp.org>
12011
12012         netdb: fix gai_strerror replacements
12013         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12014         * modules/netdb: Substitute it.
12015
12016 2011-04-29  Jim Meyering  <meyering@redhat.com>
12017
12018         test-getcwd.c: avoid new set-but-not-used warning
12019         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12020         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12021         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12022         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12023
12024         test-hash.c: avoid a new shadowing warning
12025         * tests/test-hash.c (main): Don't shadow "dup".
12026
12027 2011-04-28  Eric Blake  <eblake@redhat.com>
12028
12029         getaddrinfo: fix gai_strerror signature
12030         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12031         and work around mingw with UNICODE defined.
12032         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12033         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12034         * modules/netdb (Makefile.am): Substitute it.
12035         * lib/netdb.in.h (gai_strerror): Declare replacement.
12036         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12037         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12038         the fix.
12039
12040         getsockopt: avoid compiler warning
12041         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12042         Reported by Matthias Bolte.
12043
12044         tests: drop unused link dependency
12045         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12046         * modules/dirent-safer-tests (Makefile.am): Likewise.
12047         * modules/fdopendir-tests (Makefile.am): Likewise.
12048         * modules/mkfifoat-tests (Makefile.am): Likewise.
12049         * modules/openat-safer-tests (Makefile.am): Likewise.
12050         * modules/openat-tests (Makefile.am): Likewise.
12051         * modules/readlinkat-tests (Makefile.am): Likewise.
12052         * modules/symlinkat-tests (Makefile.am): Likewise.
12053         * modules/linkat-tests (Makefile.am): Likewise.
12054         (Depends-on): Switch to filenamecat-lgpl.
12055         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12056         LIBINTL.
12057         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12058         * tests/test-linkat.c (main): Don't require xalloc.
12059
12060         hash, mgetgroups: drop xalloc dependency
12061         * lib/hash.c (includes): Adjust includes.
12062         * lib/mgetgroups.c (includes): Likewise.
12063         (xgetgroups): Move...
12064         * lib/xgetgroups.c: ...to new file.
12065         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12066         * modules/xgetgroups: New file, split from...
12067         * modules/mgetgroups: ...here.
12068         (Depends-on): Add xalloc-oversized.
12069         * modules/hash (Depends-on): Likewise.
12070         * modules/hash-tests (Depends-on): Drop xalloc.
12071         (test_hash_LDADD): Drop unused library.
12072         * tests/test-hash.c (main): Break xalloc dependency.
12073         (includes): Drop unused include.
12074
12075         xalloc-oversized: new module
12076         * modules/xalloc-oversized: New module.
12077         * modules/xalloc (Depends-on): Add it.
12078         * lib/xalloc.h (xalloc_oversized): Move...
12079         * lib/xalloc-oversized.h: ...into new file.
12080
12081         utimecmp: drop dependency on xmalloc
12082         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12083         due to memory pressure.
12084         * modules/utimecmp (Depends-on): Drop xalloc.
12085
12086 2011-04-27  Eric Blake  <eblake@redhat.com>
12087
12088         getcwd: fix mingw bugs
12089         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12090         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12091         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12092
12093 2011-04-27  Bruno Haible  <bruno@clisp.org>
12094
12095         mkstemps: Ensure declaration on MacOS X 10.5.
12096         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12097         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12098         MacOS X.
12099
12100 2011-04-27  Bruno Haible  <bruno@clisp.org>
12101
12102         mkstemp: More documentation.
12103         * doc/posix-functions/mkstemp.texi: Document header file problem on
12104         MacOS X.
12105
12106 2011-04-27  Bruno Haible  <bruno@clisp.org>
12107
12108         mkstemp: Tweak configure message when cross-compiling.
12109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12110         result as a guess.
12111
12112 2011-04-27  Bruno Haible  <bruno@clisp.org>
12113
12114         clean-temp: Clarify what it does.
12115         * lib/clean-temp.h: Add more comments.
12116         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12117         module.
12118         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12119         * doc/glibc-functions/mkstemps.texi: Likewise.
12120         * doc/glibc-functions/mkostemps.texi: Likewise.
12121
12122 2011-04-27  Eric Blake  <eblake@redhat.com>
12123
12124         fchdir: avoid extra chdir and fix test
12125         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12126         getcwd-lgpl.
12127         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12128         have to be canonical.
12129         (canonicalize_file_name): Drop unused macro.
12130         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12131
12132         filenamecat-lgpl: fix licence
12133         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12134         when it was first created.
12135
12136         linkat, renameat: add missing dependency
12137         * modules/linkat (Depends-on): Require getcwd-lgpl.
12138         * modules/renameat (Depends-on): Likewise.
12139
12140         tests: reduce dependencies
12141         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12142         * tests/test-renameat.c (main): Likewise.
12143         * modules/linkat-tests (Depends-on): Relax dependency.
12144         * modules/renameat-tests (Depends-on): Likewise.
12145         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12146         dependency explicit.
12147
12148         save-cwd: reduce default dependency
12149         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12150         * lib/save-cwd.c: Update comments.
12151         * NEWS: Document the semantic change.
12152
12153         getcwd: enhance tests
12154         * tests/test-getcwd-lgpl.c: New file, taken from...
12155         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12156         repeat long path stress tests from m4 probe.
12157         * modules/getcwd-lgpl-tests: New module.
12158         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12159         * m4/getcwd-abort-bug.m4: Update comment.
12160         * m4/getcwd-path-max.m4: Likewise.
12161
12162         getcwd-lgpl: new module
12163         * modules/getcwd-lgpl: New module.
12164         * lib/getcwd-lgpl.c: New file.
12165         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12166         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12167         * modules/getcwd (configure.ac): Set C witness.
12168         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12169
12170         getcwd: tweak comments
12171         * m4/getcwd-abort-bug.m4: Fix comments.
12172         * m4/getcwd-path-max.m4: Likewise.
12173         * m4/getcwd.m4: Likewise.
12174
12175 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12176         and Eric Blake  <eblake@redhat.com>
12177
12178         mkstemp: replace if system version uses wrong permissions
12179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12180         read/write mode bits set in file created by mkstemp.
12181         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12182
12183 2011-04-27  Eric Blake  <eblake@redhat.com>
12184
12185         passfd: avoid compiler warning
12186         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12187         Reported by Laine Stump.
12188
12189 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12190
12191         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12192         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12193
12194 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12195         and Eric Blake  <eblake@redhat.com>
12196
12197         mkstemp: mention clean-temp module
12198         * lib/mkstemp.c: Add comment.
12199         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12200
12201 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12202
12203         inttypes: also provide default values for 32-bit tests
12204         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12205         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12206
12207 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12208
12209         strtoumax: remove dependency on strtoimax
12210         This is like the strtoull change of yesterday.
12211         * modules/strtoumax (Files): Add lib/strtoimax.c.
12212         (Depends-on): Remove strtoimax and add verify.
12213
12214         inttypes-incomplete: new module
12215         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12216         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12217         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12218         of gl_INTTYPES_H.
12219         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12220         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12221         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12222         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12223         * modules/strtoumax, modules/xstrtol (Depends-on):
12224         Depend on inttypes-incomplete, not inttypes.
12225         * modules/inttypes-incomplete: New module, containing the contents
12226         of the old modules/inttypes module, except that the Files: section
12227         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12228         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12229         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12230         (Depends-on): Depend only on inttypes-incomplete.
12231         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12232
12233         inttypes: omit now-redundant strtoimax and strtoumax work
12234         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12235         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12236
12237         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12238         This supports apps that need pointers to strtoimax and strtoumax,
12239         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12240         nonexistent functions.  See
12241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12242         et seq.
12243         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12244         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12245         a macro.
12246         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12247
12248 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12249
12250         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12251
12252 2011-04-25  Bruno Haible  <bruno@clisp.org>
12253
12254         strtol, strtoul: Mark modules as obsolete.
12255         * modules/strtol (Status, Notice): New sections.
12256         * modules/strtoul (Status, Notice): New sections.
12257
12258 2011-04-25  Bruno Haible  <bruno@clisp.org>
12259
12260         strtod: Remove check for strtod, unless supporting old platforms.
12261         * modules/strtod-obsolete: New file.
12262         * m4/strtod-obsolete.m4: New file.
12263         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12264         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12265         * modules/strtod (Depends-on): Add strtod-obsolete.
12266         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12267
12268 2011-04-25  Bruno Haible  <bruno@clisp.org>
12269
12270         strcase: Make module obsolete.
12271         * modules/strcase (Status, Notice): New sections.
12272
12273 2011-04-25  Bruno Haible  <bruno@clisp.org>
12274
12275         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12276         * modules/dup2-obsolete: New file.
12277         * m4/dup2-obsolete.m4: New file.
12278         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12279         gl_FUNC_DUP2_OBSOLETE is not also defined.
12280         * modules/dup2 (Depends-on): Add dup2-obsolete.
12281         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12282
12283 2011-04-25  Bruno Haible  <bruno@clisp.org>
12284
12285         strnlen: Avoid memchr related link error on old obsolete platforms.
12286         * modules/memchr-obsolete: New file.
12287         * m4/memchr-obsolete.m4: New file.
12288         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12289         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12290         * modules/memchr (Depends-on): Add memchr-obsolete.
12291         * modules/strnlen (Depends-on): Likewise.
12292         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12293
12294 2011-04-25  Jim Meyering  <meyering@redhat.com>
12295
12296         maint.mk: makefile_at_at_check extend and clean up
12297         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12298         in addition to */Makefile.am.
12299         Exempt legitimate uses of @VAR@ notation, e.g.,
12300         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12301         Remove obsolete coreutils-specific comment.
12302         Prompted by discussion here:
12303         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12304
12305 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12306
12307         strtoul: remove dependency on strtol
12308         This is so that 'configure' need not check for strtol merely because
12309         the application needs strtoul.
12310         * modules/strtoul (Files): Add lib/strtol.c.
12311         (Depends-on): Remove strtol.
12312
12313         strtoull: remove dependency on strtoul
12314         This is like the strtoll change.
12315         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12316         (Depends-on): Remove strtoul.
12317
12318         strtoll: remove dependency on strtol
12319         This is so that 'configure' need not check for strtol merely because
12320         the application needs strtoll.
12321         * modules/strtoll (Files): Add lib/strtol.c.
12322         (Depends-on): Remove strtol.
12323
12324 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12325
12326         inttypes: Move some configure check to module 'imaxdiv'.
12327         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12328         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12329         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12330
12331 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12332
12333         inttypes: Move some configure check to module 'imaxabs'.
12334         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12335         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12336         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12337
12338 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12339
12340         inttypes: Remove configure tests that are not needed since 2009-12-31.
12341         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12342         gl_cv_header_working_inttypes_h.
12343
12344 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12345
12346         * modules/strnlen (Depends-on): Remove memchr.
12347         The strnlen implementation doesn't need the memchr module's fixes; see
12348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12349
12350         strtol: remove dependency on wchar
12351         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12352         * modules/strtol (Depends-on): Remove wchar.
12353
12354 2011-04-21  Eric Blake  <eblake@redhat.com>
12355
12356         passfd: fix test regression on Linux
12357         * modules/passfd-tests (configure.ac): Correct socketpair check.
12358
12359         passfd: speed up configure and drop unused code
12360         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12361         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12362         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12363         Instead of probing at configure for unix_scm_rights_bsd44_way,
12364         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12365         check to a struct member probe.
12366         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12367         (sendfd, recvfd): Update preprocessor checks.
12368         * modules/passfd (Files): Reflect rename, and drop unused file.
12369         (Depends-on): Drop unused dependency.
12370
12371         passfd: allow compilation on mingw
12372         * modules/sys_socket (Depends-on): Add sys_uio.
12373         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12374         iovec and a minimal struct msghdr.
12375         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12376         * tests/test-sys_socket.c (main): Enhance test.
12377         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12378         guaranteed to provide what we need.
12379         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12380         * modules/passfd-tests (Depends-on): Add sys_wait.
12381         * tests/test-passfd.c (main): Skip test on mingw, for now.
12382         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12383         partial 'struct msghdr' implementation.
12384
12385         sys_uio: new module
12386         * modules/sys_uio: New module.
12387         * modules/sys_uio-tests: Likewise.
12388         * lib/sys_uio.in.h: New file.
12389         * m4/sys_uio_h.m4: Likewise.
12390         * tests/test-sys_uio.c: Likewise.
12391         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12392         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12393
12394 2011-04-20  Jim Meyering  <meyering@redhat.com>
12395
12396         useless-if-before-free: avoid false-positive
12397         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12398         disjunct so that it too requires a terminating ";".  Without that,
12399         this script would identify as useless one statement from gcc that
12400         was not:
12401           if (aligned_ptr)
12402             free (((void **) aligned_ptr) [-1]);
12403
12404 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12405
12406         doc: update users.txt.
12407         * users.txt: Add barcode.
12408
12409 2011-04-19  Bruno Haible  <bruno@clisp.org>
12410
12411         ioctl: Remove link dependency on native Windows.
12412         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12413         (gl_close_fn, gl_ioctl_fn): New types.
12414         (struct fd_hook): Renamed from struct close_hook. Change type of
12415         private_close_fn field. Add private_ioctl_fn field.
12416         (close_hook_fn): Add parameter for primary close method.
12417         (execute_close_hooks, execute_all_close_hooks): Likewise.
12418         (ioctl_hook_fn): New type.
12419         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12420         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12421         argument.
12422         (unregister_fd_hook): Renamed from unregister_close_hook.
12423         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12424         Don't include <unistd.h>.
12425         (close): Remove undef.
12426         (anchor): Update.
12427         (execute_close_hooks): Add argument for primary close method.
12428         (execute_all_close_hooks): Likewise.
12429         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12430         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12431         argument. Allow each argument to be NULL.
12432         (unregister_fd_hook): Renamed from unregister_close_hook.
12433         * lib/close.c (rpl_close): Pass 'close' function pointer to
12434         execute_all_close_hooks.
12435         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12436         (primary_ioctl): New function.
12437         (ioctl): Don't call ioctlsocket here. Instead, call
12438         execute_all_ioctl_hooks.
12439         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12440         close method.
12441         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12442         (fd_sockets_hook): Renamed from close_sockets_hook.
12443         (gl_sockets_startup, gl_sockets_cleanup): Update.
12444         * modules/fd-hook: Renamed from modules/close-hook. Update.
12445         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12446         * modules/sockets (Depends-on): Likewise.
12447         * modules/ioctl (Depends-on): Add fd-hook.
12448         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12449         GNULIB_SOCKET.
12450
12451 2011-04-19  Bruno Haible  <bruno@clisp.org>
12452
12453         Move the support of O_NONBLOCK in open() to the 'open' module.
12454         * modules/nonblocking (Depends-on): Remove 'open'.
12455         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12456         gl_cv_have_open_O_NONBLOCK.
12457         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12458         O_NONBLOCK support.
12459         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12460
12461 2011-04-17  Bruno Haible  <bruno@clisp.org>
12462
12463         pipe2: Simplify code.
12464         * lib/pipe2.c (pipe2): Reduce code duplication.
12465
12466 2011-04-17  Bruno Haible  <bruno@clisp.org>
12467
12468         nonblocking: Add comment.
12469         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12470
12471 2011-04-17  Bruno Haible  <bruno@clisp.org>
12472
12473         nonblocking: Add tests for sockets.
12474         * tests/test-nonblocking-socket.sh: New file.
12475         * tests/test-nonblocking-socket-main.c: New file.
12476         * tests/test-nonblocking-socket-child.c: New file.
12477         * tests/test-nonblocking-socket.h: New file.
12478         * tests/socket-server.h: New file.
12479         * tests/socket-client.h: New file.
12480         * modules/nonblocking-socket-tests: New file.
12481         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12482
12483 2011-04-17  Bruno Haible  <bruno@clisp.org>
12484
12485         nonblocking: Add tests for pipes.
12486         * tests/test-nonblocking-pipe.sh: New file.
12487         * tests/test-nonblocking-pipe-main.c: New file.
12488         * tests/test-nonblocking-pipe-child.c: New file.
12489         * tests/test-nonblocking-pipe.h: New file.
12490         * tests/test-nonblocking-writer.h: New file.
12491         * tests/test-nonblocking-reader.h: New file.
12492         * tests/test-nonblocking-misc.h: New file.
12493         * modules/nonblocking-pipe-tests: New file.
12494         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12495
12496 2011-04-16  Bruno Haible  <bruno@clisp.org>
12497
12498         gettext: Clarify the needed programmer actions.
12499         * modules/gettext (Notice): New field.
12500         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12501
12502 2011-04-16  Bruno Haible  <bruno@clisp.org>
12503
12504         strchrnul: Tweak last commit.
12505         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12506         bug.
12507         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12508         as in _GL_FUNCDECL_SYS.
12509         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12510         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12511
12512 2011-04-15  Eric Blake  <eblake@redhat.com>
12513
12514         strchrnul: work around cygwin bug
12515         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12516         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12518         * modules/string (Makefile.am): Substitute it.
12519         * lib/string.in.h (strchrnul): Use it.
12520
12521 2011-04-15  Bruno Haible  <bruno@clisp.org>
12522
12523         Don't require lib/stdio-write.c when only module 'stdio' is used.
12524         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12525         invocation.
12526         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12527
12528 2011-04-14  Bruno Haible  <bruno@clisp.org>
12529
12530         Support non-blocking pipe I/O in read() on native Windows.
12531         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12532         (read): New declaration.
12533         * lib/read.c: New file.
12534         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12535         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12536         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12537         vscanf): New declarations.
12538         * lib/stdio-read.c: New file.
12539         * m4/read.m4: New file.
12540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12541         REPLACE_READ.
12542         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12543         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12544         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12545         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12546         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12547         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12548         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12549         * modules/read: New file.
12550         * modules/nonblocking (Files): Add lib/stdio-read.c.
12551         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12552         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12553         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12554         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12555         * modules/pread (Depends-on): Add read.
12556         * modules/safe-read (Depends-on): Likewise.
12557         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12558         gets, scanf, vfscanf, vscanf): Verify signatures.
12559         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12560         problem with non-blocking pipes.
12561         * doc/posix-functions/fgetc.texi: Likewise.
12562         * doc/posix-functions/fgets.texi: Likewise.
12563         * doc/posix-functions/fread.texi: Likewise.
12564         * doc/posix-functions/fscanf.texi: Likewise.
12565         * doc/posix-functions/getc.texi: Likewise.
12566         * doc/posix-functions/getchar.texi: Likewise.
12567         * doc/posix-functions/gets.texi: Likewise.
12568         * doc/posix-functions/scanf.texi: Likewise.
12569         * doc/posix-functions/vfscanf.texi: Likewise.
12570         * doc/posix-functions/vscanf.texi: Likewise.
12571
12572 2011-04-14  Bruno Haible  <bruno@clisp.org>
12573
12574         Support non-blocking pipe I/O in write() on native Windows.
12575         * lib/write.c (rpl_write): Split a write request that failed merely
12576         because the byte count was larger than the pipe buffer's size.
12577         * doc/posix-functions/write.texi: Mention the problem with large byte
12578         counts.
12579
12580 2011-04-14  Bruno Haible  <bruno@clisp.org>
12581
12582         wchar: Ensure that wchar_t gets defined on uClibc.
12583         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12584         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12585
12586 2011-04-13  Bruno Haible  <bruno@clisp.org>
12587
12588         safe-write, full-read: Avoid unnecessary compilation units.
12589         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12590         (Depends-on): Remove safe-read. Add ssize_t.
12591         * modules/full-read (Files): Add lib/full-write.c.
12592         (Depends-on): Add full-write.
12593
12594 2011-04-13  Bruno Haible  <bruno@clisp.org>
12595
12596         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12597         * modules/pwrite (Depends-on): Add 'write'.
12598
12599 2011-04-13  Bruno Haible  <bruno@clisp.org>
12600
12601         Support non-blocking pipe I/O in write() on native Windows.
12602         * lib/unistd.in.h (write): Enable replacement also if
12603         GNULIB_UNISTD_H_NONBLOCKING is 1.
12604         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12605         (rpl_write): When failing to write on a non-blocking pipe, change
12606         errno from ENOSPC to EAGAIN.
12607         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12608         putchar, puts, vfprintf, vprintf): Enable replacement also if
12609         GNULIB_STDIO_H_NONBLOCKING is 1.
12610         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12611         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12612         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12613         CALL_WITH_SIGPIPE_EMULATION.
12614         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12615         * m4/nonblocking.m4: New file.
12616         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12617         for non-blocking I/O support.
12618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12619         GNULIB_UNISTD_H_NONBLOCKING.
12620         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12621         required for non-blocking I/O support.
12622         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12623         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12624         lib/stdio-write.c, m4/asm-underscore.m4.
12625         (Depends-on): Add stdio, unistd.
12626         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12627         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12628         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12629         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12630         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12631         problem with non-blocking pipes.
12632         * doc/posix-functions/fputc.texi: Likewise.
12633         * doc/posix-functions/fputs.texi: Likewise.
12634         * doc/posix-functions/fwrite.texi: Likewise.
12635         * doc/posix-functions/printf.texi: Likewise.
12636         * doc/posix-functions/putc.texi: Likewise.
12637         * doc/posix-functions/putchar.texi: Likewise.
12638         * doc/posix-functions/puts.texi: Likewise.
12639         * doc/posix-functions/vfprintf.texi: Likewise.
12640         * doc/posix-functions/vprintf.texi: Likewise.
12641         * doc/posix-functions/write.texi: Likewise.
12642
12643 2011-04-10  Jim Meyering  <meyering@redhat.com>
12644
12645         maint.mk: prohibit doubled words
12646         Detect them also when they're separated by a newline.
12647         There are 3 ways to customize it:
12648           - disable the test on a per file basis, as usual with rules using
12649             $(VC_LIST_EXCEPT)
12650           - replace the default doubled-word-selecting regexp (affects all files)
12651           - ignore a particular file-vs-doubled-word match
12652         I nearly used that last one to ignore the "is is" match in
12653         coreutils' NEWS file, since the text was "ls -is is ..."
12654         To do that, I would have added this line to cfg.mk:
12655           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12656         but it would have ignored any "is is" match in NEWS.
12657         Low probability, but still...
12658         Instead, I changed the text, slightly:
12659           -  ls -is is now consistent with ls -lis in ignoring values returned
12660           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12661         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12662         (prohibit_doubled_word_): Define.
12663         (sc_prohibit_doubled_word): New rule.
12664         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12665
12666 2011-04-10  Jim Meyering  <meyering@redhat.com>
12667
12668         maint: fix doubled-word typo in comment
12669         * m4/gethostname.m4: s/is is/it is/
12670         * m4/getdomainname.m4: Likewise.
12671
12672 2011-04-10  Jim Meyering  <meyering@redhat.com>
12673
12674         maint: remove doubled word: s/it it/it/
12675         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12676
12677 2011-04-10  Jim Meyering  <meyering@redhat.com>
12678
12679         maint.mk: remove useless semicolon and backslash
12680         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12681         semicolon and backslash.
12682
12683 2011-04-10  Bruno Haible  <bruno@clisp.org>
12684
12685         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12686         * modules/stdint-tests (Depends-on): Add wchar.
12687
12688 2011-04-10  Jim Meyering  <meyering@redhat.com>
12689
12690         maint: remove doubled words in comments, e.g., s/a a/a/
12691         * lib/strptime.c (day_of_the_week): s/the the/the/
12692         * tests/test-chown.h (test_chown): s/a a/a/
12693
12694         test-chown.h: correct a cast
12695         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12696         when the destination is a stat.st_gid.
12697
12698 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12699
12700         getaddrinfo: Fix test for sa_len member.
12701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12702         include <sys/types.h> before <sys/socket.h>.
12703
12704 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12705
12706         maint: change "can not" to "cannot"
12707         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12708         boundaries.
12709
12710 2011-04-09  Jim Meyering  <meyering@redhat.com>
12711
12712         maint: change "a a" to "a"
12713         * tests/test-lchown.h (test_lchown): s/a a/a/
12714
12715         maint.mk: prohibit \<the the\>
12716         * top/maint.mk (sc_prohibit_the_the): New rule.
12717
12718         maint: fix "the the" in comment
12719         * lib/count-one-bits.h: s/the the/the/
12720
12721         maint: change "can not" to "cannot"
12722         But do not change the occurrences in maintain.texi or in
12723         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12724         * doc/gnulib-tool.texi: s/can not/cannot/
12725         * doc/posix-functions/accept.texi (accept): Likewise.
12726         * doc/posix-functions/socket.texi (socket): Likewise.
12727         * lib/mbrtowc.c: Likewise.
12728
12729         maint.mk: prohibit use of "can not"
12730         * top/maint.mk (sc_prohibit_can_not): New rule.
12731         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12732
12733 2011-04-09  Bruno Haible  <bruno@clisp.org>
12734
12735         careadlinkat: Guard against misuse of careadlinkatcwd.
12736         * lib/careadlinkat.c: Include <stdlib.h>.
12737         (careadlinkatcwd): Check that the fd argument is as expected.
12738
12739 2011-04-09  Bruno Haible  <bruno@clisp.org>
12740
12741         careadlinkat: Use common coding style.
12742         * lib/careadlinkat.c: Move gnulib includes after system includes.
12743
12744 2011-04-09  Bruno Haible  <bruno@clisp.org>
12745
12746         careadlinkat: Clarify specification.
12747         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12748         (careadlinkatcwd): Add comment.
12749         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12750
12751 2011-04-09  Bruno Haible  <bruno@clisp.org>
12752
12753         areadlinkat: Avoid link error on many platforms.
12754         * modules/areadlinkat (Depends-on): Add areadlink.
12755
12756 2011-04-09  Bruno Haible  <bruno@clisp.org>
12757
12758         allocator, careadlinkat: Fix double-inclusion guard.
12759         * lib/allocator.h: Fix double-inclusion guard.
12760         * lib/careadlinkat.h: Likewise.
12761
12762 2011-04-09  Bruno Haible  <bruno@clisp.org>
12763
12764         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12765         * lib/relocwrapper.c: Update dependencies hierarchy.
12766         * build-aux/install-reloc: Update list of files to be compiled.
12767         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12768         lib/allocator.[hc].
12769
12770 2011-04-08  Eric Blake  <eblake@redhat.com>
12771
12772         strftime: silence gnulib-tool warning
12773         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12774
12775 2011-04-08  Bruno Haible  <bruno@clisp.org>
12776
12777         verify: Fix syntax error with GCC 4.6 in C++ mode.
12778         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12779         (HAVE_STATIC_ASSERT): New macro.
12780         (verify_true, verify): Use 'static_assert' if it is supported and
12781         '_Static_assert' is not supported.
12782
12783 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12784
12785         allocator: New module.
12786         * modules/allocator, lib/allocator.c: New files.
12787         * lib/allocator.h (stdlib_allocator): New decl.
12788         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12789         Remove.  Do not include <stdlib.h>.
12790         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12791         * modules/careadlinkat (Files): Remove lib/allocator.h.
12792         (Depends-on): Add allocator.
12793
12794         stdlib: let modules use system malloc, realloc
12795         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12796         if !_GL_USE_STDLIB_ALLOC.
12797         (malloc, realloc): Limit this change to a smaller scope.
12798
12799         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12800         (malloc, realloc): Don't #undef; no longer needed.
12801         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12802         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12803         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12804         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12805         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12806         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12807         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12808         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12809
12810         careadlinkat: rename members to avoid problem
12811         * lib/allocator.h (struct allocator): Rename members from
12812         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12813         and realloc are #define'd.  Reported by Eric Blake in
12814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12815         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12816
12817 2011-04-08  Eric Blake  <eblake@redhat.com>
12818
12819         nonblocking: reduce dependency
12820         * tests/test-nonblocking.c: Only test sockets when in use.
12821         * modules/nonblocking-tests (Depends-on): Drop socket.
12822         (Makefile.am): Link even if sockets are not present.
12823         * modules/pipe2-tests (Makefile.am): Likewise.
12824         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12825
12826         pipe2: fix O_NONBLOCK support on mingw
12827         * modules/pipe2 (Depends-on): Add nonblocking.
12828         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12829         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12830         * tests/test-nonblocking.c (main): Likewise.
12831         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12832
12833         fcntl-h: fix O_ACCMODE on cygwin
12834         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12835         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12836
12837         pipe-filter: drop O_NONBLOCK workarounds
12838         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12839         * modules/pipe-filter-ii (Depends-on): Likewise.
12840         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12841
12842         nonblocking: provide O_NONBLOCK for mingw
12843         * modules/nonblocking (Depends-on): Add open.
12844         (configure.ac): Set new witness macro.
12845         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12846         * modules/fcntl-h (Makefile.am): Substitute it.
12847         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12848         nonblocking module is in use.
12849         * lib/nonblocking.c: Adjust portability test.
12850         * lib/open.c (open): Don't let native open see gnulib flag.
12851         * tests/test-fcntl-h.c (main): Enhance test.
12852         * tests/test-open.h (test_open): Likewise.
12853         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12854
12855         careadlinkat: fix compilation error on mingw
12856         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12857         within struct allocator.
12858
12859 2011-04-06  Eric Blake  <eblake@redhat.com>
12860
12861         binary-io: relicense under LGPLv2+
12862         * modules/binary-io (License): Relax to LGPLv2+.
12863         Requested for libvirt, and required by pipe2.
12864
12865 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12866
12867         verify: use _Static_assert if available
12868         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12869         (verify_true, verify): Use it if available.  This generates better
12870         diagnostics with GCC 4.6.0 and later.
12871
12872 2011-04-05  Bruno Haible  <bruno@clisp.org>
12873
12874         Remove leftover generated .h files after config.status changed.
12875
12876         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12877         GL_GENERATE_ALLOCA_H.
12878         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12879         GL_GENERATE_ALLOCA_H evaluates to false.
12880
12881         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12882         GL_GENERATE_ARGZ_H.
12883         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12884         evaluates to false.
12885
12886         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12887         GL_GENERATE_BYTESWAP_H.
12888         * modules/byteswap (Makefile.am): Remove byteswap.h if
12889         GL_GENERATE_BYTESWAP_H evaluates to false.
12890
12891         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12892         GL_GENERATE_ERRNO_H.
12893         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12894         evaluates to false.
12895
12896         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12897         GL_GENERATE_FLOAT_H.
12898         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12899         evaluates to false.
12900
12901         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12902         GL_GENERATE_FNMATCH_H.
12903         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12904         GL_GENERATE_FNMATCH_H evaluates to false.
12905
12906         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12907         GL_GENERATE_GLOB_H.
12908         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12909         evaluates to false.
12910
12911         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12912         automake conditional GL_GENERATE_ICONV_H.
12913         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12914         evaluates to false.
12915
12916         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12917         GL_GENERATE_NETINET_IN_H.
12918         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12919         GL_GENERATE_NETINET_IN_H evaluates to false.
12920
12921         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12922         conditional GL_GENERATE_PTHREAD_H.
12923         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12924         * modules/pthread (Makefile.am): Remove pthread.h if
12925         GL_GENERATE_PTHREAD_H evaluates to false.
12926
12927         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12928         GL_GENERATE_SCHED_H.
12929         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12930         evaluates to false.
12931
12932         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12933         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12934         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12935         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12936
12937         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12938         GL_GENERATE_STDARG_H.
12939         * modules/stdarg (Makefile.am): Remove stdarg.h if
12940         GL_GENERATE_STDARG_H evaluates to false.
12941
12942         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12943         GL_GENERATE_STDBOOL_H.
12944         * modules/stdbool (Makefile.am): Remove stdbool.h if
12945         GL_GENERATE_STDBOOL_H evaluates to false.
12946
12947         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12948         conditional GL_GENERATE_STDDEF_H.
12949         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12950         * modules/stddef (Makefile.am): Remove stddef.h if
12951         GL_GENERATE_STDDEF_H evaluates to false.
12952
12953         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12954         GL_GENERATE_STDINT_H.
12955         * modules/stdint (Makefile.am): Remove stdint.h if
12956         GL_GENERATE_STDINT_H evaluates to false.
12957
12958         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12959         GL_GENERATE_SYSEXITS_H.
12960         * modules/sysexits (Makefile.am): Remove sysexits.h if
12961         GL_GENERATE_SYSEXITS_H evaluates to false.
12962
12963         Reported by Karl Berry and Ralf Wildenhues.
12964
12965 2011-04-05  Bruno Haible  <bruno@clisp.org>
12966
12967         Ensure to rebuild generated .h files when config.status has changed.
12968         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12969         config.status.
12970         * modules/ctype (Makefile.am): Likewise.
12971         * modules/dirent (Makefile.am): Likewise.
12972         * modules/errno (Makefile.am): Likewise.
12973         * modules/fcntl-h (Makefile.am): Likewise.
12974         * modules/float (Makefile.am): Likewise.
12975         * modules/getopt-posix (Makefile.am): Likewise.
12976         * modules/glob (Makefile.am): Likewise.
12977         * modules/iconv-h (Makefile.am): Likewise.
12978         * modules/inttypes (Makefile.am): Likewise.
12979         * modules/langinfo (Makefile.am): Likewise.
12980         * modules/locale (Makefile.am): Likewise.
12981         * modules/math (Makefile.am): Likewise.
12982         * modules/netdb (Makefile.am): Likewise.
12983         * modules/netinet_in (Makefile.am): Likewise.
12984         * modules/poll-h (Makefile.am): Likewise.
12985         * modules/pthread (Makefile.am): Likewise.
12986         * modules/pty (Makefile.am): Likewise.
12987         * modules/sched (Makefile.am): Likewise.
12988         * modules/search (Makefile.am): Likewise.
12989         * modules/selinux-h (Makefile.am): Likewise.
12990         * modules/signal (Makefile.am): Likewise.
12991         * modules/spawn (Makefile.am): Likewise.
12992         * modules/stdarg (Makefile.am): Likewise.
12993         * modules/stdbool (Makefile.am): Likewise.
12994         * modules/stddef (Makefile.am): Likewise.
12995         * modules/stdint (Makefile.am): Likewise.
12996         * modules/stdio (Makefile.am): Likewise.
12997         * modules/stdlib (Makefile.am): Likewise.
12998         * modules/string (Makefile.am): Likewise.
12999         * modules/strings (Makefile.am): Likewise.
13000         * modules/sys_file (Makefile.am): Likewise.
13001         * modules/sys_ioctl (Makefile.am): Likewise.
13002         * modules/sys_select (Makefile.am): Likewise.
13003         * modules/sys_socket (Makefile.am): Likewise.
13004         * modules/sys_stat (Makefile.am): Likewise.
13005         * modules/sys_time (Makefile.am): Likewise.
13006         * modules/sys_times (Makefile.am): Likewise.
13007         * modules/sys_utsname (Makefile.am): Likewise.
13008         * modules/sys_wait (Makefile.am): Likewise.
13009         * modules/sysexits (Makefile.am): Likewise.
13010         * modules/termios (Makefile.am): Likewise.
13011         * modules/time (Makefile.am): Likewise.
13012         * modules/unistd (Makefile.am): Likewise.
13013         * modules/wchar (Makefile.am): Likewise.
13014         * modules/wctype-h (Makefile.am): Likewise.
13015         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13016
13017 2011-04-05  Bruno Haible  <bruno@clisp.org>
13018
13019         pipe2: Relicense under LGPLv2+.
13020         * modules/pipe2 (License): Change to LGPLv2+.
13021         Requested by Eric Blake, for libvirt.
13022
13023 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13024
13025         bootstrap: compute gnulib_extra_files after updating build_aux
13026         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13027         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13028
13029 2011-04-05  Eric Blake  <eblake@redhat.com>
13030
13031         bootstrap: preserve git whitelist item sorting
13032         * build-aux/bootstrap (sort_patterns): New function.
13033         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13034
13035 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13036
13037         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13038         sc_space_tab check.
13039
13040 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13041
13042         areadlink, areadlinkat: rewrite in terms of careadlinkat
13043         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13044         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13045         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13046         (malloc, realloc): Remove #undefs.
13047         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13048         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13049         readlink, ssize_t, stdint, unistd.
13050         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13051         areadlink, stdint.
13052
13053         careadlinkat: new module
13054         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13055         * modules/careadlinkat: New files, written by me with
13056         a review and feedback from Ben Pfaff in
13057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13058
13059 2011-04-01  Bruno Haible  <bruno@clisp.org>
13060
13061         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13062         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13063         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13064         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13065         Reported by Bruce Korb <bruce.korb@gmail.com>.
13066
13067 2011-04-01  Bruno Haible  <bruno@clisp.org>
13068
13069         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13070         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13071         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13072         * modules/wcpcpy (Depends-on): Add extensions.
13073         * modules/wcpncpy (Depends-on): Likewise.
13074         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13075         systems.
13076         * doc/posix-functions/wcpncpy.texi: Likewise.
13077         * doc/posix-functions/wcwidth.texi: Likewise.
13078
13079 2011-03-31  Eric Blake  <eblake@redhat.com>
13080
13081         nonblocking: fix mingw test failures
13082         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13083         non-blocking flag on regular file.
13084         (get_nonblocking_flag): Set errno on invalid fd.
13085         * tests/test-nonblocking.c (main): Avoid test failure on
13086         directories if fchdir is not active.
13087         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13088
13089 2011-03-31  Bruno Haible  <bruno@clisp.org>
13090
13091         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13092         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13093         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13094         Reported by Simon Josefsson <simon@josefsson.org>.
13095
13096 2011-03-31  Bruno Haible  <bruno@clisp.org>
13097         and Eric Blake  <eblake@redhat.com>
13098
13099         nonblocking: new module
13100         * modules/nonblocking: New module.
13101         * modules/nonblocking-tests: Likewise.
13102         * lib/nonblocking.h: New file.
13103         * lib/nonblocking.c: Likewise.
13104         * tests/test-nonblocking.c: New test.
13105         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13106
13107 2011-03-30  Bruno Haible  <bruno@clisp.org>
13108
13109         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13110         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13111         instead of 'printf' format for GCC >= 4.4.
13112         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13113         (fprintf, printf, vfprintf, vprintf): Declare with
13114         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13115         the system's vfprintf() function.
13116         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13117
13118 2011-03-30  Eric Blake  <eblake@redhat.com>
13119
13120         passfd: fix scoping bug
13121         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13122         before sendmsg/recvmsg.
13123
13124         passfd: standardize coding conventions
13125         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13126         can be learned at compile time.
13127         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13128         ifdefs.
13129         (sendfd, recvfd): Follow gnulib code conventions.
13130
13131         passfd: fix incorrect sendmsg arguments
13132         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13133         incorrect msg_controllen value.
13134         * modules/passfd-tests (Depends-on): Check for alarm.
13135         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13136         Reported by Bastien ROUCARIES.
13137
13138 2011-03-30  Bruno Haible  <bruno@clisp.org>
13139
13140         c-strcasestr: Relicense under LGPLv2+.
13141         * modules/c-strcasestr (License): Change to LGPLv2+.
13142         Requested by Eric Blake, for libvirt.
13143
13144 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13145
13146         * users.txt: Add libidn2.  Fix libtasn1 link.
13147
13148 2011-03-30  Jim Meyering  <meyering@redhat.com>
13149
13150         tests: readlink* ("",... fails with EINVAL on newer kernels
13151         readlink and readlinkat have typically failed with ENOENT for
13152         the invalid, empty file name,  "".  However, with the advent
13153         of linux-2.6.39, they fail with EINVAL.
13154         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13155         when operating on the empty file name.
13156         * tests/test-readlink.h (test_readlink): Likewise.
13157
13158 2011-03-29  Bruno Haible  <bruno@clisp.org>
13159
13160         Relicense some modules under LGPLv2+, for libidn2.
13161         * modules/array-mergesort (License): Change to LGPLv2+.
13162         * modules/c-strcaseeq (License): Likewise.
13163         * modules/striconveh (License): Likewise.
13164         * modules/striconveha (License): Likewise.
13165         * modules/uniconv/base (License): Likewise.
13166         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13167         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13168         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13169         * modules/unictype/base (License): Likewise.
13170         * modules/unictype/bidiclass-of (License): Likewise.
13171         * modules/unictype/category-M (License): Likewise.
13172         * modules/unictype/category-none (License): Likewise.
13173         * modules/unictype/category-of (License): Likewise.
13174         * modules/unictype/category-test (License): Likewise.
13175         * modules/unictype/category-test-withtable (License): Likewise.
13176         * modules/unictype/combining-class (License): Likewise.
13177         * modules/unictype/joiningtype-of (License): Likewise.
13178         * modules/unictype/scripts (License): Likewise.
13179         * modules/uninorm/base (License): Likewise.
13180         * modules/uninorm/canonical-decomposition (License): Likewise.
13181         * modules/uninorm/composition (License): Likewise.
13182         * modules/uninorm/decompose-internal (License): Likewise.
13183         * modules/uninorm/decomposition-table (License): Likewise.
13184         * modules/uninorm/nfc (License): Likewise.
13185         * modules/uninorm/nfd (License): Likewise.
13186         * modules/uninorm/u32-normalize (License): Likewise.
13187         * modules/unistr/base (License): Likewise.
13188         * modules/unistr/u32-cpy (License): Likewise.
13189         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13190         * modules/unistr/u32-to-u8 (License): Likewise.
13191         * modules/unistr/u32-uctomb (License): Likewise.
13192         * modules/unistr/u8-check (License): Likewise.
13193         * modules/unistr/u8-mblen (License): Likewise.
13194         * modules/unistr/u8-mbtouc (License): Likewise.
13195         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13196         * modules/unistr/u8-mbtoucr (License): Likewise.
13197         * modules/unistr/u8-prev (License): Likewise.
13198         * modules/unistr/u8-strlen (License): Likewise.
13199         * modules/unistr/u8-to-u32 (License): Likewise.
13200         * modules/unistr/u8-uctomb (License): Likewise.
13201         * modules/unitypes (License): Likewise.
13202         Requested by Simon Josefsson.
13203
13204 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13205
13206         lib-symbol-visibility: Add a notice.
13207         * modules/lib-symbol-visibility (Notice): New field.
13208
13209 2011-03-29  Bruno Haible  <bruno@clisp.org>
13210
13211         getaddrinfo: Doc fix.
13212         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13213         section "fixed in Gnulib".
13214
13215 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13216
13217         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13218         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13219
13220 2011-03-26  Bruno Haible  <bruno@clisp.org>
13221
13222         unictype/property-byname: Reduce the number of load-time relocations.
13223         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13224         (UC_PROPERTY_INDEX_*): New enumeration values.
13225         (uc_property_byname): Convert an index from the lookup table to an
13226         uc_property_t.
13227         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13228         values.
13229
13230 2011-03-26  Bruno Haible  <bruno@clisp.org>
13231
13232         unictype/property-byname: Allow omitted word separators and aliases.
13233         * lib/unictype/pr_byname.gperf: Add property names without word
13234         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13235         for 'space'.
13236
13237 2011-03-26  Bruno Haible  <bruno@clisp.org>
13238
13239         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13240         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13241         also hyphens to space.
13242         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13243         without spaces.
13244         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13245
13246 2011-03-26  Bruno Haible  <bruno@clisp.org>
13247
13248         unictype/joiningtype-byname: Recognize long names as well.
13249         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13250         a long name.
13251         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13252         unictype/joiningtype_byname.h.
13253         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13254         * lib/unictype/joiningtype_byname.gperf: New file.
13255         * modules/unictype/joiningtype-byname (Files): Add
13256         lib/unictype/joiningtype_byname.gperf.
13257         (Depends-on): Add gperf.
13258         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13259         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13260         long names.
13261
13262         Tests for module 'unictype/joiningtype-longname'.
13263         * modules/unictype/joiningtype-longname-tests: New file.
13264         * tests/unictype/test-joiningtype_longname.c: New file.
13265
13266         New module 'unictype/joiningtype-longname'.
13267         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13268         * lib/unictype/joiningtype_longname.c: New file.
13269         * modules/unictype/joiningtype-longname: New file.
13270         * modules/unictype/joiningtype-all (Depends-on): Add
13271         unictype/joiningtype-longname.
13272
13273 2011-03-26  Bruno Haible  <bruno@clisp.org>
13274
13275         unictype/bidiclass-byname: Recognize long names as well.
13276         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13277         name.
13278         * lib/unictype/bidi_byname.c: Include <string.h>,
13279         unictype/bidi_byname.h.
13280         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13281         * lib/unictype/bidi_byname.gperf: New file.
13282         * modules/unictype/bidiclass-byname (Files): Add
13283         lib/unictype/bidi_byname.gperf.
13284         (Depends-on): Add gperf.
13285         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13286         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13287         long names.
13288
13289         Tests for module 'unictype/bidiclass-longname'.
13290         * modules/unictype/bidiclass-longname-tests: New file.
13291         * tests/unictype/test-bidi_longname.c: New file.
13292
13293         New module 'unictype/bidiclass-longname'.
13294         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13295         * lib/unictype/bidi_longname.c: New file.
13296         * modules/unictype/bidiclass-longname: New file.
13297         * modules/unictype/bidiclass-all (Depends-on): Add
13298         unictype/bidiclass-longname.
13299
13300 2011-03-26  Bruno Haible  <bruno@clisp.org>
13301
13302         unictype/bidi*: Rename modules.
13303         * modules/unictype/bidiclass-all: Renamed from
13304         modules/unictype/bidicategory-all.
13305         * modules/unictype/bidiclass-name: Renamed from
13306         modules/unictype/bidiclass-name.
13307         (Description): Update.
13308         * modules/unictype/bidiclass-name-tests: Renamed from
13309         modules/unictype/bidicategory-name-tests.
13310         * modules/unictype/bidiclass-byname: Renamed from
13311         modules/unictype/bidicategory-byname.
13312         (Description): Update.
13313         * modules/unictype/bidiclass-byname-tests: Renamed from
13314         modules/unictype/bidicategory-byname-tests.
13315         * modules/unictype/bidiclass-of: Renamed from
13316         modules/unictype/bidicategory-of.
13317         (Description): Update.
13318         * modules/unictype/bidiclass-of-tests: Renamed from
13319         modules/unictype/bidicategory-of-tests.
13320         * modules/unictype/bidiclass-test: Renamed from
13321         modules/unictype/bidicategory-test.
13322         (Description): Update.
13323         * modules/unictype/bidiclass-test-tests: Renamed from
13324         modules/unictype/bidicategory-test-tests.
13325         * modules/unictype/bidicategory-all: New file, a simple redirection.
13326         * modules/unictype/bidicategory-name: Likewise.
13327         * modules/unictype/bidicategory-byname: Likewise.
13328         * modules/unictype/bidicategory-of: Likewise.
13329         * modules/unictype/bidicategory-test: Likewise.
13330         * modules/unictype/property-bidi-* (Dependencies): Update.
13331         * lib/unictype/bidi_*.c: Update comment.
13332
13333 2011-03-26  Bruno Haible  <bruno@clisp.org>
13334
13335         unictype/bidi*: Rename functions, part 2.
13336         * modules/unictype/bidicategory-name (configure.ac): Update required
13337         libunistring version.
13338         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13339
13340 2011-03-25  Bruno Haible  <bruno@clisp.org>
13341
13342         New module 'unictype/combining-class-all'.
13343         * modules/unictype/combining-class-all: New file.
13344
13345         Tests for module 'unictype/combining-class-byname'.
13346         * modules/unictype/combining-class-byname-tests: New file.
13347         * tests/unictype/test-combiningclass_byname.c: New file.
13348
13349         New module 'unictype/combining-class-byname'.
13350         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13351         * lib/unictype/combiningclass_byname.c: New file.
13352         * lib/unictype/combiningclass_byname.gperf: New file.
13353         * modules/unictype/combining-class-byname: New file.
13354
13355         Tests for module 'unictype/combining-class-longname'.
13356         * modules/unictype/combining-class-longname-tests: New file.
13357         * tests/unictype/test-combiningclass_longname.c: New file.
13358
13359         New module 'unictype/combining-class-longname'.
13360         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13361         * lib/unictype/combiningclass_longname.c: New file.
13362         * modules/unictype/combining-class-longname: New file.
13363
13364         Tests for module 'unictype/combining-class-name'.
13365         * modules/unictype/combining-class-name-tests: New file.
13366         * tests/unictype/test-combiningclass_name.c: New file.
13367
13368         New module 'unictype/combining-class-name'.
13369         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13370         * lib/unictype/combiningclass_name.c: New file.
13371         * modules/unictype/combining-class-name: New file.
13372
13373 2011-03-25  Bruno Haible  <bruno@clisp.org>
13374
13375         unictype/combining-class: Rename source files.
13376         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13377         of unictype/combining.h.
13378         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13379         Update.
13380         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13381         * modules/unictype/combining-class (Description): Fix.
13382         (Files, Makefile.am): Update.
13383         * tests/unictype/test-combiningclass.c: Renamed from
13384         tests/unictype/test-combining.c.
13385         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13386
13387 2011-03-25  Bruno Haible  <bruno@clisp.org>
13388
13389         unictype: Update list of canonical combining classes.
13390         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13391
13392 2011-03-25  Bruno Haible  <bruno@clisp.org>
13393
13394         unictype/category-byname: Recognize long names as well.
13395         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13396         a long name.
13397         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13398         unictype/categ_byname.h.
13399         (UC_CATEGORY_INDEX_*): New enumeration values.
13400         (uc_general_category_byname): Use uc_general_category_lookup and
13401         convert from index to value.
13402         * lib/unictype/categ_byname.gperf: New file.
13403         * modules/unictype/category-byname (Files): Add
13404         lib/unictype/categ_byname.gperf.
13405         (Depends-on): Add gperf.
13406         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13407         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13408         long names.
13409
13410         Tests for module 'unictype/category-longname'.
13411         * modules/unictype/category-longname-tests: New file.
13412         * tests/unictype/test-categ_longname.c: New file.
13413
13414         New module 'unictype/category-longname'.
13415         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13416         * lib/unictype/categ_longname.c: New file.
13417         * modules/unictype/category-longname: New file.
13418         * modules/unictype/category-all (Depends-on): Add it.
13419
13420 2011-03-25  Bruno Haible  <bruno@clisp.org>
13421
13422         Tests for module 'unictype/category-LC'.
13423         * modules/unictype/category-LC-tests: New file.
13424         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13425
13426         New module 'unictype/category-LC'.
13427         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13428         (UC_CATEGORY_LC): New declaration.
13429         (UC_CASED_LETTER): New macro.
13430         * lib/gen-uni-tables.c (is_category_LC): New function.
13431         (output_categories): Also handle category LC.
13432         (UC_CATEGORY_MASK_LC): New enumeration value.
13433         (general_category_byname): Also handle category LC.
13434         * lib/unictype/categ_LC.c: New file.
13435         * lib/unictype/categ_LC.h: New file, automatically generated.
13436         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13437         category LC.
13438         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13439         * modules/unictype/category-LC: New file.
13440         * modules/unictype/category-byname (Depends-on): Add
13441         unictype/category-LC.
13442         * modules/unictype/category-all (Depends-on): Likewise.
13443
13444 2011-03-25  Eric Blake  <eblake@redhat.com>
13445
13446         xmalloc: revert yesterday's regression
13447         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13448         realloc's underlying behavior (allowing allocation of zero-size
13449         objects, especially if malloc-gnu is also in use).
13450
13451 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13452
13453         maint.mk: add missing version to VC-tag
13454         * top/maint.mk: git tag was missing actual tag name; add it.
13455
13456         valgrind: do leak checking, and exit with code 1 on error (not 0)
13457         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13458         to VALGRIND.
13459
13460 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13461
13462         posix-modules: say what it does.
13463         * posix-modules: Add a line to the --help output saying what it does.
13464
13465 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13466
13467         xmalloc: Do not leak if underlying realloc is C99 compatible.
13468         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13469         This avoids a leak on C99-based systems.  See
13470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13471
13472 2011-03-24  Eric Blake  <eblake@redhat.com>
13473
13474         realloc: document portability problem
13475         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13476         passing 0 size to realloc.
13477
13478 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13479
13480         doc: update users.txt
13481         * users.txt: Add cvsps, tmpwatch
13482
13483 2011-03-23  Matt Rice  <ratmice@gmail.com>
13484
13485         doc: update users.txt
13486         * users.txt: Add gdb.
13487
13488 2011-03-23  Jim Meyering  <meyering@redhat.com>
13489
13490         doc: update users.txt
13491         Looking through matches up to the following URL (there are still
13492         several more pages), I found several projects that use gnulib:
13493         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13494         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13495         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13496
13497 2011-03-22  Bruno Haible  <bruno@clisp.org>
13498
13499         unictype/bidi*: Rename functions.
13500         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13501         uc_bidi_class, uc_is_bidi_class): New declarations.
13502         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13503         uc_bidi_category_byname.
13504         (uc_bidi_category_byname): New function.
13505         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13506         u_bidi_category_name.
13507         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13508         (uc_bidi_category_name): New function.
13509         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13510         uc_bidi_category.
13511         (uc_bidi_category): New function.
13512         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13513         uc_is_bidi_category. Invoke uc_bidi_class.
13514         (uc_is_bidi_category): New function.
13515         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13516         instead of uc_bidi_category_byname.
13517         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13518         instead of uc_bidi_category_name.
13519         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13520         uc_bidi_category.
13521         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13522         instead of uc_is_bidi_category.
13523
13524 2011-03-21  Bruno Haible  <bruno@clisp.org>
13525
13526         New module 'unictype/joininggroup-all'.
13527         * modules/unictype/joininggroup-all: New file.
13528
13529         Tests for module 'unictype/joininggroup-of'.
13530         * modules/unictype/joininggroup-of-tests: New file.
13531         * tests/unictype/test-joininggroup_of.c: New file.
13532         * tests/unictype/test-joininggroup_of.h: New file, automatically
13533         generated by gen-uni-tables.
13534
13535         New module 'unictype/joininggroup-of'.
13536         * modules/unictype/joininggroup-of: New file.
13537         * lib/unictype/joininggroup_of.c: New file.
13538         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13539         gen-uni-tables.
13540
13541         Tests for module 'unictype/joininggroup-byname'.
13542         * modules/unictype/joininggroup-byname-tests: New file.
13543         * tests/unictype/test-joininggroup_byname.c: New file.
13544
13545         New module 'unictype/joininggroup-byname'.
13546         * modules/unictype/joininggroup-byname: New file.
13547         * lib/unictype/joininggroup_byname.c: New file.
13548         * lib/unictype/joininggroup_byname.gperf: New file.
13549
13550         Tests for module 'unictype/joininggroup-name'.
13551         * modules/unictype/joininggroup-name-tests: New file.
13552         * tests/unictype/test-joininggroup_name.c: New file.
13553
13554         New module 'unictype/joininggroup-name'.
13555         * modules/unictype/joininggroup-name: New file.
13556         * lib/unictype/joininggroup_name.c: New file.
13557         * lib/unictype/joininggroup_name.h: New file.
13558
13559         New module 'unictype/joiningtype-all'.
13560         * modules/unictype/joiningtype-all: New file.
13561
13562         Tests for module 'unictype/joiningtype-of'.
13563         * modules/unictype/joiningtype-of-tests: New file.
13564         * tests/unictype/test-joiningtype_of.c: New file.
13565         * tests/unictype/test-joiningtype_of.h: New file, automatically
13566         generated by gen-uni-tables.
13567
13568         New module 'unictype/joiningtype-of'.
13569         * modules/unictype/joiningtype-of: New file.
13570         * lib/unictype/joiningtype_of.c: New file.
13571         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13572         gen-uni-tables.
13573
13574         Tests for module 'unictype/joiningtype-byname'.
13575         * modules/unictype/joiningtype-byname-tests: New file.
13576         * tests/unictype/test-joiningtype_byname.c: New file.
13577
13578         New module 'unictype/joiningtype-byname'.
13579         * modules/unictype/joiningtype-byname: New file.
13580         * lib/unictype/joiningtype_byname.c: New file.
13581
13582         Tests for module 'unictype/joiningtype-name'.
13583         * modules/unictype/joiningtype-name-tests: New file.
13584         * tests/unictype/test-joiningtype_name.c: New file.
13585
13586         New module 'unictype/joiningtype-name'.
13587         * modules/unictype/joiningtype-name: New file.
13588         * lib/unictype/joiningtype_name.c: New file.
13589
13590         unictype: Add support for Arabic shaping properties.
13591         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13592         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13593         declarations.
13594         (UC_JOINING_GROUP_*): New enumeration values.
13595         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13596         declarations.
13597         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13598         (unicode_joining_type): New variable.
13599         (UC_JOINING_GROUP_*): New enumeration values.
13600         (unicode_joining_group): New variable.
13601         (fill_arabicshaping, joining_type_as_c_identifier,
13602         output_joining_type_test, output_joining_type,
13603         joining_group_as_c_identifier, output_joining_group_test,
13604         output_joining_group): New functions.
13605         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13606         fill_arabicshaping and output_joining_type_test, output_joining_type,
13607         output_joining_group_test, output_joining_group.
13608         Reported by Simon Josefsson.
13609
13610 2011-03-21  Jim Meyering  <meyering@redhat.com>
13611
13612         strftime: fix a bug in yesterday's change
13613         * lib/strftime.c (add): Accommodate width's initial value of -1.
13614         Otherwise, nstrftime would copy uninitialized data into
13615         the result buffer.
13616
13617 2011-03-21  Jim Meyering  <meyering@redhat.com>
13618
13619         tests: add strftime-tests module
13620         * tests/test-strftime.c: New file.
13621         * modules/strftime-tests: New module.
13622
13623 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13624
13625         strftime: don't assume a byte count fits in 'int'
13626         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13627         found this problem by static analysis, using gcc -Wstrict-overflow
13628         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13629         on an integer overflow having undefined behavior, but it turns out
13630         that the argument is a size, which might not fit in 'int' anyway,
13631
13632 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13633
13634         stdio: don't require ignore_value around fwrite
13635
13636         This patch works around libc bug 11959
13637         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13638         Without this patch, applications must often write
13639         ignore_value (fwrite (...)) even though the ignore_value is
13640         not helpful here.  It's common to write many objects, using
13641         fwrite/printf/etc., and then use ferror to detect output error.
13642
13643         I considered making this patch optional, but decided against it,
13644         because libc is obviously being inconsistent here: there is no
13645         reason libc should insist that user code must inspect fwrite
13646         return's value without also insisting that it inspect printf's,
13647         putchar's, etc.  If user code wants to have a strict style where
13648         all these functions' values are checked (so that ferror need not
13649         be checked), we could add support for that style in a new gnulib
13650         module, but in the meantime it's better to be consistent and to
13651         support common usage.
13652
13653         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13654         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13655         that we are compiling in checking mode, and if not C++, and
13656         if not already wrapping fwrite for some other reason.
13657         (fwrite): #define to rpl_fwrite if the latter is defined.
13658
13659 2011-03-20  Bruno Haible  <bruno@clisp.org>
13660
13661         verror: Fix compilation error introduced on 2011-02-13.
13662         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13663         instead of __attribute__.
13664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13665
13666 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13667             Bruno Haible  <bruno@clisp.org>
13668
13669         socklen: do not depend on sys_socket
13670         While trying to modify Emacs to use gnulib's socklen module,
13671         I discovered a circular dependency: socklen depends on sys_socket
13672         and vice versa.  Emacs can use socklen, but it does not need
13673         sys_socket because it has its own substitute for sys/socket.h.
13674         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13675         gl_TYPE_SOCKLEN_T.
13676         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13677         gl_PREREQ_SYS_H_SOCKET.
13678         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13679         gl_PREREQ_SYS_H_SOCKET.
13680         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13681         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13682         * modules/socklen (Depends-on): Do not depend on sys_socket.
13683         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13684
13685 2011-03-20  Jim Meyering  <meyering@redhat.com>
13686
13687         maint.mk: sort file names *after* new transformation
13688         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13689         prefix would have led to an unwarranted failure in GNU parted.
13690         Sort after that transformation.
13691
13692 2011-03-19  Jim Meyering  <meyering@redhat.com>
13693
13694         maint.mk: fix po-file syntax-check rule
13695         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13696         Patch by Bruno Haible.
13697
13698 2011-03-19  Bruno Haible  <bruno@clisp.org>
13699
13700         socklen: Update comment.
13701         * m4/socklen.m4: Update comment about platforms.
13702
13703 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13704             Bruno Haible  <bruno@clisp.org>
13705
13706         inet_ntop, inet_pton: Simplify.
13707         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13708         documented to provide socklen_t and we already depend on sys_socket.
13709         * modules/inet_pton (Depends-on): Likewise.
13710         * lib/arpa_inet.in.h: Adjust comment.
13711
13712 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13713             Bruno Haible  <bruno@clisp.org>
13714
13715         netdb: Simplify.
13716         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13717         documented to provide socklen_t and we already depend on sys_socket.
13718         * lib/netdb.in.h: Adjust comment.
13719
13720 2011-03-19  Bruno Haible  <bruno@clisp.org>
13721
13722         sys_socket, netdb: Document problem with socklen_t.
13723         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13724         platforms.
13725         * doc/posix-headers/netdb.texi: Likewise.
13726
13727 2011-03-18  Eric Blake  <eblake@redhat.com>
13728
13729         maint.mk: let po check work in VPATH build
13730         * top/maint.mk (po_file): Allow cfg.mk override.
13731         (sc_po_check): Allow VPATH use.
13732         Reported by Jiri Denemark.
13733
13734 2011-03-16  Jim Meyering  <meyering@redhat.com>
13735
13736         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13737         Before, you would have had to create one .x-sc_ file per rule in order
13738         to exempt offending files.  Now, you may instead use a Make variable --
13739         usually defined in cfg.mk -- whose name identifies the affected rule.
13740         * top/maint.mk (_sc_excl): Define.
13741         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13742         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13743
13744 2011-03-13  Bruno Haible  <bruno@clisp.org>
13745
13746         ignore-value tests: Avoid warnings.
13747         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13748         empty for gcc < 3.4.
13749
13750 2011-03-13  Bruno Haible  <bruno@clisp.org>
13751
13752         passfd: Fix link error on Solaris.
13753         * modules/passfd (Description): Correct.
13754         (Depends-on): Add socketlib.
13755         (Link): New section.
13756         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13757
13758 2011-03-13  Bruno Haible  <bruno@clisp.org>
13759
13760         passfd: Fix link error on AIX 5.2.
13761         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13762
13763 2011-03-13  Bruno Haible  <bruno@clisp.org>
13764
13765         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13766         * lib/sys_socket.in.h: Include <stddef.h>.
13767         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13768         CMSG_FIRSTHDR. Remove unused variable.
13769
13770 2011-03-13  Bruno Haible  <bruno@clisp.org>
13771
13772         passfd: Fix compilation error on OpenBSD.
13773         * lib/passfd.c: Include <sys/uio.h>.
13774
13775 2011-03-13  Bruno Haible  <bruno@clisp.org>
13776
13777         passfd test: Fix warnings.
13778         * tests/test-passfd.c: Include <sys/wait.h>.
13779         (main): Fix typo.
13780
13781 2011-03-13  Bruno Haible  <bruno@clisp.org>
13782
13783         passfd module, part 4, tweaks.
13784         * tests/test-passfd.c: Reorder includes.
13785         (main): Fix perror and printf calls.
13786
13787 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13788
13789         passfd module, part 4.
13790         * modules/passfd-tests: New file.
13791         * tests/test-passfd.c: New file.
13792
13793 2011-03-13  Jim Meyering  <meyering@redhat.com>
13794
13795         Makefile: rely on GNU make; derive syntax-check rule names
13796         Rather than requiring that each sc_ rule be listed as a dependent
13797         of "check", use features of GNU make to derive the list.
13798         * Makefile (syntax-check-rules): Define.
13799         (check): Depend on the new variable, not the hard-coded list.
13800
13801 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13802             Bruno Haible  <bruno@clisp.org>
13803
13804         passfd module, part 3.
13805         * lib/passfd.h (recvfd): Add a flags argument.
13806         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13807         (recvfd): Add a flags argument.
13808         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13809         exists.
13810         * modules/passfd (Depends-on): Add cloexec.
13811         Suggested by Eric Blake.
13812
13813 2011-03-13  Bruno Haible  <bruno@clisp.org>
13814
13815         passfd module, part 2, tweaks.
13816         * modules/passfd (Files): Reorder.
13817         (Depends-on): Remove errno.
13818         (Include): Remove <sys/socket.h>, <sys/un.h>.
13819         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13820         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13821         specification header. Include <sys/socket.h> always. Don't include
13822         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13823         (sendfd): Clarify that it sets errno when it fails.
13824         (recvfd): Fix specification.
13825
13826 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13827
13828         passfd module, part 2.
13829         * modules/passfd: New file.
13830         * lib/passfd.h: New file.
13831         * lib/passfd.c: New file.
13832
13833 2011-03-12  Bruno Haible  <bruno@clisp.org>
13834
13835         wcswidth, mbswidth: Avoid integer overflow.
13836         * lib/wcswidth.c: Include <limits.h>.
13837         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13838         * lib/mbswidth.c: Include <limits.h>.
13839         (mbsnwidth): Avoid 'int' overflow.
13840         Reported by Jim Meyering.
13841
13842 2011-03-12  Bruno Haible  <bruno@clisp.org>
13843
13844         futimens, utimensat: Avoid endless recursion on Solaris 10.
13845         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13846         Solaris.
13847         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13848         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13849
13850 2011-03-11  Jim Meyering  <meyering@redhat.com>
13851
13852         maint.mk: relax a regexp to accommodate other formatting styles
13853         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13854         between "ngettext" and the following "(".
13855
13856 2011-03-11  Pádraig Brady <P@draigBrady.com>
13857
13858         maint.mk: suppress a false positive warning
13859         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13860         diagnostics are marked with ngettext.
13861
13862 2011-03-10  Eric Blake  <eblake@redhat.com>
13863
13864         wchar: add explicit dependencies, for Tru64
13865         * modules/mbmemcasecoll (Depends-on): Add wchar.
13866         * modules/mbtowc (Depends-on): Likewise.
13867         * modules/vasnprintf (Depends-on): Likewise.
13868         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13869         * modules/wctomb (Depends-on): Likewise.
13870         Reported by Peter O'Gorman.
13871
13872 2011-03-08  Bruno Haible  <bruno@clisp.org>
13873
13874         passfd module, part 1, tweaks.
13875         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13876         Improve indentation. Improve AC_MSG_CHECKING messages.
13877         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13878         gl_SOCKET_FAMILIES.
13879
13880 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13881
13882         passfd module, part 1.
13883         * m4/afunix.m4: New file.
13884         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13885         sockets.
13886
13887 2011-03-08  Bruno Haible  <bruno@clisp.org>
13888
13889         regex-quote: New API.
13890         * lib/regex-quote.h: Include <stdbool.h>.
13891         (struct regex_quote_spec): New type.
13892         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13893         New declarations.
13894         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13895         'const struct regex_quote_spec *' argument.
13896         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13897         (pcre_special): New constant.
13898         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13899         New functions.
13900         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13901         'const struct regex_quote_spec *' argument.
13902         * modules/regex-quote (Depends-on): Add stdbool.
13903         * tests/test-regex-quote.c (check): Update for new API. Add test for
13904         anchored results.
13905         * NEWS: Mention the API change.
13906         Reported by Reuben Thomas and Eric Blake.
13907
13908 2011-03-06  Bruno Haible  <bruno@clisp.org>
13909
13910         regex-quote: Fix creation of POSIX extended regular expressions.
13911         * lib/regex-quote.c (ere_special): Add grouping and alternation
13912         operators.
13913
13914 2011-03-05  Bruno Haible  <bruno@clisp.org>
13915
13916         doc: Improve doc regarding autopoint vs. gnulib.
13917         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13918         disable autopoint while running autoreconf.
13919         Suggested by Ralf Wildenhues.
13920
13921 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13922
13923         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13924         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13925
13926 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13927
13928         parse-duration: remove xalloc.h dependency
13929         * lib/parse-duration.c (parse_period): handle NULL return from
13930         strdup instead of calling xstrdup().
13931         * modules/parse-duration: remove "xalloc" dependency
13932
13933 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13934
13935         bootstrap: honor m4_base when running aclocal
13936         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13937
13938 2011-03-02  Jim Meyering  <meyering@redhat.com>
13939
13940         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13941         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13942         on request from Matt Booth.
13943
13944 2011-03-01  Eric Blake  <eblake@redhat.com>
13945
13946         test-link: work on Hurd
13947         * tests/test-link.h (test_link): Hurd rejects linking directories
13948         with EISDIR instead of the POSIX-mandated EPERM.
13949
13950 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13951
13952         stdio: simplify by moving files to printf-posix, sigpipe
13953         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13954         since this symbol is needed only if printf is replaced.
13955         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13956         Require gl_ASM_SYMBOL_PREFIX.
13957         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13958         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13959         (Depends-on): Add 'raise'.
13960         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13961         * modules/stdio (Files): Remove lib/stdio-write.c,
13962         m4/asm-underscore.m4.
13963         (Depends-on): Remove 'raise'.
13964
13965         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13966         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13967         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13968         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13969
13970 2011-02-28  Bruno Haible  <bruno@clisp.org>
13971
13972         localcharset: Assume ANSI C behaviour of free().
13973         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13974         calling free().
13975         Suggested by Simon Josefsson <simon@josefsson.org>.
13976
13977 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13978             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13979             Bruno Haible  <bruno@clisp.org>  (tiny change)
13980
13981         On Cygwin, use /proc file system instead of win32 API.
13982         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13983         Win32 file names.
13984         (DllMain): Simplify by removing Cygwin specific code.
13985         (find_shared_library_fullname): Use Linux specific implementation also
13986         for Cygwin.
13987         (get_shared_library_fullname): Update accordingly.
13988         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13989         Win32 file names.
13990         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13991         Cygwin specific code.
13992
13993 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13994             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13995
13996         Fix OpenMP flag detection for various Fortran compilers.
13997         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13998         OpenMP-conditional compilation construct, to force compile
13999         failure with missing OpenMP flag.
14000         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14001
14002 2011-02-25  Eric Blake  <eblake@redhat.com>
14003
14004         strstr: expand test coverage
14005         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14006         compilation.
14007         * tests/test-memmem.c (main): Duplicate tests.
14008         * tests/test-strcasestr.c (main): Likewise.
14009         * tests/test-c-strcasestr.c (main): Likewise.
14010
14011 2011-02-25  Jim Meyering  <meyering@redhat.com>
14012
14013         maint.mk: detect missing-NL-at-EOF, too
14014         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14015         it also detects when a file lacks a newline at EOF.
14016         (require_exactly_one_NL_at_EOF_): Renamed from
14017         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14018         since people may well have .x-sc_... file names tied to the
14019         existing name.  Suggested by Eric Blake.
14020
14021 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14022
14023         dirname: move m4/dos.m4 functionality into lib/dosname.h
14024
14025         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14026         extracts symbols from it, puts them into config.h; but it's much
14027         easier to use the symbols directly.  filename.h already does this,
14028         but it disagrees with dos.m4 in some respects.  This patch
14029         introduces a different include file dosname.h that packages up
14030         dos.m4, and then later we can work on merging filename.h and
14031         dosname.h.  Applications that need only the easy-to-configure
14032         symbols should consider including dosname.h rather than dirname.h.
14033         * NEWS: Mention incompatible changes.
14034         * m4/dos.m4: Remove.
14035         * lib/dosname.h, modules/dosname: New files.
14036         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14037         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14038         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14039         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14040         Include dosname.h, not dirname.h.
14041         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14042         Include dosname.h, for definitions of symbols like ISSLASH
14043         that used to be in config.h.
14044         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14045         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14046         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14047         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14048         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14049         * modules/rmdir (Files): Likewise.
14050         * modules/stat (Files): Likewise.
14051         * modules/unlink (Files): Likewise.
14052         * modules/dirname-lgpl (Depends-on): Add dosname.
14053         * modules/lstat (Depends-on): Likewise.
14054         * modules/openat (Depends-on): Likewise.
14055         * modules/rmdir (Depends-on): Likewise.
14056         * modules/savewd (Depends-on): Likewise.
14057         * modules/stat (Depends-on): Likewise.
14058         * modules/unlink (Depends-on): Likewise.
14059         * modules/openat (Depends-on): Remove dirname-lgpl.
14060         * modules/savewd (Depends-on): Likewise.
14061         * tests/test-dirname.c: Do not use removed symbols like
14062         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14063         the remaining symbols, e.g., ISSLASH ('\\').
14064
14065 2011-02-25  Eric Blake  <eblake@redhat.com>
14066
14067         strstr: revert patches that introduced bug and pessimization
14068         * lib/str-two-way.h: Add another reference.
14069         (two_way_short_needle, two_way_long_needle): Revert changes from
14070         2011-02-24; they pessimize search speed.
14071         (critical_factorization): Partially revert changes from
14072         2010-06-22; they violate the requirement that the left half of the
14073         needle be smaller than the period of the needle.
14074
14075 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14076
14077         filenamecat: remove unnecessary dependency on dirname-lgpl
14078         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14079         is no direct dependency, just an indirect one via filenamecat-lgpl.
14080
14081         remove: remove unnecessary use of m4/dos.m4
14082         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14083         * modules/remove (FILES): Remove m4/dos.m4.
14084
14085         * lib/openat-proc.c: Don't include dirname.h; not needed.
14086
14087         backupfile: remove unnecessary use of m4/dos.m4
14088         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14089         of its symbols are used by the backupfile code.  backupfile.c does
14090         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14091         for the rare case of programs that want all their backup file
14092         names to live within 8+3 limits, and dos.m4 doesn't address that.
14093         * modules/backupfile (Files): Remove m4/dos.m4.
14094
14095 2011-02-24  Jim Meyering  <meyering@redhat.com>
14096
14097         strstr: fix a bug whereby strstr would mistakenly return NULL
14098         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14099         in period calculation.
14100         (two_way_long_needle): Likewise.
14101         The original problem was reported by Mike Stump in
14102         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14103         Ralf Wildenhues provided the short needle and haystack.
14104         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14105         Add a more involved test to trigger the bug in two_way_long_needle.
14106
14107 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14108
14109         gnulib-tool: remove use of bold display in help screen
14110         * gnulib-tool (func_usage): Do not use bold display anymore in the
14111         help screen.  That was just meant to be a temporary emphasis for a
14112         backward-incompatible change.
14113
14114 2011-02-23  Bruno Haible  <bruno@clisp.org>
14115
14116         Fix misindentation of preprocessor directives.
14117         * lib/argp-namefrob.h: Reindent preprocessor directives.
14118         * lib/getopt_int.h (struct _getopt_data): Likewise.
14119         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14120         * lib/vasnprintf.c (decode_long_double): Likewise.
14121         * tests/test-argmatch.c: Insert blank lines, for clarity.
14122         * tests/test-exclude.c: Likewise.
14123
14124 2011-02-22  Bruno Haible  <bruno@clisp.org>
14125
14126         ioctl: Fix for MacOS X in 64-bit mode.
14127         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14128         value.
14129         Suggested by Eric Blake.
14130         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14131
14132 2011-02-22  Jim Meyering  <meyering@redhat.com>
14133
14134         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14135         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14136         in lib/.
14137
14138 2011-02-22  Eric Blake  <eblake@redhat.com>
14139
14140         maint: avoid any CDPATH issue
14141         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14142
14143         maint: adjust cpp indentation for my modules, as well
14144         * Makefile (sc_cpp_indent_check): Add my name.
14145         * lib/fbufmode.c: Filter through cppi.
14146         * lib/fpurge.c: Likewise.
14147         * lib/freadable.c: Likewise.
14148         * lib/freading.c: Likewise.
14149         * lib/fwritable.c: Likewise.
14150         * lib/fwriting.c: Likewise.
14151         * lib/sigaction.c: Likewise.
14152
14153 2011-02-22  Jim Meyering  <meyering@redhat.com>
14154
14155         maint: adjust cpp indentation to reflect nesting depth
14156         I.e., in a block of code that begins with an unnested "#if",
14157         put one space between the "#" in column 1 and following token.
14158         For example,
14159         -#include <sys/vfs.h>
14160         +# include <sys/vfs.h>
14161         Do this only in .c files that are part of a module I maintain.
14162         * lib/linkat.c: Filter through cppi.
14163         * lib/nanosleep.c: Likewise.
14164         * lib/openat.c: Likewise.
14165         * lib/openat-die.c: Likewise.
14166         * lib/dup3.c: Likewise.
14167         * lib/fchownat.c: Likewise.
14168         * lib/flock.c: Likewise.
14169         * lib/fsync.c: Likewise.
14170         * lib/fts.c: Likewise.
14171         * lib/getpass.c: Likewise.
14172         * lib/gettimeofday.c: Likewise.
14173         * lib/userspec.c: Likewise.
14174         * Makefile (sc_cpp_indent_check): New rule, to check this.
14175
14176 2011-02-22  Bruno Haible  <bruno@clisp.org>
14177
14178         New module 'wctomb'.
14179         * lib/stdlib.in.h (wctomb): New declaration.
14180         * lib/wctomb.c: New file.
14181         * lib/wctomb-impl.h: New file.
14182         * m4/wctomb.m4: New file.
14183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14184         REPLACE_WCTOMB.
14185         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14186         REPLACE_WCTOMB.
14187         * modules/wctomb: New file.
14188         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14189         * doc/posix-functions/wctomb.texi: Mention the new module.
14190         * modules/wctob (Depends-on): Add wctomb.
14191
14192 2011-02-22  Bruno Haible  <bruno@clisp.org>
14193
14194         New module 'mbtowc'.
14195         * lib/stdlib.in.h (mbtowc): New declaration.
14196         * lib/mbtowc.c: New file.
14197         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14198         * m4/mbtowc.m4: New file.
14199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14200         REPLACE_MBTOWC.
14201         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14202         REPLACE_MBTOWC.
14203         * modules/mbtowc: New file.
14204         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14205         * doc/posix-functions/mbtowc.texi: Mention the new module.
14206         * modules/btowc (Depends-on): Add mbtowc.
14207
14208 2011-02-22  Bruno Haible  <bruno@clisp.org>
14209
14210         wcrtomb: Add more tests for native Windows platforms.
14211         * tests/test-wcrtomb-w32-1.sh: New file.
14212         * tests/test-wcrtomb-w32-2.sh: New file.
14213         * tests/test-wcrtomb-w32-3.sh: New file.
14214         * tests/test-wcrtomb-w32-4.sh: New file.
14215         * tests/test-wcrtomb-w32-5.sh: New file.
14216         * tests/test-wcrtomb-w32.c: New file.
14217         * modules/wcrtomb-tests (Files): Add them.
14218         (Makefile.am): Arrange to run these tests.
14219         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14220         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14221
14222 2011-02-20  Bruno Haible  <bruno@clisp.org>
14223
14224         wcrtomb: Enhance test.
14225         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14226
14227 2011-02-20  Bruno Haible  <bruno@clisp.org>
14228
14229         mbrtowc: Tiny optimization.
14230         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14231
14232 2011-02-20  Jim Meyering  <meyering@redhat.com>
14233
14234         test-exclude.c: remove unmatched #endif
14235         * tests/test-exclude.c: Remove stray #endif, left over from
14236         the change of a week ago.
14237
14238 2011-02-19  Jim Meyering  <meyering@redhat.com>
14239
14240         git-version-gen: skip "-dirty" check when appropriate
14241         * build-aux/git-version-gen: Don't run any git commands when the
14242         version string comes from .tarball-version.  Prior to this, we
14243         would run git update-index --refresh even from a just-unpacked
14244         tarball directory, and that could affect a .git/ directory in a
14245         parent of the build directory.  Reported by Mike Frysinger.
14246
14247 2011-02-19  Bruno Haible  <bruno@clisp.org>
14248
14249         unictype/property-byname: Reduce the size of the 'data' segment.
14250         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14251
14252 2011-02-19  Bruno Haible  <bruno@clisp.org>
14253
14254         unictype/scripts: Reduce the size of the 'data' segment.
14255         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14256         '%pic'.
14257         * lib/unictype/scripts_byname.gperf: Regenerated.
14258
14259 2011-02-19  Bruno Haible  <bruno@clisp.org>
14260
14261         stdint: Update documentation.
14262         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14263
14264 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14265
14266         stdint: omit redundant check for wchar.h
14267         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14268         always tests whether wchar.h exists, so remove the now-redundant test.
14269
14270 2011-02-18  Bruno Haible  <bruno@clisp.org>
14271
14272         stdint: Cut dependency to module 'wchar'.
14273         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14274         include the necessary prerequisites.
14275         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14276         * modules/stdint (Depends-on): Remove wchar.
14277         (Makefile.am): Substitute HAVE_WCHAR_H.
14278         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14279
14280 2011-02-18  Eric Blake  <eblake@redhat.com>
14281
14282         longlong: skip, rather than fail, on cross-compilation
14283         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14284         when cross-compiling; regression from 2011-02-16.
14285
14286 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         * NEWS: Mention 2011-02-08 change to stdlib.
14289
14290 2011-02-17  Bruno Haible  <bruno@clisp.org>
14291
14292         getloadavg: Add comments about platforms.
14293         * m4/getloadavg.m4: Add comment.
14294         * lib/getloadavg.c: Likewise.
14295
14296 2011-02-17  Bruno Haible  <bruno@clisp.org>
14297
14298         getloadavg: Fix link error on Solaris 2.6.
14299         * modules/getloadavg (Link): New section.
14300         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14301         linking test-getloadavg.
14302         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14303         getloadavg.
14304
14305 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14306
14307         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14308         It was 'int', but this doesn't match the IRIX 6.5 manual.
14309         Suggested by Bruno Haible in
14310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14311
14312 2011-02-17  Bruno Haible  <bruno@clisp.org>
14313
14314         havelib: Fix comments.
14315         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14316         change.
14317
14318 2011-02-17  Bruno Haible  <bruno@clisp.org>
14319
14320         havelib: Update config.rpath.
14321         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14322
14323 2011-02-17  Bruno Haible  <bruno@clisp.org>
14324
14325         getloadavg test: Add some plausibility checks.
14326         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14327         is improbable.
14328
14329 2011-02-16  Eric Blake  <eblake@redhat.com>
14330
14331         maintainer-makefile: make syntax-check a no-op from tarballs
14332         * top/maint.mk (no-vc-detected): New rule.
14333         (local-checks-available): Use it to avoid hanging if someone tries
14334         'make syntax-check' from a tarball.  Also append to any non-syntax
14335         checks already defined in cfg.mk.
14336
14337 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14338
14339         longlong: tune, particularly for common case of c99
14340
14341         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14342         or running anything if c99, or if unsigned long long int does not
14343         work.  In either case, we know the answer without further tests.
14344         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14345         it at most once, and use its results for both long long int and
14346         unsigned long long int.  This is more likely to be efficient in
14347         the common case where the program wants to check for both long
14348         long int and unsigned long long int.
14349         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14350         since the answer is already known.
14351
14352 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         getloadavg: set errno
14355         * lib/getloadavg.c: Set errno when returning -1.  If no other
14356         error number looks appropriate, set it to ENOSYS if the getloadavg
14357         looks like it can't possibly ever work, ENOTSUP otherwise.
14358         Suggested by Bruno Haible in
14359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14360
14361         getloadavg: trim unused parts and speed up 'configure'
14362         * NEWS: Document this.
14363         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14364         always compiled if getloadavg is absent.
14365         Move test code to ...
14366         * tests/test-getloadavg.c: New file, containing previous
14367         contents of test from lib/getloadavg.c.  It also contains
14368         suggestions by Bruno Haible in
14369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14370         * modules/getloadavg-tests: New file.
14371         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14372         Do tests in the same order as they're needed for getloadavg.c.
14373         Omit setgid-related tests that generate symbols KMEM_GROUP,
14374         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14375         Do only the tests that are needed to see whether the system has
14376         getloadavg, moving the other tests into ...
14377         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14378         NLIST_NAME_UNION; nobody should be using it.  Do not define
14379         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14380         relevant, as the user of this module shouldn't care how getloadavg
14381         is implemented.
14382
14383         getloadavg: omit unused var
14384         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14385
14386 2011-02-15  Jim Meyering  <meyering@redhat.com>
14387
14388         doc: update users.txt
14389         * users.txt: Update iwhd's URL.
14390
14391 2011-02-13  Bruno Haible  <bruno@clisp.org>
14392
14393         Consistent macro naming for macros that use GCC __attribute__.
14394         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14395         _ATTRIBUTE_NONNULL_.
14396         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14397         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14398         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14399         ATTRIBUTE_DEPRECATED.
14400         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14401         ATTRIBUTE_NORETURN.
14402         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14403         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14404         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14405         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14406         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14407         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14408         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14409         ATTRIBUTE_SENTINEL.
14410         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14411         ATTRIBUTE_RETURN_CHECK.
14412         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14413         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14414         ATTRIBUTE_NORETURN.
14415         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14416         Reported by Paul Eggert.
14417
14418 2011-02-13  Bruno Haible  <bruno@clisp.org>
14419
14420         Don't interfere with a program's definition of __attribute__.
14421         * lib/argp.h (__attribute__): Remove definition.
14422         (_GL_ATTRIBUTE_FORMAT): New macro.
14423         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14424         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14425         (_GL_ATTRIBUTE_FORMAT): New macro.
14426         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14427         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14428         GCC 3 or newer.
14429         * lib/error.h (__attribute__): Remove definition.
14430         (_GL_ATTRIBUTE_FORMAT): New macro.
14431         (error, error_at_line): Use it.
14432         * lib/hash.h (__attribute__): Remove definition.
14433         (ATTRIBUTE_WUR): Update definition. Define always.
14434         * lib/openat.h (__attribute__): Remove definition.
14435         (ATTRIBUTE_NORETURN): Update definition. Define always.
14436         * lib/sigpipe-die.h (__attribute__): Remove definition.
14437         (ATTRIBUTE_NORETURN): Update definition. Define always.
14438         * lib/vasnprintf.h (__attribute__): Remove definition.
14439         (_GL_ATTRIBUTE_FORMAT): New macro.
14440         (asnprintf, vasnprintf): Use it.
14441         * lib/xalloc.h (__attribute__): Remove definition.
14442         (ATTRIBUTE_NORETURN): Update definition. Define always.
14443         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14444         * lib/xmemdup0.h (__attribute__): Remove definition.
14445         (ATTRIBUTE_NORETURN): Update definition. Define always.
14446         * lib/xprintf.h (__attribute__): Remove definition.
14447         (_GL_ATTRIBUTE_FORMAT): New macro.
14448         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14449         * lib/xstrtol.h (__attribute__): Remove definition.
14450         (ATTRIBUTE_NORETURN): Update definition. Define always.
14451         * lib/xvasprintf.h (__attribute__): Remove definition.
14452         (_GL_ATTRIBUTE_FORMAT): New macro.
14453         (xasprintf, xvasprintf): Use it.
14454         * tests/test-argmatch.c (__attribute__): Remove definition.
14455         (ATTRIBUTE_NORETURN): Update definition. Define always.
14456         * tests/test-exclude.c (__attribute__): Remove definition.
14457         (ATTRIBUTE_NORETURN): Update definition. Define always.
14458         Reported by Paul Eggert.
14459
14460 2011-02-13  Bruno Haible  <bruno@clisp.org>
14461
14462         mbrtowc: Add more tests for native Windows platforms.
14463         * tests/test-mbrtowc-w32-1.sh: New file.
14464         * tests/test-mbrtowc-w32-2.sh: New file.
14465         * tests/test-mbrtowc-w32-3.sh: New file.
14466         * tests/test-mbrtowc-w32-4.sh: New file.
14467         * tests/test-mbrtowc-w32-5.sh: New file.
14468         * tests/test-mbrtowc-w32.c: New file.
14469         * modules/mbrtowc-tests (Files): Add them.
14470         (Makefile.am): Arrange to run these tests.
14471         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14472         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14473
14474 2011-02-13  Bruno Haible  <bruno@clisp.org>
14475
14476         mbrtowc: Work around native Windows bug.
14477         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14478         guess when no suitable locale for testing was found.
14479         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14480
14481 2011-02-13  Bruno Haible  <bruno@clisp.org>
14482
14483         mbsinit: Work around mingw bug.
14484         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14485         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14486         Windows.
14487         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14488
14489 2011-02-13  Bruno Haible  <bruno@clisp.org>
14490
14491         mbsinit: Don't crash for a NULL argument.
14492         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14493         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14494
14495 2011-02-13  Bruno Haible  <bruno@clisp.org>
14496
14497         Don't interfere with a program's definition of __attribute__.
14498         * lib/stdio.in.h (__attribute__): Remove definition.
14499         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14500         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14501         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14502         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14503         * lib/string.in.h (__attribute__): Remove definition.
14504         Reported by Paul Eggert.
14505
14506 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14507
14508         stdlib: don't get in the way of non-GCC __attribute__
14509         See thread starting at
14510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14511         Revert previous stdlib change, installing the following instead:
14512         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14513         to get in the way of a non-GCC compiler that supports __attribute__.
14514         (_GL_ATTRIBUTE_RETURN): New macro.
14515         (_Exit): Use it instead of __attribute__.
14516
14517 2011-02-12  Bruno Haible  <bruno@clisp.org>
14518
14519         quotearg test: Avoid test failure on mingw.
14520         * tests/test-quotearg.sh: Convert the locale identifier from native
14521         Windows syntax to Unix syntax.
14522
14523 2011-02-12  Bruno Haible  <bruno@clisp.org>
14524
14525         setlocale: Prefer gnulib's override over libintl's override.
14526         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14527         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14528         GNULIB_defined_setlocale is set.
14529
14530 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14531
14532         stdlib: support non-GCC __attribute__
14533
14534         Fix a serious and tricky problem encountered when attempting to
14535         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14536         5.5, but it crashed due to memory corruption on Solaris 10 with
14537         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14538         bits that are otherwise zero.  This tagging is optional inside
14539         Emacs but is preferred and is used when __attribute__ ((__aligned
14540         (8))) works, as it does with both recent-enough GCC and with Sun C
14541         5.11.  However, Sun C 5.11 is not GCC and does not #define
14542         __GNUC__ and __GNUC_MINOR__.
14543
14544         When I added the getloadavg module to Emacs, it brought in
14545         stdlib.in.h, which contained this fragment:
14546
14547            #ifndef __attribute__
14548            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14549            #  define __attribute__(Spec)   /* empty */
14550            # endif
14551            #endif
14552
14553         When files that include <stdlib.h> were compiled with Sun C 5.11,
14554         the above code disabled __attribute__ ((__aligned (8))), which
14555         caused variables to not be properly aligned, which eventually led
14556         to the pointer corruption mentioned above.  (This was a bit hard
14557         to diagnose, unfortunately.)
14558
14559         Several "#define __attribute__(X) /* empty */" code snippets need
14560         to be eradicated from Gnulib to work with non-GCC compilers that
14561         support __attribute__.  The Autoconf way to do this is to test for
14562         each kind of attribute that we want support for, and selectively
14563         enable that in source code.
14564
14565         Fix this problem just for stdlib.h, by adding a test for the
14566         __noreturn__ attribute, and change stdlib.in.h to use that test
14567         when needed.  This technique can be easily generalized to the
14568         other *.in.h files and attributes, and a similar technique can be
14569         used for *.h and *.c files.  This patch is enough to solve the
14570         problem for Emacs + getloadavg, and I thought I'd publish it for
14571         feedback before undertaking further, similar fixes in other
14572         modules.
14573
14574         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14575         because it's not needed for stdlib.h.  It merely substitutes the
14576         value directly into stdlib.h.  We may well need to #define it, or
14577         similar symbols, for other modules, but it's nice to also have an
14578         option to not #define it for applications like Emacs that do not
14579         need it.
14580
14581         * lib/stdlib.in.h (__attribute__): Do not #define.
14582         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14583         be defined only if the _Exit module is also used.
14584         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14586         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14587         platforms.
14588         * modules/_Exit (Files): Add m4/attribute.m4.
14589         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14590         * m4/attribute.m4: New file.
14591
14592 2011-02-12  Bruno Haible  <bruno@clisp.org>
14593
14594         wcsrtombs: Work around bug on native Windows.
14595         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14596         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14597         instead of len.
14598         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14599
14600 2011-02-12  Bruno Haible  <bruno@clisp.org>
14601
14602         mbsrtowcs: Work around bug on native Windows.
14603         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14604         against mingw bug.
14605         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14606
14607 2011-02-12  Bruno Haible  <bruno@clisp.org>
14608
14609         Avoid setlocale bugs in tests.
14610         * modules/btowc (Dependencies): Add setlocale.
14611         * modules/c-strcase (Dependencies): Likewise.
14612         * modules/mbmemcasecmp (Dependencies): Likewise.
14613         * modules/mbmemcasecoll (Dependencies): Likewise.
14614         * modules/mbrtowc (Dependencies): Likewise.
14615         * modules/mbscasecmp (Dependencies): Likewise.
14616         * modules/mbscasestr (Dependencies): Likewise.
14617         * modules/mbschr (Dependencies): Likewise.
14618         * modules/mbscspn (Dependencies): Likewise.
14619         * modules/mbsinit (Dependencies): Likewise.
14620         * modules/mbsncasecmp (Dependencies): Likewise.
14621         * modules/mbsnrtowcs (Dependencies): Likewise.
14622         * modules/mbspbrk (Dependencies): Likewise.
14623         * modules/mbspcasecmp (Dependencies): Likewise.
14624         * modules/mbsrchr (Dependencies): Likewise.
14625         * modules/mbsrtowcs (Dependencies): Likewise.
14626         * modules/mbsspn (Dependencies): Likewise.
14627         * modules/mbsstr (Dependencies): Likewise.
14628         * modules/nl_langinfo (Dependencies): Likewise.
14629         * modules/quotearg (Dependencies): Likewise.
14630         * modules/unicase/locale-language (Dependencies): Likewise.
14631         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14632         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14633         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14634         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14635         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14636         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14637         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14638         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14639         * modules/vasnprintf-posix (Dependencies): Likewise.
14640         * modules/wcrtomb (Dependencies): Likewise.
14641         * modules/wcsnrtombs (Dependencies): Likewise.
14642         * modules/wcsrtombs (Dependencies): Likewise.
14643
14644 2011-02-12  Bruno Haible  <bruno@clisp.org>
14645
14646         setlocale: Workaround native Windows bug.
14647         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14648         succeeds but sets LC_CTYPE to "C", report a failure.
14649         * tests/test-setlocale2.sh: New file.
14650         * tests/test-setlocale2.c: New file.
14651         * modules/setlocale-tests (Files): Add the new files.
14652         (Makefile.am): Enable test-setlocale2.sh test.
14653         * doc/posix-functions/setlocale.texi: Mention workaround.
14654
14655 2011-02-11  Bruno Haible  <bruno@clisp.org>
14656
14657         Tests for module 'setlocale'.
14658         * modules/setlocale-tests: New file.
14659         * tests/test-setlocale1.sh: New file.
14660         * tests/test-setlocale1.c: New file.
14661
14662         New module 'setlocale'.
14663         * lib/locale.in.h (setlocale): New declaration.
14664         * lib/setlocale.c: New file, based on
14665         gettext/gettext-runtime/intl/setlocale.c.
14666         * m4/setlocale.m4: New file.
14667         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14668         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14669         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14670         REPLACE_SETLOCALE.
14671         * modules/setlocale: New file.
14672         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14673         * doc/posix-functions/setlocale.texi: Mention the new module.
14674
14675 2011-02-11  Bruno Haible  <bruno@clisp.org>
14676
14677         Prepare for locale dependent tests on mingw.
14678         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14679         because it has the wrong locale encoding.
14680         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14681         French_France.1252 instead of "fr".
14682         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14683         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14684         because it has the wrong locale encoding.
14685         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14686         native Windows, try Turkish_Turkey.65001.
14687         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14688         Chinese_China.54936.
14689
14690         Prepare for locale dependent tests on mingw.
14691         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14692         differently.
14693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14694         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14695         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14696         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14697
14698 2011-02-11  Eric Blake  <eblake@redhat.com>
14699
14700         strptime: avoid compiler warnings
14701         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14702         compiler warnings about dead code.
14703         Reported by Daniel P. Berrange.
14704
14705 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14706
14707         doc: update users.txt
14708         * users.txt: Add rcs.
14709
14710 2011-02-10  John W. Eaton  <jwe@gnu.org>
14711
14712         doc: update users.txt
14713         * users.txt: Add octave.
14714
14715 2011-02-10  Jim Meyering  <meyering@redhat.com>
14716
14717         doc: update users.txt
14718         * users.txt: Add iwhd.
14719
14720 2011-02-09  Bruno Haible  <bruno@clisp.org>
14721
14722         gnulib-tool: Make copyright notice adjustment more robust.
14723         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14724         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14725         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14726         License".
14727         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14728
14729 2011-02-06  Bruno Haible  <bruno@clisp.org>
14730
14731         New module 'towctrans'.
14732         * modules/towctrans: New file.
14733         * lib/wctype.in.h (towctrans): New declaration.
14734         * lib/towctrans.c: New file.
14735         * lib/towctrans-impl.h: New file.
14736         * m4/towctrans.m4: New file.
14737         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14738         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14739         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14740         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14741         * doc/posix-functions/towctrans.texi: Mention the new module.
14742
14743 2011-02-06  Bruno Haible  <bruno@clisp.org>
14744
14745         New module 'wctrans'.
14746         * modules/wctrans: New file.
14747         * lib/wctype.in.h (wctrans): New declaration.
14748         * lib/wctrans.c: New file.
14749         * lib/wctrans-impl.h: New file.
14750         * m4/wctrans.m4: New file.
14751         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14752         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14753         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14754         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14755         * doc/posix-functions/wctrans.texi: Mention the new module.
14756
14757 2011-02-06  Bruno Haible  <bruno@clisp.org>
14758
14759         New module 'iswctype'.
14760         * modules/iswctype: New file.
14761         * lib/wctype.in.h (iswctype): New declaration.
14762         * lib/iswctype.c: New file.
14763         * lib/iswctype-impl.h: New file.
14764         * m4/iswctype.m4: New file.
14765         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14766         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14767         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14768         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14769         * doc/posix-functions/iswctype.texi: Mention the new module and the
14770         HP-UX 11.00 problem.
14771
14772 2011-02-06  Bruno Haible  <bruno@clisp.org>
14773
14774         New module 'wctype'.
14775         * modules/wctype: Change to represent the wctype() substitute.
14776         * lib/wctype.in.h (wctype): New declaration.
14777         * lib/wctype.c: New file.
14778         * lib/wctype-impl.h: New file.
14779         * m4/wctype.m4: New file.
14780         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14781         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14782         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14783         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14784         * doc/posix-functions/wctype.texi: Mention the new module and the
14785         HP-UX 11.00 problem.
14786
14787 2011-02-06  Bruno Haible  <bruno@clisp.org>
14788
14789         wctype-h: Ensure wctype_t and wctrans_t are defined.
14790         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14791         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14792         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14793         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14794         HAVE_WCTRANS_T.
14795         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14796
14797 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14798
14799         flock: fix license typo
14800
14801         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14802         omitted.
14803
14804 2011-02-08  Bruno Haible  <bruno@clisp.org>
14805
14806         Split large sed scripts, for HP-UX sed.
14807         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14808         to avoid HP-UX limit of 99 commands, in the near future.
14809         * modules/stdlib (Makefile.am): Likewise.
14810         * modules/unistd (Makefile.am): Likewise.
14811         * modules/wchar (Makefile.am): Likewise.
14812         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14813         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14815
14816 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14817             Bruno Haible  <bruno@clisp.org>
14818
14819         stdlib: improve random_r modularization
14820         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14821         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14822         you also need the random_r module to get this material right.
14823         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14824         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14825         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14826
14827 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14828
14829         stdlib: don't depend on stdint
14830         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14831         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14832         be independent of whether stdint.h is needed.
14833         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14834         here, instead of ...
14835         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14836         struct random_data should be using the random_r module, not just
14837         the stdlib module (which wouldn't make sense: what package needs
14838         just struct random_data without also needing random_r?).
14839         * modules/stdlib (Depends-on): Remove stdint.
14840
14841         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14842         See the thread rooted at
14843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14844         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14845         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14846         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14847         __VMS)); previously it was always included (via fcntl--.h).
14848         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14849         hand; this is good enough for load averages.  Also, do not use
14850         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14851         flags directly if available and don't bother otherwise.  (Packages
14852         that need the extra reliability should use the modules that define
14853         these flags on older platforms that lack them.)
14854         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14855         fcntl-safer.
14856
14857 2011-02-08  Jim Meyering  <meyering@redhat.com>
14858
14859         di-set.h, ino-map.h: add multiple-inclusion guard
14860         Technically, the guard is required only for ino-map.h, due to its
14861         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14862         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14863         * lib/ino-map.h: Likewise.
14864
14865 2011-02-06  Bruno Haible  <bruno@clisp.org>
14866
14867         iswblank: Ensure declaration on glibc systems.
14868         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14869         * modules/iswblank (Dependencies): Add 'extensions'.
14870         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14871
14872 2011-02-06  Bruno Haible  <bruno@clisp.org>
14873
14874         New module 'iswblank'.
14875         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14876         * modules/iswblank: New file.
14877         * modules/wctype-h (Files): Remove lib/iswblank.c.
14878         (Makefile.am): Substitute GNULIB_ISWBLANK.
14879         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14880         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14881         (gl_WCTYPE_H_DEFAULTS): New macro.
14882         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14883         * modules/iswblank-tests: New file.
14884         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14885         * tests/test-wctype-h.c (main): Remove iswblank tests.
14886         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14887         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14888         of 'wctype-h'.
14889         * NEWS: Mention the change.
14890         * modules/mbchar (Depends-on): Add iswblank.
14891
14892 2011-02-08  Bruno Haible  <bruno@clisp.org>
14893
14894         di-set tests: Refactor.
14895         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14896         unnecessary includes.
14897         (ASSERT): Remove macro.
14898         (main): Make C90 compliant by avoiding variable declaration after
14899         statement.
14900         * modules/di-set-tests (Files): Add tests/macros.h.
14901
14902 2011-02-08  Bruno Haible  <bruno@clisp.org>
14903
14904         ino-map tests: Refactor.
14905         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14906         unnecessary includes.
14907         (ASSERT): Remove macro.
14908         (main): Make C90 compliant by avoiding variable declaration after
14909         statement.
14910         * modules/ino-map-tests (Files): Add tests/macros.h.
14911
14912 2011-02-08  Jim Meyering  <meyering@redhat.com>
14913
14914         di-set: add "const" to a cast
14915         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14916         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14917
14918 2011-02-06  Bruno Haible  <bruno@clisp.org>
14919
14920         Rename module 'wctype' to 'wctype-h'.
14921         * modules/wctype-h: Renamed from modules/wctype.
14922         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14923         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14924         (Files, Depends-on, Makefile.am): Update.
14925         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14926         (Files, Makefile.am): Update.
14927         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14928         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14929         * doc/posix-headers/wctype.texi: Update.
14930         * doc/posix-functions/iswalnum.texi: Update.
14931         * doc/posix-functions/iswalpha.texi: Update.
14932         * doc/posix-functions/iswblank.texi: Update.
14933         * doc/posix-functions/iswcntrl.texi: Update.
14934         * doc/posix-functions/iswdigit.texi: Update.
14935         * doc/posix-functions/iswgraph.texi: Update.
14936         * doc/posix-functions/iswlower.texi: Update.
14937         * doc/posix-functions/iswprint.texi: Update.
14938         * doc/posix-functions/iswpunct.texi: Update.
14939         * doc/posix-functions/iswspace.texi: Update.
14940         * doc/posix-functions/iswupper.texi: Update.
14941         * doc/posix-functions/iswxdigit.texi: Update.
14942         * doc/posix-functions/towlower.texi: Update.
14943         * doc/posix-functions/towupper.texi: Update.
14944         * NEWS: Mention the change.
14945         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14946         * modules/mbchar (Dependencies): Likewise.
14947         * modules/mbswidth (Dependencies): Likewise.
14948         * modules/quotearg (Dependencies): Likewise.
14949         * modules/regex (Dependencies): Likewise.
14950         * modules/wcscasecmp (Dependencies): Likewise.
14951         * modules/wcsncasecmp (Dependencies): Likewise.
14952         * modules/wcwidth (Dependencies): Likewise.
14953
14954 2011-02-06  Bruno Haible  <bruno@clisp.org>
14955
14956         New module 'wcswidth'.
14957         * modules/wcswidth: New file.
14958         * lib/wchar.in.h (wcswidth): New declaration.
14959         * lib/wcswidth.c: New file.
14960         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14961         * m4/wcswidth.m4: New file.
14962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14964         REPLACE_WCSWIDTH.
14965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14966         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14967         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14968         * doc/posix-functions/wcswidth.texi: Mention the new module.
14969
14970 2011-02-06  Bruno Haible  <bruno@clisp.org>
14971
14972         New module 'wcstok'.
14973         * modules/wcstok: New file.
14974         * lib/wchar.in.h (wcstok): New declaration.
14975         * lib/wcstok.c: New file.
14976         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14977         * m4/wcstok.m4: New file.
14978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14981         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14982         * doc/posix-functions/wcstok.texi: Mention the new module.
14983
14984 2011-02-06  Bruno Haible  <bruno@clisp.org>
14985
14986         New module 'wcsstr'.
14987         * modules/wcsstr: New file.
14988         * lib/wchar.in.h (wcsstr): New declaration.
14989         * lib/wcsstr.c: New file.
14990         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14991         * m4/wcsstr.m4: New file.
14992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14994         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14995         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14996         * doc/posix-functions/wcsstr.texi: Mention the new module.
14997
14998 2011-02-06  Bruno Haible  <bruno@clisp.org>
14999
15000         New module 'wcspbrk'.
15001         * modules/wcspbrk: New file.
15002         * lib/wchar.in.h (wcspbrk): New declaration.
15003         * lib/wcspbrk.c: New file.
15004         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15005         * m4/wcspbrk.m4: New file.
15006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15009         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15010         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15011
15012 2011-02-06  Bruno Haible  <bruno@clisp.org>
15013
15014         New module 'wcsspn'.
15015         * modules/wcsspn: New file.
15016         * lib/wchar.in.h (wcsspn): New declaration.
15017         * lib/wcsspn.c: New file.
15018         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15019         * m4/wcsspn.m4: New file.
15020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15022         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15023         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15024         * doc/posix-functions/wcsspn.texi: Mention the new module.
15025
15026 2011-02-06  Bruno Haible  <bruno@clisp.org>
15027
15028         New module 'wcscspn'.
15029         * modules/wcscspn: New file.
15030         * lib/wchar.in.h (wcscspn): New declaration.
15031         * lib/wcscspn.c: New file.
15032         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15033         * m4/wcscspn.m4: New file.
15034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15036         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15037         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15038         * doc/posix-functions/wcscspn.texi: Mention the new module.
15039
15040 2011-02-06  Bruno Haible  <bruno@clisp.org>
15041
15042         New module 'wcsrchr'.
15043         * modules/wcsrchr: New file.
15044         * lib/wchar.in.h (wcsrchr): New declaration.
15045         * lib/wcsrchr.c: New file.
15046         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15047         * m4/wcsrchr.m4: New file.
15048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15050         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15051         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15052         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15053
15054 2011-02-06  Bruno Haible  <bruno@clisp.org>
15055
15056         New module 'wcschr'.
15057         * modules/wcschr: New file.
15058         * lib/wchar.in.h (wcschr): New declaration.
15059         * lib/wcschr.c: New file.
15060         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15061         * m4/wcschr.m4: New file.
15062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15064         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15065         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15066         * doc/posix-functions/wcschr.texi: Mention the new module.
15067
15068 2011-02-06  Bruno Haible  <bruno@clisp.org>
15069
15070         New module 'wcsdup'.
15071         * modules/wcsdup: New file.
15072         * lib/wchar.in.h (wcsdup): New declaration.
15073         * lib/wcsdup.c: New file.
15074         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15075         * m4/wcsdup.m4: New file.
15076         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15077         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15078         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15079         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15080         * doc/posix-functions/wcsdup.texi: Mention the new module.
15081
15082 2011-02-06  Bruno Haible  <bruno@clisp.org>
15083
15084         New module 'wcsxfrm'.
15085         * modules/wcsxfrm: New file.
15086         * lib/wchar.in.h (wcsxfrm): New declaration.
15087         * lib/wcsxfrm.c: New file.
15088         * lib/wcsxfrm-impl.h: New file.
15089         * m4/wcsxfrm.m4: New file.
15090         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15091         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15093         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15094         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15095
15096 2011-02-06  Bruno Haible  <bruno@clisp.org>
15097
15098         New module 'wcscoll'.
15099         * modules/wcscoll: New file.
15100         * lib/wchar.in.h (wcscoll): New declaration.
15101         * lib/wcscoll.c: New file.
15102         * lib/wcscoll-impl.h: New file.
15103         * m4/wcscoll.m4: New file.
15104         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15105         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15106         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15107         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15108         * doc/posix-functions/wcscoll.texi: Mention the new module.
15109
15110 2011-02-06  Bruno Haible  <bruno@clisp.org>
15111
15112         New module 'wcsncasecmp'.
15113         * modules/wcsncasecmp: New file.
15114         * lib/wchar.in.h (wcsncasecmp): New declaration.
15115         * lib/wcsncasecmp.c: New file.
15116         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15117         * m4/wcsncasecmp.m4: New file.
15118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15121         HAVE_WCSNCASECMP.
15122         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15123         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15124
15125 2011-02-06  Bruno Haible  <bruno@clisp.org>
15126
15127         New module 'wcscasecmp'.
15128         * modules/wcscasecmp: New file.
15129         * lib/wchar.in.h (wcscasecmp): New declaration.
15130         * lib/wcscasecmp.c: New file.
15131         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15132         * m4/wcscasecmp.m4: New file.
15133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15136         HAVE_WCSCASECMP.
15137         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15138         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15139
15140 2011-02-05  Bruno Haible  <bruno@clisp.org>
15141
15142         New module 'wcsncmp'.
15143         * modules/wcsncmp: New file.
15144         * lib/wchar.in.h (wcsncmp): New declaration.
15145         * lib/wcsncmp.c: New file.
15146         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15147         * m4/wcsncmp.m4: New file.
15148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15151         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15152         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15153
15154 2011-02-05  Bruno Haible  <bruno@clisp.org>
15155
15156         New module 'wcscmp'.
15157         * modules/wcscmp: New file.
15158         * lib/wchar.in.h (wcscmp): New declaration.
15159         * lib/wcscmp.c: New file.
15160         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15161         * m4/wcscmp.m4: New file.
15162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15165         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15166         * doc/posix-functions/wcscmp.texi: Mention the new module.
15167
15168 2011-02-05  Bruno Haible  <bruno@clisp.org>
15169
15170         New module 'wcsncat'.
15171         * modules/wcsncat: New file.
15172         * lib/wchar.in.h (wcsncat): New declaration.
15173         * lib/wcsncat.c: New file.
15174         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15175         * m4/wcsncat.m4: New file.
15176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15179         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15180         * doc/posix-functions/wcsncat.texi: Mention the new module.
15181
15182 2011-02-05  Bruno Haible  <bruno@clisp.org>
15183
15184         New module 'wcscat'.
15185         * modules/wcscat: New file.
15186         * lib/wchar.in.h (wcscat): New declaration.
15187         * lib/wcscat.c: New file.
15188         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15189         * m4/wcscat.m4: New file.
15190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15193         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15194         * doc/posix-functions/wcscat.texi: Mention the new module.
15195
15196 2011-02-05  Bruno Haible  <bruno@clisp.org>
15197
15198         New module 'wcpncpy'.
15199         * modules/wcpncpy: New file.
15200         * lib/wchar.in.h (wcpncpy): New declaration.
15201         * lib/wcpncpy.c: New file.
15202         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15203         * m4/wcpncpy.m4: New file.
15204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15206         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15207         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15208         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15209
15210 2011-02-05  Bruno Haible  <bruno@clisp.org>
15211
15212         New module 'wcsncpy'.
15213         * modules/wcsncpy: New file.
15214         * lib/wchar.in.h (wcsncpy): New declaration.
15215         * lib/wcsncpy.c: New file.
15216         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15217         * m4/wcsncpy.m4: New file.
15218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15221         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15222         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15223
15224 2011-02-05  Bruno Haible  <bruno@clisp.org>
15225
15226         New module 'wcpcpy'.
15227         * modules/wcpcpy: New file.
15228         * lib/wchar.in.h (wcpcpy): New declaration.
15229         * lib/wcpcpy.c: New file.
15230         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15231         * m4/wcpcpy.m4: New file.
15232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15234         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15235         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15236         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15237
15238 2011-02-05  Bruno Haible  <bruno@clisp.org>
15239
15240         New module 'wcscpy'.
15241         * modules/wcscpy: New file.
15242         * lib/wchar.in.h (wcscpy): New declaration.
15243         * lib/wcscpy.c: New file.
15244         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15245         * m4/wcscpy.m4: New file.
15246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15248         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15249         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15250         * doc/posix-functions/wcscpy.texi: Mention the new module.
15251
15252 2011-02-05  Bruno Haible  <bruno@clisp.org>
15253
15254         New module 'wcsnlen'.
15255         * modules/wcsnlen: New file.
15256         * lib/wchar.in.h (wcsnlen): New declaration.
15257         * lib/wcsnlen.c: New file.
15258         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15259         * m4/wcsnlen.m4: New file.
15260         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15261         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15263         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15264         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15265
15266 2011-02-05  Bruno Haible  <bruno@clisp.org>
15267
15268         New module 'wcslen'.
15269         * modules/wcslen: New file.
15270         * lib/wchar.in.h (wcslen): New declaration.
15271         * lib/wcslen.c: New file.
15272         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15273         * m4/wcslen.m4: New file.
15274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15277         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15278         * doc/posix-functions/wcslen.texi: Mention the new module.
15279
15280 2011-02-05  Bruno Haible  <bruno@clisp.org>
15281
15282         New module 'wmemset'.
15283         * modules/wmemset: New file.
15284         * lib/wchar.in.h (wmemset): New declaration.
15285         * lib/wmemset.c: New file.
15286         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15287         * m4/wmemset.m4: New file.
15288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15290         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15291         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15292         * doc/posix-functions/wmemset.texi: Mention the new module.
15293
15294 2011-02-05  Bruno Haible  <bruno@clisp.org>
15295
15296         New module 'wmemmove'.
15297         * modules/wmemmove: New file.
15298         * lib/wchar.in.h (wmemmove): New declaration.
15299         * lib/wmemmove.c: New file.
15300         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15301         * m4/wmemmove.m4: New file.
15302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15304         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15305         HAVE_WMEMMOVE.
15306         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15307         * doc/posix-functions/wmemmove.texi: Mention the new module.
15308
15309 2011-02-05  Bruno Haible  <bruno@clisp.org>
15310
15311         New module 'wmemcpy'.
15312         * modules/wmemcpy: New file.
15313         * lib/wchar.in.h (wmemcpy): New declaration.
15314         * lib/wmemcpy.c: New file.
15315         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15316         * m4/wmemcpy.m4: New file.
15317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15319         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15320         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15321         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15322
15323 2011-02-05  Bruno Haible  <bruno@clisp.org>
15324
15325         New module 'wmemcmp'.
15326         * modules/wmemcmp: New file.
15327         * lib/wchar.in.h (wmemcmp): New declaration.
15328         * lib/wmemcmp.c: New file.
15329         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15330         * m4/wmemcmp.m4: New file.
15331         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15332         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15333         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15334         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15335         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15336
15337 2011-02-07  Jim Meyering  <meyering@redhat.com>
15338
15339         di-set, ino-map: new modules, from coreutils
15340         * lib/di-set.c: New file.
15341         * lib/di-set.h: Likewise.
15342         * lib/ino-map.c: Likewise.
15343         * lib/ino-map.h: Likewise.
15344         * modules/di-set: Likewise.
15345         * modules/di-set-tests: Likewise.
15346         * modules/ino-map: Likewise.
15347         * modules/ino-map-tests: Likewise.
15348         * tests/test-di-set.c: Likewise.
15349         * tests/test-ino-map.c: Likewise.
15350
15351 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15352
15353         getloadavg: merge minor changes from Emacs
15354
15355         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15356         (getloadavg): Use memset, not bzero.
15357
15358         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15359         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15360         clash (bug#86).
15361
15362 2010-11-14  Bruno Haible  <bruno@clisp.org>
15363
15364         Allow multiple gnulib generated replacements to coexist.
15365         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15366         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15367         * lib/langinfo.in.h (nl_item): Likewise.
15368         * lib/math.in.h (_NaN, NAN): Likewise.
15369         * lib/netdb.in.h (struct addrinfo): Likewise.
15370         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15371         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15372         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15373         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15374         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15375         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15376         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15377         pthread_mutexattr_init, pthread_mutexattr_settype,
15378         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15379         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15380         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15381         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15382         * lib/sched.in.h (struct sched_param): Likewise.
15383         * lib/se-selinux.in.h (security_class_t, security_context_t,
15384         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15385         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15386         lsetfilecon, fsetfilecon, security_check_context,
15387         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15388         Likewise.
15389         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15390         Likewise.
15391         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15392         _gl_function_taking_int_returning_void_t, union sigval,
15393         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15394         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15395         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15396         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15397         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15398         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15399         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15400         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15401         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15402         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15403         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15404         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15405         socklen_t, rpl_fd_isset): Likewise.
15406         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15407         * lib/sys_time.in.h (struct timeval): Likewise.
15408         * lib/sys_times.in.h (struct tms): Likewise.
15409         * lib/sys_utsname.in.h (struct utsname):
15410         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15411         * lib/unistd.in.h (getpagesize): Likewise.
15412         * lib/wchar.in.h (mbstate_t): Likewise.
15413         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15414         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15415         towlower, towupper): Likewise.
15416         Reported by Sam Steingold <sds@gnu.org>.
15417
15418 2011-02-05  Eric Blake  <eblake@redhat.com>
15419
15420         unsetenv: work around Haiku issues
15421         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15422         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15423
15424 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15425
15426         libposix: avoid calling error() within libposix
15427         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15428         is defined.
15429
15430 2011-02-05  Eric Blake  <eblake@redhat.com>
15431
15432         strerror_r-posix: port to cygwin
15433         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15434         implementation.
15435         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15436         * tests/test-strerror_r.c (main): Fix test.
15437         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15438         issue.
15439
15440 2011-02-05  Bruno Haible  <bruno@clisp.org>
15441
15442         New module 'wmemchr'.
15443         * modules/wmemchr: New file.
15444         * lib/wchar.in.h (wmemchr): New declaration.
15445         * lib/wmemchr.c: New file.
15446         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15447         * m4/wmemchr.m4: New file.
15448         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15449         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15450         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15451         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15452         * doc/posix-functions/wmemchr.texi: Mention the new module.
15453
15454 2011-02-04  Eric Blake  <eblake@redhat.com>
15455
15456         fdopendir: detect FreeBSD bug
15457         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15458         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15459
15460 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15461
15462         stdbool: do not define HAVE_STDBOOL_H
15463         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15464         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15465         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15466         imported from the latest Autoconf git.  It was motivated by Emacs,
15467         which uses gnulib but does not need HAVE_STDBOOL_H.
15468
15469 2011-02-04  Bruno Haible  <bruno@clisp.org>
15470
15471         wcsnrtombs: Prepare for new module wwcsnrtombs.
15472         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15473         * lib/wcsnrtombs.c: Include it.
15474         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15475
15476         wcsrtombs: Prepare for new module wwcsrtombs.
15477         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15478         * lib/wcsrtombs.c: Include it.
15479         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15480
15481         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15482         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15483         * lib/mbsnrtowcs.c: Include it.
15484         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15485
15486         mbsrtowcs: Prepare for new module mbsrtowwcs.
15487         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15488         * lib/mbsrtowcs.c: Include it.
15489         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15490
15491 2011-02-04  Bruno Haible  <bruno@clisp.org>
15492
15493         vasnprintf: Reduce use of malloc for small format strings.
15494         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15495         (arguments): Add room for the first 7 arguments.
15496         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15497         (char_directives, u8_directives, u16_directives, u32_directives): Add
15498         room for the first 7 directives.
15499         * lib/printf-parse.c: Include <string.h>.
15500         (PRINTF_PARSE): Change memory handling code so that it uses the first
15501         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15502         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15503         Reported by Pádraig Brady <P@draigbrady.com>.
15504
15505 2011-01-31  Eric Blake  <eblake@redhat.com>
15506
15507         dup2: work around Haiku bug
15508         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15509         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15510         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15511         * tests/test-dup2.c (main): Enhance test.
15512
15513 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15514
15515         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15516         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15517         declared by eglibc 2.11.2.
15518         * lib/stdio.in.h: Likewise.
15519
15520 2011-01-31  Eric Blake  <eblake@redhat.com>
15521
15522         ignore-value: add missing test dependency
15523         * tests/test-ignore-value.c: Revert previous change; stdio.h
15524         provides off_t.
15525         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15526
15527 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15528
15529         mktime: clarify long_int width checking
15530         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15531         the top level, to make it clearer that the assumption about
15532         long_int width is being checked.  See
15533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15534
15535 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15536
15537         ignore-value: Fix self-test.
15538         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15539
15540 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         TYPE_MAXIMUM: avoid theoretically undefined behavior
15543         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15544         negative number, which the C Standard says has undefined behavior.
15545         In practice this is not a problem, but might as well do it by the book.
15546         Reported by Rich Felker and Eric Blake; see
15547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15548         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15549         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15551         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15552         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15553         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15554
15555         mktime: #undef mktime before #defining it
15556         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15557
15558         mktime: systematically normalize tm_isdst comparisons
15559         * lib/mktime.c (isdst_differ): New function.
15560         (__mktime_internal): Use it systematically for all isdst comparisons.
15561         This completes the fix for libc BZ #6723, and removes the need for
15562         normalizing tm_isdst.  See
15563         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15564         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15565
15566         mktime: fix some integer overflow issues and sidestep the rest
15567
15568         This was prompted by a bug report by Benjamin Lindner for MinGW
15569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15570         His bug is due to signed integer overflow (0 - INT_MIN), and I
15571         I scanned through mktime.c looking for other integer overflow
15572         problems, fixing all the bugs I found.
15573
15574         Although the C Standard says the resulting code is still not safe
15575         in the presence of integer overflow, in practice it should be good
15576         enough for all real-world two's-complement implementations, except
15577         for debugging environments that deliberately trap on integer
15578         overflow (e.g., gcc -ftrapv).
15579
15580         * lib/mktime.c (WRAPV): New macro.
15581         (SHR): Also check that long_int and time_t shift right in the
15582         usual way, before using the fast-but-unportable method.
15583         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15584         used.  The code already assumed two's complement, so there's
15585         no need to test for alternatives.  All uses removed.
15586         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15587         the C standard.  Problem reported by Rich Felker in
15588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15589         (twos_complement_arithmetic): Also check long_int and time_t.
15590         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15591         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15592         (__mktime_internal): Avoid integer overflow with unary subtraction
15593         in two instances where -1 - X is an adequate replacement for -X,
15594         since the calculations are approximate.
15595
15596 2011-01-29  Eric Blake  <eblake@redhat.com>
15597
15598         mktime: avoid infinite loop
15599         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15600         type; behavior is still undefined but portable to all known targets.
15601         Reported by Rich Felker.
15602
15603 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15604
15605         rename, unlink, same-inode: Relicense.
15606         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15607         * modules/unlink (License): Likewise.
15608         * modules/same-inode (License): Likewise.
15609
15610 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15611
15612         mktime: avoid problems on NetBSD 5 / i386
15613         * lib/mktime.c (long_int): New type.  This works around a problem
15614         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15615         but time_t is 64 bits, and where I expect the existing code is
15616         wrong in some cases.
15617         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15618         (ydhms_diff): Bring back the compile-time check for wide-enough
15619         year and yday.
15620
15621         mktime: fix misspelling in comment
15622         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15623         This merges all recent glibc changes of importance.
15624
15625 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15626
15627         move-if-change: cope with concurrent mv of identical file.
15628         * build-aux/move-if-change (CMPPROG): Accept environment
15629         variable as an override for `cmp'.
15630         (usage): Document CMPPROG.
15631         Adjust comparison to drop stdout.  Cope with failure of mv if
15632         the target file exists and is identical to the source, for
15633         parallel builds.
15634         Report from H.J. Lu against binutils in PR binutils/12283.
15635
15636 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15637
15638         * users.txt: Mention sharutils.
15639
15640 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15641
15642         * users.txt: Mention OATH Toolkit.
15643
15644 2011-01-27  Bruno Haible  <bruno@clisp.org>
15645
15646         Prepare for supporting FreeBSD 10.
15647         * build-aux/config.libpath: Remove handling of freebsd1*.
15648
15649 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15650
15651         Prepare for supporting FreeBSD 10.
15652         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15653         match FreeBSD 10.0.
15654
15655 2011-01-27  Bruno Haible  <bruno@clisp.org>
15656
15657         vma-iter, get-rusage-as: Add OpenBSD support.
15658         * modules/vma-iter (configure.ac): Test for mquery.
15659         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15660         * lib/vma-iter.c: Include <sys/mman.h>.
15661         (vma_iterate): Add an implementation based on mquery().
15662         * lib/resource-ext.h (get_rusage_as): Update comments.
15663         * lib/get-rusage-as.c: Likewise.
15664         * lib/get-rusage-data.c: Likewise.
15665
15666 2011-01-26  Karl Berry  <karl@gnu.org>
15667
15668         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15669         variables to make it easier to override the makeinfo program used.
15670
15671 2011-01-26  Eric Blake  <eblake@redhat.com>
15672
15673         fcntl: work around Haiku F_DUPFD bugs
15674         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15675         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15676         cloexec bit on duplication.
15677         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15678
15679 2011-01-26  Bruno Haible  <bruno@clisp.org>
15680
15681         Enable memory leak tests on AIX.
15682         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15683         * tests/test-fprintf-posix3.c (main): Likewise.
15684
15685 2011-01-26  Bruno Haible  <bruno@clisp.org>
15686
15687         Tests for module 'get-rusage-data'.
15688         * modules/get-rusage-data-tests: New file.
15689         * tests/test-get-rusage-data.c: New file.
15690
15691         New module 'get-rusage-data'.
15692         * lib/resource-ext.h (get_rusage_data): New declaration.
15693         * lib/get-rusage-data.c: New file.
15694         * modules/get-rusage-data: New file.
15695
15696 2011-01-25  Bruno Haible  <bruno@clisp.org>
15697
15698         get-rusage-as: Allow for easier testing.
15699         * lib/resource-ext.h (get_rusage_as): Add comment.
15700         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15701         (main): New function for interactive testing.
15702
15703 2011-01-25  Bruno Haible  <bruno@clisp.org>
15704
15705         vma-iter: Treat Haiku like BeOS.
15706         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15707         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15708
15709 2011-01-25  Eric Blake  <eblake@redhat.com>
15710
15711         c-stack: fix regression on cygwin when libsigsegv is present
15712         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15713
15714 2011-01-24  Bruno Haible  <bruno@clisp.org>
15715
15716         vma-iter: Avoid empty intervals.
15717         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15718         on an empty interval.
15719
15720 2011-01-24  Jim Meyering  <meyering@redhat.com>
15721
15722         u64: remove unnecessary #include
15723         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15724
15725 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15726
15727         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15728         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15729
15730 2011-01-23  Bruno Haible  <bruno@clisp.org>
15731
15732         New module 'vma-iter'.
15733         * lib/vma-iter.h: New file.
15734         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15735         * modules/vma-iter: New file.
15736         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15737         for get_rusage_as_via_iterator.
15738         (vma_iterate_callback): New function.
15739         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15740         * modules/get-rusage-as (Depends-on): Add vma-iter.
15741
15742 2011-01-23  Bruno Haible  <bruno@clisp.org>
15743
15744         uninorm: Tweak includes.
15745         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15746         Reported by Jim Meyering.
15747
15748 2011-01-23  Bruno Haible  <bruno@clisp.org>
15749
15750         get-rusage-as: Improve on NetBSD.
15751         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15752         /proc, like on FreeBSD.
15753
15754 2011-01-23  Jim Meyering  <meyering@redhat.com>
15755
15756         xreadlink.h: remove unnecessary #include
15757         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15758
15759         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15760         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15761
15762 2011-01-23  Bruno Haible  <bruno@clisp.org>
15763
15764         get-rusage-as: Fix bug.
15765         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15766         original limit when aborting the first loop.
15767
15768 2011-01-23  Bruno Haible  <bruno@clisp.org>
15769
15770         wctype: Ensure valid C syntax.
15771         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15772         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15773
15774 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15775
15776         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15778         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15779         as they are needed only for configure's test case.
15780         This removes two unnecessary symbols from config.h.
15781
15782         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15783         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15785         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15786         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15787         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15788         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15789         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15790         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15791         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15792         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15793         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15794         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15795         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15796         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15797         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15798         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15799         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15800
15801 2011-01-21  Eric Blake  <eblake@redhat.com>
15802
15803         maintainer-makefile: work with older git for submodule check
15804         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15805         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15806         Reported by Matthias Bolte.
15807
15808         bootstrap: minor portability fixes
15809         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15810         (usage): Omit leading capital and trailing . on help phrases, per
15811         GNU Coding Standards.
15812         (check_versions, top level): Prefix messages with script name.
15813
15814 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15815
15816         bootstrap: support --no-git option
15817         * build-aux/bootstrap: Add --no-git option, to be used when
15818         --gnulib-srcdir points to the exact desired checkout.
15819
15820 2011-01-21  Eric Blake  <eblake@redhat.com>
15821
15822         strerror_r-posix: work with glibc 2.13
15823         * lib/strerror_r.c (strerror_r): Fix return type.
15824
15825 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15826             Bruno Haible  <bruno@clisp.org>
15827
15828         uN_strstr: New unit tests.
15829         * modules/unistr/u8-strstr-tests: New file.
15830         * modules/unistr/u16-strstr-tests: New file.
15831         * modules/unistr/u32-strstr-tests: New file.
15832         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15833         * tests/unistr/test-u8-strstr.c: New file.
15834         * tests/unistr/test-u16-strstr.c: New file.
15835         * tests/unistr/test-u32-strstr.c: New file.
15836
15837 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15838             Bruno Haible  <bruno@clisp.org>
15839
15840         Make uN_strstr functions O(n) worst-case.
15841         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15842         16-bit and 32-bit unit cases, use the unibyte algorithm from
15843         lib/mbsstr.c.
15844         * lib/unistr/u8-strstr.c: Include <string.h>.
15845         (UNIT_IS_UINT8_T): New macro.
15846         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15847         (U_STRLEN, U_STRNLEN): New macros.
15848         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15849         (U_STRLEN, U_STRNLEN): New macros.
15850         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15851         (configure.ac): Update required libunistring version.
15852         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15853         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15854         malloca.
15855         (configure.ac): Update required libunistring version.
15856         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15857         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15858         malloca.
15859         (configure.ac): Update required libunistring version.
15860
15861 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15862             Bruno Haible  <bruno@clisp.org>
15863
15864         Prepare for faster uN_strstr functions.
15865         * lib/str-kmp.h: Support definable UNITs.
15866         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15867         needle_len argument.
15868         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15869         * lib/mbscasestr.c (mbscasestr): Likewise.
15870
15871 2011-01-21  Pádraig Brady <P@draigBrady.com>
15872
15873         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15874         * tests/test-malloca.c (main): Unset the environment variable
15875         to greatly speed up the test.
15876         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15877         * modules/malloca-tests: Depend on unsetenv.
15878
15879 2011-01-21  Pádraig Brady <P@draigBrady.com>
15880
15881         ignore-value: remove stdint dependency
15882         * lib/ignore-value.h: Remove <stdint.h>
15883         * modules/ignore-value: Remove stdint dependency.
15884
15885 2011-01-21  Jim Meyering  <meyering@redhat.com>
15886
15887         maint.mk: adjust variable name to be consistent with other gl_ vars
15888         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15889         to be lower case.
15890
15891 2011-01-20  Jim Meyering  <meyering@redhat.com>
15892
15893         maint.mk: make "check" depend on public-submodule-commit by default
15894         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15895
15896 2011-01-20  Bruno Haible  <bruno@clisp.org>
15897
15898         mbfile, mbiter: Complete change from 2008-12-21.
15899         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15900         * m4/mbiter.m4 (gl_MBITER): Likewise.
15901
15902 2011-01-20  Jim Meyering  <meyering@redhat.com>
15903
15904         init.sh: insert space between each function name and "()"
15905         * tests/init.sh: Make it a little easier to see that a function's
15906         name is "warn_", and not "warn" when looking at the first part of
15907         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15908
15909 2011-01-20  Jim Meyering  <meyering@redhat.com>
15910
15911         mountlist: clean up code formatting
15912         * lib/mountlist.c (read_file_system_list): Split a long line,
15913         correct bracing style, use NULL in place of "(struct statfs *)0",
15914         don't parenthesize return value, add spaces around "=" and after
15915         ";-in-for-stmt".
15916
15917 2011-01-14  Markus Duft <mduft@gentoo.org>
15918
15919         mountlist: add support for Interix
15920         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15921         Apply statvfs to all entries of /dev/fs.
15922         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15923         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15924
15925 2011-01-20  Jim Meyering  <meyering@redhat.com>
15926
15927         maint.mk: improve the public-submodule-commit rule
15928         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15929         to suppress printing of its commands... unless V=1.
15930         Add git submodule's --quiet option to suppress printing of e.g.,
15931         "Entering gnulib" output.
15932         "cd" into $(srcdir) before running git submodule.
15933
15934 2011-01-20  Bruno Haible  <bruno@clisp.org>
15935
15936         include_next: Fix bug introduced on 2011-01-18.
15937         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15938         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15939         ac_cv_header_... variable if the second argument is not 'check'.
15940         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15941         gl_NEXT_HEADERS_INTERNAL.
15942
15943 2011-01-20  Bruno Haible  <bruno@clisp.org>
15944
15945         Allow the user to avoid the GNULIB_TEST_* macros.
15946         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15947         Suggested by Paul Eggert.
15948
15949 2011-01-14  Jim Meyering  <meyering@redhat.com>
15950
15951         bootstrap: avoid failure when there is no .gitmodules file
15952         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15953         has been assigned to, even when its value is the empty string.
15954         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15955         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15956         Reported by John W. Eaton <jwe@gnu.org>.
15957
15958 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15959
15960         assume <ctype.h>, ..., <time.h> exist
15961         For years gnulib has been assuming the existence of the headers
15962         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15963         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15964         them, since they don't appear to be needed.
15965         * README (Portability guidelines): Document this.
15966         * lib/flock.c: Assume <fcntl.h> exists.
15967         * lib/regex_internal.h: Assume <locale.h> exists.
15968         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15970         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15971         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15972         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15973         * m4/regex.m4 (gl_REGEX): Likewise.
15974         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15975         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15976         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15977         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15978         * tests/test-argp.c: Likewise.
15979         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15980
15981         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15982         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15983         AA_APPLE_UNIVERSAL_BUILD.  See
15984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15985         * NEWS: Document this.
15986
15987 2011-01-19  Eric Blake  <eblake@redhat.com>
15988
15989         c-stack: assume stack overflow if SA_SIGINFO unsupported
15990         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15991         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15992         sigaction will work.
15993         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15994         behavior match Linux.
15995         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15996
15997         stdbool-tests: accomodate Haiku
15998         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15999
16000         binary-io: fix O_TEXT on Haiku
16001         * modules/binary-io (Depends-on): Add fcntl-h.
16002         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16003         than blindly undefining O_TEXT.
16004         Reported by Scott McCreary.
16005
16006 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16007
16008         include_next: do not check for standard headers like stddef.h
16009
16010         I found this problem when modifying Emacs to use gnulib.
16011         I noticed that it added HAVE_STDDEF_H to config.h, even though
16012         gnulib always assumes <stddef.h> exists as per README and this
16013         symbol is unnecessary.
16014         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16015         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16016         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16017         faster for headers like stddef.h that are known to exist.
16018         (gl_CHECK_NEXT_HEADERS): Use it.
16019         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16020         rather than gl_CHECK_NEXT_HEADERS.
16021         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16022         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16023
16024 2011-01-18  Eric Blake  <eblake@redhat.com>
16025
16026         ansi-c++-opt: skip C++ dependency style if C++ is unused
16027         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16028         tests when we know C++ compilation is not desired.
16029         Reported by Scott McCreary.
16030
16031 2011-01-18  Bruno Haible  <bruno@clisp.org>
16032
16033         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16034         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16035         (main): Perform test also when getrlimit and setrlimit don't exist or
16036         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16037         limiting the address space size using setrlimit, compare the address
16038         space size before and after the the test.
16039         * tests/test-dprintf-posix2.c: Likewise.
16040         * tests/test-fprintf-posix3.sh: Update skip messages.
16041         * tests/test-dprintf-posix2.sh: Likewise.
16042         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16043         * modules/dprintf-posix-tests (Depends-on): Likewise.
16044         Reported by Bruce Korb <bkorb@gnu.org> and
16045         Gary V. Vaughan <gary@gnu.org>.
16046
16047 2011-01-18  Bruno Haible  <bruno@clisp.org>
16048
16049         get-rusage-as: Improvement for Cygwin.
16050         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16051         areas that are merely reserved.
16052
16053 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16054
16055         strftime: remove dependencies on multibyte modules
16056
16057         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16058         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16059         only if __osf__ is defined, and I suspect OSF doesn't need these
16060         other modules.  If my guess is wrong, we'll need to come up with a
16061         variant of strftime that doesn't need the multibyte modules.
16062
16063         I discovered this problem when attempting modify Emacs to use the
16064         strftime module.  With the previous gnulib, this caused Emacs to
16065         need 31 new files, ranging from lib/config.charset to
16066         m4/wint_t.m4.  This was overkill and I expect would be offputting
16067         to the Emacs maintainers.  After this change, only 6 new files are
16068         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16069         stdbool.m4, and tm_gmtoff.m4.
16070
16071         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16072         Suggested by Bruno Haible in
16073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16074         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16075         and do not check for wchar.h.
16076         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16077         (Depends-on): Remove mbrlen, mbsinit, wchar.
16078
16079 2011-01-18  Bruno Haible  <bruno@clisp.org>
16080
16081         Tests for module 'get-rusage-as'.
16082         * modules/get-rusage-as-tests: New file.
16083         * tests/test-get-rusage-as.c: New file.
16084
16085         New module 'get-rusage-as'.
16086         * modules/get-rusage-as: New file.
16087         * lib/resource-ext.h: New file.
16088         * lib/get-rusage-as.c: New file.
16089
16090 2011-01-17  Eric Blake  <eblake@redhat.com>
16091
16092         sigaction: relax license from LGPLv3+ to LGPLv2+
16093         * modules/sigaction (License): Relax to LGPLv2+.
16094
16095 2011-01-14  Bruno Haible  <bruno@clisp.org>
16096
16097         filemode: Make function declarations usable in C++ mode.
16098         * lib/filemode.h: Enclose function declarations in extern "C" block.
16099         Reported by John W. Eaton <jwe@gnu.org>.
16100
16101 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16102
16103         save-cwd: no longer include "xgetcwd.h"
16104         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16105         This avoids a compilation failure in projects that use save-cwd
16106         without also using the xgetcwd module.
16107
16108 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16109
16110         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16111         This is so that a program like Emacs, which needs only dtoastr,
16112         does not have to bother with distributing and compiling ftoastr
16113         and ldtoastr.
16114         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16115         * modules/dtoastr, modules/ldtoastr: New files.
16116         * modules/ftoastr: Now works just for 'float'.
16117         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16118         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16119         dtoastr.c, ldtoastr.c.
16120
16121 2011-01-11  Jim Meyering  <meyering@redhat.com>
16122
16123         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16124         There is no need to work around the lack of the fchdir function,
16125         since gnulib can now provide a replacement when required.
16126         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16127         * modules/save-cwd (Depends-on): Add fchdir.
16128
16129 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16130
16131         openat, save-cwd: avoid xmalloc
16132
16133         This removes a direct (but undocumented) dependency of openat on
16134         xalloc, along with an indirect dependency via save-cwd.  It also
16135         removes a dependency of save-cwd on xgetcwd, and thereby
16136         indirectly on xalloc.  This change causes the openat substitute
16137         to fall back on save_cwd when memory is tight, and for save_cwd to
16138         fail instead of dying when memory is tight, but that's good enough.
16139         Problem and initial idea for fix reported by Bastien Roucaries in
16140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16141
16142         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16143         xalloc.h (for xmalloc).
16144         (openat_proc_name): Use malloc, not xmalloc.
16145         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16146         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16147
16148         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16149         This avoids heap allocation for file names whose lengths are in
16150         the range 512..1023, with the upper bound increasing to at most
16151         4031 depending on the platform's PATH_MAX.  (We do not want
16152         pathmax.h here as it might supply a non-constant PATH_MAX.)
16153         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16154         Perhaps they should be moved to malloca.h?
16155         (OPENAT_BUFFER_SIZE): Use them.
16156
16157 2011-01-10  Bruno Haible  <bruno@clisp.org>
16158
16159         doc: Update users.txt.
16160         * users.txt: Add recutils.
16161
16162 2011-01-09  Karl Berry  <karl@gnu.org>
16163
16164         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16165
16166         * doc/configmake.texi: New file.
16167         * doc/gnulib.texi: Include it.
16168         * modules/configmake: Move documentation from here.
16169
16170 2011-01-09  Bruno Haible  <bruno@clisp.org>
16171
16172         Update to Unicode 6.0.0.
16173         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16174         (get_lbp): Update for Unicode 6.0.0.
16175         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16176         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16177         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16178         U+11001, U+11038..U+11046. Remove U+06DE.
16179         (uc_width): Fix bounds of planes.
16180         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16181         lib/uniwidth/width.c.
16182         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16183         trailing whitespace removed.
16184         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16185         without comments, but with the original copyright notice.
16186         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16187         * lib/unicase/ignorable.h: Likewise.
16188         * lib/unicase/tocasefold.h: Likewise.
16189         * lib/unicase/tolower.h: Likewise.
16190         * lib/unicase/totitle.h: Likewise.
16191         * lib/unicase/toupper.h: Likewise.
16192         * lib/unictype/bidi_of.h: Likewise.
16193         * lib/unictype/blocks.h: Likewise.
16194         * lib/unictype/categ_C.h: Likewise.
16195         * lib/unictype/categ_Cn.h: Likewise.
16196         * lib/unictype/categ_L.h: Likewise.
16197         * lib/unictype/categ_Ll.h: Likewise.
16198         * lib/unictype/categ_Lm.h: Likewise.
16199         * lib/unictype/categ_Lo.h: Likewise.
16200         * lib/unictype/categ_Lu.h: Likewise.
16201         * lib/unictype/categ_M.h: Likewise.
16202         * lib/unictype/categ_Mc.h: Likewise.
16203         * lib/unictype/categ_Me.h: Likewise.
16204         * lib/unictype/categ_Mn.h: Likewise.
16205         * lib/unictype/categ_N.h: Likewise.
16206         * lib/unictype/categ_Nd.h: Likewise.
16207         * lib/unictype/categ_No.h: Likewise.
16208         * lib/unictype/categ_P.h: Likewise.
16209         * lib/unictype/categ_Po.h: Likewise.
16210         * lib/unictype/categ_S.h: Likewise.
16211         * lib/unictype/categ_Sc.h: Likewise.
16212         * lib/unictype/categ_Sk.h: Likewise.
16213         * lib/unictype/categ_Sm.h: Likewise.
16214         * lib/unictype/categ_So.h: Likewise.
16215         * lib/unictype/categ_of.h: Likewise.
16216         * lib/unictype/combining.h: Likewise.
16217         * lib/unictype/ctype_alnum.h: Likewise.
16218         * lib/unictype/ctype_alpha.h: Likewise.
16219         * lib/unictype/ctype_graph.h: Likewise.
16220         * lib/unictype/ctype_lower.h: Likewise.
16221         * lib/unictype/ctype_print.h: Likewise.
16222         * lib/unictype/ctype_punct.h: Likewise.
16223         * lib/unictype/ctype_upper.h: Likewise.
16224         * lib/unictype/decdigit.h: Likewise.
16225         * lib/unictype/digit.h: Likewise.
16226         * lib/unictype/numeric.h: Likewise.
16227         * lib/unictype/pr_alphabetic.h: Likewise.
16228         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16229         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16230         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16231         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16232         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16233         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16234         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16235         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16236         * lib/unictype/pr_case_ignorable.h: Likewise.
16237         * lib/unictype/pr_cased.h: Likewise.
16238         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16239         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16240         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16241         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16242         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16243         * lib/unictype/pr_combining.h: Likewise.
16244         * lib/unictype/pr_composite.h: Likewise.
16245         * lib/unictype/pr_currency_symbol.h: Likewise.
16246         * lib/unictype/pr_decimal_digit.h: Likewise.
16247         * lib/unictype/pr_deprecated.h: Likewise.
16248         * lib/unictype/pr_format_control.h: Likewise.
16249         * lib/unictype/pr_grapheme_base.h: Likewise.
16250         * lib/unictype/pr_grapheme_extend.h: Likewise.
16251         * lib/unictype/pr_grapheme_link.h: Likewise.
16252         * lib/unictype/pr_id_continue.h: Likewise.
16253         * lib/unictype/pr_id_start.h: Likewise.
16254         * lib/unictype/pr_ideographic.h: Likewise.
16255         * lib/unictype/pr_lowercase.h: Likewise.
16256         * lib/unictype/pr_math.h: Likewise.
16257         * lib/unictype/pr_numeric.h: Likewise.
16258         * lib/unictype/pr_other_alphabetic.h: Likewise.
16259         * lib/unictype/pr_other_id_continue.h: Likewise.
16260         * lib/unictype/pr_other_math.h: Likewise.
16261         * lib/unictype/pr_punctuation.h: Likewise.
16262         * lib/unictype/pr_sentence_terminal.h: Likewise.
16263         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16264         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16265         * lib/unictype/pr_unified_ideograph.h: Likewise.
16266         * lib/unictype/pr_uppercase.h: Likewise.
16267         * lib/unictype/pr_xid_continue.h: Likewise.
16268         * lib/unictype/pr_xid_start.h: Likewise.
16269         * lib/unictype/scripts.h: Likewise.
16270         * lib/unictype/scripts_byname.gperf: Likewise.
16271         * lib/unictype/sy_java_ident.h: Likewise.
16272         * lib/unigbrk/gbrkprop.h: Likewise.
16273         * lib/unilbrk/lbrkprop1.h: Likewise.
16274         * lib/unilbrk/lbrkprop2.h: Likewise.
16275         * lib/uninorm/decomposition-table2.h: Likewise.
16276         * lib/uniwbrk/wbrkprop.h: Likewise.
16277         * tests/unicase/test-cased.c: Likewise.
16278         * tests/unicase/test-ignorable.c: Likewise.
16279         * tests/unicase/test-uc_tolower.c: Likewise.
16280         * tests/unicase/test-uc_totitle.c: Likewise.
16281         * tests/unicase/test-uc_toupper.c: Likewise.
16282         * tests/unictype/test-categ_C.c: Likewise.
16283         * tests/unictype/test-categ_Cn.c: Likewise.
16284         * tests/unictype/test-categ_L.c: Likewise.
16285         * tests/unictype/test-categ_Ll.c: Likewise.
16286         * tests/unictype/test-categ_Lm.c: Likewise.
16287         * tests/unictype/test-categ_Lo.c: Likewise.
16288         * tests/unictype/test-categ_Lu.c: Likewise.
16289         * tests/unictype/test-categ_M.c: Likewise.
16290         * tests/unictype/test-categ_Mc.c: Likewise.
16291         * tests/unictype/test-categ_Me.c: Likewise.
16292         * tests/unictype/test-categ_Mn.c: Likewise.
16293         * tests/unictype/test-categ_N.c: Likewise.
16294         * tests/unictype/test-categ_Nd.c: Likewise.
16295         * tests/unictype/test-categ_No.c: Likewise.
16296         * tests/unictype/test-categ_P.c: Likewise.
16297         * tests/unictype/test-categ_Po.c: Likewise.
16298         * tests/unictype/test-categ_S.c: Likewise.
16299         * tests/unictype/test-categ_Sc.c: Likewise.
16300         * tests/unictype/test-categ_Sk.c: Likewise.
16301         * tests/unictype/test-categ_Sm.c: Likewise.
16302         * tests/unictype/test-categ_So.c: Likewise.
16303         * tests/unictype/test-ctype_alnum.c: Likewise.
16304         * tests/unictype/test-ctype_alpha.c: Likewise.
16305         * tests/unictype/test-ctype_graph.c: Likewise.
16306         * tests/unictype/test-ctype_lower.c: Likewise.
16307         * tests/unictype/test-ctype_print.c: Likewise.
16308         * tests/unictype/test-ctype_punct.c: Likewise.
16309         * tests/unictype/test-ctype_upper.c: Likewise.
16310         * tests/unictype/test-decdigit.h: Likewise.
16311         * tests/unictype/test-digit.h: Likewise.
16312         * tests/unictype/test-numeric.h: Likewise.
16313         * tests/unictype/test-pr_alphabetic.c: Likewise.
16314         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16315         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16316         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16317         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16318         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16319         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16320         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16321         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16322         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16323         * tests/unictype/test-pr_cased.c: Likewise.
16324         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16325         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16326         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16327         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16328         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16329         * tests/unictype/test-pr_combining.c: Likewise.
16330         * tests/unictype/test-pr_composite.c: Likewise.
16331         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16332         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16333         * tests/unictype/test-pr_deprecated.c: Likewise.
16334         * tests/unictype/test-pr_format_control.c: Likewise.
16335         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16336         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16337         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16338         * tests/unictype/test-pr_id_continue.c: Likewise.
16339         * tests/unictype/test-pr_id_start.c: Likewise.
16340         * tests/unictype/test-pr_ideographic.c: Likewise.
16341         * tests/unictype/test-pr_lowercase.c: Likewise.
16342         * tests/unictype/test-pr_math.c: Likewise.
16343         * tests/unictype/test-pr_numeric.c: Likewise.
16344         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16345         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16346         * tests/unictype/test-pr_other_math.c: Likewise.
16347         * tests/unictype/test-pr_punctuation.c: Likewise.
16348         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16349         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16350         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16351         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16352         * tests/unictype/test-pr_uppercase.c: Likewise.
16353         * tests/unictype/test-pr_xid_continue.c: Likewise.
16354         * tests/unictype/test-pr_xid_start.c: Likewise.
16355         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16356         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16357         changes.
16358         * lib/unictype/categ_Cc.h: Likewise.
16359         * lib/unictype/categ_Cf.h: Likewise.
16360         * lib/unictype/categ_Co.h: Likewise.
16361         * lib/unictype/categ_Cs.h: Likewise.
16362         * lib/unictype/categ_Lt.h: Likewise.
16363         * lib/unictype/categ_Nl.h: Likewise.
16364         * lib/unictype/categ_Pc.h: Likewise.
16365         * lib/unictype/categ_Pd.h: Likewise.
16366         * lib/unictype/categ_Pe.h: Likewise.
16367         * lib/unictype/categ_Pf.h: Likewise.
16368         * lib/unictype/categ_Pi.h: Likewise.
16369         * lib/unictype/categ_Ps.h: Likewise.
16370         * lib/unictype/categ_Z.h: Likewise.
16371         * lib/unictype/categ_Zl.h: Likewise.
16372         * lib/unictype/categ_Zp.h: Likewise.
16373         * lib/unictype/categ_Zs.h: Likewise.
16374         * lib/unictype/ctype_blank.h: Likewise.
16375         * lib/unictype/ctype_cntrl.h: Likewise.
16376         * lib/unictype/ctype_digit.h: Likewise.
16377         * lib/unictype/ctype_space.h: Likewise.
16378         * lib/unictype/ctype_xdigit.h: Likewise.
16379         * lib/unictype/mirror.h: Likewise.
16380         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16381         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16382         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16383         * lib/unictype/pr_bidi_control.h: Likewise.
16384         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16385         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16386         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16387         * lib/unictype/pr_bidi_pdf.h: Likewise.
16388         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16389         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16390         * lib/unictype/pr_dash.h: Likewise.
16391         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16392         * lib/unictype/pr_diacritic.h: Likewise.
16393         * lib/unictype/pr_extender.h: Likewise.
16394         * lib/unictype/pr_hex_digit.h: Likewise.
16395         * lib/unictype/pr_hyphen.h: Likewise.
16396         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16397         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16398         * lib/unictype/pr_ignorable_control.h: Likewise.
16399         * lib/unictype/pr_iso_control.h: Likewise.
16400         * lib/unictype/pr_join_control.h: Likewise.
16401         * lib/unictype/pr_left_of_pair.h: Likewise.
16402         * lib/unictype/pr_line_separator.h: Likewise.
16403         * lib/unictype/pr_logical_order_exception.h: Likewise.
16404         * lib/unictype/pr_non_break.h: Likewise.
16405         * lib/unictype/pr_not_a_character.h: Likewise.
16406         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16407         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16408         * lib/unictype/pr_other_id_start.h: Likewise.
16409         * lib/unictype/pr_other_lowercase.h: Likewise.
16410         * lib/unictype/pr_other_uppercase.h: Likewise.
16411         * lib/unictype/pr_paired_punctuation.h: Likewise.
16412         * lib/unictype/pr_paragraph_separator.h: Likewise.
16413         * lib/unictype/pr_pattern_syntax.h: Likewise.
16414         * lib/unictype/pr_pattern_white_space.h: Likewise.
16415         * lib/unictype/pr_private_use.h: Likewise.
16416         * lib/unictype/pr_quotation_mark.h: Likewise.
16417         * lib/unictype/pr_radical.h: Likewise.
16418         * lib/unictype/pr_soft_dotted.h: Likewise.
16419         * lib/unictype/pr_space.h: Likewise.
16420         * lib/unictype/pr_titlecase.h: Likewise.
16421         * lib/unictype/pr_variation_selector.h: Likewise.
16422         * lib/unictype/pr_white_space.h: Likewise.
16423         * lib/unictype/pr_zero_width.h: Likewise.
16424         * lib/unictype/sy_c_ident.h: Likewise.
16425         * lib/unictype/sy_c_whitespace.h: Likewise.
16426         * lib/unictype/sy_java_whitespace.h: Likewise.
16427         * lib/uninorm/composition-table.gperf: Likewise.
16428         * lib/uninorm/decomposition-table1.h: Likewise.
16429         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16430         LB8.
16431         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16432         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16433         * modules/unictype/*: Bump version number of expected libunistring
16434         version.
16435
16436 2011-01-09  Bruno Haible  <bruno@clisp.org>
16437
16438         Update to Unicode 5.2.0.
16439         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16440         trailing whitespace removed.
16441
16442 2011-01-09  Bruno Haible  <bruno@clisp.org>
16443
16444         New Unicode character properties, from Unicode 5.2.0.
16445         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16446         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16447         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16448         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16449         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16450         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16451         uc_is_property_cased, uc_is_property_case_ignorable,
16452         uc_is_property_changes_when_lowercased,
16453         uc_is_property_changes_when_uppercased,
16454         uc_is_property_changes_when_titlecased,
16455         uc_is_property_changes_when_casefolded,
16456         uc_is_property_changes_when_casemapped): New declarations.
16457         * lib/unictype/pr_byname.gperf: Add the new properties.
16458         * modules/unictype/property-byname (Depends-on): Depend on the new
16459         properties modules.
16460         * modules/unictype/property-all (Depends-on): Likewise.
16461         * MODULES.html.sh (Unicode string functions): Add
16462         unictype/property-case-ignorable, unictype/property-cased,
16463         unictype/property-changes-when-casefolded,
16464         unictype/property-changes-when-casemapped,
16465         unictype/property-changes-when-lowercased,
16466         unictype/property-changes-when-titlecased,
16467         unictype/property-changes-when-uppercased.
16468
16469         New module 'unictype/property-changes-when-casemapped'.
16470         * modules/unictype/property-changes-when-casemapped: New file.
16471         * lib/unictype/pr_changes_when_casemapped.c: New file.
16472         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16473         generated by gen-uni-tables.
16474         * modules/unictype/property-changes-when-casemapped-tests: New file.
16475         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16476         automatically generated by gen-uni-tables.
16477
16478         New module 'unictype/property-changes-when-casefolded'.
16479         * modules/unictype/property-changes-when-casefolded: New file.
16480         * lib/unictype/pr_changes_when_casefolded.c: New file.
16481         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16482         generated by gen-uni-tables.
16483         * modules/unictype/property-changes-when-casefolded-tests: New file.
16484         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16485         automatically generated by gen-uni-tables.
16486
16487         New module 'unictype/property-changes-when-titlecased'.
16488         * modules/unictype/property-changes-when-titlecased: New file.
16489         * lib/unictype/pr_changes_when_titlecased.c: New file.
16490         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16491         generated by gen-uni-tables.
16492         * modules/unictype/property-changes-when-titlecased-tests: New file.
16493         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16494         automatically generated by gen-uni-tables.
16495
16496         New module 'unictype/property-changes-when-uppercased'.
16497         * modules/unictype/property-changes-when-uppercased: New file.
16498         * lib/unictype/pr_changes_when_uppercased.c: New file.
16499         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16500         generated by gen-uni-tables.
16501         * modules/unictype/property-changes-when-uppercased-tests: New file.
16502         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16503         automatically generated by gen-uni-tables.
16504
16505         New module 'unictype/property-changes-when-lowercased'.
16506         * modules/unictype/property-changes-when-lowercased: New file.
16507         * lib/unictype/pr_changes_when_lowercased.c: New file.
16508         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16509         generated by gen-uni-tables.
16510         * modules/unictype/property-changes-when-lowercased-tests: New file.
16511         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16512         automatically generated by gen-uni-tables.
16513
16514         New module 'unictype/property-case-ignorable'.
16515         * modules/unictype/property-case-ignorable: New file.
16516         * lib/unictype/pr_case_ignorable.c: New file.
16517         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16518         by gen-uni-tables.
16519         * modules/unictype/property-case-ignorable-tests: New file.
16520         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16521         generated by gen-uni-tables.
16522
16523         New module 'unictype/property-cased'.
16524         * modules/unictype/property-cased: New file.
16525         * lib/unictype/pr_cased.c: New file.
16526         * lib/unictype/pr_cased.h: New file, automatically generated by
16527         gen-uni-tables.
16528         * modules/unictype/property-cased-tests: New file.
16529         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16530         gen-uni-tables.
16531
16532 2011-01-09  Bruno Haible  <bruno@clisp.org>
16533
16534         Update to Unicode 5.2.0.
16535         * lib/gen-uni-tables.c (output_predicate, output_category,
16536         output_combclass, output_bidi_category, output_decimal_digit_test,
16537         output_decimal_digit, output_digit_test, output_digit,
16538         output_numeric_test, output_numeric, output_mirror, output_scripts,
16539         output_scripts_byname, output_blocks, output_ident_category): Fix
16540         comment header.
16541         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16542         get_wbp.
16543         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16544         items.
16545         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16546         Changes_When_Lowercased, Changes_When_Uppercased,
16547         Changes_When_Titlecased, Changes_When_Casefolded,
16548         Changes_When_Casemapped.
16549         (is_property_alphabetic, is_property_default_ignorable_code_point):
16550         Update for Unicode 5.2.0.
16551         (is_property_cased, is_property_case_ignorable,
16552         is_property_changes_when_lowercased,
16553         is_property_changes_when_uppercased,
16554         is_property_changes_when_titlecased,
16555         is_property_changes_when_casefolded,
16556         is_property_changes_when_casemapped): New functions.
16557         (output_properties): Output also the properties cased, case_ignorable,
16558         changes_when_lowercased, changes_when_uppercased,
16559         changes_when_titlecased, changes_when_casefolded,
16560         changes_when_casemapped.
16561         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16562         Unicode TR#11 revision 17 -> 19.
16563         (LBP_CP): New enumeration value.
16564         (LBP_*): Adjust values accordingly.
16565         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16566         TR#14 revision 22 -> 24.
16567         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16568         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16569         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16570         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16571         is_WBP_MIDLETTER.
16572         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16573         the code1 and code2 of each composition rule.
16574         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16575         * lib/unicase/ignorable.h: Likewise.
16576         * lib/unicase/tocasefold.h: Likewise.
16577         * lib/unicase/tolower.h: Likewise.
16578         * lib/unicase/totitle.h: Likewise.
16579         * lib/unicase/toupper.h: Likewise.
16580         * lib/unictype/bidi_of.h: Likewise.
16581         * lib/unictype/blocks.h: Likewise.
16582         * lib/unictype/categ_C.h: Likewise.
16583         * lib/unictype/categ_Cf.h: Likewise.
16584         * lib/unictype/categ_Cn.h: Likewise.
16585         * lib/unictype/categ_L.h: Likewise.
16586         * lib/unictype/categ_Ll.h: Likewise.
16587         * lib/unictype/categ_Lm.h: Likewise.
16588         * lib/unictype/categ_Lo.h: Likewise.
16589         * lib/unictype/categ_Lu.h: Likewise.
16590         * lib/unictype/categ_M.h: Likewise.
16591         * lib/unictype/categ_Mc.h: Likewise.
16592         * lib/unictype/categ_Mn.h: Likewise.
16593         * lib/unictype/categ_N.h: Likewise.
16594         * lib/unictype/categ_Nd.h: Likewise.
16595         * lib/unictype/categ_Nl.h: Likewise.
16596         * lib/unictype/categ_No.h: Likewise.
16597         * lib/unictype/categ_P.h: Likewise.
16598         * lib/unictype/categ_Pd.h: Likewise.
16599         * lib/unictype/categ_Po.h: Likewise.
16600         * lib/unictype/categ_S.h: Likewise.
16601         * lib/unictype/categ_Sc.h: Likewise.
16602         * lib/unictype/categ_So.h: Likewise.
16603         * lib/unictype/categ_of.h: Likewise.
16604         * lib/unictype/combining.h: Likewise.
16605         * lib/unictype/ctype_alnum.h: Likewise.
16606         * lib/unictype/ctype_alpha.h: Likewise.
16607         * lib/unictype/ctype_graph.h: Likewise.
16608         * lib/unictype/ctype_lower.h: Likewise.
16609         * lib/unictype/ctype_print.h: Likewise.
16610         * lib/unictype/ctype_punct.h: Likewise.
16611         * lib/unictype/ctype_upper.h: Likewise.
16612         * lib/unictype/decdigit.h: Likewise.
16613         * lib/unictype/digit.h: Likewise.
16614         * lib/unictype/numeric.h: Likewise.
16615         * lib/unictype/pr_alphabetic.h: Likewise.
16616         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16617         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16618         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16619         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16620         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16621         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16622         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16623         * lib/unictype/pr_combining.h: Likewise.
16624         * lib/unictype/pr_composite.h: Likewise.
16625         * lib/unictype/pr_currency_symbol.h: Likewise.
16626         * lib/unictype/pr_dash.h: Likewise.
16627         * lib/unictype/pr_decimal_digit.h: Likewise.
16628         * lib/unictype/pr_deprecated.h: Likewise.
16629         * lib/unictype/pr_diacritic.h: Likewise.
16630         * lib/unictype/pr_extender.h: Likewise.
16631         * lib/unictype/pr_grapheme_base.h: Likewise.
16632         * lib/unictype/pr_grapheme_extend.h: Likewise.
16633         * lib/unictype/pr_grapheme_link.h: Likewise.
16634         * lib/unictype/pr_id_continue.h: Likewise.
16635         * lib/unictype/pr_id_start.h: Likewise.
16636         * lib/unictype/pr_ideographic.h: Likewise.
16637         * lib/unictype/pr_ignorable_control.h: Likewise.
16638         * lib/unictype/pr_logical_order_exception.h: Likewise.
16639         * lib/unictype/pr_lowercase.h: Likewise.
16640         * lib/unictype/pr_numeric.h: Likewise.
16641         * lib/unictype/pr_other_alphabetic.h: Likewise.
16642         * lib/unictype/pr_punctuation.h: Likewise.
16643         * lib/unictype/pr_sentence_terminal.h: Likewise.
16644         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16645         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16646         * lib/unictype/pr_unified_ideograph.h: Likewise.
16647         * lib/unictype/pr_uppercase.h: Likewise.
16648         * lib/unictype/pr_xid_continue.h: Likewise.
16649         * lib/unictype/pr_xid_start.h: Likewise.
16650         * lib/unictype/pr_zero_width.h: Likewise.
16651         * lib/unictype/scripts.h: Likewise.
16652         * lib/unictype/scripts_byname.gperf: Likewise.
16653         * lib/unictype/sy_java_ident.h: Likewise.
16654         * lib/unigbrk/gbrkprop.h: Likewise.
16655         * lib/unilbrk/lbrkprop1.h: Likewise.
16656         * lib/unilbrk/lbrkprop2.h: Likewise.
16657         * lib/unilbrk/lbrktables.h: Likewise.
16658         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16659         LBP_CP. Implement rule LB30.
16660         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16661         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16662         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16663         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16664         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16665         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16666         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16667         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16668         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16669         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16670         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16671         bits instead of 16 bits in the code1 and code2 of each composition
16672         rule.
16673         (uc_composition): Update for Unicode 5.2.0.
16674         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16675         * lib/uninorm/decomposition-table2.h: Likewise.
16676         * lib/uniwbrk/wbrkprop.h: Likewise.
16677         * tests/unicase/test-cased.c: Likewise.
16678         * tests/unicase/test-ignorable.c: Likewise.
16679         * tests/unicase/test-uc_tolower.c: Likewise.
16680         * tests/unicase/test-uc_totitle.c: Likewise.
16681         * tests/unicase/test-uc_toupper.c: Likewise.
16682         * tests/unictype/test-categ_C.c: Likewise.
16683         * tests/unictype/test-categ_Cf.c: Likewise.
16684         * tests/unictype/test-categ_Cn.c: Likewise.
16685         * tests/unictype/test-categ_L.c: Likewise.
16686         * tests/unictype/test-categ_Ll.c: Likewise.
16687         * tests/unictype/test-categ_Lm.c: Likewise.
16688         * tests/unictype/test-categ_Lo.c: Likewise.
16689         * tests/unictype/test-categ_Lu.c: Likewise.
16690         * tests/unictype/test-categ_M.c: Likewise.
16691         * tests/unictype/test-categ_Mc.c: Likewise.
16692         * tests/unictype/test-categ_Mn.c: Likewise.
16693         * tests/unictype/test-categ_N.c: Likewise.
16694         * tests/unictype/test-categ_Nd.c: Likewise.
16695         * tests/unictype/test-categ_Nl.c: Likewise.
16696         * tests/unictype/test-categ_No.c: Likewise.
16697         * tests/unictype/test-categ_P.c: Likewise.
16698         * tests/unictype/test-categ_Pd.c: Likewise.
16699         * tests/unictype/test-categ_Po.c: Likewise.
16700         * tests/unictype/test-categ_S.c: Likewise.
16701         * tests/unictype/test-categ_Sc.c: Likewise.
16702         * tests/unictype/test-categ_So.c: Likewise.
16703         * tests/unictype/test-ctype_alnum.c: Likewise.
16704         * tests/unictype/test-ctype_alpha.c: Likewise.
16705         * tests/unictype/test-ctype_graph.c: Likewise.
16706         * tests/unictype/test-ctype_lower.c: Likewise.
16707         * tests/unictype/test-ctype_print.c: Likewise.
16708         * tests/unictype/test-ctype_punct.c: Likewise.
16709         * tests/unictype/test-ctype_upper.c: Likewise.
16710         * tests/unictype/test-decdigit.h: Likewise.
16711         * tests/unictype/test-digit.h: Likewise.
16712         * tests/unictype/test-numeric.h: Likewise.
16713         * tests/unictype/test-pr_alphabetic.c: Likewise.
16714         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16715         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16716         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16717         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16718         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16719         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16720         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16721         * tests/unictype/test-pr_combining.c: Likewise.
16722         * tests/unictype/test-pr_composite.c: Likewise.
16723         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16724         * tests/unictype/test-pr_dash.c: Likewise.
16725         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16726         * tests/unictype/test-pr_deprecated.c: Likewise.
16727         * tests/unictype/test-pr_diacritic.c: Likewise.
16728         * tests/unictype/test-pr_extender.c: Likewise.
16729         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16730         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16731         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16732         * tests/unictype/test-pr_id_continue.c: Likewise.
16733         * tests/unictype/test-pr_id_start.c: Likewise.
16734         * tests/unictype/test-pr_ideographic.c: Likewise.
16735         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16736         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16737         * tests/unictype/test-pr_lowercase.c: Likewise.
16738         * tests/unictype/test-pr_numeric.c: Likewise.
16739         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16740         * tests/unictype/test-pr_punctuation.c: Likewise.
16741         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16742         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16743         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16744         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16745         * tests/unictype/test-pr_uppercase.c: Likewise.
16746         * tests/unictype/test-pr_xid_continue.c: Likewise.
16747         * tests/unictype/test-pr_xid_start.c: Likewise.
16748         * tests/unictype/test-pr_zero_width.c: Likewise.
16749         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16750         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16751         changed behaviour: line breaking is now disallowed between a letter
16752         or '=' and '('.
16753         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16754         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16755         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16756         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16757         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16758         lib/uniwidth/width.c.
16759         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16760         without comments, but with the original copyright notice.
16761         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16762         changes.
16763         * lib/unictype/categ_Cc.h: Likewise.
16764         * lib/unictype/categ_Co.h: Likewise.
16765         * lib/unictype/categ_Cs.h: Likewise.
16766         * lib/unictype/categ_Lt.h: Likewise.
16767         * lib/unictype/categ_Me.h: Likewise.
16768         * lib/unictype/categ_Pc.h: Likewise.
16769         * lib/unictype/categ_Pe.h: Likewise.
16770         * lib/unictype/categ_Pf.h: Likewise.
16771         * lib/unictype/categ_Pi.h: Likewise.
16772         * lib/unictype/categ_Ps.h: Likewise.
16773         * lib/unictype/categ_Sk.h: Likewise.
16774         * lib/unictype/categ_Sm.h: Likewise.
16775         * lib/unictype/categ_Z.h: Likewise.
16776         * lib/unictype/categ_Zl.h: Likewise.
16777         * lib/unictype/categ_Zp.h: Likewise.
16778         * lib/unictype/categ_Zs.h: Likewise.
16779         * lib/unictype/ctype_blank.h: Likewise.
16780         * lib/unictype/ctype_cntrl.h: Likewise.
16781         * lib/unictype/ctype_digit.h: Likewise.
16782         * lib/unictype/ctype_space.h: Likewise.
16783         * lib/unictype/ctype_xdigit.h: Likewise.
16784         * lib/unictype/mirror.h: Likewise.
16785         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16786         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16787         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16788         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16789         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16790         * lib/unictype/pr_bidi_control.h: Likewise.
16791         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16792         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16793         * lib/unictype/pr_bidi_pdf.h: Likewise.
16794         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16795         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16796         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16797         * lib/unictype/pr_format_control.h: Likewise.
16798         * lib/unictype/pr_hex_digit.h: Likewise.
16799         * lib/unictype/pr_hyphen.h: Likewise.
16800         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16801         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16802         * lib/unictype/pr_iso_control.h: Likewise.
16803         * lib/unictype/pr_join_control.h: Likewise.
16804         * lib/unictype/pr_left_of_pair.h: Likewise.
16805         * lib/unictype/pr_line_separator.h: Likewise.
16806         * lib/unictype/pr_math.h: Likewise.
16807         * lib/unictype/pr_non_break.h: Likewise.
16808         * lib/unictype/pr_not_a_character.h: Likewise.
16809         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16810         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16811         * lib/unictype/pr_other_id_continue.h: Likewise.
16812         * lib/unictype/pr_other_id_start.h: Likewise.
16813         * lib/unictype/pr_other_lowercase.h: Likewise.
16814         * lib/unictype/pr_other_math.h: Likewise.
16815         * lib/unictype/pr_other_uppercase.h: Likewise.
16816         * lib/unictype/pr_paired_punctuation.h: Likewise.
16817         * lib/unictype/pr_paragraph_separator.h: Likewise.
16818         * lib/unictype/pr_pattern_syntax.h: Likewise.
16819         * lib/unictype/pr_pattern_white_space.h: Likewise.
16820         * lib/unictype/pr_private_use.h: Likewise.
16821         * lib/unictype/pr_quotation_mark.h: Likewise.
16822         * lib/unictype/pr_radical.h: Likewise.
16823         * lib/unictype/pr_soft_dotted.h: Likewise.
16824         * lib/unictype/pr_space.h: Likewise.
16825         * lib/unictype/pr_titlecase.h: Likewise.
16826         * lib/unictype/pr_variation_selector.h: Likewise.
16827         * lib/unictype/pr_white_space.h: Likewise.
16828         * lib/unictype/sy_c_ident.h: Likewise.
16829         * lib/unictype/sy_c_whitespace.h: Likewise.
16830         * lib/unictype/sy_java_whitespace.h: Likewise.
16831         * modules/uni*/*: Bump version number of expected libunistring version.
16832         Reported by Simon Josefsson.
16833
16834 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16835
16836         useless-if-before-free: fix typo in --help and make the internal,
16837         automatic version date update process work once again.
16838         --help output contained a NUL character instead of the
16839         backslash-zero that was intended.  Also, the "must lie within
16840         the first 8 lines" line is on line 9, and hence not getting
16841         automatically updated.
16842         * build-aux/useless-if-before-free: Fix the former by adding a
16843         backslash, and the latter by condensing the three lines of what-it-does
16844         to a single line, leaving one line of slack for the future.
16845
16846 2011-01-09  Bruno Haible  <bruno@clisp.org>
16847
16848         uniwidth/width: Fix width of U+1D173..U+1D17A.
16849         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16850         symbolic_width, output_width_property_test): New functions.
16851         (main): Invoke output_nonspacing_property, output_width_property_test.
16852         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16853         U+1D173..U+1D17A.
16854         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16855         1.
16856         * modules/uniwidth/*: Bump version number of expected libunistring
16857         version.
16858         * modules/unilbrk/*: Likewise.
16859
16860 2011-01-08  Bruno Haible  <bruno@clisp.org>
16861
16862         uninorm tests: Preserve copyright of Unicode data file.
16863         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16864         Mention modifications.
16865
16866 2011-01-08  Bruno Haible  <bruno@clisp.org>
16867
16868         gen-uni-tables: Prepare for Unicode 5.2.0.
16869         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16870         (debug_output_lbp, output_lbp): Update.
16871
16872 2011-01-08  Bruno Haible  <bruno@clisp.org>
16873
16874         unilbrk: Clarify gen-uni-tables.c code.
16875         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16876         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16877         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16878
16879 2011-01-07  Bruno Haible  <bruno@clisp.org>
16880
16881         strtod: Restore errno when successfully parsing Infinity or NaN.
16882         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16883         restore the original errno.
16884
16885 2011-01-07  Bruno Haible  <bruno@clisp.org>
16886
16887         remove test: Avoid failure on HP-UX 11.
16888         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16889
16890 2011-01-07  Bruno Haible  <bruno@clisp.org>
16891
16892         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16893         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16894         error code.
16895
16896 2011-01-07  Pádraig Brady <P@draigBrady.com>
16897
16898         ignore-value: fixup comments, and add Eric Blake
16899         as an author since he rewrote the macros.
16900         * lib/ignore-value.h (ignore_value):  State that
16901         we now support aggregates.  Also specify exactly
16902         when the GCC warn_unused_result feature was added.
16903
16904 2011-01-06  Eric Blake  <eblake@redhat.com>
16905
16906         ignore-value: support aggregate types
16907         * lib/ignore-value.h (ignore_value): Provide separate gcc
16908         definition.
16909         * modules/ignore-value-tests: New test module.
16910         * tests/test-ignore-value.c: New test.
16911
16912         maint.mk: improve sc_prohibit_strcmp regex
16913         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16914         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16915         definition of STRNEQ.
16916
16917         signal: work around Haiku issue with SIGBUS
16918         * lib/siglist.h: Add comment.
16919         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16920         strsignal's favoring of SIGSEGV.
16921         * tests/test-signal.c (main): Avoid test failure.
16922         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16923         Reported by Scott McCreary.
16924
16925         maint.mk: add pre-release check to ensure submodule commits are public
16926         * top/maint.mk (public-submodule-commit): New rule.
16927         (submodule-checks): New variable.
16928         (alpha beta stable): Depend on the variable.
16929
16930 2011-01-05  Pádraig Brady <P@draigBrady.com>
16931         and Jim Meyering  <meyering@redhat.com>
16932
16933         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16934         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16935         (ATTRIBUTE_DEPRECATED): Define.
16936         (_ignore_case): New function.
16937         (ignore_value): New macro, to replace the old function.
16938         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16939         * modules/ignore-value (Depends-on): Add stdint.
16940
16941 2011-01-04  Eric Blake  <eblake@redhat.com>
16942
16943         doc: regenerate INSTALL
16944         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16945         @firstparagraphindent support, now that autoconf dropped it.
16946         (INSTALL_PRELUDE): Reinstate old macro.
16947         * doc/install.texi: Resync from autoconf.
16948         * doc/INSTALL: Reflect recent autoconf update.
16949         * doc/INSTALL.ISO: Likewise.
16950         * doc/INSTALL.UTF-8: Likewise.
16951         Reported by Karl Berry.
16952
16953 2011-01-04  Bruce Korb  <address@hidden>
16954
16955         git-version-gen: avoid a sub-shell
16956         * build-aux/git-version-gen: Redirect stderr in `...` via
16957         "exec 2>...", rather than via an added sub-shell.
16958
16959 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16960
16961         git-version-gen: use (...) rather than sh -c '...'
16962         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16963         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16964
16965 2011-01-03  Jim Meyering  <meyering@redhat.com>
16966
16967         git-version-gen: convert leading TABs to spaces
16968         * build-aux/git-version-gen: Expand leading TABs.
16969
16970         git-version-gen: handle failed "git rev-list"
16971         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16972         from git and proceeding as if it had succeeded but printed no SHA1
16973         checksums, suppress the diagnostic and handle the failure.
16974         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16975
16976         git-version-gen: include command name in one more diagnostic
16977         * build-aux/git-version-gen: When the required .tarball-version file
16978         was missing or unreadable, you might see the diagnostic from "cat",
16979         but no trace of the name of the invoking script.  Now, you still see
16980         the diagnostic from cat, but also get one from "git-version-gen: ".
16981         Inspired by a patch from Bruce Korb.
16982
16983         update-copyright: adjust test to match changed code
16984         * tests/test-update-copyright.sh: Change test's expected output
16985         to match new actual output.
16986
16987 2011-01-02  Bruno Haible  <bruno@clisp.org>
16988
16989         getlogin_r: Avoid test failure on HP-UX 11.
16990         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16991         ERANGE when the second argument is zero.
16992         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16993         portability problem.
16994
16995 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16996
16997         * build-aux/update-copyright: doc Simon's changes
16998
16999 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17000
17001         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17002         environment variable.
17003
17004 2011-01-02  Bruno Haible  <bruno@clisp.org>
17005
17006         unigbrk: Avoid gcc warnings.
17007         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17008         unused variable.
17009         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17010         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17011         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17012         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17013         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17014         Change type of first argument to 'const char *'.
17015         (main): Remove unused variable.
17016         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17017         type of first argument to 'const char *'.
17018         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17019         Likewise.
17020         (main): Change type of variable 's'.
17021         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17022         to 'int'.
17023
17024 2011-01-02  Bruno Haible  <bruno@clisp.org>
17025
17026         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17027         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17028         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17029         bug.
17030         * lib/pwrite.c: Undo 2010-12-31 patch.
17031         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17032
17033 2011-01-02  Bruno Haible  <bruno@clisp.org>
17034
17035         pread: Fix test whether it works.
17036         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17037
17038 2011-01-02  Bruno Haible  <bruno@clisp.org>
17039
17040         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17041         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17042         ends in "6". Don't require a specific month name. Try also the locale
17043         names found on HP-UX 11 and Solaris 7.
17044
17045 2011-01-02  Bruno Haible  <bruno@clisp.org>
17046
17047         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17048         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17049         C linkage.
17050         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17051
17052 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17053
17054         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17055         for consistency, since the "cluster" term is not used elsewhere.
17056         * lib/unigbrk.in.h: Update name.
17057         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17058         * lib/unigbrk/u16-grapheme-next.c: Update name.
17059         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17060         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17061         * lib/unigbrk/u32-grapheme-next.c: Update name.
17062         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17063         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17064         * lib/unigbrk/u8-grapheme-next.c: Update name.
17065         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17066         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17067         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17068         Suggested by Bruno Haible.
17069
17070 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17071
17072         Remove module 'u8-grapheme-len' as too redundant with
17073         'u8-grapheme-next'.
17074         * modules/unigbrk/u8-grapheme-len: Delete file.
17075         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17076         * lib/unigbrk.in.h: Remove prototype for deleted function.
17077         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17078         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17079
17080         Remove module 'u16-grapheme-len' as too redundant with
17081         'u16-grapheme-next'.
17082         * modules/unigbrk/u16-grapheme-len: Delete file.
17083         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17084         * lib/unigbrk.in.h: Remove prototype for deleted function.
17085         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17086         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17087
17088         Remove module 'u32-grapheme-len' as too redundant with
17089         'u32-grapheme-next'.
17090         * modules/unigbrk/u32-grapheme-len: Delete file.
17091         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17092         * lib/unigbrk.in.h: Remove prototype for deleted function.
17093         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17094         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17095
17096         Suggested by Bruno Haible.
17097
17098 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17099
17100         * unigbrk.in.h: Fix typo: "ben" => "been".
17101         Reported by Bruno Haible.
17102
17103 2011-01-01  Jim Meyering  <meyering@redhat.com>
17104
17105         maint: update almost all copyright ranges to include 2011
17106         Run the new "make update-copyright" rule.
17107
17108 2011-01-01  Jim Meyering  <meyering@redhat.com>
17109
17110         maint: update-copyright: exempt doc/INSTALL*
17111         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17112         since they are generated.  Suggested by Bruno Haible.
17113
17114 2011-01-01  Jim Meyering  <meyering@redhat.com>
17115
17116         maint: refine the update-copyright rule
17117         * Makefile (update-copyright): Also exclude any file that includes
17118         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17119         code that merely generates the comment.
17120
17121 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17122
17123         New module 'u8-grapheme-len'.
17124         * modules/unigbrk/u8-grapheme-len: New file.
17125         * modules/unigbrk/u8-grapheme-len-tests: New file.
17126         * lib/unigbrk.in.h: Add prototype for new function.
17127         * lib/unigbrk/u8-grapheme-len.c: New file.
17128         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17129
17130         New module 'u16-grapheme-len'.
17131         * modules/unigbrk/u16-grapheme-len: New file.
17132         * modules/unigbrk/u16-grapheme-len-tests: New file.
17133         * lib/unigbrk.in.h: Add prototype for new function.
17134         * lib/unigbrk/u16-grapheme-len.c: New file.
17135         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17136
17137         New module 'u32-grapheme-len'.
17138         * modules/unigbrk/u32-grapheme-len: New file.
17139         * modules/unigbrk/u32-grapheme-len-tests: New file.
17140         * lib/unigbrk.in.h: Add prototype for new function.
17141         * lib/unigbrk/u32-grapheme-len.c: New file.
17142         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17143
17144         New module 'u8-grapheme-next'.
17145         * modules/unigbrk/u8-grapheme-next: New file.
17146         * modules/unigbrk/u8-grapheme-next-tests: New file.
17147         * lib/unigbrk.in.h: Add prototype for new function.
17148         * lib/unigbrk/u8-grapheme-next.c: New file.
17149         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17150
17151         New module 'u16-grapheme-next'.
17152         * modules/unigbrk/u16-grapheme-next: New file.
17153         * modules/unigbrk/u16-grapheme-next-tests: New file.
17154         * lib/unigbrk.in.h: Add prototype for new function.
17155         * lib/unigbrk/u16-grapheme-next.c: New file.
17156         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17157
17158         New module 'u32-grapheme-next'.
17159         * modules/unigbrk/u32-grapheme-next: New file.
17160         * modules/unigbrk/u32-grapheme-next-tests: New file.
17161         * lib/unigbrk.in.h: Add prototype for new function.
17162         * lib/unigbrk/u32-grapheme-next.c: New file.
17163         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17164
17165         New module 'u8-grapheme-prev'.
17166         * modules/unigbrk/u8-grapheme-prev: New file.
17167         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17168         * lib/unigbrk.in.h: Add prototype for new function.
17169         * lib/unigbrk/u8-grapheme-prev.c: New file.
17170         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17171
17172         New module 'u16-grapheme-prev'.
17173         * modules/unigbrk/u16-grapheme-prev: New file.
17174         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17175         * lib/unigbrk.in.h: Add prototype for new function.
17176         * lib/unigbrk/u16-grapheme-prev.c: New file.
17177         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17178
17179         New module 'u32-grapheme-prev'.
17180         * modules/unigbrk/u32-grapheme-prev: New file.
17181         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17182         * lib/unigbrk.in.h: Add prototype for new function.
17183         * lib/unigbrk/u32-grapheme-prev.c: New file.
17184         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17185
17186         New module 'u8-grapheme-breaks'.
17187         * modules/unigbrk/u8-grapheme-breaks: New file.
17188         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17189         * lib/unigbrk.in.h: Add prototype for new function.
17190         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17191         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17192
17193         New module 'u16-grapheme-breaks'.
17194         * modules/unigbrk/u16-grapheme-breaks: New file.
17195         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17196         * lib/unigbrk.in.h: Add prototype for new function.
17197         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17198         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17199
17200         New module 'u32-grapheme-breaks'.
17201         * modules/unigbrk/u32-grapheme-breaks: New file.
17202         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17203         * lib/unigbrk.in.h: Add prototype for new function.
17204         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17205         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17206
17207         New module 'ulc-grapheme-breaks'.
17208         * modules/unigbrk/ulc-grapheme-breaks: New file.
17209         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17210         * m4/locale-ar.m4: New file.
17211         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17212         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17213         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17214
17215 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17216
17217         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17218         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17219         modified how this file was generated before I initially submitted
17220         the module, but failed to regenerate it.  This meant that several
17221         of the level2 entries were wrong.
17222         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17223         Remove the division-by-2 that is folded into the table now that
17224         gbrkprop.h has been regenerated properly.  Now -1 entries are
17225         handled correctly.
17226
17227         New module 'unigbrk/uc-gbrk-prop-tests'.
17228         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17229         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17230         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17231         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17232
17233 2011-01-01  Bruno Haible  <bruno@clisp.org>
17234
17235         Avoid use of hexadecimal escapes.
17236         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17237         instead of hexadecimal escapes.
17238
17239 2011-01-01  Jim Meyering  <meyering@redhat.com>
17240
17241         maint: new rule to update copyright year ranges
17242         * Makefile (update-copyright): New rule.
17243
17244         maint: indent with TABs in Makefile
17245         * Makefile: Expand leading sequences of spaces to TABs
17246
17247         version-etc: update the copyright year it reports
17248         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17249
17250 2010-12-31  Bruno Haible  <bruno@clisp.org>
17251
17252         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17253         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17254         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17255         zero.
17256
17257 2010-12-31  Bruno Haible  <bruno@clisp.org>
17258
17259         pwrite: Work around HP-UX 11.11 bug.
17260         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17261         works and set REPLACE_PWRITE if not.
17262         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17263         function.
17264         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17265
17266 2010-12-31  Bruno Haible  <bruno@clisp.org>
17267
17268         pread: Work around HP-UX 11 bugs.
17269         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17270         and set REPLACE_PREAD if not.
17271         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17272
17273 2010-12-31  Eric Blake  <eblake@redhat.com>
17274
17275         nl_langinfo: fix YESEXPR on Irix 6.5
17276         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17277         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17278         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17279         it.
17280
17281 2010-12-31  Bruno Haible  <bruno@clisp.org>
17282
17283         iconv: Document HP-UX 11 bug.
17284         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17285
17286 2010-12-31  Bruno Haible  <bruno@clisp.org>
17287
17288         ldexpl: Fix link error on HP-UX 11.
17289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17290         LDEXPL_LIBM, using $ISNANL_LIBM.
17291
17292 2010-12-31  Eric Blake  <eblake@redhat.com>
17293
17294         ftello: avoid compilation failure with SunStudio c89
17295         * lib/ftello.c (ftello): Use lseek, not llseek.
17296
17297         tests: avoid failing coreutils tests on cygwin
17298         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17299         (create_exe_shims_): Return 0 when skipping.
17300
17301 2010-12-31  Bruno Haible  <bruno@clisp.org>
17302
17303         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17304         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17305
17306 2010-12-31  Bruno Haible  <bruno@clisp.org>
17307
17308         waitpid: Fix link error in C++ mode.
17309         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17310
17311 2010-12-31  Bruno Haible  <bruno@clisp.org>
17312
17313         isnan: Use GCC built-ins when possible.
17314         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17315         __builtin_isnan.
17316         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17317         (isnan): Define using GCC built-ins for GCC >= 4.0.
17318
17319 2010-12-31  Bruno Haible  <bruno@clisp.org>
17320
17321         isnand: Fix mistake.
17322         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17323         __builtin_isnand.
17324
17325 2010-12-31  Bruno Haible  <bruno@clisp.org>
17326
17327         open: Avoid C++ error on HP-UX 11.
17328         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17329
17330 2010-12-31  Bruno Haible  <bruno@clisp.org>
17331
17332         time_r: Add missing declarations on HP-UX 11.
17333         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17334         instead of HAVE_LOCALTIME_R.
17335         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17336         HAVE_LOCALTIME_R always.
17337         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17338         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17339         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17340         HAVE_LOCALTIME_R.
17341         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17342         * doc/posix-functions/localtime_r.texi: Likewise.
17343
17344 2010-12-29  Eric Blake  <eblake@redhat.com>
17345
17346         mountlist: tweak previous commit
17347         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17348         Reported by Paul Eggert.
17349
17350         mountlist: fix local drive detection on cygwin
17351         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17352         that works for cygwin.
17353
17354 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17355
17356         ftoastr, snprintf: ftoastr + snprintf module
17357         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17358         since the snprintf module now should be good enough here.
17359         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17360         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17361         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17362         GNULIB_SNPRINTF only for the test directory, and the latter
17363         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17364         seems to suffice by itself.
17365
17366 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17367
17368         alloca: one step towards thread-safety
17369         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17370         need for a static variable.  All callers changed.  This does not
17371         make the alloca replacement thread-safe, but it's one step.
17372
17373         tests: minor indenting change
17374         * tests/init.sh: Sync from coreutils housekeeping patch
17375         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17376         to keep lines within 80 columns.
17377
17378 2010-12-28  Jim Meyering  <meyering@redhat.com>
17379
17380         regex: don't infloop on persistent failing calloc
17381         * lib/regexec.c (build_trtable): Return failure indication upon
17382         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17383         In glibc, this was fixed for version 2.13:
17384         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17385
17386 2010-12-28  Bruno Haible  <bruno@clisp.org>
17387             Paul Eggert <eggert@cs.ucla.edu>
17388
17389         linkat: Make implementation robust against system behaviour variations.
17390         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17391         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17392         way, and to -2 if it needs a generic runtime test.
17393         * lib/linkat.c (solaris_optimized_link_immediate,
17394         solaris_optimized_link_follow): New functions.
17395         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17396         (check_same_link): Use it.
17397
17398 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17399
17400         New module 'unigbrk/base'.
17401         * modules/unigbrk/base: New file.
17402         * lib/unigbrk.in.h: New file.
17403
17404         New module 'unigbrk/uc-gbrk-prop'.
17405         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17406         * modules/unigbrk/uc-gbrk-prop: New file.
17407         * lib/unigbrk/gbrkprop.h: New file.
17408         * lib/unigbrk/uc-gbrk-prop.c: New file.
17409
17410         New module 'unigbrk/uc-is-grapheme-break'.
17411         * modules/unigbrk/uc-is-grapheme-break: New file.
17412         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17413         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17414         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17415         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17416         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17417
17418         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17419
17420 2010-12-27  Bruno Haible  <bruno@clisp.org>
17421
17422         linkat test: Avoid failure on Solaris 11 2010-11.
17423         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17424
17425 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17426
17427         utimens: work around glibc rounding bug on more platforms
17428         * lib/utimens.c (fdutimens): Work around rounding bug even if
17429         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17431
17432 2010-12-27  Bruno Haible  <bruno@clisp.org>
17433
17434         select tests: Improve comments.
17435         * tests/test-select.c (do_select): Add comments.
17436
17437 2010-12-27  Bruno Haible  <bruno@clisp.org>
17438
17439         select tests: Safer way of handling timeout.
17440         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17441         at every invocation.
17442
17443 2010-12-27  Bruno Haible  <bruno@clisp.org>
17444
17445         select tests: Use 'bool' where appropriate.
17446         * tests/test-select.c (connect_to_socket): Change argument type to
17447         'bool'.
17448
17449 2010-12-27  Bruno Haible  <bruno@clisp.org>
17450
17451         select tests: Use existing modules.
17452         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17453         (configure.ac): Don't test for unistd.h.
17454         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17455         declared in <unistd.h>.
17456
17457 2010-12-27  Bruno Haible  <bruno@clisp.org>
17458
17459         mbrtowc: Work around a Solaris 7 bug.
17460         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17461         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17462         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17463         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17464         MBRTOWC_NULL_ARG1_BUG.
17465         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17466         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17467         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17468         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17469
17470 2010-12-27  Jim Meyering  <meyering@redhat.com>
17471
17472         read-file.c: tweak syntax
17473         * lib/read-file.c (fread_file): Remove space after "*" in function
17474         definitions.
17475
17476 2010-12-27  Bruno Haible  <bruno@clisp.org>
17477
17478         times test: Avoid gcc warnings on OSF/1.
17479         * tests/test-times.c (main): Cast printf arguments from clock_t to
17480         'long int'.
17481
17482 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17483
17484         utimens: work around glibc rounding bug on older Linux kernels
17485         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17486         on Linux with a glibc whose utimes might not work, then work
17487         around a longstanding glibc bug involving rounding rather than
17488         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17489         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17490
17491 2010-12-26  Bruno Haible  <bruno@clisp.org>
17492
17493         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17494         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17495         _GL_CXXALIAS_SYS.
17496         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17497
17498 2010-12-26  Bruno Haible  <bruno@clisp.org>
17499
17500         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17501         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17502         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17503         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17504         looking for the declaration.
17505         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17506         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17507         problem.
17508         * doc/posix-functions/inet_pton.texi: Likewise.
17509
17510 2010-12-26  Bruno Haible  <bruno@clisp.org>
17511
17512         arpa_inet: Use the common idioms with C++ support.
17513         * lib/arpa_inet.in.h: Include c++defs.h.
17514         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17515         support.
17516         * modules/arpa_inet (Depends-on): Add c++defs.
17517         (Makefile.am): Substitute the contents of c++defs.h.
17518         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17519         * modules/arpa_inet-c++-tests: New file.
17520         * tests/test-arpa_inet-c++.cc: New file.
17521
17522 2010-12-25  Bruno Haible  <bruno@clisp.org>
17523
17524         Fix more C++ link errors on Solaris 8.
17525         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17526         $(LIB_EACCESS).
17527         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17528         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17529         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17530         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17531         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17532
17533 2010-12-25  Bruno Haible  <bruno@clisp.org>
17534
17535         printf-posix: Fix link error when a non-GCC compiler is used.
17536         * lib/stdio.in.h (printf): When not using GCC, override printf
17537         correctly.
17538         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17539
17540 2010-12-25  Bruno Haible  <bruno@clisp.org>
17541
17542         strerror_r-posix: Update doc.
17543         * doc/posix-functions/strerror_r.texi: Update doc about the return
17544         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17545
17546 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         utimens: simplify the logic of the previous change
17549         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17550         This should not affect whether the test succeeds or fails.
17551
17552         utimens: configure better on hosts with NFS clock skew
17553         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17554         uses the clock of the local host.  It might use the clock of the
17555         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17557
17558 2010-12-25  Bruno Haible  <bruno@clisp.org>
17559
17560         ptsname test: Avoid failure on Solaris.
17561         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17562         open a pseudo-terminal; don't use BSD-style ptys.
17563         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17564
17565 2010-12-25  Bruno Haible  <bruno@clisp.org>
17566
17567         ptsname: Avoid ERANGE failure on some systems.
17568         * lib/ptsname.c (buffer): Increase size.
17569
17570 2010-12-25  Bruno Haible  <bruno@clisp.org>
17571
17572         rename, renameat: Avoid test failures at NFS mounted locations.
17573         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17574         so that subsequent mkdir calls succeed.
17575
17576 2010-12-25  Bruno Haible  <bruno@clisp.org>
17577
17578         iswblank: Fix C++ link error on Solaris 8.
17579         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17580         _GL_FUNCDECL_SYS.
17581
17582 2010-12-25  Bruno Haible  <bruno@clisp.org>
17583
17584         unistd: Fix C++ link error on Solaris 8.
17585         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17586
17587 2010-12-25  Bruno Haible  <bruno@clisp.org>
17588
17589         readlink doc: Mention an old glibc bug.
17590         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17591
17592 2010-12-25  Bruno Haible  <bruno@clisp.org>
17593
17594         fcntl-h: Fix for use of C++ on glibc systems.
17595         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17596         also on glibc systems in C++ mode.
17597         Reported by Gary V. Vaughan <gary@gnu.org>.
17598
17599 2010-12-25  Bruno Haible  <bruno@clisp.org>
17600
17601         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17602         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17603
17604 2010-12-25  Bruno Haible  <bruno@clisp.org>
17605
17606         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17607         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17608         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17609         test whether truncl works according to ISO C 99 with IEC 60559.
17610         * m4/truncl-ieee.m4: New file.
17611         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17612         m4/signbit.m4.
17613         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17614
17615 2010-12-25  Bruno Haible  <bruno@clisp.org>
17616
17617         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17618         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17619         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17620         test whether ceill works according to ISO C 99 with IEC 60559.
17621         * m4/ceill-ieee.m4: New file.
17622         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17623         m4/signbit.m4.
17624         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17625
17626 2010-12-25  Bruno Haible  <bruno@clisp.org>
17627
17628         Ensure all prerequisites of <wchar.h> are included.
17629         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17630         before <wchar.h>.
17631         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17632         gl_MBRLEN_NUL_RETVAL): Likewise.
17633         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17634         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17635         AC_FUNC_MBRTOWC): Likewise.
17636         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17637         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17638         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17639         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17640         Likewise.
17641         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17642         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17643         (gl_WCHAR_H): Improve comments.
17644         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17645
17646 2010-12-25  Bruno Haible  <bruno@clisp.org>
17647
17648         strtok_r: Fix C syntax error in autoconf macro.
17649         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17650         characters in test program.
17651
17652 2010-12-24  Bruno Haible  <bruno@clisp.org>
17653
17654         ceil, trunc, round: Fix gcc warnings.
17655         * lib/ceil.c (MIN): Undefine before redefining.
17656         * lib/trunc.c (MIN): Likewise.
17657         * lib/round.c (MIN): Likewise.
17658         Include <math.h> first.
17659
17660 2010-12-24  Bruno Haible  <bruno@clisp.org>
17661
17662         select tests: Avoid failures on OSF/1 5.1.
17663         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17664         failure of closing the last socket; it may fail with ECONNRESET.
17665
17666 2010-12-24  Eric Blake  <eblake@redhat.com>
17667
17668         stdint: avoid HP-UX 10.20 preprocessor bug
17669         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17670         than #if.
17671         * tests/test-floor2.c (main): Likewise.
17672         Reported by Peter O'Gorman.
17673
17674         pipe: make obsoletion transition easier
17675         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17676         * modules/pipe (Files): Include revived file.
17677         (Include): Drop reference, to mirror getdate's behavior.
17678
17679 2010-12-24  Bruno Haible  <bruno@clisp.org>
17680
17681         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17682         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17683         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17684         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17685
17686 2010-12-24  Bruno Haible  <bruno@clisp.org>
17687
17688         gethostname: Ensure declaration on NonStop Kernel.
17689         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17690         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17691
17692 2010-12-24  Bruno Haible  <bruno@clisp.org>
17693
17694         sys_select: Ensure all necessary types on NonStop Kernel.
17695         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17696         include <sys/time.h>.
17697         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17698         NonStop Kernel.
17699         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17700
17701 2010-12-24  Bruno Haible  <bruno@clisp.org>
17702
17703         sys_select: Remove unneeded include.
17704         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17705         have <sys/select.h>.
17706
17707 2010-12-24  Bruno Haible  <bruno@clisp.org>
17708
17709         gethostname: Provide a fallback for HOST_NAME_MAX.
17710         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17711         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17712         instead.
17713         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17714
17715 2010-12-24  Bruno Haible  <bruno@clisp.org>
17716
17717         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17718         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17719         (SA_RESTART): Likewise.
17720         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17721
17722 2010-12-24  Bruno Haible  <bruno@clisp.org>
17723
17724         signal: Define NSIG.
17725         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17726         * tests/test-signal.c (nsig): New variable.
17727         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17728
17729 2010-12-24  Bruno Haible  <bruno@clisp.org>
17730
17731         rename, renameat: Avoid test failures on OSF/1 5.1.
17732         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17733         alternative error codes.
17734         * tests/test-renameat.c (main): Likewise.
17735
17736 2010-12-24  Bruno Haible  <bruno@clisp.org>
17737
17738         *printf: Detect large precisions bug on Solaris 10/SPARC.
17739         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17740         by Paul Eggert.
17741         * tests/test-snprintf-posix.h (test_function): Add this test code here
17742         too.
17743         * tests/test-sprintf-posix.h (test_function): Likewise.
17744         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17745         * tests/test-vasprintf-posix.c (test_function): Likewise.
17746         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17747         around by gnulib.
17748         * doc/posix-functions/printf.texi: Likewise.
17749         * doc/posix-functions/snprintf.texi: Likewise.
17750         * doc/posix-functions/sprintf.texi: Likewise.
17751         * doc/posix-functions/vfprintf.texi: Likewise.
17752         * doc/posix-functions/vprintf.texi: Likewise.
17753         * doc/posix-functions/vsnprintf.texi: Likewise.
17754         * doc/posix-functions/vsprintf.texi: Likewise.
17755         * doc/posix-functions/dprintf.texi: Undo last commit.
17756         * doc/posix-functions/vdprintf.texi: Likewise.
17757
17758 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17759
17760         tests: port test-fdutimensat.c to Solaris 8
17761         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17762         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17763         On Solaris 8, it fails with errno == ENOSYS, because there is no
17764         futimens (so it can't use the fd), and there is no lutimens (so it
17765         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17766
17767         vsnprintf: make more consistent with snprintf; doc fixes
17768
17769         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17770         the byte count return problem was promoted from the snprintf-posix
17771         to the snprintf module.
17772         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17773         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17774         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17775         * tests/test-snprintf.c (main): Check the byte count returned.
17776         * tests/test-vsnprintf.c (main): Likewise.
17777
17778 2010-12-23  Eric Blake  <eblake@redhat.com>
17779
17780         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17781         * modules/sigpipe (License): Relax license.
17782
17783 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17784
17785         doc: document Solaris printf bug with large float precisions
17786         * doc/posix-functions/dprintf.texi (dprintf):
17787         * doc/posix-functions/fprintf.texi (fprintf):
17788         * doc/posix-functions/printf.texi (printf):
17789         * doc/posix-functions/snprintf.texi (snprintf):
17790         * doc/posix-functions/sprintf.texi (sprintf):
17791         * doc/posix-functions/vdprintf.texi (vdprintf):
17792         * doc/posix-functions/vfprintf.texi (vfprintf):
17793         * doc/posix-functions/vprintf.texi (vprintf):
17794         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17795         * doc/posix-functions/vsprintf.texi (vsprintf):
17796         Mention that these functions mishandle large floating point
17797         precisions on Solaris 10.  The same bug is also present in Solaris
17798         8, and I assume earlier.  This causes "cd gnulib-tests; make
17799         check" to fail on Solaris 8 (and I assume, later) when building
17800         the latest coreutils, in test-vasprintf-posix's call to
17801         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17802         the wide flavors (e.g., wprintf) so this patch just updates the
17803         documentation for the narrow ones.
17804
17805         test-posixtm.c: add two tests
17806         * tests/test-posixtm.c: Add two tests, to highlight the
17807         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17808         around this bug; this is merely to document it.
17809
17810 2010-12-22  Bruno Haible  <bruno@clisp.org>
17811
17812         getlogin_r: Work around portability problem on OSF/1.
17813         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17814         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17815         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17816         test for a truncated result.
17817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17818         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17819         * modules/getlogin_r (Depends-on): Add memchr.
17820         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17821
17822 2010-12-22  Bruno Haible  <bruno@clisp.org>
17823
17824         ptsname: Avoid test failure on OSF/1 5.1.
17825         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17826         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17827         (same_slave): New function.
17828         (main): Use it to compare ptsname's result with the expected file name.
17829
17830 2010-12-22  Bruno Haible  <bruno@clisp.org>
17831
17832         Port extended stdio modules to HP NonStop Kernel.
17833         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17834         macros.
17835         * lib/fbufmode.c: Update comments.
17836         * lib/fflush.c: Likewise.
17837         * lib/fpurge.c: Likewise.
17838         * lib/freadable.c: Likewise.
17839         * lib/freadahead.c: Likewise.
17840         * lib/freading.c: Likewise.
17841         * lib/freadptr.c: Likewise.
17842         * lib/freadseek.c: Likewise.
17843         * lib/fseeko.c: Likewise.
17844         * lib/fseterr.c: Likewise.
17845         * lib/fwritable.c: Likewise.
17846         * lib/fwriting.c: Likewise.
17847         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17848
17849 2010-12-22  Bruno Haible  <bruno@clisp.org>
17850
17851         ttyname_r: Work around bug on OSF/1 5.1.
17852         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17853         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17854         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17855         present.
17856         * lib/ttyname_r.c (ttyname_r): Update comments.
17857
17858 2010-12-22  Bruno Haible  <bruno@clisp.org>
17859
17860         round: Implement result sign according to IEEE 754.
17861         * lib/round.c (MIN, MINUS_ZERO): New macros.
17862         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17863         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17864         * tests/test-round-ieee.c (main): Likewise.
17865         * tests/test-roundl-ieee.c (main): Likewise.
17866
17867         trunc: Implement result sign according to IEEE 754.
17868         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17869         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17870         * tests/test-trunc2.c: Include minus-zero.h.
17871         (MINUS_ZERO): New macro.
17872         (trunc_reference): Keep in sync with lib/trunc.c.
17873         * tests/test-truncf2.c: Include minus-zero.h.
17874         (MINUS_ZERO): New macro.
17875         (truncf_reference): Keep in sync with lib/trunc.c.
17876         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17877         * tests/test-trunc-ieee.c (main): Likewise.
17878         * tests/test-truncl-ieee.c (main): Likewise.
17879
17880         ceil: Implement result sign according to IEEE 754.
17881         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17882         (FUNC): Return -0.0 for -1 < x < 0.
17883         * tests/test-ceil2.c: Include minus-zero.h.
17884         (MINUS_ZERO): New macro.
17885         (ceil_reference): Keep in sync with lib/ceil.c.
17886         * tests/test-ceilf2.c: Include minus-zero.h.
17887         (MINUS_ZERO): New macro.
17888         (ceilf_reference): Keep in sync with lib/ceil.c.
17889         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17890         * tests/test-ceil-ieee.c (main): Likewise.
17891         * tests/test-ceill-ieee.c (main): Likewise.
17892
17893         floor: Implement result sign according to IEEE 754.
17894         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17895         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17896         * tests/test-floorf2.c (floorf_reference): Likewise.
17897         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17898         * tests/test-floor-ieee.c (main): Likewise.
17899         * tests/test-floorl-ieee.c (main): Likewise.
17900
17901 2010-12-22  Bruno Haible  <bruno@clisp.org>
17902
17903         getaddrinfo: Update doc.
17904         * doc/posix-functions/gai_strerror.texi: Return type is also different
17905         on AIX and HP-UX.
17906
17907 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17908
17909         getaddrinfo, inet_ntop: Update doc for Solaris.
17910         * doc/posix-functions/gai_strerror.texi: Return type is also an
17911         issue on Solaris 9 and earlier.
17912         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17913         on Solaris 10 and earlier.
17914
17915 2010-12-21  Bruno Haible  <bruno@clisp.org>
17916
17917         New module 'roundl-ieee'.
17918         * modules/roundl-ieee: New file.
17919         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17920         test whether roundl works according to ISO C 99 with IEC 60559.
17921         * m4/roundl-ieee.m4: New file.
17922         * modules/roundl-ieee-tests: New file.
17923         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17924         * tests/test-roundl.c (main): Remove signbit tests.
17925         * modules/roundl-tests (Depends-on): Remove signbit.
17926         * doc/posix-functions/roundl.texi: Mention the new module.
17927
17928 2010-12-21  Bruno Haible  <bruno@clisp.org>
17929
17930         New module 'truncl-ieee'.
17931         * modules/truncl-ieee: New file.
17932         * modules/truncl-ieee-tests: New file.
17933         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17934         * tests/test-truncl.c (main): Remove signbit tests.
17935         * modules/truncl-tests (Depends-on): Remove signbit.
17936         * doc/posix-functions/truncl.texi: Mention the new module.
17937
17938 2010-12-21  Bruno Haible  <bruno@clisp.org>
17939
17940         New module 'ceill-ieee'.
17941         * modules/ceill-ieee: New file.
17942         * modules/ceill-ieee-tests: New file.
17943         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17944         * tests/test-ceill.c (main): Remove signbit tests.
17945         * modules/ceill-tests (Depends-on): Remove signbit.
17946         * doc/posix-functions/ceill.texi: Mention the new module.
17947
17948 2010-12-21  Bruno Haible  <bruno@clisp.org>
17949
17950         New module 'floorl-ieee'.
17951         * modules/floorl-ieee: New file.
17952         * modules/floorl-ieee-tests: New file.
17953         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17954         * tests/test-floorl.c (main): Remove signbit tests.
17955         * modules/floorl-tests (Depends-on): Remove signbit.
17956         * doc/posix-functions/floorl.texi: Mention the new module.
17957
17958 2010-12-21  Bruno Haible  <bruno@clisp.org>
17959
17960         New module 'round-ieee'.
17961         * modules/round-ieee: New file.
17962         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17963         whether round works according to ISO C 99 with IEC 60559.
17964         * m4/round-ieee.m4: New file.
17965         * modules/round-ieee-tests: New file.
17966         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17967         * tests/test-round1.c (main): Remove signbit tests.
17968         * modules/round-tests (Depends-on): Remove 'signbit'.
17969         * doc/posix-functions/round.texi: Mention the new module.
17970
17971 2010-12-21  Bruno Haible  <bruno@clisp.org>
17972
17973         New module 'trunc-ieee'.
17974         * modules/trunc-ieee: New file.
17975         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17976         whether trunc works according to ISO C 99 with IEC 60559.
17977         * m4/trunc-ieee.m4: New file.
17978         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17980         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17981         * modules/trunc-ieee-tests: New file.
17982         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17983         * tests/test-trunc1.c (main): Remove signbit tests.
17984         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17985         * doc/posix-functions/trunc.texi: Mention the new module.
17986
17987 2010-12-21  Bruno Haible  <bruno@clisp.org>
17988
17989         New module 'ceil-ieee'.
17990         * modules/ceil-ieee: New file.
17991         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17992         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17993         ISO C 99 with IEC 60559.
17994         * m4/ceil-ieee.m4: New file.
17995         * modules/ceil (Files): Add lib/ceil.c.
17996         (Depends-on): Add 'float'.
17997         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17998         * lib/math.in.h (ceil): New declaration.
17999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18000         REPLACE_CEIL.
18001         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18002         * modules/ceil-ieee-tests: New file.
18003         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18004         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18005         * doc/posix-functions/ceil.texi: Mention the new module.
18006
18007 2010-12-21  Bruno Haible  <bruno@clisp.org>
18008
18009         New module 'floor-ieee'.
18010         * modules/floor-ieee: New file.
18011         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18012         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18013         ISO C 99 with IEC 60559.
18014         * m4/floor-ieee.m4: New file.
18015         * modules/floor (Files): Add lib/floor.c.
18016         (Depends-on): Add 'float'.
18017         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18018         * lib/math.in.h (floor): New declaration.
18019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18020         REPLACE_FLOOR.
18021         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18022         * modules/floor-ieee-tests: New file.
18023         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18024         * tests/test-math-c++.cc: Check the signature of 'floor'.
18025         * doc/posix-functions/floor.texi: Mention the new module.
18026
18027 2010-12-21  Bruno Haible  <bruno@clisp.org>
18028
18029         New module 'roundf-ieee'.
18030         * modules/roundf-ieee: New file.
18031         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18032         test whether roundf works according to ISO C 99 with IEC 60559.
18033         * m4/roundf-ieee.m4: New file.
18034         * modules/roundf-ieee-tests: New file.
18035         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18036         * tests/test-roundf1.c (main): Remove signbit tests.
18037         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18038         * doc/posix-functions/roundf.texi: Mention the new module.
18039
18040 2010-12-21  Bruno Haible  <bruno@clisp.org>
18041
18042         New module 'truncf-ieee'.
18043         * modules/truncf-ieee: New file.
18044         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18045         test whether truncf works according to ISO C 99 with IEC 60559.
18046         * m4/truncf-ieee.m4: New file.
18047         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18049         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18050         * modules/truncf-ieee-tests: New file.
18051         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18052         * tests/test-truncf1.c (main): Remove signbit tests.
18053         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18054         * doc/posix-functions/truncf.texi: Mention the new module.
18055
18056 2010-12-21  Bruno Haible  <bruno@clisp.org>
18057
18058         New module 'ceilf-ieee'.
18059         * modules/ceilf-ieee: New file.
18060         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18061         test whether ceilf works according to ISO C 99 with IEC 60559.
18062         * m4/ceilf-ieee.m4: New file.
18063         * modules/ceilf-ieee-tests: New file.
18064         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18065         * tests/test-ceilf1.c (main): Remove signbit tests.
18066         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18067         * doc/posix-functions/ceilf.texi: Mention the new module.
18068
18069 2010-12-21  Bruno Haible  <bruno@clisp.org>
18070
18071         New module 'floorf-ieee'.
18072         * modules/floorf-ieee: New file.
18073         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18074         test whether floorf works according to ISO C 99 with IEC 60559.
18075         * m4/floorf-ieee.m4: New file.
18076         * modules/floorf-ieee-tests: New file.
18077         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18078         * tests/test-floorf1.c (main): Remove signbit tests.
18079         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18080         * doc/posix-functions/floorf.texi: Mention the new module.
18081
18082 2010-12-21  Bruno Haible  <bruno@clisp.org>
18083
18084         Support for minus zero in autoconf macros.
18085         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18086         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18087         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18088         * tests/minus-zero.h: Update comments.
18089
18090 2010-12-21  Bruno Haible  <bruno@clisp.org>
18091
18092         Tests for module 'ceil'.
18093         * modules/ceil-tests: New file.
18094         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18095         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18096
18097 2010-12-21  Bruno Haible  <bruno@clisp.org>
18098
18099         Tests for module 'floor'.
18100         * modules/floor-tests: New file.
18101         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18102         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18103
18104 2010-12-21  Bruno Haible  <bruno@clisp.org>
18105
18106         math: Fix indentation.
18107         * lib/math.in.h (floorf): Fix indentation.
18108
18109 2010-12-21  Bruno Haible  <bruno@clisp.org>
18110
18111         Fix cross-compilation guesses on Solaris.
18112         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18113         not match "solaris2.10".
18114         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18115         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18116         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18117
18118 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18119
18120         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18121         This fixes a problem observed with the latest coreutils snapshot
18122         that caused a test to fail on Solaris 8.  src/csplit.c's call
18123         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18124         earlier, instead of returning the number of bytes that would have
18125         been generated; this causes csplit to incorrectly report memory
18126         exhaustion.
18127         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18128         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18129         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18130         comments to match.
18131         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18132         Fix typo in matching older versions of Solaris: "solaris2.10"
18133         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18134         only for guessing while cross-compiling.
18135         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18136
18137 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18138
18139         ftoastr: fix comment again
18140         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18141         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18142         Also, simplify example a bit by using flags = 0.
18143
18144 2010-12-20  Bruno Haible  <bruno@clisp.org>
18145
18146         round*, trunc*: Update documentation regarding glibc.
18147         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18148         * doc/posix-functions/round.texi: Likewise.
18149         * doc/posix-functions/roundl.texi: Likewise.
18150         * doc/posix-functions/truncf.texi: Likewise.
18151         * doc/posix-functions/trunc.texi: Likewise.
18152         * doc/posix-functions/truncl.texi: Likewise.
18153
18154 2010-12-20  Bruno Haible  <bruno@clisp.org>
18155
18156         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18157         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18158         * doc/posix-functions/round.texi: Likewise.
18159         * doc/posix-functions/roundl.texi: Likewise.
18160
18161 2010-12-20  Bruno Haible  <bruno@clisp.org>
18162
18163         ttyname_r: Add missing declaration on HP-UX 11.
18164         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18165         HAVE_TTYNAME_R.
18166         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18167         declared. Set HAVE_TTYNAME_R always.
18168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18169         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18170         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18171         HAVE_TTYNAME_R.
18172         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18173
18174 2010-12-20  Bruno Haible  <bruno@clisp.org>
18175
18176         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18177         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18178         * doc/posix-functions/getlogin_r.texi: Likewise.
18179         * tests/test-getlogin.c: Include <errno.h>.
18180         (main): Avoid test failure on HP-UX 11.11.
18181         * tests/test-getlogin_r.c (main): Likewise.
18182
18183 2010-12-20  Bruno Haible  <bruno@clisp.org>
18184
18185         getlogin_r: Add missing declaration on HP-UX 11.
18186         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18187         declared also when it exists as a function.
18188         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18189
18190 2010-12-20  Bruno Haible  <bruno@clisp.org>
18191
18192         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18193         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18194         through wcrtomb.
18195
18196 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18197
18198         ftoastr: fix comment
18199         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18200         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18201
18202 2010-12-19  Bruno Haible  <bruno@clisp.org>
18203
18204         isnan: Ensure it is a macro.
18205         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18206         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18207         Solaris.
18208
18209 2010-12-19  Bruno Haible  <bruno@clisp.org>
18210
18211         ldexpl test: Fix link error on OSF/1 5.1.
18212         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18213
18214 2010-12-19  Bruno Haible  <bruno@clisp.org>
18215
18216         wctype: Make it work in C++ mode on OSF/1 5.1.
18217         * lib/wctype.in.h (iswblank): Declare but not define here.
18218         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18219         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18220         * modules/wctype (Files): Add lib/iswblank.c.
18221
18222 2010-12-19  Bruno Haible  <bruno@clisp.org>
18223
18224         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18225         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18226         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18227
18228 2010-12-19  Bruno Haible  <bruno@clisp.org>
18229
18230         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18232         _POSIX_PII_SOCKET.
18233         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18234         * doc/posix-functions/recvfrom.texi: Likewise.
18235         * doc/posix-functions/send.texi: Likewise.
18236         * doc/posix-functions/sendto.texi: Likewise.
18237
18238 2010-12-19  Bruno Haible  <bruno@clisp.org>
18239
18240         tcgetsid: Add missing declaration on OSF/1 5.1.
18241         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18242         HAVE_TCGETSID.
18243         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18244         Don't set HAVE_TCGETSID.
18245         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18246         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18247         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18248         HAVE_TCGETSID.
18249         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18250
18251 2010-12-19  Bruno Haible  <bruno@clisp.org>
18252
18253         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18254         * lib/stdio.in.h: During the include_next statement, let recursive
18255         includes of this file include only the system header file.
18256
18257 2010-12-19  Bruno Haible  <bruno@clisp.org>
18258
18259         iconv_open: Fix regression from 2010-12-04.
18260         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18261         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18262
18263 2010-12-19  Bruno Haible  <bruno@clisp.org>
18264
18265         stdbool test: Avoid a gcc warning.
18266         * tests/test-stdbool.c (main): Fail if e1 is false.
18267         Reported by Jim Meyering.
18268
18269 2010-12-19  Jim Meyering  <meyering@redhat.com>
18270
18271         setenv: restore to working order
18272         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18273         mistakenly removed.
18274         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18275         HAVE_SETENV.
18276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18277         HAVE_SETENV.
18278
18279 2010-12-19  Bruno Haible  <bruno@clisp.org>
18280
18281         Document some different function declarations on OSF/1 5.1.
18282         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18283         * doc/posix-functions/inet_ntop.texi: Likewise.
18284         * doc/posix-functions/gethostname.texi: Likewise.
18285         * lib/unistd.in.h (gethostname): Update comment.
18286
18287 2010-12-19  Bruno Haible  <bruno@clisp.org>
18288
18289         doc: Mention vasprintf-posix module.
18290         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18291         the 'vasprintf-posix' module.
18292         * doc/glibc-functions/vasprintf.texi: Likewise.
18293
18294 2010-12-19  Bruno Haible  <bruno@clisp.org>
18295
18296         unsetenv: Add missing declaration on OSF/1 5.1.
18297         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18299         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18301         not HAVE_UNSETENV.
18302         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18303         HAVE_UNSETENV.
18304         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18305
18306 2010-12-19  Bruno Haible  <bruno@clisp.org>
18307
18308         setenv: Add missing declaration on OSF/1 5.1.
18309         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18310         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18311         declared. Don't set HAVE_SETENV.
18312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18313         not HAVE_SETENV.
18314         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18315         HAVE_SETENV.
18316         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18317
18318 2010-12-19  Bruno Haible  <bruno@clisp.org>
18319
18320         nl_langinfo tests: Avoid gcc warning.
18321         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18322
18323 2010-12-19  Bruno Haible  <bruno@clisp.org>
18324
18325         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18326         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18327         _GL_CXXALIAS_SYS.
18328
18329 2010-12-19  Bruno Haible  <bruno@clisp.org>
18330
18331         stdbool: Relax test.
18332         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18333         address to 'bool' work in static initializer, for compilers other than
18334         GCC.
18335
18336 2010-12-19  Bruno Haible  <bruno@clisp.org>
18337
18338         ftello: Add missing declaration on OSF/1 5.1.
18339         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18340         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18342         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18343         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18344
18345 2010-12-19  Bruno Haible  <bruno@clisp.org>
18346
18347         fseeko: Add missing declaration on OSF/1 5.1.
18348         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18349         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18351         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18352         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18353
18354 2010-12-19  Bruno Haible  <bruno@clisp.org>
18355
18356         fchdir: Add missing declaration on OSF/1 5.1.
18357         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18360         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18361         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18362
18363 2010-12-19  Bruno Haible  <bruno@clisp.org>
18364
18365         relocatable-prog-wrapper: Separate from relocatable-prog.
18366         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18367         uninstall-relocwrapper rule here.
18368         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18369         Reported by Ian Beckwith <ianb@erislabs.net>.
18370
18371 2010-12-19  Bruno Haible  <bruno@clisp.org>
18372
18373         unistr/u8-mbsnlen: Add missing dependency.
18374         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18375         Reported by Ian Beckwith <ianb@erislabs.net>.
18376
18377 2010-12-19  Bruno Haible  <bruno@clisp.org>
18378
18379         iconv: Make it possible again to use this module without 'iconv-h'.
18380         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18381         if it is not defined.
18382         Reported by Ian Beckwith <ianb@erislabs.net>.
18383
18384 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18385
18386         acl: port to Solaris 8 when copying from tmpfs to ufs
18387         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18388         error number.  Problem observed on Solaris 8 with latest
18389         coreutils, with "mv A B", where A is on a tmpfs file system and B
18390         is on a ufs file system.  This caused coreutils' mv/part-symlink
18391         test to fail.
18392
18393         tests: set fail=0 at start
18394         * tests/init.sh (setup_): Move fail=0 initialization here ...
18395         (mktempd_): ... from here, so that tests can rely on fail being
18396         set to 0 initially.  This fixes a problem in coreutils; see:
18397         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18398
18399 2010-12-18  Bruno Haible  <bruno@clisp.org>
18400
18401         memmem-simple: Stylistic changes.
18402         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18403         Fix preprocessor directive indentation.
18404
18405 2010-12-15  Pádraig Brady <P@draigBrady.com>
18406
18407         memmem, memmem-simple: reorganize and expand empty needle check
18408         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18409         functional checks to memmem-simple so that one has a fully functional
18410         memmem by using just this module.
18411         Restrict the performance only check to the memmem module.
18412         Also expand the empty needle check to ensure the correct
18413         pointer is returned, not just a non NULL pointer.
18414         * doc/glibc-functions/memmem.texi: Rearrange the portability
18415         documentation to correlate with the rearranged checks.
18416         Clarify exactly how the memmem and memmem-simple modules
18417         relate to each other.
18418
18419 2010-12-15  Pádraig Brady <P@draigBrady.com>
18420             Bruno Haible  <bruno@clisp.org>
18421
18422         Improve cross-compilation guesses for uClibc.
18423         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18424         that uClibc does not have the glibc bug.
18425         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18426         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18427
18428 2010-12-14  Eric Blake  <eblake@redhat.com>
18429
18430         configmake: provide fallbacks for oldest supported autotools
18431         * m4/configmake.m4: New file.
18432         * modules/configmake (Files): Ship it.
18433         (configure.ac): Use it to guarantee fallbacks.
18434
18435 2010-12-13  Pádraig Brady <P@draigBrady.com>
18436
18437         read-file: Improve handling of large files
18438         * lib/read-file.c (fread_file): Minimize realloc()s
18439         for regular files, and better manage sizes around SIZE_MAX.
18440
18441 2010-12-13  Eric Blake  <eblake@redhat.com>
18442
18443         cloexec, fcntl: relax license
18444         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18445         consent from all contributors.
18446         * modules/fcntl (License): Likewise.
18447
18448 2010-12-10  Bruno Haible  <bruno@clisp.org>
18449
18450         Tests for module 'pipe-posix'.
18451         * modules/pipe-posix-tests: New file.
18452         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18453
18454 2010-12-10  Bruno Haible  <bruno@clisp.org>
18455
18456         pipe-posix: Make it work in C++ mode.
18457         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18458         (pipe): Use common idiom, not a macro definition.
18459         * lib/pipe.c: New file.
18460         * m4/pipe.m4: New file.
18461         * modules/pipe-posix (Description): Enhance.
18462         (Files): Add lib/pipe.c, m4/pipe.m4.
18463         (configure.ac): Invoke gl_FUNC_PIPE.
18464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18465         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18466         * tests/test-unistd-c++.cc: Check the signature of pipe.
18467
18468 2010-12-10  Bruno Haible  <bruno@clisp.org>
18469
18470         Rename module 'pipe' to 'spawn-pipe'.
18471         * modules/spawn-pipe: New file, renamed from modules/pipe.
18472         (Files, configure.ac, Makefile.am): Update.
18473         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18474         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18475         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18476         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18477         "spawn-pipe.h" instead of "pipe.h".
18478         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18479         to gl_SPAWN_PIPE.
18480         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18481         (Files, Makefile.am): Update.
18482         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18483         Update.
18484         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18485         Include "spawn-pipe.h" instead of "pipe.h".
18486         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18487         * lib/javacomp.c: Likewise.
18488         * lib/javaversion.c: Likewise.
18489         * lib/pipe-filter-gi.c: Likewise.
18490         * lib/pipe-filter-ii.c: Likewise.
18491         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18492         * modules/javacomp (Depends-on): Likewise.
18493         * modules/javaversion (Depends-on): Likewise.
18494         * modules/pipe-filter-gi (Depends-on): Likewise.
18495         * modules/pipe-filter-ii (Depends-on): Likewise.
18496         * MODULES.html.sh (Executing programs): Update.
18497         * NEWS: Mention the change.
18498
18499 2010-12-10  Eric Blake  <eblake@redhat.com>
18500
18501         pipe-posix: new module
18502         * modules/pipe-posix: New file.
18503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18504         (gl_UNISTD_H): Check for declaration.
18505         * modules/unistd (Makefile.am): Substitute it.
18506         * lib/unistd.in.h (pipe): Provide it for mingw.
18507         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18508         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18509
18510 2010-12-07  Bruno Haible  <bruno@clisp.org>
18511
18512         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18513         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18514         u8_strcmp_gnu.
18515         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18516
18517 2010-12-06  Bruno Haible  <bruno@clisp.org>
18518
18519         Update internal documentation.
18520         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18521
18522 2010-12-04  Bruno Haible  <bruno@clisp.org>
18523
18524         Put more information about failed tests into the test return codes.
18525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18526         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18527         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18528         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18529         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18530         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18531         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18532         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18533         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18535         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18536         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18537         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18538         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18539         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18540         returns a bit mask.
18541         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18542         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18543         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18544         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18546         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18549         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18551         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18552         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18553         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18555         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18556         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18557         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18558         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18559         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18560         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18561         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18562         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18564         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18565         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18566         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18567         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18568         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18569         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18570         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18571         gl_PRINTF_PRECISION): Likewise.
18572         * m4/regex.m4 (gl_REGEX): Likewise.
18573         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18574         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18575         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18576         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18577         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18579         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18580         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18581         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18582         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18583         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18584         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18585         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18586         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18587         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18588         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18589         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18590         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18592         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18593         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18594         enumerated value.
18595         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18596
18597 2010-12-04  Bruno Haible  <bruno@clisp.org>
18598
18599         Update for Solaris 11 2010-11.
18600         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18601         Express, released in November 2010.
18602
18603 2010-12-04  Bruno Haible  <bruno@clisp.org>
18604
18605         nproc: Relax license.
18606         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18607         and Paul Eggert.
18608         Requested by Ludovic Courtès <ludo@gnu.org>.
18609
18610 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18611
18612         utimecmp: fine-grained src to nearby coarse-grained dest
18613
18614         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18615         and the source is on a file system with higher-resolution time
18616         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18617         not work, and the time stamps are close together, the algorithm to
18618         determine the exact resolution from the read-back mtime was buggy:
18619         it had a "!=" where it should have had an "==".  This bug has been
18620         in the code ever since it was introduced to gnulib.
18621         Problem reported by Dan Jacobson in
18622         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18623
18624 2010-11-30  Bruno Haible  <bruno@clisp.org>
18625
18626         strerror_r-posix: Fix autoconf test.
18627         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18628
18629 2010-11-28  Bruno Haible  <bruno@clisp.org>
18630             Paul Eggert  <eggert@cs.ucla.edu>
18631
18632         Tests for module 'getdomainname'.
18633         * modules/getdomainname-tests: New file.
18634         * tests/test-getdomainname.c: New file, based on
18635         tests/test-gethostname.c.
18636
18637 2010-11-28  Bruno Haible  <bruno@clisp.org>
18638             Paul Eggert  <eggert@cs.ucla.edu>
18639
18640         getdomainname: Use the system function when possible.
18641         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18642         (getdomainname): Replace if needed. Provide the declaration if it is
18643         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18644         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18645         (getdomainname): When the system has getdomainname, call the system
18646         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18647         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18648         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18649         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18650         the function if its second argument is of type 'int' or if it is found
18651         in libnsl.
18652         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18653         <sys/systeminfo.h> and sysinfo().
18654         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18656         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18657         HAVE_GETDOMAINNAME.
18658         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18659         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18660         * doc/glibc-functions/getdomainname.texi: Document the problems with
18661         the getdomainname declaration.
18662
18663 2010-11-28  Bruno Haible  <bruno@clisp.org>
18664
18665         sys_socket: Ensure ss_family field on AIX.
18666         * lib/sys_socket.in.h (ss_family): New macro definition.
18667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18668         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18669         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18670         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18671         * modules/sys_socket (Makefile.am): Substitute
18672         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18673         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18674
18675 2010-11-27  Bruno Haible  <bruno@clisp.org>
18676
18677         readline: Improve configure output.
18678         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18679         "checking for readline..." result understandable.
18680
18681 2010-11-27  Bruno Haible  <bruno@clisp.org>
18682
18683         *printf-posix: Detect a bug on Solaris 10/x86.
18684         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18685         for floating-point output.
18686         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18687         directive.
18688         * tests/test-snprintf-posix.h (test_function): Likewise.
18689         * tests/test-sprintf-posix.h (test_function): Likewise.
18690         * tests/test-vasprintf-posix.c (test_function): Likewise.
18691         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18692         * doc/posix-functions/printf.texi: Likewise.
18693         * doc/posix-functions/snprintf.texi: Likewise.
18694         * doc/posix-functions/sprintf.texi: Likewise.
18695         * doc/posix-functions/vfprintf.texi: Likewise.
18696         * doc/posix-functions/vprintf.texi: Likewise.
18697         * doc/posix-functions/vsnprintf.texi: Likewise.
18698         * doc/posix-functions/vsprintf.texi: Likewise.
18699         * doc/glibc-functions/obstack_printf.texi: Likewise.
18700         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18701
18702 2010-11-27  Bruno Haible  <bruno@clisp.org>
18703
18704         Fix link error when module libunistring-optional is in use.
18705         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18706         * modules/striconveha-tests (Makefile.am): Likewise.
18707
18708 2010-11-27  Bruno Haible  <bruno@clisp.org>
18709
18710         regex: Mention link dependencies.
18711         * modules/regex (Link): New section.
18712         * modules/rpmatch (Link): Likewise.
18713         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18714
18715 2010-11-27  Bruno Haible  <bruno@clisp.org>
18716
18717         ftoastr: Fix compilation error on Solaris.
18718         * lib/ftoastr.c: Include <config.h>.
18719
18720 2010-11-27  Bruno Haible  <bruno@clisp.org>
18721
18722         getloadavg: Update documentation.
18723         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18724
18725 2010-11-27  Bruno Haible  <bruno@clisp.org>
18726
18727         sys_socket: Fix test whether the functions are declared.
18728         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18729         not <sys/select.h>.
18730
18731 2010-11-27  Bruno Haible  <bruno@clisp.org>
18732
18733         getpass: Make sure to get system declaration on some platforms.
18734         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18735         gl_USE_SYSTEM_EXTENSIONS.
18736         * modules/getpass (Depends-on): Add extensions.
18737
18738 2010-11-26  Bruno Haible  <bruno@clisp.org>
18739
18740         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18741         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18742         'iconv' module is present.
18743         (ICONV_CONST): New macro.
18744         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18745         ICONV_CONST.
18746         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18747         set ICONV_CONST.
18748         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18749         here.
18750         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18751         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18752         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18753         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18754         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18755         present.
18756
18757 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18758
18759         ftoastr: comment fix
18760         * lib/ftoastr.c: "little" -> "little or no" in comment
18761
18762 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18763
18764         stdint: port to GCC 4.3 + OSX + Octave
18765         On this platform, stdint.h is buggy and defines int64_t to long
18766         long int.  The replacement defined it to long int, causing
18767         problems with C++ style name mangling.  Instead, trust the system
18768         definition if INT64_MAX is defined, and likewise for the unsigned
18769         variant.   Problem reported by Jarno Rajahalme in
18770         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18771         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18772         and don't mess with int64_t and INT64_MAX in this case.
18773         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18774
18775 2010-11-24  Bruno Haible  <bruno@clisp.org>
18776
18777         doc: Corrections regarding MacOS X 10.4 and 10.5.
18778         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18779         MacOS X.
18780         Reported by Simon Josefsson.
18781
18782 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18783
18784         Uninstall ".bin" files installed by relocwrapper.
18785         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18786         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18787         unless it is already there.
18788
18789 2010-11-21  Bruno Haible  <bruno@clisp.org>
18790
18791         Update for NetBSD 5.0.
18792         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18793         NetBSD; the test fails on NetBSD 5.0.
18794         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18795         about NetBSD.
18796
18797 2010-11-21  Bruno Haible  <bruno@clisp.org>
18798
18799         Update for HP-UX 11.23 and HP-UX 11.31.
18800         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18801         HP-UX.
18802
18803 2010-11-21  Bruno Haible  <bruno@clisp.org>
18804
18805         Update for MacOS X 10.5.
18806         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18807         MacOS X; the test fails on MacOS X 10.5.8.
18808         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18809         about MacOS X.
18810
18811 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18812
18813         bootstrap: add bootstrap_sync option.
18814         See discussion at
18815         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18816         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18817         * build-aux/bootstrap: Accept --bootstrap-sync to update
18818         bootstrap if it is not identical to the local gnulib's
18819         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18820         enable this by default.  Accept --no-bootstrap-sync to disable
18821         it.
18822
18823 2010-11-20  Bruno Haible  <bruno@clisp.org>
18824
18825         Ensure that <features.h> is included before __GLIBC__ is tested.
18826         * lib/printf-parse.h: Include <features.h>.
18827         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18828         Reported by Mike Frysinger <vapier@gentoo.org>.
18829
18830         Ensure that <features.h> is included before __GLIBC__ is tested.
18831         * lib/wchar.in.h: Include <features.h>.
18832         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18833         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18834         Reported by Mike Frysinger <vapier@gentoo.org>.
18835
18836         Ensure that <features.h> is included before __GLIBC__ is tested.
18837         * lib/arpa_inet.in.h: Include <features.h>.
18838         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18839         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18840         Reported by Mike Frysinger <vapier@gentoo.org>.
18841
18842         Ensure that <features.h> is included before __GLIBC__ is tested.
18843         * build-aux/link-warning.h: Include <features.h>.
18844         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18845         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18846         Reported by Mike Frysinger <vapier@gentoo.org>.
18847
18848         Ensure that <features.h> is included before __GLIBC__ is tested.
18849         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18850         Reported by Mike Frysinger <vapier@gentoo.org>.
18851
18852 2010-11-20  Bruno Haible  <bruno@clisp.org>
18853
18854         memmem: Fix autoconf test.
18855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18856
18857 2010-11-20  Bruno Haible  <bruno@clisp.org>
18858
18859         Port to uClibc.
18860         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18861         * lib/fcntl.in.h: Likewise.
18862         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18863         * lib/mbrtowc.c (mbrtowc): Likewise.
18864         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18865         * lib/strerror_r.c: Likewise.
18866         * lib/unistr/u8-strnlen.c: Likewise.
18867         * lib/vasnprintf.c (decimal_point_char): Likewise.
18868         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18869         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18870         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18871         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18872         * tests/test-sigaction.c (handler, main): Likewise.
18873         * lib/freading.h: Treat uClibc like a non-glibc platform.
18874         * lib/freading.c: Likewise.
18875         * lib/gettext.h: Likewise.
18876         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18877         Likewise.
18878         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18879         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18880         * lib/propername.c (proper_name_utf8): Likewise.
18881         * lib/spawn.in.h: Likewise.
18882         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18883         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18884         mem_cd_iconveh_internal): Likewise.
18885         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18886         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18887         strstr, strcasestr): Likewise.
18888         * lib/unicodeio.c (unicode_to_mb): Likewise.
18889         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18890         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18891         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18892         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18893         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18894         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18895         * lib/unistr/u8-stpncpy.c: Likewise.
18896         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18897         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18898         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18899         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18900         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18901         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18902         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18905         Likewise.
18906         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18907         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18908         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18910         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18911         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18912         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18913         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18914         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18915         * tests/test-striconveha.c (main): Likewise.
18916         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18917         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18918         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18919         * doc/posix-functions/getline.texi: Likewise.
18920         Reported by Mike Frysinger <vapier@gentoo.org>.
18921
18922 2010-11-20  Bruno Haible  <bruno@clisp.org>
18923
18924         nproc: Fix condition.
18925         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18926         HAVE_PTHREAD_AFFINITY_NP.
18927
18928 2010-11-20  Bruno Haible  <bruno@clisp.org>
18929
18930         Fix a comment.
18931         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18932
18933 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18934
18935         ftoastr: don't assume snprintf
18936         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18937         Implement a subset of snprintf here, by using sprintf safely.
18938         * modules/ftoastr (Depends-on): Remove snprintf.
18939
18940 2010-11-19  Jim Meyering  <meyering@redhat.com>
18941
18942         test-rename.h: fix compilation failure
18943         * tests/test-rename.h (test_rename): Add omitted "}".
18944
18945 2010-11-17  Jim Meyering  <meyering@redhat.com>
18946
18947         maint.mk: add a URL discussing the no-@acronym policy
18948         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18949
18950 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18951
18952         ftoastr: depend on snprintf, improve comments
18953         * lib/ftoastr.c: Also mention Loitsch's draft.
18954         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18955         needed in the current implementation, but it might simplify
18956         speeding up the code later.
18957         * modules/ftoastr: Depend on snprintf; this improves portability.
18958         Suggested by Bruno Haible in the same email.
18959
18960         ftoastr: port to hosts lacking strtof and strtold
18961         Problem reported by Bruno Haible in
18962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18963         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18964         environment and strtold (and presumably strtof) are not available.
18965         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18966         (configure.ac): Require gl_C99_STRTOLD.
18967
18968 2010-11-18  Bruno Haible  <bruno@clisp.org>
18969
18970         c-strtold: Avoid link error on AIX 7.
18971         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18972         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18973         (gl_C_STRTOLD): Test whether strtold_l exists.
18974         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18975
18976 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18977
18978         intprops: new macro INT_BITS_STRLEN_BOUND
18979         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18980         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18981         not exposed.  Also, it uses a slightly tighter bound than before;
18982         though this makes no practical difference, we might as well be as
18983         tight as we easily can.
18984
18985         ftoastr: new module, for lossless conversion of floats to short strings
18986         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18987         * modules/ftoastr: New files.
18988
18989 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18990
18991         bootstrap: port to Solaris sed
18992         * build-aux/bootstrap (get_version): Port to Solaris sed.
18993         See Ralf Wildenhues's note in
18994         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18995
18996 2010-11-14  Jim Meyering  <meyering@redhat.com>
18997
18998         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18999         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19000         and move definition closer to sole use.
19001
19002 2010-11-13  Jim Meyering  <meyering@redhat.com>
19003
19004         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19005         Now we require at least autoconf-2.59, which means the work-around
19006         is no longer needed.
19007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19008         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19009         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19010         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19011         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19012
19013 2010-11-13  Bruno Haible  <bruno@clisp.org>
19014
19015         rename, renameat: Avoid test failures at NFS mounted locations.
19016         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19017         functions.
19018         (test_rename): Use assert_nonexistent.
19019         * tests/test-rename.c: Include <dirent.h>.
19020         * tests/test-renameat.c: Likewise.
19021         Reported by Gary V. Vaughan <gary@gnu.org>.
19022
19023         rename, renameat: Document Linux bug with NFS
19024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19025         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19026         * doc/posix-functions/renameat.texi: Likewise.
19027         Suggested by Eric Blake.
19028
19029 2010-11-13  Bruno Haible  <bruno@clisp.org>
19030
19031         rename test: Add comments.
19032         * tests/test-rename.h (test_rename): Add structure and comments.
19033
19034 2010-11-13  Eric Blake  <eblake@redhat.com>
19035
19036         maintainer-makefile: cover a few more files
19037         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19038         scripts generated within C files, for libvirt.
19039
19040 2010-11-13  Bruno Haible  <bruno@clisp.org>
19041
19042         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19043         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19044         character, return the number of bytes that belong together, not always
19045         1.
19046         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19047         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19048         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19049         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19050         number of bytes of an invalid character.
19051         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19052         (main): Invoke it.
19053         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19054         results.
19055         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19056         malformed byte sequences.
19057         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19058         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19059         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19060         Reported by Ben Pfaff and Paolo Bonzini.
19061
19062 2010-11-13  Bruno Haible  <bruno@clisp.org>
19063
19064         openat: Work around glibc bug with fchownat() and empty file names.
19065         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19066         (gl_FUNC_FCHOWNAT): Invoke it.
19067         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19068         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19069         Reported by Gary V. Vaughan <gary@gnu.org>.
19070
19071 2010-11-13  Bruno Haible  <bruno@clisp.org>
19072
19073         openat: Ensure autoconf macro ordering.
19074         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19075         gl_USE_SYSTEM_EXTENSIONS.
19076         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19077
19078 2010-11-13  Bruno Haible  <bruno@clisp.org>
19079
19080         Update comments.
19081         * lib/unistr/u8-check.c: Update file name in comments.
19082         * lib/unistr/u8-mblen.c: Likewise.
19083         * lib/unistr/u8-prev.c: Likewise.
19084         * lib/unistr/u8-strmblen.c: Likewise.
19085         * lib/unistr/u8-strmbtouc.c: Likewise.
19086
19087 2010-11-13  Jim Meyering  <meyering@redhat.com>
19088
19089         tests: avoid test failure on Solaris 10 due to lack of PATH export
19090         * tests/test-update-copyright.sh: Don't forget to export PATH.
19091
19092         init.sh: ensure that IFS is defined, just in case...
19093         * tests/init.sh (setup_): Ensure that IFS is defined,
19094         so that saving and restoring it works as expected.  This
19095         appears to be useful at least for an old version of dash
19096         from a long time ago (RH 6).  See here for details:
19097         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19098
19099         maint.mk: tighten "test a == b" check
19100         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19101         test to files that contain something like #!/bin/sh.
19102         Without this, coreutils would get two false positives in
19103         the comments of C source files.
19104
19105 2010-11-12  Eric Blake  <eblake@redhat.com>
19106
19107         bootstrap: fix typo in previous attempt
19108         * build-aux/bootstrap (buildreq): Correct the grouping.
19109         Reported by Paul Eggert.
19110
19111         maintainer-makefile: prohibit test x == x
19112         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19113         Based on a report by Matthias Bolte.
19114
19115         bootstrap: allow FreeBSD gzip
19116         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19117         which has no '.' and goes to stderr.
19118         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19119         Reported by Matthias Bolte.
19120
19121         maintainer-makefile: check for i18n setup
19122         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19123         will likely work.
19124
19125 2010-11-12  Bruno Haible  <bruno@clisp.org>
19126
19127         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19128         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19129         * lib/nanosleep.c (nanosleep): Likewise.
19130
19131 2010-11-11  Bruno Haible  <bruno@clisp.org>
19132
19133         fcntl-h: Fix for use of C++ on glibc systems.
19134         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19135         also on glibc systems in C++ mode.
19136         Reported by Gary V. Vaughan <gary@gnu.org>.
19137
19138 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19139
19140         mknod: avoid false failure with dash
19141         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19142
19143 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19144
19145         unlink: Fix "is it should" typo in diagnostic.
19146         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19147         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19148
19149 2010-11-11  Bruno Haible  <bruno@clisp.org>
19150
19151         Tests for module 'strerror_r-posix'.
19152         * modules/strerror_r-posix-tests: New file.
19153         * tests/test-strerror_r.c: New file.
19154         * tests/test-string-c++.cc: Check the signature of strerror_r.
19155
19156         New module 'strerror_r-posix'.
19157         * lib/string.in.h (strerror_r): New declaration.
19158         * lib/strerror_r.c: New file.
19159         * m4/strerror_r.m4: New file.
19160         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19161         of strerror_r.
19162         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19163         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19164         * modules/strerror_r-posix: New file.
19165         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19166         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19167         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19168         portability problems.
19169
19170 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19171
19172         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19173         line is also considered for output. Quoted function name in shell
19174         command, so temporary files for functions like MyClass::operator()
19175         are removed correctly without errors.
19176
19177 2010-11-09  Bruno Haible  <bruno@clisp.org>
19178
19179         * doc/posix-functions/strerror.texi: List more failing platforms.
19180
19181         * doc/posix-functions/strerror.texi: Add a comment.
19182
19183 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19184
19185         fdopendir: fix bug on MacOS X when low on file descriptors
19186
19187         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19188         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19189         All callers changed.
19190         (fdopendir): Invoke save_cwd at the top level, not after using
19191         multiple dup() calls to use up file descriptors.  Then retry
19192         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19193         less than the maximum number of open file descriptors, because
19194         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19195         on Mac OS X 10.6.4 for tar 1.24
19196         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19197         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19198         and for tar 1.25
19199         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19200
19201 2010-11-07  Bruno Haible  <bruno@clisp.org>
19202
19203         vasnprintf: Support I flag on glibc systems.
19204         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19205         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19206         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19207         snprintf function.
19208         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19209         glibc systems.
19210         * tests/test-vasnprintf-posix3.c: New file.
19211         * modules/vasnprintf-posix-tests (Files): Add it.
19212         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19213
19214 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19215
19216         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19217         * MODULES.html.sh: For compiler warnings, use name
19218         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19219
19220 2010-11-05  Eric Blake  <eblake@redhat.com>
19221
19222         ceil, floor: avoid spurious failure with icc
19223         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19224         [denormals-as-zero] when optimizing without -mieee-fp option.
19225         * tests/test-floorf2.c (floorf_reference): Likewise.
19226         * tests/test-ceilf1.c (dummy): New function.
19227         (main): Use it to outsmart icc's optimization.
19228         * tests/test-floorf1.c (dummy, main): Likewise.
19229
19230         tests: require working signbit
19231         * modules/ceilf-tests (Depends-on): Add signbit.
19232         * modules/ceill-tests (Depends-on): Likewise.
19233         * modules/floorf-tests (Depends-on): Likewise.
19234         * modules/floorl-tests (Depends-on): Likewise.
19235         * modules/round-tests (Depends-on): Likewise.
19236         * modules/roundf-tests (Depends-on): Likewise.
19237         * modules/roundl-tests (Depends-on): Likewise.
19238         * modules/trunc-tests (Depends-on): Likewise.
19239         * modules/truncf-tests (Depends-on): Likewise.
19240         * modules/truncl-tests (Depends-on): Likewise.
19241
19242         strtod: work around icc bug
19243         * lib/strtod.c (minus_zero): Define to working value.
19244         (strtod): Use it to avoid icc bug.
19245
19246         copysign: enhance tests
19247         * modules/copysign-tests (Files): Add minus-zero.h.
19248         * tests/test-copysign.c (main): Also test zeros.
19249
19250 2010-11-04  Eric Blake  <eblake@redhat.com>
19251
19252         ceil, floor, round, trunc: enhance tests of -0
19253         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19254         * tests/test-ceill.c (main): Likewise.
19255         * tests/test-floorf1.c (main): Likewise.
19256         * tests/test-floorl.c (main): Likewise.
19257         * tests/test-round1.c (main): Likewise.
19258         * tests/test-roundf1.c (main): Likewise.
19259         * tests/test-roundl.c (main): Likewise.
19260         * tests/test-trunc1.c (main): Likewise.
19261         * tests/test-truncf1.c (main): Likewise.
19262         * tests/test-truncl.c (main): Likewise.
19263
19264 2010-11-04  Eric Blake  <eblake@redhat.com>
19265
19266         frexp, tests: work around ICC bug with -zero
19267         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19268         works with more compilers.
19269         * tests/minus-zero.h: New file.
19270         * modules/ceilf-tests (Files): Include it.
19271         * modules/ceill-tests (Files): Likewise.
19272         * modules/floorf-tests (Files): Likewise.
19273         * modules/floorl-tests (Files): Likewise.
19274         * modules/frexp-nolibm-tests (Files): Likewise.
19275         * modules/frexp-tests (Files): Likewise.
19276         * modules/frexpl-nolibm-tests (Files): Likewise.
19277         * modules/frexpl-tests (Files): Likewise.
19278         * modules/isnan-tests (Files): Likewise.
19279         * modules/isnand-nolibm-tests (Files): Likewise.
19280         * modules/isnand-tests (Files): Likewise.
19281         * modules/isnanf-nolibm-tests (Files): Likewise.
19282         * modules/isnanf-tests (Files): Likewise.
19283         * modules/isnanl-nolibm-tests (Files): Likewise.
19284         * modules/isnanl-tests (Files): Likewise.
19285         * modules/round-tests (Files): Likewise.
19286         * modules/roundf-tests (Files): Likewise.
19287         * modules/roundl-tests (Files): Likewise.
19288         * modules/ldexpl-tests (Files): Likewise.
19289         * modules/signbit-tests (Files): Likewise.
19290         * modules/snprintf-posix-tests (Files): Likewise.
19291         * modules/sprintf-posix-tests (Files): Likewise.
19292         * modules/strtod-tests (Files): Likewise.
19293         * modules/trunc-tests (Files): Likewise.
19294         * modules/truncf-tests (Files): Likewise.
19295         * modules/truncl-tests (Files): Likewise.
19296         * modules/vsnprintf-posix-tests (Files): Likewise.
19297         * modules/vsprintf-posix-tests (Files): Likewise.
19298         * modules/vasnprintf-posix-tests (Files): Likewise.
19299         * modules/vasprintf-posix-tests (Files): Likewise.
19300         * tests/test-ceilf1.c (main): Use it.
19301         * tests/test-ceill.c (main): Likewise.
19302         * tests/test-floorf1.c (main): Likewise.
19303         * tests/test-floorl.c (main): Likewise.
19304         * tests/test-frexp.c (main): Likewise.
19305         * tests/test-frexpl.c (main): Likewise.
19306         * tests/test-isnan.c (main): Likewise.
19307         * tests/test-isnand.h (main): Likewise.
19308         * tests/test-isnanf.h (main): Likewise.
19309         * tests/test-isnanl.h (main): Likewise.
19310         * tests/test-ldexpl.c (main): Likewise.
19311         * tests/test-round.c (main): Likewise.
19312         * tests/test-roundf.c (main): Likewise.
19313         * tests/test-roundl.c (main): Likewise.
19314         * tests/test-signbit.c (test_signbitf, test_signbitd)
19315         (test_signbitl): Likewise.
19316         * tests/test-snprintf-posix.h (test_function): Likewise.
19317         * tests/test-sprintf-posix.h (test_function): Likewise.
19318         * tests/test-strtod.c (main): Likewise.
19319         * tests/test-trunc1.c (main): Likewise.
19320         * tests/test-truncf1.c (main): Likewise.
19321         * tests/test-truncl.c (main): Likewise.
19322
19323         isnanl: work around icc bug
19324         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19325
19326 2010-11-03  Eric Blake  <eblake@redhat.com>
19327
19328         tests: fix compiler warnings
19329         * tests/test-getopt.h (test_getopt): Fix condition.
19330         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19331         * tests/test-pipe2.c (main): Likewise.
19332         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19333
19334         utimens: fix broken m4 test
19335         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19336
19337 2010-10-28  Bruno Haible  <bruno@clisp.org>
19338
19339         posix_spawn*, getdtablesize: Relax license.
19340         * modules/posix_spawn (License): Change to LGPLv2+.
19341         * modules/posix_spawnp (License): Likewise.
19342         * modules/posix_spawn-internal (License): Likewise.
19343         * modules/posix_spawnattr_init (License): Likewise.
19344         * modules/posix_spawnattr_getflags (License): Likewise.
19345         * modules/posix_spawnattr_setflags (License): Likewise.
19346         * modules/posix_spawnattr_getpgroup (License): Likewise.
19347         * modules/posix_spawnattr_setpgroup (License): Likewise.
19348         * modules/posix_spawnattr_getschedparam (License): Likewise.
19349         * modules/posix_spawnattr_setschedparam (License): Likewise.
19350         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19351         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19352         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19353         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19354         * modules/posix_spawnattr_getsigmask (License): Likewise.
19355         * modules/posix_spawnattr_setsigmask (License): Likewise.
19356         * modules/posix_spawnattr_destroy (License): Likewise.
19357         * modules/posix_spawn_file_actions_init (License): Likewise.
19358         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19359         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19360         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19361         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19362         * modules/getdtablesize (License): Likewise.
19363         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19364
19365 2010-10-26  Bruno Haible  <bruno@clisp.org>
19366
19367         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19368         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19369         Cygwin and mingw.
19370         Suggested by Eric Blake.
19371
19372 2010-10-26  Bruno Haible  <bruno@clisp.org>
19373
19374         stdio: Work around compilation error due to renameat() on Solaris 10.
19375         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19376         * lib/renameat.c: Don't include <unistd.h> here.
19377         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19378         Reported by Paul Eggert and Eric Blake.
19379
19380 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19381
19382         renameat: port to Solaris 10, which declares renameat in unistd.h
19383
19384         * lib/renameat.c: Include unistd.h before stdio.h, because
19385         Solaris 10 declares renameat in unistd.h.  Problem encountered
19386         when building GNU tar 1.24 on Solaris 10.
19387
19388 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19389
19390         fdopendir: fix C89 compilation
19391         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19392         compilers.
19393
19394 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19395
19396         inttostr: simplify by removing unnecessary redundancy
19397         * lib/anytostr.c: Don't include verify.h.
19398         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19399         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19400         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19401         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19402         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19403         Likewise.
19404         * modules/inttostr (Depends-on): Remove 'verify'.
19405
19406 2010-10-23  Bruno Haible  <bruno@clisp.org>
19407
19408         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19409         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19410         Reported by Eric Blake.
19411
19412 2010-10-23  Bruno Haible  <bruno@clisp.org>
19413
19414         Tests: Fix LOCALE_JA on MirBSD 10.
19415         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19416         to an UTF-8 locale.
19417         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19418         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19419         Reported by Eric Blake.
19420
19421 2010-10-21  Bruno Haible  <bruno@clisp.org>
19422
19423         nl_langinfo test: Avoid test failure on NetBSD 5.
19424         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19425         Reported by Eric Blake.
19426
19427 2010-10-21  Eric Blake  <eblake@redhat.com>
19428
19429         c-stack: work around libsigsegv 2.8 bug
19430         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19431         overflow on at least PowerPC64.
19432
19433 2010-10-17  Bruno Haible  <bruno@clisp.org>
19434
19435         userspec: Drop redundant file.
19436         * modules/userspec (Files): Remove lib/inttostr.h.
19437
19438 2010-10-17  Bruno Haible  <bruno@clisp.org>
19439
19440         nl_langinfo tests: Silence some warnings.
19441         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19442         Reported by Jim Meyering.
19443
19444 2010-10-17  Bruno Haible  <bruno@clisp.org>
19445
19446         Make use of GCC's attribute __alloc_size__.
19447         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19448         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19449         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19450         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19451         __alloc_size__.
19452         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19453         Suggested by Jim Meyering.
19454
19455 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19456
19457         bootstrap: anchor .gitignore entries.
19458         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19459         with...
19460         (insert_vc_ignore): ... this new function, which prepends `/' to
19461         all .gitignore entries before passing them to
19462         insert_sorted_if_absent.
19463
19464 2010-10-16  Bruno Haible  <bruno@clisp.org>
19465
19466         nextafter: Fix configure check.
19467         * modules/nextafter (configure.ac): Correct expected prototype.
19468
19469 2010-10-16  Bruno Haible  <bruno@clisp.org>
19470
19471         termios: Update documentation.
19472         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19473
19474 2010-10-16  Bruno Haible  <bruno@clisp.org>
19475
19476         tests: Make them compile with TinyCC.
19477         * tests/test-strstr.c (main): Remove parentheses around array
19478         initializer.
19479
19480 2010-10-15  Eric Blake  <eblake@redhat.com>
19481
19482         ignore-value: make header idempotent
19483         * lib/ignore-value.h: Add double-inclusion guards.
19484         Reported by Stefan Berger.
19485
19486 2010-10-15  Jim Meyering  <meyering@redhat.com>
19487
19488         GNUmakefile: handle "stable" target, not "major"
19489         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19490         lists in maint.mk and announce-gen.  Without this, "make stable"
19491         would fail to ensure that $(VERSION) is up to date.
19492
19493 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19494
19495         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19496         & co.
19497
19498 2010-10-14  Bruno Haible  <bruno@clisp.org>
19499
19500         vasnprintf: Don't set errno to 0.
19501         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19502         block that sets it to 0.
19503         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19504
19505 2010-10-14  Bruno Haible  <bruno@clisp.org>
19506
19507         socketlib: Fix.
19508         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19509         gl_PREREQ_SYS_H_WINSOCK2.
19510         Reported by Ian Beckwith <ianb@erislabs.net>.
19511
19512 2010-10-13  Jim Meyering  <meyering@redhat.com>
19513
19514         test-select-stdin.c: avoid warn_unused_result warnings
19515         * tests/test-select-stdin.c: Include "macros.h".
19516         ASSERT that read and fflush succeed.
19517
19518 2010-10-13  Jim Meyering  <meyering@redhat.com>
19519
19520         git-version-gen: do require git-VC'd files in cwd
19521         * build-aux/git-version-gen: Reject a git version string
19522         if there are no commits associated with the current directory.
19523         This avoids an unlikely false-positive (unrelated dir whose parent
19524         repository also contains a tag matching v*), as pointed out
19525         by Giuseppe Scrivano in
19526         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19527
19528 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19529
19530         argv-iter: omit nonconforming declaration
19531         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19532         enum arg_iter_err declaration, which doesn't conform to C99.
19533         Solaris 10 cc warns about this.
19534
19535 2010-10-13  Eric Blake  <eblake@redhat.com>
19536
19537         termios: fix compilation on mingw
19538         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19539         (gl_TERMIOS_H): Adjust it on mingw.
19540         * modules/termios (Makefile.am): Substitute new key.
19541         * lib/termios.in.h (includes): Make include_next conditional.
19542         * doc/posix-headers/termios.texi (termios.h): Update
19543         documentation.
19544         Reported by Daniel P. Berrange.
19545
19546 2010-10-13  Jim Meyering  <meyering@redhat.com>
19547
19548         git-version-gen: don't require that .git/ be in the current dir
19549         * build-aux/git-version-gen: Adjust this script so that it works
19550         when run from any working directory beneath the top-level .git/-
19551         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19552         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19553
19554         test-select: avoid warn_unused_result warnings
19555         * tests/test-select.c: Include "macros.h".
19556         ASSERT that each call to read, write, and pipe succeeds.
19557         While not technically required, also check each "close".
19558         * modules/select-tests (Files): Add tests/macros.h.
19559
19560         test-symlinkat: remove declaration of unused local
19561         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19562
19563         test-inttostr: avoid shadowing warnings
19564         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19565         and use malloc rather than the stack for the same reason as
19566         mentioned in the comment justifying the other allocation.
19567
19568 2010-10-11  Bruno Haible  <bruno@clisp.org>
19569
19570         stdlib: Allow multiple gnulib generated replacements to coexist.
19571         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19572         Reported by Sam Steingold <sds@gnu.org>.
19573
19574 2010-10-11  Jim Meyering  <meyering@redhat.com>
19575
19576         fix a documentation typo
19577         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19578
19579 2010-10-11  Eric Blake  <eblake@redhat.com>
19580
19581         futimens: work around Solaris 11 bug
19582         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19583         * tests/test-futimens.h (test_futimens): Enhance, rather than
19584         weaken test.
19585         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19586
19587 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19588
19589         Indentation.
19590         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19591         higher-level operators more to the left.
19592
19593 2010-10-11  Jim Meyering  <meyering@redhat.com>
19594
19595         test-futimens: avoid unwarranted test failure on Solaris 5.11
19596         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19597         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19598         because it tries to dereference the NULL name argument.
19599
19600 2010-10-11  Bruno Haible  <bruno@clisp.org>
19601
19602         Indentation.
19603         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19604         indentation.
19605
19606 2010-10-11  Jim Meyering  <meyering@redhat.com>
19607
19608         spawn.in.h: make indentation consistent with parentheses
19609         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19610         Make indentation consistent with parentheses.
19611
19612 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19613
19614         Fix mismatched parens in previous commit
19615         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19616         parens.
19617
19618 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19619
19620         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19621
19622         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19623         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19624         * lib/malloca.c: Include "verify.h".
19625         (verify1): Remove, replacing with a verify call.
19626         * lib/relocwrapper.c (verify1): Likewise.
19627         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19628         Likewise.
19629         * modules/malloca (Depends-on): Add 'verify'.
19630         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19631         * modules/vasnprintf (Depends-on): Add 'verify'.
19632         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19633         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19634         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19635         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19636         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19637         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19638         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19639
19640         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19641
19642         Formerly the style was sometimes 2*X - 1, because the C standard
19643         was wrongly thought to disallow ?: in integral constant expressions.
19644         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19645         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19646         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19647         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19648         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19649         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19650         verify that time_t cannot be floating.
19651
19652 2010-10-08  Eric Blake  <eblake@redhat.com>
19653
19654         time: enforce recent POSIX ruling that time_t is integral
19655         * lib/time.in.h (__time_t_must_be_integral): Detect any
19656         problematic systems, allowing the rest of gnulib to assume POSIX.
19657
19658 2010-10-08  Jim Meyering  <meyering@redhat.com>
19659
19660         fdopendir: fix a bug on systems lacking openat and /proc support
19661         OpenBSD 4.7 is one such system.  The most noticeable effect was
19662         failure of any application making nontrivial use of fts: rm, du,
19663         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19664           ./rm: traversal failed: `a': Bad file descriptor
19665         Debugging that, you see that even though FD 6 was closed just
19666         prior to the opendir call in fd_clone_opendir, its resulting
19667         dir->dd_fd was 8, rather than the expected value of 6:
19668
19669         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19670         93                close (fd);
19671         (gdb) n
19672         94                dir = fd_clone_opendir (dupfd);
19673         (gdb) n
19674         95                saved_errno = errno;
19675         (gdb) p dir->dd_fd
19676         $11 = 8
19677
19678         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19679         The problem is that on OpenBSD, fd_clone_opendir has to resort
19680         to using the old-style save/restore CWD mechanism, due to its
19681         lack of openat/proc support, and *that* would steal the FD (6)
19682         that opendir was supposed to use.
19683
19684         The fix is to squirrel away the desired FD so that save_cwd uses a
19685         different one, and then free the dest FD right before calling opendir.
19686         That guarantees opendir will use the required file descriptor.
19687
19688         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19689
19690 2010-10-08  Bruno Haible  <bruno@clisp.org>
19691
19692         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19693         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19694
19695 2010-10-08  Bruno Haible  <bruno@clisp.org>
19696
19697         nanosleep: Make replacement POSIX compliant.
19698         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19699         is out of range.
19700         Reported by Jim Meyering.
19701
19702 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19703
19704         bootstrap: add hook for altering gnulib.mk, for Bison
19705         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19706         the Bison bootstrapping process can rewrite file names and variables
19707         in this file before later parts of 'bootstrap' use the file.
19708         Bison wants to include lib/gnulib.mk from the top-level makefile,
19709         so it needs the file names in this file to be relative to the top
19710         level, not relative to lib; plus it needs variable names to be
19711         rewritten.
19712         (slurp): Use the new function.
19713
19714         bootstrap: reformat for readability
19715         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19716
19717 2010-10-08  Eric Blake  <eblake@redhat.com>
19718
19719         docs: update cygwin progress
19720         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19721         1.7.7.
19722         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19723         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19724         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19725         * doc/posix-functions/carg.texi (carg): Likewise.
19726         * doc/posix-functions/cargf.texi (cargf): Likewise.
19727         * doc/posix-functions/casin.texi (casin): Likewise.
19728         * doc/posix-functions/casinf.texi (casinf): Likewise.
19729         * doc/posix-functions/casinh.texi (casinh): Likewise.
19730         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19731         * doc/posix-functions/catan.texi (catan): Likewise.
19732         * doc/posix-functions/catanf.texi (catanf): Likewise.
19733         * doc/posix-functions/catanh.texi (catanh): Likewise.
19734         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19735         * doc/posix-functions/ccos.texi (ccos): Likewise.
19736         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19737         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19738         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19739         * doc/posix-functions/cexp.texi (cexp): Likewise.
19740         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19741         * doc/posix-functions/cimag.texi (cimag): Likewise.
19742         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19743         * doc/posix-functions/clog.texi (clog): Likewise.
19744         * doc/posix-functions/clogf.texi (clogf): Likewise.
19745         * doc/posix-functions/conj.texi (conj): Likewise.
19746         * doc/posix-functions/conjf.texi (conjf): Likewise.
19747         * doc/posix-functions/cpow.texi (cpow): Likewise.
19748         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19749         * doc/posix-functions/cproj.texi (cproj): Likewise.
19750         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19751         * doc/posix-functions/creal.texi (creal): Likewise.
19752         * doc/posix-functions/crealf.texi (crealf): Likewise.
19753         * doc/posix-functions/csin.texi (csin): Likewise.
19754         * doc/posix-functions/csinf.texi (csinf): Likewise.
19755         * doc/posix-functions/csinh.texi (csinh): Likewise.
19756         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19757         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19758         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19759         * doc/posix-functions/ctan.texi (ctan): Likewise.
19760         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19761         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19762         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19763         * doc/posix-headers/complex.texi (complex.h): Likewise.
19764
19765 2010-10-07  Jim Meyering  <meyering@redhat.com>
19766
19767         parse-datetime: avoid compilation failure on OpenBSD 4.7
19768         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19769         This works around a compilation failure on OpenBSD 4.7:
19770         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19771
19772 2010-10-07  Eric Blake  <eblake@redhat.com>
19773
19774         docs: update cygwin progress
19775         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19776         1.7.6.
19777         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19778         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19779         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19780         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19781         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19782         Likewise.
19783         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19784         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19785         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19786         Likewise.
19787         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19788         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19789         Likewise.
19790         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19791         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19792         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19793         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19794         Likewise.
19795         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19796         Likewise.
19797         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19798
19799         docs: update parse-datetime history
19800         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19801         documentation of this function's history and alternatives.
19802
19803         cygwin: use more robust version check
19804         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19805         exclude an eventual cygwin 1.9.1.
19806         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19808         (gl_FUNC_STRCASESTR): Likewise.
19809         Reported by Bruno Haible.
19810
19811 2010-10-06  Bruno Haible  <bruno@clisp.org>
19812
19813         string, sys_select: Avoid #including large headers unless necessary.
19814         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19815         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19816         OSF/1, BeOS, Haiku.
19817         Reported by Jim Meyering.
19818
19819 2010-10-05  Eric Blake  <eblake@redhat.com>
19820
19821         memmem, strstr, strcasestr: fix bug with long periodic needle
19822         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19823         periodic needle having false positive.
19824         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19825         and cygwin 1.7.7.
19826         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19828         (gl_FUNC_STRCASESTR): Likewise.
19829         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19830         * tests/test-memmem.c (main): Expose the bug.
19831         * tests/test-strcasestr.c (main): Likewise.
19832         * tests/test-strstr.c (main): Likewise.
19833         * tests/test-c-strcasestr.c (main): Likewise.
19834         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19835         * doc/posix-functions/strstr.texi (strstr): Likewise.
19836         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19837         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19838
19839 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19840
19841         parse-datetime: do some more renaming
19842         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19843         parse_datetime, not get_date.  Mention the renaming.
19844         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19845         in comments.
19846         * m4/bison.m4: Likewise.
19847
19848 2010-10-05  Eric Blake  <eblake@redhat.com>
19849
19850         parse-datetime: better name than get_date
19851         * NEWS: Reword the deprecation notice.
19852         * modules/get_date: Rename to modules/parse-datetime.
19853         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19854         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19855         * lib/get_date.y: Rename to lib/parse-datetime.y.
19856         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19857         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19858         * doc/getdate.texi: Provide fallback wrapper.
19859         * lib/getdate.h: Move guts, and wrap...
19860         * lib/parse-datetime.h: ...new file.
19861         * lib/parse-datetime.y (get_date): Rename...
19862         (parse_datetime): ...to this.
19863         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19864         (gl_PARSE_DATETIME): ...to this.
19865         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19866         documentation.
19867         * modules/getdate (Files): Provide fallback docs and header.
19868         (Notice, Depends-on): Update references.
19869         * tests/test-parse-datetime.c: Likewise.
19870         * DEPENDENCIES: Likewise.
19871         * MODULES.html.sh (Date and time <time.h>): Likewise.
19872         * doc/parse-datetime.texi (Date input formats)
19873         (Authors of parse_datetime): Likewise.
19874         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19875         (Include): Likewise.
19876         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19877         * gnulib-tool: Likewise.
19878         * m4/bison.m4 (gl_BISON): Likewise.
19879         Suggested by Bruno Haible.
19880
19881 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19882
19883         more ports to Solaris tr, which needs [] around ranges
19884         * gnulib-tool: Solaris tr needs [] around ranges.
19885         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19886         * tests/test-pipe-filter-gi1.c (main): Likewise.
19887         * tests/test-pipe-filter-ii1.c (main): Likewise.
19888
19889 2010-10-05  Eric Blake  <eblake@redhat.com>
19890
19891         bootstrap: fix Solaris regression
19892         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19893         around ranges.
19894         Reported by Pádraig Brady.
19895
19896         bootstrap: work with pkg-config
19897         * build-aux/bootstrap (check_versions): Also transliterate - in
19898         prerequisite name.
19899         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19900         prerequisites that were already found, to avoid confusion.
19901         Reported by Justin Clift.
19902
19903         faccessat: remove unused wrappers
19904         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19905         presence of these wrappers dragged in -lgen on Solaris.
19906         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19907
19908 2010-10-05  Jim Meyering  <meyering@redhat.com>
19909
19910         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19911         * Makefile (sc_pragma_columns): New syntax-check rule.
19912
19913 2010-10-04  Bruno Haible  <bruno@clisp.org>
19914
19915         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19916         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19917         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19918         Reported by Bruce Korb and Eric Blake.
19919
19920 2010-10-04  Bruno Haible  <bruno@clisp.org>
19921
19922         threadlib: Make option --with-libpth-prefix work.
19923         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19924         use $LIBPTH, not just -lpth.
19925
19926 2010-10-04  Bruno Haible  <bruno@clisp.org>
19927
19928         Avoid line length limitation from HP NonStop system header files.
19929         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19930         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19931         * lib/ctype.in.h: Likewise.
19932         * lib/dirent.in.h: Likewise.
19933         * lib/errno.in.h: Likewise.
19934         * lib/fcntl.in.h: Likewise.
19935         * lib/float.in.h: Likewise.
19936         * lib/getopt.in.h: Likewise.
19937         * lib/iconv.in.h: Likewise.
19938         * lib/inttypes.in.h: Likewise.
19939         * lib/langinfo.in.h: Likewise.
19940         * lib/locale.in.h: Likewise.
19941         * lib/math.in.h: Likewise.
19942         * lib/netdb.in.h: Likewise.
19943         * lib/netinet_in.in.h: Likewise.
19944         * lib/poll.in.h: Likewise.
19945         * lib/pthread.in.h: Likewise.
19946         * lib/pty.in.h: Likewise.
19947         * lib/sched.in.h: Likewise.
19948         * lib/se-selinux.in.h: Likewise.
19949         * lib/search.in.h: Likewise.
19950         * lib/signal.in.h: Likewise.
19951         * lib/spawn.in.h: Likewise.
19952         * lib/stdarg.in.h: Likewise.
19953         * lib/stddef.in.h: Likewise.
19954         * lib/stdint.in.h: Likewise.
19955         * lib/stdio.in.h: Likewise.
19956         * lib/stdlib.in.h: Likewise.
19957         * lib/string.in.h: Likewise.
19958         * lib/strings.in.h: Likewise.
19959         * lib/sys_file.in.h: Likewise.
19960         * lib/sys_ioctl.in.h: Likewise.
19961         * lib/sys_select.in.h: Likewise.
19962         * lib/sys_socket.in.h: Likewise.
19963         * lib/sys_stat.in.h: Likewise.
19964         * lib/sys_time.in.h: Likewise.
19965         * lib/sys_times.in.h: Likewise.
19966         * lib/sys_utsname.in.h: Likewise.
19967         * lib/sys_wait.in.h: Likewise.
19968         * lib/sysexits.in.h: Likewise.
19969         * lib/termios.in.h: Likewise.
19970         * lib/time.in.h: Likewise.
19971         * lib/unistd.in.h: Likewise.
19972         * lib/wchar.in.h: Likewise.
19973         * lib/wctype.in.h: Likewise.
19974         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19975         * modules/ctype (Makefile.am): Likewise.
19976         * modules/dirent (Makefile.am): Likewise.
19977         * modules/errno (Makefile.am): Likewise.
19978         * modules/fcntl-h (Makefile.am): Likewise.
19979         * modules/float (Makefile.am): Likewise.
19980         * modules/getopt-posix (Makefile.am): Likewise.
19981         * modules/iconv-h (Makefile.am): Likewise.
19982         * modules/inttypes (Makefile.am): Likewise.
19983         * modules/langinfo (Makefile.am): Likewise.
19984         * modules/locale (Makefile.am): Likewise.
19985         * modules/math (Makefile.am): Likewise.
19986         * modules/netdb (Makefile.am): Likewise.
19987         * modules/netinet_in (Makefile.am): Likewise.
19988         * modules/poll-h (Makefile.am): Likewise.
19989         * modules/pthread (Makefile.am): Likewise.
19990         * modules/pty (Makefile.am): Likewise.
19991         * modules/sched (Makefile.am): Likewise.
19992         * modules/search (Makefile.am): Likewise.
19993         * modules/selinux-h (Makefile.am): Likewise.
19994         * modules/signal (Makefile.am): Likewise.
19995         * modules/spawn (Makefile.am): Likewise.
19996         * modules/stdarg (Makefile.am): Likewise.
19997         * modules/stddef (Makefile.am): Likewise.
19998         * modules/stdint (Makefile.am): Likewise.
19999         * modules/stdio (Makefile.am): Likewise.
20000         * modules/stdlib (Makefile.am): Likewise.
20001         * modules/string (Makefile.am): Likewise.
20002         * modules/strings (Makefile.am): Likewise.
20003         * modules/sys_file (Makefile.am): Likewise.
20004         * modules/sys_ioctl (Makefile.am): Likewise.
20005         * modules/sys_select (Makefile.am): Likewise.
20006         * modules/sys_socket (Makefile.am): Likewise.
20007         * modules/sys_stat (Makefile.am): Likewise.
20008         * modules/sys_time (Makefile.am): Likewise.
20009         * modules/sys_times (Makefile.am): Likewise.
20010         * modules/sys_utsname (Makefile.am): Likewise.
20011         * modules/sys_wait (Makefile.am): Likewise.
20012         * modules/sysexits (Makefile.am): Likewise.
20013         * modules/termios (Makefile.am): Likewise.
20014         * modules/time (Makefile.am): Likewise.
20015         * modules/unistd (Makefile.am): Likewise.
20016         * modules/wchar (Makefile.am): Likewise.
20017         * modules/wctype (Makefile.am): Likewise.
20018
20019 2010-10-04  Bruno Haible  <bruno@clisp.org>
20020
20021         read-file tests: Avoid a test failure on NonStop Kernel.
20022         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20023         a regular file.
20024         Reported by Joachim Schmitz <schmitz@hp.com>.
20025
20026 2010-10-03  Bruno Haible  <bruno@clisp.org>
20027
20028         gnulib-tool: Fixes for --create-testdir with --libtool.
20029         * gnulib-tool (func_get_automake_snippet): Don't augment
20030         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20031         an executable.
20032         (func_create_testdir): Handle module 'alloca' like func_import.
20033         Reported by Bruce Korb <bruce.korb@gmail.com>.
20034
20035 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20036
20037         Avoid some lines longer than 80 characters.
20038         * lib/stdint.in.h: Break long comment lines.
20039         * lib/math.in.h: Likewise.
20040         (_GL_NUM_UINT_WORDS): New macro, for readability.
20041         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20042         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20043         * lib/stdlib.in.h: Likewise.
20044         * lib/spawn.in.h: Likewise.
20045         * lib/sys_socket.in.h: Update an URL.
20046         * lib/sys_stat.in.h: Break long line.
20047
20048 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20049
20050         Improve pmccabe2html.
20051         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20052         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20053         when the sources change. Remove the line in the HTML about "Used
20054         ranges" (which implied that there might be other unused ranges),
20055         rename "Resume" to "Summary" (easier to understand for more users).
20056         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20057         styles, and some unnecessary blank lines.
20058
20059 2010-10-03  Bruno Haible  <bruno@clisp.org>
20060             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20061
20062         acl: Add support for ACLs on NonStop Kernel.
20063         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20064         Check whether the function aclsort() exists.
20065         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20066         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20067         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20068         (acl_nontrivial [HAVE_ACLSORT]: New function.
20069         (file_has_acl): Implement for NonStop Kernel.
20070         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20071         (qset_acl): Implement for NonStop Kernel.
20072         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20073         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20074         (main): Implement for NonStop Kernel.
20075         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20076         Kernel. Handle this flavor.
20077         * tests/test-set-mode-acl.sh: Likewise.
20078         * tests/test-copy-acl.sh: Likewise.
20079         * tests/test-copy-file.sh: Likewise.
20080
20081 2010-10-03  Bruno Haible  <bruno@clisp.org>
20082
20083         Info about ACLs on NonStop Kernel.
20084         * doc/acl-resources.txt: Add info about NonStop Kernel.
20085         References by Joachim Schmitz <schmitz@hp.com>.
20086
20087 2010-10-02  Bruno Haible  <bruno@clisp.org>
20088
20089         Define missing EDQUOT on NonStop Kernel.
20090         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20091         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20092         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20093         missing.
20094         * doc/posix-headers/errno.texi: Mention the NSK bug.
20095         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20096         Reported by Joachim Schmitz <schmitz@hp.com>.
20097
20098 2010-10-02  Bruno Haible  <bruno@clisp.org>
20099
20100         Update doc for POSIX:2008.
20101         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20102         Update URL of POSIX specification.
20103
20104 2010-10-02  Bruno Haible  <bruno@clisp.org>
20105
20106         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20107         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20108         from gnulib, not from Automake.
20109
20110 2010-10-02  Bruno Haible  <bruno@clisp.org>
20111
20112         New module 'system-posix'.
20113         * modules/system-posix: New file.
20114         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20115         module is present.
20116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20117         GNULIB_SYSTEM_POSIX.
20118         * modules/stdlib (Depends-on): Remove sys_wait.
20119         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20120         * doc/posix-functions/system.texi: Mention the new module.
20121         * doc/posix-headers/stdlib.texi: Likewise.
20122         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20123         define test_sys_wait_macros to a no-op.
20124         Reported by Sam Steingold <sds@gnu.org>.
20125
20126 2010-09-30  Bruno Haible  <bruno@clisp.org>
20127
20128         More renaming from 'getdate' to 'get_date'.
20129         * doc/get_date.texi: Renamed from doc/getdate.texi.
20130         * modules/get_date (Files): Update.
20131         * MODULES.html.sh (Date and time <time.h>): Update.
20132         * DEPENDENCIES: Update.
20133         * gnulib-tool: Update comment.
20134         * m4/bison.m4 (gl_BISON): Likewise.
20135         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20136
20137 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20138
20139         bootstrap: support ACLOCAL_FLAGS during aclocal
20140         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20141         can add additional -I dir for third-party .m4 files.
20142
20143 2010-09-30  Eric Blake  <eblake@redhat.com>
20144
20145         bootstrap: use glibtoolize on MacOS
20146         * build-aux/bootstrap (check_versions): Convert libtool into
20147         libtoolize.
20148         (tool search): Move libtool check earlier, and look for
20149         glibtoolize for MacOS.
20150         (gnulib_tool_options): Auto-add --libtool when appropriate.
20151         Reported by Justin Clift.
20152
20153         poll: fix typo that broke test on MacOS
20154         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20155         Reported by Justin Clift.
20156
20157         getdate: rename to get_date
20158         Note: getdate.h is not renamed, to minimize client impact.
20159         * modules/getdate: Mark obsolete.  Move old contents...
20160         * modules/get_date: ...to new module name.
20161         * modules/getdate-tests: Move...
20162         * modules/get_date-tests: ...here.
20163         * m4/getdate.m4: Move...
20164         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20165         * lib/getdate.y: Move...
20166         * lib/get_date.y: ...here.
20167         * tests/test-getdate.c: Move...
20168         * tests/test-get_date.c: ...here.
20169         * doc/posix-functions/getdate.texi (getdate): Update name.
20170         * NEWS: Mention the change.
20171
20172 2010-09-29  Bruno Haible  <bruno@clisp.org>
20173
20174         Separate the module 'waitpid' from the module 'sys_wait'.
20175         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20176         present.
20177         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20178         gl_MODULE_INDICATOR_FOR_TESTS.
20179         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20180         * modules/sys_wait (Depends-on): Remove waitpid.
20181         (Makefile.am): Substitute GNULIB_WAITPID.
20182         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20183         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20184         signature only if the 'waitpid' module is present.
20185         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20186         * NEWS: Mention the change.
20187         * modules/grantpt (Depends-on): Add waitpid.
20188         * modules/wait-process (Depends-on): Likewise.
20189
20190 2010-09-29  Bruno Haible  <bruno@clisp.org>
20191
20192         More tests for module 'sys_wait'.
20193         * modules/sys_wait-c++-tests: New file.
20194         * tests/test-sys_wait-c++.cc: New file.
20195         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20196         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20197
20198 2010-09-29  Bruno Haible  <bruno@clisp.org>
20199
20200         New module 'waitpid'.
20201         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20202         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20203         Don't include <process.h>.
20204         (waitpid): Declare only, using modern idiom.
20205         * m4/waitpid.m4: New file.
20206         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20207         * modules/waitpid: New file.
20208         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20209         (Makefile.am): Update.
20210         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20211
20212 2010-09-28  Bruno Haible  <bruno@clisp.org>
20213
20214         poll: Assume ANSI C.
20215         * lib/poll.c (poll): Use an ANSI C declaration.
20216
20217 2010-09-28  Bruno Haible  <bruno@clisp.org>
20218
20219         poll-h: Create poll.h on all platforms.
20220         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20221         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20222         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20223         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20224         (gl_REPLACE_POLL_H): Don't set POLL_H.
20225         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20226         * modules/poll-h (Depends-on): Add include_next.
20227         (Makefile.am): Create poll.h unconditionally. Substitute also
20228         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20229
20230 2010-09-28  Bruno Haible  <bruno@clisp.org>
20231
20232         Tests for module 'poll-h'.
20233         * modules/poll-h-c++-tests: New file.
20234         * tests/test-poll-h-c++.cc: New file.
20235
20236         Tests for module 'poll-h'.
20237         * modules/poll-h-tests: New file.
20238         * tests/test-poll-h.c: New file.
20239
20240 2010-09-28  Bruno Haible  <bruno@clisp.org>
20241
20242         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20243         * modules/poll-h (Depends-on): Add 'extensions'.
20244
20245 2010-09-28  Bruno Haible  <bruno@clisp.org>
20246
20247         New module 'poll-h'.
20248         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20249         (poll): Use modern idiom.
20250         * modules/poll-h: New file.
20251         * modules/poll (Files): Remove lib/poll.in.h.
20252         (Depends-on): Add poll-h.
20253         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20254         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20255         * m4/poll_h.m4: New file.
20256         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20257         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20258         and invoke gl_REPLACE_POLL_H.
20259         * lib/poll.c: Use common idiom.
20260         * tests/test-poll.c: Likewise.
20261         * doc/posix-headers/poll.texi: Mention the poll-h module.
20262         Suggested by Eric Blake.
20263
20264 2010-09-26  Bruno Haible  <bruno@clisp.org>
20265
20266         sys_wait: Implement WSTOPSIG.
20267         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20268         Reported by Simon Josefsson.
20269
20270 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20271
20272         stdlib, sys_wait: Avoid compilation error on mingw.
20273         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20274
20275 2010-09-26  Bruno Haible  <bruno@clisp.org>
20276
20277         stdlib tests: Avoid code duplication.
20278         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20279         * modules/sys_wait-tests (Files): Likewise.
20280         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20281         * tests/test-stdlib.c: Include test-sys_wait.h.
20282         (main): Invoke test_sys_wait_macros.
20283         * tests/test-sys_wait.c: Include test-sys_wait.h.
20284         (main): Invoke test_sys_wait_macros.
20285
20286 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20287
20288         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20289         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20290         sure Windows sockets are working before calling getaddrinfo.
20291         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20292         * doc/gnulib.texi (Windows sockets): Fix typo.
20293
20294 2010-09-25  Bruno Haible  <bruno@clisp.org>
20295
20296         Tests for module 'regex-quote'.
20297         * modules/regex-quote-tests: New file.
20298         * tests/test-regex-quote.c: New file.
20299
20300         New module 'regex-quote'.
20301         * lib/regex-quote.h: New file.
20302         * lib/regex-quote.c: New file.
20303         * modules/regex-quote: New file.
20304         Suggested by Reuben Thomas <rrt@sc3d.org>.
20305
20306 2010-09-24  Bruno Haible  <bruno@clisp.org>
20307
20308         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20309         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20310
20311 2010-09-23  Bruno Haible  <bruno@clisp.org>
20312
20313         setenv: Relax license.
20314         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20315         Blake.
20316         Requested by Eric Blake.
20317
20318 2010-09-22  Bruno Haible  <bruno@clisp.org>
20319
20320         termios: Relax license.
20321         * modules/termios (License): Change to LGPLv2+.
20322         Requested by Eric Blake.
20323
20324 2010-09-22  Bruno Haible  <bruno@clisp.org>
20325
20326         threadlib: Allow the package to change the default to 'no'.
20327         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20328         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20329         Reported by Paul Eggert.
20330
20331 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20332             Bruno Haible  <bruno@clisp.org>
20333
20334         Fix endless loop in mbmemcasecoll.
20335         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20336         byte.
20337         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20338
20339 2010-09-22  Bruno Haible  <bruno@clisp.org>
20340
20341         Tests for module 'memcoll'.
20342         * modules/memcoll-tests: New file.
20343         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20344
20345         memcoll, xmemcoll: Clarify size vs. length.
20346         * modules/memcoll.c (memcoll0): Clarify specification.
20347         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20348         passed to collate_error.
20349
20350 2010-09-22  Bruno Haible  <bruno@clisp.org>
20351
20352         Tests for module 'memcasecmp'.
20353         * modules/memcasecmp-tests: New file.
20354         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20355
20356 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20357
20358         * lib/pthread.in.h: Add split double-inclusion guard, and include
20359         system <pthread.h> if there is one.  Use @@-style as in other
20360         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20361         pthread.h doesn't.
20362         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20363         (pthread_mutexattr_settype, pthread_mutex_trylock):
20364         New static inline functions, if there's no system <pthread.h>.
20365         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20366         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20367         Approximate with mutexes if the system lacks spinlocks, as in
20368         MacOS.
20369         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20370         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20371         @@-style.  Check for spinlocks separately.
20372         (gl_PTHREAD_DEFAULTS): New macro.
20373         * modules/pthread: Redo to use a more typical style for in.h files.
20374
20375 2010-09-21  Eric Blake  <eblake@redhat.com>
20376
20377         net_if: enhance tests
20378         * tests/test-net_if.c (main): Move signature checks earlier.
20379         Print failures to stderr.
20380         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20381         Document the bug that we do not yet fix.
20382
20383 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20384
20385         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20386         about gnulib, not GSS.
20387
20388 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20389
20390         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20391         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20392         for Emacs.
20393         * build-aux/pmccabe2html: Make Makefile.am example code more
20394         cut-and-paste friendly.
20395
20396 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20397
20398         * tests/test-net_if.c: New file.
20399         * modules/net_if-tests: New file.
20400
20401 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20402
20403         pthread: add pthread_spin_destroy
20404         * lib/pthread.in.h (pthread_spin_destroy): New function.
20405
20406 2010-09-19  Bruno Haible  <bruno@clisp.org>
20407
20408         gnulib-tool: Fix --help output.
20409         * gnulib-tool (func_usage): Fix help message.
20410         Reported by Reuben Thomas <rrt@sc3d.org>.
20411
20412 2010-09-18  Jim Meyering  <meyering@redhat.com>
20413
20414         maint.mk: avoid unexpanded \n in two diagnostics
20415         * top/maint.mk (sc_prohibit_always_true_header_tests):
20416         Don't use a literal \n in a halt=... assignment.  It would not be
20417         expanded, and the two \n bytes would appear in the diagnostic output
20418         rather than the desired newline.  Use halt=$$(printf ... instead.
20419         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20420
20421 2010-09-18  Bruno Haible  <bruno@clisp.org>
20422
20423         netinet_in: Doc tweak.
20424         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20425         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20426
20427 2010-09-18  Jim Meyering  <meyering@redhat.com>
20428
20429         init.sh: correct an outdated comment
20430         * tests/init.sh (create_exe_shims_):  s/function/alias/
20431
20432         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20433         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20434         a file named "*.exe" is removed between the glob expansion and the
20435         processing of that oddly named file.
20436
20437 2010-09-17  Eric Blake  <eblake@redhat.com>
20438
20439         mirbsd: add some more support
20440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20441         in BSD family.
20442         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20443         devices as OpenBSD.
20444         * m4/host-os.m4 (mirbsd): Add MirBSD.
20445
20446         tests: fix unportable assumption on sys/wait.h
20447         * tests/test-sys_wait.c (main): Relax test.
20448         * tests/test-stdlib.c (main): Likewise.
20449
20450         init.sh: accomodate directory with no .exes
20451         * tests/init.sh: Accomodate directory containing only scripts.
20452
20453         tests: avoid compiler warning
20454         * tests/test-stdlib.c (main): Use the variable.
20455
20456         fdutimens, fdutimensat: update signature, again
20457         * lib/utimens.h (gl_futimens): Delete, and move signature...
20458         (fdutimens): ...here.
20459         (fdutimensat): Rearrange signature.
20460         (lutimensat): Rename variable for clarity.
20461         * lib/fdutimensat.c (fdutimensat): Update signature.
20462         * lib/utimens.c (fdutimens): Likewise.
20463         (gl_futimens): Delete.
20464         (utimens, lutimens): Update callers.
20465         * lib/futimens.c (futimens): Likewise.
20466         * tests/test-fdutimensat.c: Likewise.
20467         * tests/test-utimens.c: Likewise.
20468         * tests/test-futimens.h: Update comment.
20469         * NEWS: Mention this.
20470         Suggested by Paul Eggert.
20471
20472 2010-09-17  Bruno Haible  <bruno@clisp.org>
20473
20474         Take over the maintenance of some older macros from Autoconf.
20475         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20476         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20477         GNU Autoconf.
20478         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20479         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20480
20481 2010-09-17  Eric Blake  <eblake@redhat.com>
20482
20483         fdutimensat: drop atflag validation
20484         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20485         with valid fd, to close a race scenario where futimens is
20486         unsupported and FILE was replaced by a symlink.
20487         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20488         accordingly.
20489         Suggested by Paul Eggert.
20490
20491 2010-09-16  Bruno Haible  <bruno@clisp.org>
20492
20493         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20494         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20495
20496 2010-09-16  Bruno Haible  <bruno@clisp.org>
20497
20498         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20499         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20500         login_tty exists.
20501         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20502
20503 2010-09-16  Bruno Haible  <bruno@clisp.org>
20504
20505         login_tty: Make the replacement code work on BSD systems.
20506         * lib/login_tty.c: Include <sys/ioctl.h>.
20507         (login_tty): Use ioctl TIOCSCTTY when available.
20508         * modules/login_tty (Depends-on): Add sys_ioctl.
20509         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20510
20511 2010-09-16  Bruno Haible  <bruno@clisp.org>
20512
20513         login_tty: Stricter unit test.
20514         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20515         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20516         and tcgetsid() after login_tty.
20517         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20518
20519 2010-09-16  Bruno Haible  <bruno@clisp.org>
20520
20521         New module 'tcgetsid'.
20522         * lib/tcgetsid.c: New file.
20523         * m4/tcgetsid.m4: New file.
20524         * modules/tcgetsid: New file.
20525         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20526         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20527         GNULIB_TCGETSID, HAVE_TCGETSID.
20528         * lib/termios.in.h: Include <sys/types.h>.
20529         (tcgetsid): New declaration.
20530         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20531         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20532         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20533         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20534
20535 2010-09-16  Bruno Haible  <bruno@clisp.org>
20536
20537         Tests for module 'termios'.
20538         * modules/termios-c++-tests: New file.
20539         * modules/termios-tests: New file.
20540         * tests/test-termios-c++.cc: New file.
20541         * tests/test-termios.c: New file.
20542
20543         New module 'termios'.
20544         * modules/termios: New file.
20545         * lib/termios.in.h: New file.
20546         * m4/termios_h.m4: New file.
20547         * doc/posix-headers/termios.texi: Mention the new module.
20548
20549 2010-09-16  Eric Blake  <eblake@redhat.com>
20550
20551         fdutimensat: add an atflag parameter
20552         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20553         * lib/utimens.h (fdutimensat): Update prototype.
20554         * tests/test-fdutimensat.c: Adjust test to match.
20555         * NEWS: Document the change.
20556         Suggested by Paul Eggert.
20557
20558 2010-09-16  Bruno Haible  <bruno@clisp.org>
20559
20560         Fix typos in comments.
20561         * lib/striconveh.h: Fix typo in comment.
20562         * lib/login_tty.c (login_tty): Likewise.
20563
20564 2010-09-15  Bruno Haible  <bruno@clisp.org>
20565
20566         stdlib: clarify MirBSD WEXITSTATUS bug
20567         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20568         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20569
20570 2010-09-15  Eric Blake  <eblake@redhat.com>
20571
20572         stdlib: work around MirBSD WEXITSTATUS bug
20573         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20574         * modules/stdlib (Depends-on): Add sys_wait.
20575         * tests/test-sys_wait.c (main): Enhance test.
20576         * tests/test-stdlib.c (main): Likewise.
20577         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20578
20579         docs: mention MacOS issue with WEXITSTATUS(constant)
20580         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20581         issue.
20582         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20583
20584         strnlen: add tests
20585         * modules/strnlen-tests: New file.
20586         * tests/test-strnlen.c: Likewise.
20587
20588 2010-09-14  Bruno Haible  <bruno@clisp.org>
20589
20590         unistr/base: Avoid link errors when module 'libunistring' is also used.
20591         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20592         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20593         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20594         Declare also when HAVE_LIBUNISTRING is set.
20595         Reported by Pádraig Brady <P@draigbrady.com>.
20596
20597 2010-09-14  Eric Blake  <eblake@redhat.com>
20598
20599         test-rawmemchr: make more robust
20600         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20601         (Depends-on, configure.ac): Add needed prerequisites to use it.
20602         * modules/memchr-tests (Files, Depends-on, configure.ac):
20603         Likewise, to avoid implicit reliance on memchr module prereqs.
20604         * tests/test-memchr.c (main): Ensure proper masking.
20605         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20606         reads.
20607
20608         memchr: detect glibc Alpha bug
20609         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20610         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20611         Alpha.
20612         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20613         * tests/test-memchr.c (main): Enhance test.
20614         Reported by Nelson H. F. Beebe.
20615
20616 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20617
20618         fts, getcwd, glob: audit for dirfd returning -1
20619         * lib/fts.c (opendir): Remove #define; no longer used.
20620         (opendirat): New arg PDIR_FD.  All callers changed.
20621         (fts_build, _opendir2): Use new opendirat to avoid the need for
20622         dirfd, or for checking whether dirfd returns a negative value.
20623         Don't use opendir; always use openat followed by fdopendir.
20624         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20625         it.
20626         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20627         returns -1 here.
20628         * modules/fts (Depends-on): Remove dirfd.
20629         * modules/getcwd (Depends-on): Likewise.
20630
20631 2010-09-13  Eric Blake  <eblake@redhat.com>
20632
20633         float: fix broken MirBSD header
20634         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20635         * doc/posix-headers/float.texi (float.h): Document it.
20636
20637 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20638
20639         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20640         * lib/fts.c (opendirat): New arg extra_flags.
20641         (__opendir2): Use it to avoid following symlinks when opening
20642         a directory, if symlinks are not supposed to be followed.  See
20643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20644
20645         fdopendir: preserve argument fd before returning
20646         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20647         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20648         (fdopendir): Use them, arranging for FD to be open to the same
20649         directory that it was when it started.  (It might be temporarily
20650         closed while fdopendir is running, so this not thread- or
20651         signal-safe.)  Be careful to do the right thing even when file
20652         descriptors are scarce and dup fails with errno == EMFILE.  See
20653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20654
20655 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20656
20657         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20658         * NEWS: Document change.
20659         * m4/regex.m4: Disable test for regoff_t size.
20660
20661 2010-09-13  Jim Meyering  <meyering@redhat.com>
20662
20663         fts: don't operate on an invalid file descriptor after failed dup
20664         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20665         negative file descriptor.
20666
20667 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20668
20669         savedir: add streamsavedir, deprecate fdsavedir
20670         * NEWS: Mention deprecation of fdsavedir.
20671         * lib/savedir.c (streamsavedir): New extern function, whose name
20672         ends in "savedir" to be consistent with the others.  This differs
20673         from savedirstream in that it doesn't close its argument.  The
20674         next version of GNU tar will use this instead of fdsavedir, to
20675         avoid some race conditions and conserve file descriptors.
20676         (savedirstream): Reimplement as a wrapper around streamsavedir.
20677         (fdsavedir): Add a comment deprecating this function.  As far as
20678         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20679         * lib/savedir.h (streamsavedir): New decl.
20680         (fdsavedir): Add a comment deprecating this.
20681
20682 2010-09-10  Bruno Haible  <bruno@clisp.org>
20683
20684         langinfo: Fix last commit.
20685         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20686         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20688
20689 2010-09-10  Bruno Haible  <bruno@clisp.org>
20690
20691         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20692         * lib/progreloc.c (O_EXEC): Define fallback.
20693
20694 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20695
20696         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20697         * NEWS: Document recent changes to fcntl-h.
20698         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20699         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20700         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20701         Similarly for O_SEARCH; this last was already true, but not documented.
20702         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20703         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20704         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20705         Likewise.
20706         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20707         is zero, not whether it is defined.
20708         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20709         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20710         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20711
20712 2010-09-10  Bruno Haible  <bruno@clisp.org>
20713
20714         langinfo, nl_langinfo: Fix for IRIX 5.3.
20715         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20716         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20717         HAVE_LANGINFO_YESEXPR.
20718         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20719         HAVE_LANGINFO_YESEXPR.
20720         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20721         HAVE_LANGINFO_T_FMT_AMPM is 0.
20722         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20723         HAVE_LANGINFO_YESEXPR is 0.
20724         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20725         NOEXPR.
20726         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20727         * doc/posix-functions/nl_langinfo.texi: Likewise.
20728         Reported by Eric Blake.
20729
20730 2010-09-10  Bruno Haible  <bruno@clisp.org>
20731
20732         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20733         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20734         on FreeBSD 8.0 and OpenBSD 4.6.
20735         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20736         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20737         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20738         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20739         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20740         ac_includes_default.
20741         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20742
20743 2010-09-09  Eric Blake  <eblake@redhat.com>
20744
20745         strsignal: work around NetBSD bug
20746         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20747         * lib/string.in.h (includes): Likewise.
20748         * doc/posix-functions/strsignal.texi (strsignal): Document the
20749         bug.
20750         Reported by Nelson H. F. Beebe.
20751
20752         gnulib-tool: work with NetBSD /bin/sh
20753         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20754         (func_get_description, func_get_comment, func_get_status)
20755         (func_get_notice, func_get_applicability, func_get_filelist)
20756         (func_get_dependencies, func_get_autoconf_early_snippet)
20757         (func_get_autoconf_snippet, func_get_automake_snippet)
20758         (func_get_include_directive, func_get_link_directive)
20759         (func_get_license, func_get_maintainer, func_import): Avoid
20760         shell syntax errors from parsing syntax extensions.
20761
20762 2010-09-09  Bruno Haible  <bruno@clisp.org>
20763
20764         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20765         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20766         a reliable way to determine whether the 'alias' command works.
20767
20768 2010-09-08  Jim Meyering  <meyering@redhat.com>
20769
20770         init.sh: penalize a set-x-impaired shell; don't disqualify it
20771         * tests/init.sh: Too many shells corrupt application stderr when
20772         you set -x, so we can't afford to disqualify them, since at least
20773         on Irix-6.5, that would disqualify all bourne shells.
20774         Instead, use a two-pass approach.
20775         On the first pass, try to find a shell that meets the stricter
20776         condition that set -x does not corrupt stderr.
20777         If no shell meets the stricter condition, retest each candidate
20778         shell, but without that extra condition.  Finally, when
20779         VERBOSE=yes is requested and set -x might cause trouble, simply
20780         issue a warning and refrain from enabling debug output.
20781
20782 2010-09-08  Eric Blake  <eblake@redhat.com>
20783
20784         unsetenv: fix OpenBSD bug
20785         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20786         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20787         documentation.
20788         Reported by Jim Meyering.
20789
20790         strtod: work around IRIX 6.5 bug
20791         * lib/strtod.c (strtod): Reparse number on shorter string if
20792         exponent parse was invalid.
20793         * tests/test-strtod.c (main): Add check for "0x1p 2".
20794         Reported by Tom G. Christensen.
20795
20796         getopt: optimize previous patch
20797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20798         empty variable.  Speed up awk script.
20799         Reported by Paolo Bonzini.
20800
20801 2010-09-08  Jim Meyering  <meyering@redhat.com>
20802
20803         test.sh: disqualify shells for which set -x corrupts stderr
20804         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20805         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20806         appear in stderr output.  For example, this command:
20807             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20808         prints "P=1" on those two systems:
20809
20810 2010-09-08  Bruno Haible  <bruno@clisp.org>
20811
20812         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20813         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20814         commands, because some shells ignore redirections when there is an
20815         error in the command lookup.
20816         Reported by Eric Blake.
20817
20818 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20819
20820         * lib/regex.h: Fix a mention of `regex_compile' (should be
20821         `re_compile_pattern').
20822         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20823         (re_set_registers): Correct name of parameter in comment.
20824
20825         * doc/regex.texi: Add documentation for missing syntax flags.
20826         Remove commented-out documentation of defunct syntax option
20827         RE_NO_EMPTY_ALTS.
20828         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20829         Add documentation of re_set_registers.
20830         Document trick to re-use a pattern buffer by setting fastmap manually.
20831         Update documentation of struct re_pattern_buffer per public members.
20832         Uncomment documentation of equivalence class operators and
20833         collating symbol operators, since they are now implemented,
20834         Explain leftmost-longest matching in relation to alternatives.
20835         Tidy documentation of substring matching.
20836         Remove POSIX documentation, which is done better in
20837         glibc, and refer the reader there. Keep BSD API documentation, as
20838         that is not readily available elsewhere.
20839
20840 2010-09-07  Eric Blake  <eblake@redhat.com>
20841
20842         getopt: handle POSIXLY_CORRECT set but not exported
20843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20844         export state of POSIXLY_CORRECT, due to bash set -o posix.
20845         Reported by Dustin J. Mitchell.
20846
20847 2010-09-05  Bruno Haible  <bruno@clisp.org>
20848
20849         gnulib-tool: Highlight the changed options.
20850         * gnulib-tool (func_usage): Display the --import, --add-import,
20851         --remove-import explanations in bold font.
20852
20853 2010-09-06  Karl Berry  <karl@gnu.org>
20854
20855         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20856
20857 2010-09-05  Bruno Haible  <bruno@clisp.org>
20858
20859         uniwidth/width: Update comment.
20860         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20861         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20862
20863 2010-09-05  Bruno Haible  <bruno@clisp.org>
20864
20865         isinf, isnan: Relax license.
20866         * modules/isinf (License): Change from GPL to LGPL, with consent from
20867         Ben Pfaff.
20868         * modules/isnan (License): Likewise.
20869         Requested by Ludovic Courtès.
20870
20871 2010-09-04  Bruno Haible  <bruno@clisp.org>
20872
20873         gnulib-tool: Help migration from --import to --add-import or --update.
20874         * gnulib-tool: Emit a verbose error message when --import is used
20875         without any module name.
20876
20877 2010-09-04  Bruno Haible  <bruno@clisp.org>
20878
20879         Update doc about gnulib-tool.
20880         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20881         'gnulib-tool --update' in more detail.
20882         Reported by Eric Blake.
20883
20884 2010-09-04  Bruno Haible  <bruno@clisp.org>
20885
20886         gnulib-tool: Change --import. New options --add/remove-import.
20887         * gnulib-tool: New options --add-import, --remove-import.
20888         (func_usage): Document them.
20889         (have_associative): Define always.
20890         (func_import): In import mode, don't merge the specified settings with
20891         the cached settings. Implement remove-import mode.
20892         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20893         Explain when to use them versus --import.
20894         (Simple update): Use --add-import instead of --import.
20895         * NEWS: Mention the change.
20896
20897 2010-09-04  Bruno Haible  <bruno@clisp.org>
20898
20899         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20900         separate gnulib.mk.
20901
20902 2010-09-04  Bruno Haible  <bruno@clisp.org>
20903
20904         gnulib-tool: Don't talk about CVS any more.
20905         * gnulib-tool (func_usage, func_import): Write "version control"
20906         instead of CVS.
20907
20908 2010-09-04  Jim Meyering  <meyering@redhat.com>
20909
20910         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20911         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20912         false positives (whose names may be ill-chosen) when searching
20913         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20914         would cause a false-positive.
20915
20916         avoid coreutils "make distcheck" failure
20917         Coreutils tests with an absolute build directory name that contains
20918         a space.  Not quoting this directory name caused a failure.
20919         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20920         * tests/test-vc-list-files-cvs.sh: Likewise.
20921
20922 2010-09-04  Bruno Haible  <bruno@clisp.org>
20923
20924         gnulib-tool: Avoid error when run in a package without Makefile.am.
20925         * gnulib-tool: When collecting the m4dirs in a package that does not
20926         have a Makefile.am, eliminate those directories that contain no
20927         gnulib-cache.m4. Fix expression that counts these directories.
20928
20929 2010-09-04  Bruno Haible  <bruno@clisp.org>
20930
20931         update-copyright test: Improve output when perl is missing or too old.
20932         * tests/test-update-copyright.sh: Move test of Perl version down after
20933         the test whether Perl exists. Provide an explanation relating Perl's
20934         error message to Automake's SKIP: message.
20935
20936 2010-09-04  Bruno Haible  <bruno@clisp.org>
20937
20938         Don't augment PATH in TESTS_ENVIRONMENT.
20939         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20940         set abs_aux_dir instead of augmenting PATH.
20941         * modules/vc-list-files-tests (Makefile.am): Likewise.
20942         * tests/test-update-copyright.sh: Augment PATH here.
20943         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20944         path_prepend_.
20945         * tests/test-vc-list-files-git.sh: Likewise.
20946
20947 2010-09-04  Jim Meyering  <meyering@redhat.com>
20948
20949         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20950         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20951
20952 2010-09-04  Bruno Haible  <bruno@clisp.org>
20953
20954         strdup: Fix compilation error in C++ mode.
20955         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20956         the macro.
20957
20958 2010-09-04  Bruno Haible  <bruno@clisp.org>
20959
20960         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20961         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20962         macro into a function.
20963         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20964
20965 2010-09-04  Bruno Haible  <bruno@clisp.org>
20966
20967         Set PATH_SEPARATOR the same way autoconf does.
20968         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20969         the value of PATH_SEPARATOR the same way autoconf-generated configure
20970         scripts do.
20971         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20972         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20973
20974 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20975
20976         Set PATH_SEPARATOR the same way autoconf does.
20977         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20978         the same way autoconf-generated configure scripts do.
20979         * posix-modules: Likewise.
20980
20981 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20982
20983         hash: fix safe_hasher const typo
20984         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20985         const; otherwise, there is a type error later.
20986
20987 2010-09-02  Jim Meyering  <meyering@redhat.com>
20988
20989         test-update-copyright.sh: require perl 5.8.0
20990         * tests/test-update-copyright.sh: Require 5.8.0,
20991         which Tom G. Christensen has confirmed is adequate,
20992         while 5.6.1 is not.
20993
20994 2010-09-02  Eric Blake  <eblake@redhat.com>
20995
20996         tests: init.sh improvements for re-exec'ing with zsh
20997         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20998         -vx through shell re-exec.
20999         Reported by Tom G. Christensen.
21000
21001         wctype: fix typo in previous commit
21002         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21003         Reported by Ludovic Courtès.
21004
21005 2010-09-02  Jim Meyering  <meyering@redhat.com>
21006
21007         test-update-copyright.sh: skip test if Perl is too old
21008         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21009         Reported by Tom G. Christensen.
21010
21011 2010-09-02  Bruno Haible  <bruno@clisp.org>
21012
21013         wctype: Avoid compilation error on IRIX 6.5.30.
21014         * lib/wctype.in.h (iswblank): Declare with a replacement if
21015         REPLACE_ISWBLANK is set.
21016         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21017         declared. Set REPLACE_ISWBLANK.
21018         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21019         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21020         * doc/posix-headers/wctype.texi: Likewise.
21021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21022
21023 2010-09-01  Bruno Haible  <bruno@clisp.org>
21024
21025         New module 'socketlib'.
21026         * modules/socketlib: New file.
21027         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21028         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21029         * modules/sockets (Depends-on): Add socketlib.
21030         Suggested by Sam Steingold <sds@gnu.org>.
21031
21032 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21033
21034         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21035
21036         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21037         when one needs search access to a directory but not read access.
21038         On systems where it is available, it works in some cases where
21039         O_RDONLY does not, namely on directories that are searchable but
21040         not readable, and which need only to be searchable.  If O_SEARCH
21041         is not available, fall back to the traditional method of using
21042         O_RDONLY.
21043
21044         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21045         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21046         when opening a directory that needs only to be searchable.
21047         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21048         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21049         * lib/openat-proc.c (openat_proc_name): Likewise.
21050         * lib/openat.c (openat_needs_fchdir): Likewise.
21051         * lib/save-cwd.c (save_cwd): Likewise.
21052         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21053
21054 2010-08-28  Bruno Haible  <bruno@clisp.org>
21055
21056         New module 'host-cpu-c-abi'.
21057         * modules/host-cpu-c-abi: New file.
21058         * m4/host-cpu-c-abi.m4: New file, based on part of
21059         clisp/src/m4/general.m4.
21060         Requested by Sam Steingold <sds@gnu.org>.
21061
21062 2010-08-31  Eric Blake  <eblake@redhat.com>
21063         and Jim Meyering  <meyering@redhat.com>
21064
21065         hash: factor, and guard against misbehaving hasher function
21066         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21067         of table->hasher's return value.  Also protect against a hash value
21068         so large that adding it to table->bucket results in a NULL pointer.
21069         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21070         Use it in place of open-coded check-and-abort.
21071
21072 2010-08-30  Bruno Haible  <bruno@clisp.org>
21073
21074         hash: silence spurious clang warning
21075         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21076         Reported by Eric Blake.
21077
21078 2010-08-30  Eric Blake  <eblake@redhat.com>
21079
21080         strstr, memmem, strcasestr: avoid leaked shell message
21081         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21082         FreeBSD.
21083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21084         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21085
21086         tests: silence clang warning
21087         * tests/test-malloca.c (do_allocation): Avoid dead store.
21088
21089 2010-08-29  Bruno Haible  <bruno@clisp.org>
21090
21091         gettext: Fix recent mistake.
21092         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21093
21094 2010-08-29  Bruno Haible  <bruno@clisp.org>
21095
21096         selinux-h: Offer a --without-selinux option.
21097         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21098         --without-selinux was specified, skip all tests and define
21099         HAVE_SELINUX_SELINUX_H to 0.
21100         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21101         set LIB_SELINUX to empty.
21102         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21103         gl_LIBSELINUX. If --without-selinux was specified, replace
21104         selinux/context.h.
21105         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21106
21107 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21108             Bruno Haible  <bruno@clisp.org>
21109
21110         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21111         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21112         of HAVE_REALLOC.
21113         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21114         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21115         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21116         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21117
21118 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21119             Bruno Haible  <bruno@clisp.org>
21120
21121         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21122         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21123         HAVE_CALLOC.
21124         * lib/xmalloc.c: Update accordingly.
21125         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21126         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21127         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21128
21129 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21130             Bruno Haible  <bruno@clisp.org>
21131
21132         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21133         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21134         HAVE_MALLOC.
21135         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21136         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21137         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21138
21139 2010-08-29  Bruno Haible  <bruno@clisp.org>
21140
21141         Update modules list.
21142         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21143         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21144         (String handling <string.h>): Add astrxfrm.
21145         (File system functions): Add readlinkat.
21146
21147 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21148
21149         Tests for module 'realloc-gnu'.
21150         * modules/realloc-gnu-tests: New file.
21151         * tests/test-realloc-gnu.c: New file.
21152
21153         Tests for module 'calloc-gnu'.
21154         * modules/calloc-gnu-tests: New file.
21155         * tests/test-calloc-gnu.c: New file.
21156
21157         Tests for module 'malloc-gnu'.
21158         * modules/malloc-gnu-tests: New file.
21159         * tests/test-malloc-gnu.c: New file.
21160
21161 2010-08-28  Bruno Haible  <bruno@clisp.org>
21162
21163         Rename module 'realloc' -> 'realloc-gnu'.
21164         * modules/realloc-gnu: New file, copied from modules/realloc.
21165         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21166         obsolete.
21167         * modules/mgetgroups (Depends-on): Update.
21168         * doc/posix-functions/realloc.texi: Update.
21169         * NEWS: Mention the change.
21170
21171         Rename module 'calloc' -> 'calloc-gnu'.
21172         * modules/calloc-gnu: New file, copied from modules/calloc.
21173         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21174         obsolete.
21175         * doc/posix-functions/calloc.texi: Update.
21176         * NEWS: Mention the change.
21177
21178         Rename module 'malloc' -> 'malloc-gnu'.
21179         * modules/malloc-gnu: New file, copied from modules/malloc.
21180         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21181         obsolete.
21182         * modules/argp (Depends-on): Update.
21183         * modules/regex (Depends-on): Update.
21184         * doc/posix-functions/malloc.texi: Update.
21185         * NEWS: Mention the change.
21186
21187 2010-08-28  Eric Blake  <eblake@redhat.com>
21188
21189         pread, pwrite: add missing dependency
21190         * modules/pread (Depends-on): Add extensions.
21191         * modules/pwrite (Depends-on): Likewise.
21192
21193 2010-08-28  Bruno Haible  <bruno@clisp.org>
21194
21195         unistr/u*-strchr: Fix tests dependencies.
21196         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21197         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21198         Reported by Ian Beckwith <ianb@erislabs.net>.
21199
21200 2010-08-28  Bruno Haible  <bruno@clisp.org>
21201
21202         read-file: Don't occupy too much unused memory.
21203         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21204
21205 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21206             Eric Blake  <eblake@redhat.com>
21207             Bruno Haible  <bruno@clisp.org>
21208
21209         read-file: Avoid memory reallocations with regular files.
21210         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21211         (fread_file): With regular files, use the remaining length as the
21212         initial buffer size.  Check against overflow.
21213         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21214         sys_stat.
21215
21216 2010-08-28  Bruno Haible  <bruno@clisp.org>
21217
21218         ftello: Relax license.
21219         * modules/ftello (License): Relax to LGPLv2+.
21220         Reported by Eric Blake.
21221
21222 2010-08-28  Bruno Haible  <bruno@clisp.org>
21223
21224         Avoid relocwrapper link errors due to gnulib replacement functions.
21225         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21226         function.
21227         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21228
21229 2010-08-28  Bruno Haible  <bruno@clisp.org>
21230
21231         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21232         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21233         defined.
21234         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21235         Suggested by Eric Blake.
21236
21237 2010-08-28  Bruno Haible  <bruno@clisp.org>
21238
21239         sys_socket, netdb: Ensure socklen_t gets defined.
21240         * modules/sys_socket (Depends-on): Add socklen.
21241         * modules/netdb (Depends-on): Likewise.
21242         * modules/getaddrinfo (Depends-on): Remove socklen.
21243         * modules/getsockopt (Depends-on): Likewise.
21244         * modules/setsockopt (Depends-on): Likewise.
21245         * tests/test-sys_socket.c: Check that socklen_t is defined.
21246         * tests/test-netdb.c: Likewise.
21247         * m4/socklen.m4: Update comments.
21248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21249
21250 2010-08-27  Eric Blake  <eblake@redhat.com>
21251
21252         login_tty: add missing dependency
21253         * modules/login_tty (Depends-on): Add pty.
21254
21255 2010-08-26  Eric Blake  <eblake@redhat.com>
21256
21257         lib-symbol-versions: fix m4 quoting
21258         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21259         format for AC_LINK_IFELSE.
21260
21261         glob: fix compile test
21262         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21263
21264         btowc: fix missing file
21265         * modules/btowc (Files): Also ship locale-fr.m4.
21266
21267         lseek: fix link test
21268         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21269         AC_LINK_IFELSE.
21270
21271         include_next: silence autoconf 2.68 warning
21272         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21273         AC_COMPILE_IFELSE as special.
21274         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21275         autoconf < 2.68.
21276
21277         acl: fix compilation test
21278         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21279         AC_COMPILE_IFELSE.
21280
21281 2010-08-26  Bruno Haible  <bruno@clisp.org>
21282
21283         Modernize AC_TRY_RUN invocations.
21284         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21285         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21286         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21287         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21288         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21289         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21290         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21292         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21293         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21295         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21296         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21297         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21298         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21299         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21300         gl_MBRLEN_NUL_RETVAL): Likewise.
21301         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21302         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21303         Likewise.
21304         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21305         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21306         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21307         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21308         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21309         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21310         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21311         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21312         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21313         Likewise.
21314         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21315         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21316         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21317         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21318         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21319         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21320         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21321         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21322         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21324
21325 2010-08-26  Bruno Haible  <bruno@clisp.org>
21326
21327         Modernize AC_TRY_LINK invocations.
21328         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21329         AC_TRY_LINK.
21330         * m4/argp.m4 (gl_ARGP): Likewise.
21331         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21332         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21333         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21334         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21335         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21336         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21337         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21338         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21339         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21340         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21341         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21342         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21343         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21344         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21345         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21346         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21347         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21348         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21349         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21350         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21351         Likewise.
21352         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21353         Likewise.
21354         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21355         Likewise.
21356         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21357         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21358         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21359         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21360         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21361         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21362         * m4/servent.m4 (gl_SERVENT): Likewise.
21363         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21364         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21365         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21366         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21367         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21368         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21369         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21370         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21371         * modules/tsearch-tests (configure.ac): Likewise.
21372
21373 2010-08-26  Bruno Haible  <bruno@clisp.org>
21374
21375         Modernize AC_TRY_COMPILE invocations.
21376         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21377         AC_TRY_COMPILE.
21378         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21379         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21380         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21381         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21382         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21383         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21384         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21385         * m4/lock.m4 (gl_LOCK): Likewise.
21386         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21387         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21388         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21389         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21390         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21391         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21392         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21393         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21394         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21395         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21396         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21397         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21398         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21399         extraneous semicolon.
21400
21401 2010-08-26  Jim Meyering  <meyering@redhat.com>
21402
21403         stat-time: relax license LGPL
21404         * modules/stat-time (License): Change from GPL to LGPL,
21405         with consent from all contributors, for use in libguile.
21406         Requested by Ludovic Courtès.
21407
21408 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21409
21410         poll: return immediately on POLLHUP.
21411         * lib/poll.c (poll): Always set timeout before wait_timeout is
21412         computed.
21413
21414 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21415
21416         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21417         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21418         rmdir ("dir/.//"), unlinkat.
21419
21420 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21421
21422         stdbool: avoid spurious failure with modern xlc
21423         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21424
21425 2010-08-24  Bruno Haible  <bruno@clisp.org>
21426
21427         getloadavg: simplify code
21428         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21429         gl_have_func. Update comments.
21430
21431 2010-08-24  Eric Blake  <eblake@redhat.com>
21432
21433         getloadavg: don't define SVR4 on cygwin
21434         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21435         only define SVR4 when -lkvm is required.
21436         Reported by Yaakov Selkowitz.
21437
21438 2010-08-24  Bruno Haible  <bruno@clisp.org>
21439
21440         priv-set: fix comment
21441         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21442
21443 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21444
21445         priv-set: fix comments
21446         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21447         to match code, as suggested by David Bartley in:
21448         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21449
21450 2010-08-23  Eric Blake  <eblake@redhat.com>
21451
21452         stdbool: avoid rejecting clang
21453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21454         * tests/test-stdbool.c: Enable more tests if using the system
21455         <stdbool.h> instead of the gnulib replacement.
21456         (main): Move xlc bug test to a runtime test for all compilers.
21457         Reported by Anders Kaseorg.
21458
21459         argz: fix shell quoting issue
21460         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21461         Reported by Charles Wilson.
21462
21463 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21464             Erik Faye-Lund <kusmabite@gmail.com>
21465
21466         poll, select: handle ERROR_BROKEN_PIPE.
21467         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21468         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21469         * lib/select.c (win32_compute_revents): Do not mark a pipe
21470         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21471
21472 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21473
21474         fts: allow compilation with C++
21475         * lib/fts_.h: Specify extern "C" linkage with C++.
21476
21477 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21478
21479         Fix gnulib-tool sed script de-commentation for AIX sed.
21480         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21481         sed.
21482
21483 2010-08-17  Eric Blake  <eblake@redhat.com>
21484
21485         test-stddef: test for (some) offsetof bugs
21486         * tests/test-stddef.c: Enhance test to ensure correct type of
21487         offsetof.
21488         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21489         that we are not fixing at this time.
21490
21491 2010-08-15  Bruno Haible  <bruno@clisp.org>
21492
21493         stpncpy: Allow stpncpy to be defined as a macro.
21494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21495         if it's already correctly declared.
21496         * lib/string.in.h (stpncpy): Undefine before redefining.
21497         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21498
21499 2010-08-14  Bruno Haible  <bruno@clisp.org>
21500
21501         Rename module 'memxfrm' to 'amemxfrm'.
21502         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21503         (amemxfrm): Renamed from memxfrm.
21504         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21505         (amemxfrm): Renamed from memxfrm.
21506         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21507         * NEWS: Mention the change.
21508         * MODULES.html.sh (String handling <string.h>): Update.
21509         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21510         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21511         * lib/unicase/u16-casexfrm.c: Likewise.
21512         * lib/unicase/u32-casexfrm.c: Likewise.
21513         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21514         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21515         * lib/uninorm/u16-normxfrm.c: Likewise.
21516         * lib/uninorm/u32-normxfrm.c: Likewise.
21517         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21518         memxfrm.
21519         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21520         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21521         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21522         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21523         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21524         Suggested by Paul Eggert.
21525
21526 2010-08-14  Bruno Haible  <bruno@clisp.org>
21527
21528         Tests for module 'astrxfrm'.
21529         * modules/astrxfrm-tests: New file.
21530         * tests/test-astrxfrm.c: New file.
21531
21532         New module 'astrxfrm'.
21533         * lib/astrxfrm.h: New file.
21534         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21535         * modules/astrxfrm: New file.
21536
21537 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21538
21539         regex: Tweak doc.
21540         * doc/regex.texi (Overview): Don't mention regex.c.
21541         (GNU Regular Expression Compiling): Likewise.
21542         (Match-end-of-line Operator): Mention 'not_eol'.
21543
21544 2010-08-14  Brian Gough  <bjg@gnu.org>
21545             Bruno Haible  <bruno@clisp.org>
21546
21547         git-merge-changelog: add doc relating to use with bzr and hg.
21548         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21549
21550 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21551
21552         pthread: fix pthread.h creation for srcdir != builddir
21553         * modules/pthread (Makefile.am): Fix the rule to work also in a
21554         non-srcdir build.
21555
21556 2010-08-13  Karl Berry  <karl@gnu.org>
21557
21558         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21559         * doc/posix-*/*: force line break before @url of POSIX
21560         specifications.
21561         Suggested by Werner Lemberg.
21562
21563 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21564
21565         strtod: fix const diagnostic
21566         * lib/strtod.c (strtod): Don't assign const char * to char *,
21567         as this elicits a warning from GCC when warnings are enabled.
21568
21569 2010-08-10  Pádraig Brady <P@draigbrady.com>
21570         and Eric Blake  <eblake@redhat.com>
21571
21572         copy-acl: ignore ENOTSUP on HP-UX
21573         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21574         so that it is available for HP-UX.
21575         * lib/copy-acl.c (qcopy_acl): Use it.
21576         Reported by Patrick M. Callahan.
21577
21578 2010-08-10  Eric Blake  <eblake@redhat.com>
21579
21580         open, chown: relax license
21581         * modules/open (License): Change to LGPLv2+, with consent by all
21582         authors, for use in augeas.
21583         * modules/chown (License): Likewise.
21584         * modules/lchown (Likewise): Likewise.
21585         Requested by Adam Stokes.
21586
21587 2010-08-09  Karl Berry  <karl@gnu.org>
21588
21589         * build-aux/ar-lib: new file, import from Automake.
21590         * config/srclist.txt: autocheck for updates.
21591
21592 2010-08-09  Eric Blake  <eblake@redhat.com>
21593
21594         readlinkat: adjust client modules
21595         * modules/areadlinkat (Depends-on): Use readlinkat, not
21596         symlinkat.
21597         * modules/areadlinkat-with-size (Depends-on): Likewise.
21598
21599         mknod: be more vocal about danger of running tests as root
21600         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21601         root, since that is just asking for problems.
21602         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21603
21604         readlinkat: split into its own module
21605         * modules/symlinkat: Split readlinkat...
21606         * modules/readlinkat: ...into separate module.
21607         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21608         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21609         * lib/symlinkat.c (readlinkat): Move...
21610         * lib/readlinkat.c: ...into new file.
21611         * modules/symlinkat-tests: Split readlinkat test...
21612         * modules/readlinkat-tests: ...into separate module.
21613         * tests/test-symlinkat.c: Split...
21614         * tests/test-readlinkat.c: ...into new file.
21615         * NEWS: Document the split.
21616         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21617         * lib/unistd.in.h (readlinkat): Likewise.
21618         Suggested by Bruno Haible.
21619
21620 2010-08-08  Bruno Haible  <bruno@clisp.org>
21621
21622         memxfrm: Speed up.
21623         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21624         that usually only one call to strxfrm is necessary for each string
21625         part.
21626         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21627
21628 2010-08-07  Karl Berry  <karl@gnu.org>
21629
21630         * doc/posix-headers/limits.texi,
21631         * doc/posix-functions/malloc.texi,
21632         * doc/posix-functions/strsignal.texi: missing @item.
21633         * doc/ld-version-script.texi: spurious leading i.
21634         * doc/regex.texi (Interval Operators): no commas inside @var.
21635
21636 2010-08-01  Bruno Haible  <bruno@clisp.org>
21637
21638         Integrate the regex documentation.
21639         * doc/gnulib.texi: Define 'cn' index.
21640         (Regular expressions): New a chapter that includes regex.texi and
21641         regexprops-generic.texi.
21642         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21643         syntax.
21644
21645         Whitespace cleanup.
21646         * doc/regex.texi: Remove trailing spaces.
21647
21648         Add regex documentation.
21649         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21650         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21651         Written by Kathy A. Hargreaves and Karl Berry.
21652
21653 2010-08-01  Bruno Haible  <bruno@clisp.org>
21654
21655         link: Update documentation.
21656         * doc/posix-functions/link.texi: Update regarding Solaris.
21657
21658 2010-07-31  Bruno Haible  <bruno@clisp.org>
21659
21660         Update modules list.
21661         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21662         (String handling <string.h>): Add memcmp2, memxfrm.
21663         (Container data structures): Add xlist, xsublist, xoset.
21664         (Core language properties): Add alignof, unused-parameter.
21665         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21666         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21667         (Unibyte characters <ctype.h>): New section.
21668         (String handling <string.h>): New section.
21669         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21670         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21671         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21672         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21673         tan, tanh, tanl, y0, y1, yn.
21674         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21675         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21676         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21677         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21678         unlockpt, vdprintf, vdprintf-posix.
21679         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21680         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21681         xconcat-filename.
21682         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21683         getdtablesize, pipe2, pipe2-safer.
21684         (Security): New section.
21685         (Networking functions): Add accept4.
21686         (Signal handling): Add sigpipe.
21687         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21688         mbmemcasecoll.
21689         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21690         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21691         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21692         pipe-filter-ii.
21693         (Misc): Add argp-version-etc, login_tty, parse-duration.
21694
21695 2010-07-31  Bruno Haible  <bruno@clisp.org>
21696
21697         Improve doc in MODULES.html.
21698         * modules/linkat (Description): Add the word "function".
21699         * modules/mkfifo (Description): Likewise.
21700         * modules/mknod (Description): Likewise.
21701         * modules/remove (Description): Likewise.
21702         * modules/renameat (Description): Likewise.
21703         * modules/stat (Description): Likewise.
21704         * modules/symlink (Description): Likewise.
21705         * modules/unlink (Description): Likewise.
21706
21707 2010-07-31  Bruno Haible  <bruno@clisp.org>
21708
21709         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21710         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21711         option --enable/disable-c++ instead of --enable/disable-cxx.
21712         * NEWS: Mention the change.
21713
21714 2010-07-31  Bruno Haible  <bruno@clisp.org>
21715
21716         readlink, areadlink: Relax test a bit.
21717         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21718         alternative to ENOTDIR.
21719         * tests/test-areadlink.h (test_areadlink): Likewise.
21720         Reported by Rainer Tammer.
21721
21722 2010-07-31  Bruno Haible  <bruno@clisp.org>
21723
21724         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21725         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21726         character, perform the search using U_STRCHR.
21727         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21728         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21729         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21730         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21731         Suggested by Paolo Bonzini.
21732
21733 2010-07-31  Bruno Haible  <bruno@clisp.org>
21734
21735         unistr/u*-strstr: Fix dependencies.
21736         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21737         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21738         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21739
21740 2010-07-31  Bruno Haible  <bruno@clisp.org>
21741
21742         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21743         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21744         the beginning of the loop.
21745         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21746         cases in 'switch' statement.
21747
21748         unistr/u8-strchr: Fix several bugs.
21749         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21750         the string. When not found, return NULL, not a pointer near the end.
21751
21752         More tests for unistr/u8-strchr.
21753         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21754         that the function does not read past the first occurrence of the byte
21755         being searched.
21756         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21757         * tests/unistr/test-u16-strchr.c (main): New function.
21758         * tests/unistr/test-u32-strchr.c (main): New function.
21759
21760 2010-07-31  Bruno Haible  <bruno@clisp.org>
21761
21762         posix-modules: Ignore backup files of documentation files.
21763         * posix-modules: grep only through files named *.texi.
21764
21765 2010-07-31  Bruno Haible  <bruno@clisp.org>
21766
21767         symlinkat: Fix documentation.
21768         * doc/posix-functions/readlinkat.texi: Fix module name.
21769
21770 2010-07-31  Bruno Haible  <bruno@clisp.org>
21771
21772         fchownat: Replace also when chown has the trailing slash bug.
21773         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21774         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21775         introduced on 2010-04-10.
21776         Reported by Rainer Tammer.
21777
21778 2010-07-31  Bruno Haible  <bruno@clisp.org>
21779
21780         linkat: Work around AIX 7.1 bug.
21781         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21782         whether linkat handles trailing slash correctly. If not, replace linkat
21783         and define LINKAT_TRAILING_SLASH_BUG.
21784         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21785         check whether (fd1,file1) points to a directory if file1 or file2 ends
21786         in a slash. Code taken from lib/link.c.
21787         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21788         Reported by Rainer Tammer.
21789
21790 2010-07-31  Bruno Haible  <bruno@clisp.org>
21791
21792         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21793         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21794         This disables an xlc optimization that was causing wrong test results.
21795         Reported by Rainer Tammer.
21796
21797 2010-07-31  Bruno Haible  <bruno@clisp.org>
21798
21799         iconv: Work around AIX 6.1..7.1 bug.
21800         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21801         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21802         cross-compiling, guess no on all versions of AIX.
21803         Reported by Rainer Tammer.
21804
21805 2010-07-31  Bruno Haible  <bruno@clisp.org>
21806
21807         readlink: Relax test a bit.
21808         * tests/test-readlink.h (test_readlink): Allow different errno value
21809         when readlink is called with a file name that ends in / and refers to
21810         a file.
21811         Suggested by Eric Blake.
21812         Reported by Rainer Tammer.
21813
21814 2010-07-31  Bruno Haible  <bruno@clisp.org>
21815
21816         copysign: Does not require -lm on glibc systems.
21817         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21818         gl_COMMON_DOUBLE_MATHFUNC.
21819         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21820
21821 2010-07-31  Bruno Haible  <bruno@clisp.org>
21822
21823         duplocale: Work around AIX 7.1 bug.
21824         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21825         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21826         * lib/duplocale.c (rpl_duplocale): Update comment.
21827         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21828         Reported by Rainer Tammer.
21829
21830 2010-07-30  Bruno Haible  <bruno@clisp.org>
21831
21832         dirfd: Avoid link error on AIX 7.1.
21833         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21834         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21835         exist, set REPLACE_DIRFD.
21836         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21837         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21838         * doc/posix-functions/dirfd.texi: Update.
21839         Reported by Rainer Tammer.
21840
21841 2010-07-30  Eric Blake  <eblake@redhat.com>
21842
21843         strtod: next round of AIX fixes
21844         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21845         exponent.
21846         * tests/test-strtod.c (main): Enhance tests.
21847         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21848         Reported by Rainer Tammer.
21849
21850         futimens: fix configure check
21851         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21852         Reported by Bruno Haible.
21853
21854 2010-07-30  Bruno Haible  <bruno@clisp.org>
21855
21856         getline: Update regarding AIX.
21857         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21858         Reported by Rainer Tammer.
21859
21860 2010-07-30  Bruno Haible  <bruno@clisp.org>
21861
21862         wcwidth: Drop replacement on AIX 7.
21863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21864         AIX 7.
21865         Reported by Rainer Tammer.
21866
21867 2010-07-30  Bruno Haible  <bruno@clisp.org>
21868
21869         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21870         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21871         a 'char *'.
21872         Reported by Rainer Tammer.
21873
21874 2010-07-30  Bruno Haible  <bruno@clisp.org>
21875
21876         unlink: Update regarding AIX.
21877         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21878         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21879         Reported by Rainer Tammer.
21880
21881 2010-07-30  Bruno Haible  <bruno@clisp.org>
21882
21883         symlink: Update regarding AIX.
21884         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21885         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21886         Reported by Rainer Tammer.
21887
21888 2010-07-30  Bruno Haible  <bruno@clisp.org>
21889
21890         strndup: Update regarding AIX.
21891         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21892         AIX 7.
21893         Reported by Rainer Tammer.
21894
21895 2010-07-30  Bruno Haible  <bruno@clisp.org>
21896
21897         stat: Update regarding AIX.
21898         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21899         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21900         Reported by Rainer Tammer.
21901
21902 2010-07-30  Bruno Haible  <bruno@clisp.org>
21903
21904         truncl: Fix autoconf test.
21905         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21906         whether truncl works.
21907         Reported by Rainer Tammer.
21908
21909 2010-07-30  Bruno Haible  <bruno@clisp.org>
21910
21911         round: Update regarding AIX.
21912         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21913         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21914         Reported by Rainer Tammer.
21915
21916 2010-07-30  Bruno Haible  <bruno@clisp.org>
21917
21918         rename: Update regarding AIX.
21919         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21920         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21921         Reported by Rainer Tammer.
21922
21923 2010-07-30  Bruno Haible  <bruno@clisp.org>
21924
21925         printf.m4: Update regarding AIX.
21926         * m4/printf.m4: Update comments regarding AIX.
21927         Reported by Rainer Tammer.
21928
21929 2010-07-30  Bruno Haible  <bruno@clisp.org>
21930
21931         iconv: Update regarding AIX.
21932         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21933         AIX 7.
21934         Reported by Rainer Tammer.
21935
21936 2010-07-30  Bruno Haible  <bruno@clisp.org>
21937
21938         getopt: Update regarding AIX.
21939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21940         no on AIX.
21941         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21942         Reported by Rainer Tammer.
21943
21944 2010-07-30  Bruno Haible  <bruno@clisp.org>
21945
21946         ldexpl; Update regarding AIX.
21947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21948         on AIX 7.
21949         Reported by Rainer Tammer.
21950
21951 2010-07-30  Bruno Haible  <bruno@clisp.org>
21952
21953         frexpl: Update regarding AIX.
21954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21955         on AIX 7.
21956         Reported by Rainer Tammer.
21957
21958 2010-07-30  Bruno Haible  <bruno@clisp.org>
21959
21960         open, fopen: Update regarding AIX.
21961         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21962         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21963         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21964         * doc/posix-functions/fopen.texi: Likewise.
21965         Reported by Rainer Tammer.
21966
21967 2010-07-30  Bruno Haible  <bruno@clisp.org>
21968
21969         chown: Update doc regarding AIX.
21970         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21971         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21972         Reported by Rainer Tammer.
21973
21974 2010-07-30  Eric Blake  <eblake@redhat.com>
21975
21976         strtod: fix bug in replacement function on AIX
21977         * lib/strtod.c (strtod): Special case broken "0x" parse in
21978         underlying strtod.
21979         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21980         * doc/posix-functions/strtod.texi (strtod): Likewise.
21981         Reported by Rainer Tammer.
21982
21983 2010-07-30  Bruno Haible  <bruno@clisp.org>
21984
21985         mbrlen: Fix cross-compilation guess for AIX.
21986         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21987         guess. Leftover from 2008-12-22.
21988
21989 2010-07-30  Bruno Haible  <bruno@clisp.org>
21990
21991         mbrtowc: Fix cross-compilation guess for AIX.
21992         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21993         guess. Leftover from 2008-12-21.
21994
21995 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21996
21997         init.sh: work around trap limitation of some shells
21998         * tests/init.sh (setup_): Move exit trap outside of shell function.
21999
22000 2010-07-29  Eric Blake  <eblake@redhat.com>
22001
22002         strtod: aid debugging
22003         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22004         understanding why strtod is rejected.
22005
22006 2010-07-28  Bruno Haible  <bruno@clisp.org>
22007
22008         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22009         * lib/unistr/u8-chr.c: Include <string.h>.
22010         * tests/unistr/test-u8-chr.c: Likewise.
22011         * tests/unistr/test-u16-chr.c: Likewise.
22012         * tests/unistr/test-u32-chr.c: Likewise.
22013         * tests/unistr/test-u8-strchr.c: Likewise.
22014         * tests/unistr/test-u16-strchr.c: Likewise.
22015         * tests/unistr/test-u32-strchr.c: Likewise.
22016         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22017         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22018         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22019         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22020
22021 2010-07-28  Bruno Haible  <bruno@clisp.org>
22022
22023         Use spaces for indentation, not tabs.
22024         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22025
22026 2010-07-27  Bruno Haible  <bruno@clisp.org>
22027
22028         mbspcasecmp: Fix function specification.
22029         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22030         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22031         Reported by Eric Blake <eblake@redhat.com>.
22032
22033 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22034
22035         timespec: use cast and not conditional, as truncation isn't possible
22036         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22037         instead of a conditional.  Comment about the situation in more detail.
22038         This undoes most of the 2009-10-29 patch.
22039
22040 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22041
22042         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22043         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22044         * lib/unistr/u8-strchr.c: Likewise.
22045         * modules/unistr/u8-chr: Depend on memchr.
22046
22047         unistr/u*-strchr: add tests
22048         * modules/unistr/u8-strchr-tests: New file.
22049         * modules/unistr/u16-strchr-tests: New file.
22050         * modules/unistr/u32-strchr-tests: New file.
22051         * tests/unistr/test-strchr.h: New file.
22052         * tests/unistr/test-u8-strchr.c: New file.
22053         * tests/unistr/test-u16-strchr.c: New file.
22054         * tests/unistr/test-u32-strchr.c: New file.
22055
22056         unistr/u*-chr: test multibyte sequences more
22057         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22058         test vector.
22059         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22060         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22061         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22062
22063         unistr/u*-chr: test multibyte sequences
22064         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22065
22066         unistr/u*-chr: prepare for multibyte tests
22067         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22068         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22069         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22070         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22071         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22072         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22073
22074 2010-07-18  Bruno Haible  <bruno@clisp.org>
22075
22076         unistr/u8-strchr: Optimize non-ASCII argument case.
22077         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22078         because the first byte often matches anyway.
22079         Reported by Pádraig Brady <P@draigbrady.com>.
22080
22081 2010-07-15  Karl Berry  <karl@gnu.org>
22082
22083         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22084
22085 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22086
22087         getcwd: on Solaris, work better if ancestors are inaccessible
22088         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22089         buffer and size, try again with a large buffer.  This works better
22090         on Solaris, since its getcwd succeeds even if the path to the root
22091         is inaccessible, and this is helpful in common cases such as .zfs
22092         hidden directories.  Problem reported by J Chapman Flack in
22093         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22094         Use system getcwd if it's declared, not merely if it's partly
22095         working; use the partly-working test only to avoid needless effort
22096         if the system getcwd fails.
22097         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22098         comment that was already obsolete and is now even more obsolete.
22099         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22100         now might call strdup.
22101
22102 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22103
22104         pthread: Add enough so that coreutils/src/sort.c compiles.
22105         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22106         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22107         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22108         Include <sys/types.h>, in case it defines pthread_t.
22109         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22110         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22111         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22112         (pthread_rwlockattr_t, pthread_spinlock_t):
22113         New typedefs, if HAVE_PTHREAD_T is not defined.
22114         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22115         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22116         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22117         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22118         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22119         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22120         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22121         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22122         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22123         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22124         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22125         New macros.
22126         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22127         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22128         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22129         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22130         (pthread_spin_unlock): New dummy functions.
22131         (pthread_create): Return EAGAIN; don't set errno.
22132         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22133         require AC_C_INLINE.
22134         * modules/pthread (Depends-on): Add sched, time.
22135         (pthread.h): Use AM_V_GEN.
22136
22137 2010-07-13  Bruno Haible  <bruno@clisp.org>
22138
22139         striconveh: Don't malloc memory if the result buffer is sufficient.
22140         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22141         buffer if its size is sufficient.
22142         Reported by Ludovic Courtès <ludo@gnu.org>.
22143
22144 2010-07-13  Bruno Haible  <bruno@clisp.org>
22145
22146         strtod: Add safety check.
22147         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22148
22149 2010-07-12  Bruno Haible  <bruno@clisp.org>
22150
22151         Unify tests that set gl_cv_func_ldexpl_no_libm.
22152         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22153         gl_FUNC_LDEXPL.
22154         (gl_FUNC_LDEXPL): Invoke it.
22155         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22156
22157 2010-07-12  Bruno Haible  <bruno@clisp.org>
22158
22159         Unify tests that set gl_cv_func_ldexp_no_libm.
22160         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22161         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22162         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22163         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22164         * modules/strtod (Files): Add m4/ldexp.m4.
22165
22166 2010-07-12  Bruno Haible  <bruno@clisp.org>
22167
22168         Unify tests that set gl_cv_func_frexpl_no_libm.
22169         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22170         gl_FUNC_FREXPL_NO_LIBM.
22171         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22172         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22173
22174 2010-07-12  Bruno Haible  <bruno@clisp.org>
22175
22176         Unify tests that set gl_cv_func_frexp_no_libm.
22177         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22178         gl_FUNC_FREXP_NO_LIBM.
22179         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22180         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22181
22182 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22183
22184         memcoll: clarify sizes versus lengths, document better, and tweak perf
22185         * lib/memcoll.c (strcoll_loop, memcoll0):
22186         Improve quality of descriptive comments.  Name variables
22187         consistently as to whether they are lengths (which do not include
22188         terminating null) versus sizes (which do).
22189         * lib/xmemcoll.c (xmemcoll0): Likewise.
22190         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22191         returned when s1size == 0; this is easier to compile and saves
22192         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22193
22194 2010-07-12  Bruno Haible  <bruno@clisp.org>
22195
22196         Tests for module '_Exit'.
22197         * modules/_Exit-tests: New file.
22198         * tests/test-_Exit.sh: New file.
22199         * tests/test-_Exit.c: New file.
22200
22201         New module '_Exit'.
22202         * lib/stdlib.in.h (__attribute__): New macro.
22203         (_Exit): New declaration.
22204         * lib/_Exit.c: New file.
22205         * m4/_Exit.m4: New file.
22206         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22207         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22208         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22209         * modules/_Exit: New file.
22210         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22211         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22212
22213 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22214
22215         strtod: make it more-accurate typically, and don't require libm
22216         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22217         Include limits.h.  Don't include string.h.
22218         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22219         (locale_isspace): New function, so that no casts are needed to
22220         check whether *s is a space.
22221         (ldexp): Provide an unused dummy if not available.
22222         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22223         (strtod): Use them.  This implementation prefers to use the
22224         underlying strtod if available, falling back on our own code
22225         only to fix known bugs.  This is more likely to produce an
22226         accurate result.  Also, it avoids the use of libm functions.
22227         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22228         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22229         was absent, but it caused a test failure with coreutils.
22230         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22231         with libm.
22232         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22233         * modules/strtod-tests (Makefile.am): Likewise.
22234
22235 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22236             Bruno Haible  <bruno@clisp.org>
22237
22238         unistr/u8-strchr: Optimize ASCII argument case.
22239         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22240
22241 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22242
22243         (x)memcoll: minor tweaks
22244         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22245         is after the type that it qualifies.
22246         (memcoll0): Likewise.
22247         * lib/memcoll.h (memcoll0): Likewise.
22248         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22249         * lib/xmemcoll.h (xmemcoll0): Likewise.
22250         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22251         differs from memcoll in that the NUL byte is part of the argument.
22252         Omit the abort-checks, as performance is a real issue here.  Plus,
22253         the checks were wrong anyway (an off-by-one error).  Omit local
22254         variable 'diff', as it's a bit clearer that way.
22255         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22256         no longer needed.
22257
22258 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22259
22260         (x)memcoll: speedup when input is known to be NUL delimited
22261         * lib/memcoll.c: Include stdlib.
22262         (memcoll0): New function.
22263         (strcoll_loop): New function, refactored for use in both memcoll
22264         and memcoll0.
22265         * lib/memcoll.h (memcoll0): Add prototype.
22266         * lib/xmemcoll.c (xmemcoll0): New function.
22267         (collate_error): New function, refactored for use in both xmemcoll
22268         and xmemcoll0.
22269         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22270         * m4/memcoll.m4: add inline invocation.
22271
22272 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22273
22274         * build-aux/bootstrap: Remove any local translations
22275         from the translation project synchronization directory,
22276         so that local only translations are not distributed.
22277
22278 2010-07-04  Bruno Haible  <bruno@clisp.org>
22279
22280         fsusage: Clarify which code applies to which platforms.
22281         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22282         platform.
22283         * lib/fsusage.c (get_fs_usage): Likewise.
22284
22285 2010-07-04  Bruno Haible  <bruno@clisp.org>
22286
22287         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22288         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22289         Reported by Martin Lambers <marlam@marlam.de>.
22290
22291 2010-07-04  Jim Meyering  <meyering@redhat.com>
22292
22293         hash: once again explicitly disallow insertion of NULL
22294         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22295         inserting a NULL pointer cannot work with these functions.
22296         Add a comment with details.
22297         This reverts part of the 2010-07-01 commit, 5bef1a35
22298         "hash: extend module to deal with non-pointer keys".
22299
22300 2010-07-01  Bruno Haible  <bruno@clisp.org>
22301
22302         stdbool: Update doc.
22303         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22304         Info from Christian Weisgerber <naddy@mips.inka.de>.
22305
22306 2010-07-01  Jim Meyering  <meyering@redhat.com>
22307
22308         hash: extend module to deal with non-pointer keys
22309         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22310         but that allows insertion of non-pointer entries.
22311         Do not disallow an ENTRY value of NULL.
22312         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22313         * lib/hash.h (hash_insert0): Declare.
22314
22315 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22316
22317         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22318         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22319         not present (i.e. with autoconf 2.59 and when using gettextize, not
22320         gnulib), require AC_GNU_SOURCE instead.
22321
22322 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22323
22324         idpriv-drop: Fix tests.
22325         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22326         not to the test-idpriv-droptemp program.
22327
22328 2010-06-29  Bruno Haible  <bruno@clisp.org>
22329
22330         string: Fix syntax error with g++ 2.96.
22331         * lib/string.in.h (__pure__): Remove definition.
22332         (_GL_ATTRIBUTE_PURE): New macro.
22333         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22334         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22335         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22336
22337 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22338
22339         unitypes: Fix bug introduced on 2010-05-18.
22340         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22341
22342 2010-06-22  Eric Blake  <eblake@redhat.com>
22343
22344         memmem: slight optimization
22345         * lib/str-two-way.h (critical_factorization): Update comments.
22346         Reduce work during factorization phase.
22347         Reported by Carlos Bueno <carlos@bueno.org>.
22348
22349 2010-06-21  Bruno Haible  <bruno@clisp.org>
22350
22351         Fix HAVE_CALLOC_POSIX misnomer.
22352         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22353         !HAVE_CALLOC_POSIX.
22354         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22355         HAVE_CALLOC_POSIX.
22356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22357         instead of HAVE_CALLOC_POSIX.
22358         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22359         HAVE_CALLOC_POSIX.
22360
22361         Use modern idiom for calloc() replacement.
22362         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22363         AC_FUNC_CALLOC.
22364         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22365         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22366         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22367         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22368         (gl_REPLACE_CALLOC): New macro.
22369
22370 2010-06-21  Bruno Haible  <bruno@clisp.org>
22371
22372         Fix HAVE_REALLOC_POSIX misnomer.
22373         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22374         !HAVE_REALLOC_POSIX.
22375         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22376         HAVE_REALLOC_POSIX.
22377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22378         instead of HAVE_REALLOC_POSIX.
22379         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22380         HAVE_REALLOC_POSIX.
22381
22382         Use modern idiom for realloc() replacement.
22383         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22384         AC_FUNC_REALLOC.
22385         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22386         Autoconf's AC_FUNC_REALLOC.
22387         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22388         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22389         (gl_REPLACE_REALLOC): New macro.
22390         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22391
22392 2010-06-21  Bruno Haible  <bruno@clisp.org>
22393
22394         Fix HAVE_MALLOC_POSIX misnomer.
22395         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22396         !HAVE_MALLOC_POSIX.
22397         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22398         HAVE_MALLOC_POSIX.
22399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22400         instead of HAVE_MALLOC_POSIX.
22401         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22402         HAVE_MALLOC_POSIX.
22403
22404         Use modern idiom for malloc() replacement.
22405         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22406         AC_FUNC_MALLOC.
22407         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22408         Autoconf's AC_FUNC_MALLOC.
22409         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22410         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22411         (gl_REPLACE_MALLOC): New macro.
22412         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22413
22414 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22415
22416         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22417         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22418         This macro takes 3 arguments, not 4.
22419
22420 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22421
22422         ipv6: fix detection under mingw
22423         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22424         in6_addr.
22425
22426 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22427
22428         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22429         that strtod() works when cross-compiling to a glibc version known
22430         to work.
22431
22432 2010-06-15  Bruno Haible  <bruno@clisp.org>
22433
22434         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22435
22436 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22437
22438         select: Correct timeout.
22439         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22440
22441 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22442
22443         git-version-gen: init shell var to avoid env var influence
22444         * build-aux/git-version-gen (v): Init shell var to empty.
22445
22446 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22447
22448         priv-set: Don't assume that priv.h exists merely because getppriv does.
22449         See Jan Andersen's bug report about AIX 5L in
22450         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22451         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22452         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22453         * lib/priv-set.h: Likewise.
22454         * tests/test-priv-set.c: Likewise.
22455
22456 2010-06-13  Bruno Haible  <bruno@clisp.org>
22457
22458         relocatable: Make it easier to test whether to install wrappers.
22459         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22460         RELOCATABLE_VIA_WRAPPER.
22461
22462 2010-06-13  Bruno Haible  <bruno@clisp.org>
22463
22464         gnulib-tool: Display specified modules and dependencies differently.
22465         * gnulib-tool (func_show_module_list): New function.
22466         (func_import, func_create_testdir): Invoke it.
22467         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22468
22469 2010-06-13  Bruno Haible  <bruno@clisp.org>
22470
22471         gnulib-tool: Align code of func_import and func_create_testdir.
22472         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22473         specified_modules.
22474
22475 2010-06-12  Jim Meyering  <meyering@redhat.com>
22476
22477         test-inttostr: avoid spurious failure on Solaris 9
22478         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22479         to accept "%ju".  Reported by Bruno Haible.
22480
22481 2010-06-11  Jim Meyering  <meyering@redhat.com>
22482
22483         test-sys_socket: mark variables as used more readably
22484         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22485         as "used" explicitly via (void) statement casts.  This is more
22486         readable than using them in an artificial return expression.
22487         Suggestion from Bruno Haible.
22488
22489 2010-06-11  Bruno Haible  <bruno@clisp.org>
22490
22491         Avoid some more warnings from "gcc -Wwrite-strings".
22492         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22493         to 'const char *'.
22494         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22495         * tests/test-c-strcasestr.c (main): Likewise.
22496         * tests/test-mbscasestr1.c (main): Likewise.
22497         * tests/test-mbscasestr2.c (main): Likewise.
22498         * tests/test-memmem.c (main): Likewise.
22499         * tests/test-strstr.c (main): Likewise.
22500         * tests/test-strcasestr.c (main): Likewise.
22501
22502 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22503
22504         init.sh: change framework_failure_ to fail with status 99, not 1
22505         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22506         automake's parallel-tests rule that this is an unexpected failure,
22507         even if the test is listed in XFAIL_TESTS.
22508
22509 2010-06-11  Jim Meyering  <meyering@redhat.com>
22510
22511         test-inttostr: avoid warnings about 4-6KB literal strings
22512         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22513         Include "macros.h", for its definition of ASSERT.
22514         (CK): s/assert/ASSERT/
22515         * modules/inttostr-tests (Files): Add macros.h.
22516
22517         init.sh: don't use $ME_ or skip_ before they are defined
22518         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22519         their first uses.  Also hoist their companions: warn_, fail_,
22520         framework_failure_, $stderr_fileno.  Prompted by a patch from
22521         Stefano Lattarini.
22522
22523         test-sys_socket: avoid set-but-not-used warnings from gcc
22524         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22525         avoid warning about set-but-not-used variables.
22526
22527         test-xvasprintf: avoid 'const' discard warnings
22528         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22529         "const" when assigning from literal strings.
22530         (test_xasprintf): Add "void" in function argument list to placate
22531         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22532
22533         tests: avoid compilation warnings in argmatch and exclude tests...
22534         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22535         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22536         Since it always exits, declare with the "noreturn" attribute.
22537         * tests/test-argmatch.c: Likewise.
22538
22539         tests: avoid 'const' discard warnings in mbsstr tests
22540         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22541         * tests/test-mbsstr2.c (main): Likewise.
22542
22543         test-verify: avoid warning from gcc's -Wmissing-declarations
22544         * tests/test-verify.c (function): Declare to be static.
22545
22546         test-inttostr.c: include <string.h> for use of strcmp
22547         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22548
22549         test-linkat: avoid failed assertion on "other" architectures
22550         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22551         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22552         sparc: https://bugs.launchpad.net/bugs/591968
22553
22554 2010-06-11  Jim Meyering  <meyering@redhat.com>
22555
22556         printf.m4: avoid autoconf's "Expanded Before Required" warning
22557         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22558         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22559         autoconf warning.
22560
22561 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22562
22563         Replacement header templates are now named with ".in", not "_".
22564         * doc/gnulib-intro.texi: Correct.
22565
22566 2010-06-10  Jim Meyering  <meyering@redhat.com>
22567
22568         inttostr-tests: depend on snprintf, not snprintf-posix
22569         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22570         snprintf-posix, to avoid this aclocal failure:
22571           missing file gnulib-tests/vasnprintf.c
22572           configure.ac:45: error: expected source file, required through \
22573           AC_LIBSOURCES, not found
22574
22575 2010-06-10  Jim Meyering  <meyering@redhat.com>
22576
22577         inttostr: add a new function, inttostr, and tests
22578         The namesake function was not available.  The existence of the
22579         template file, inttostr.c makes its addition nontrivial.
22580         * lib/anytostr.c: Rename from inttostr.c.
22581         (anytostr): Rename from inttostr.
22582         * lib/inttostr.c: New file.
22583         * modules/inttostr (Files): Add anytostr.c.
22584         (Makefile.am): Set lib_SOURCES instead of ...
22585         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22586         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22587         * lib/offtostr.c: Likewise.
22588         * lib/uinttostr.c: Likewise.
22589         * lib/umaxtostr.c: Likewise.
22590         * modules/inttostr-tests: New file.
22591         * tests/test-inttostr.c: New file.  Test these functions.
22592
22593 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22594             Bruno Haible  <bruno@clisp.org>
22595
22596         Add "Extending Gnulib" chapter to manual.
22597         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22598         chapter.
22599         (Extending Gnulib): New chapter.
22600         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22601         chapter.
22602
22603 2010-06-09  Bruno Haible  <bruno@clisp.org>
22604
22605         Avoid relocwrapper link errors due to gnulib replacement functions.
22606         * lib/areadlink.c: Use the system's malloc, realloc functions.
22607         (areadlink): Set errno to ENOMEM explicitly.
22608         * modules/areadlink (Depends-on): Remove malloc-posix.
22609         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22610
22611 2010-06-09  Bruno Haible  <bruno@clisp.org>
22612
22613         Avoid relocwrapper link errors due to gnulib replacement functions.
22614         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22615         * lib/malloca.c: Likewise.
22616         * lib/relocatable.c: Likewise.
22617         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22618         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22619         * lib/setenv.c: Use the system's malloc, realloc functions.
22620         * lib/strerror.c: Use the system's sprintf function.
22621         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22622
22623 2010-06-04  Bruno Haible  <bruno@clisp.org>
22624
22625         Prefer documented low-level autoconf macro names.
22626         * m4/lib-link.m4: Use m4_translit instead of translit.
22627         * m4/environ.m4: Likewise.
22628         * m4/mathfunc.m4: Likewise.
22629         * m4/onceonly.m4: Likewise.
22630         * m4/stdint.m4: Likewise.
22631         Suggested by Eric Blake.
22632
22633 2010-06-04  Martin Lambers  <marlam@marlam.de>
22634             Bruno Haible  <bruno@clisp.org>
22635
22636         havelib: Allow library names with '+' characters.
22637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22638         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22639
22640 2010-06-09  Bruno Haible  <bruno@clisp.org>
22641
22642         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22643         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22644         realloc failed.
22645
22646 2010-06-08  Peter Simons  <simons@cryp.to>
22647
22648         maint.mk: make the news-check rule more configurable
22649         * top/maint.mk (news-check-lines-spec): New variable.
22650         (news-check): Use "sed -n 1,10p" in place of "head".
22651
22652 2010-06-07  Jim Meyering  <meyering@redhat.com>
22653
22654         do-release-commit-and-tag: fix typo in --help
22655         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22656
22657         regex: avoid new dead-code warning with gcc-4.6.0
22658         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22659         if-block containing a while-loop.  It's been unused for at least
22660         5 years.
22661
22662 2010-06-05  Bruno Haible  <bruno@clisp.org>
22663
22664         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22665         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22666
22667 2010-06-04  Bruno Haible  <bruno@clisp.org>
22668
22669         Update to GNU gettext 0.18.1.
22670         * modules/gettext (configure.ac): Require gettext infrastructure from
22671         version 0.18.1.
22672
22673 2010-06-03  Bruno Haible  <bruno@clisp.org>
22674
22675         Don't use AC_LIBOBJ with file names in subdirectories.
22676         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22677         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22678         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22679         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22680         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22681         gl_LIBUNISTRING_LIBSOURCE.
22682         (Makefile.am): Augment lib_SOURCES here, conditionally.
22683         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22684
22685 2010-06-03  Bruno Haible  <bruno@clisp.org>
22686
22687         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22688         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22689         expansion does not end with a newline.
22690         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22691         unnecessary newline.
22692
22693 2010-06-03  Bruno Haible  <bruno@clisp.org>
22694
22695         Reduce dependencies.
22696         * tests/test-quotearg.h: New file, extracted from
22697         tests/test-quotearg.c.
22698         * tests/test-quotearg-simple.c: New file, extracted from
22699         tests/test-quotearg.c.
22700         * tests/test-quotearg.c: Don't include <ctype.h>.
22701         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22702         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22703         use_quote_double_quotes, use_quotearg_colon): Moved to
22704         tests/test-quotearg.h.
22705         (results_g, flag_results, custom_quotes, custom_results): Moved
22706         to tests/test-quotearg-simple.c.
22707         (main): Moved the part that does not depend on gettext to
22708         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22709         performed.
22710         * modules/quotearg-simple: New file.
22711         * modules/quotearg-simple-tests: New file.
22712         * modules/quotearg (Depends-on): Add quotearg-simple.
22713         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22714         (Files): Add tests/test-quotearg.h.
22715         Reported by Paolo Bonzini.
22716
22717 2010-06-03  Bruno Haible  <bruno@clisp.org>
22718
22719         Reduce dependencies.
22720         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22721
22722 2010-06-03  Bruno Haible  <bruno@clisp.org>
22723
22724         time: Undefine more broken macros.
22725         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22726         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22727         Reported by Eric Blake.
22728
22729 2010-06-03  Bruno Haible  <bruno@clisp.org>
22730
22731         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22732         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22733         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22734         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22735         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22736         Reported by Ludovic Courtès <ludo@gnu.org>.
22737
22738 2010-06-02  Eric Blake  <eblake@redhat.com>
22739
22740         time: work with mingw + pthreads-win32 library
22741         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22742         if timespec is defined only in pthread.h.
22743         * modules/time (Makefile.am): Substitute it.
22744         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22745         <pthread.h>, when needed.
22746         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22747         from the library.
22748
22749 2010-05-31  Bruno Haible  <bruno@clisp.org>
22750
22751         Avoid expanding two macros in the wrong order.
22752         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22753         gl_LIBUNISTRING if it is defined.
22754         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22755         autoconf >= 2.64.
22756         Reported by Ludovic Courtès <ludo@gnu.org>.
22757
22758 2010-05-27  Jim Meyering  <meyering@redhat.com>
22759
22760         maint.mk: also prohibit "#undef" of always-defined symbols
22761         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22762         Allow more than one space before the symbol name.
22763         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22764         the regexp uses alternation.
22765
22766 2010-05-26  Eric Blake  <eblake@redhat.com>
22767
22768         maint.mk: avoid echo -e
22769         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22770         Convert all uses of echo -* to printf.
22771         Reported by Matthias Bolte.
22772
22773 2010-05-25  Bruno Haible  <bruno@clisp.org>
22774
22775         Update to GNU gettext 0.18, part 2.
22776         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22777         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22778
22779 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22780
22781         Add missing include in test-pwrite.c.
22782         * tests/test-pwrite.c: Include string.h, for strcmp.
22783
22784 2010-05-24  Bruno Haible  <bruno@clisp.org>
22785
22786         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22787
22788 2010-05-24  Bruno Haible  <bruno@clisp.org>
22789
22790         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22791         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22792         iconveh_error argument.
22793         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22794         U_STRCONV_TO_LOCALE.
22795         * lib/unistr/u16-strcoll.c: Likewise.
22796         * lib/unistr/u32-strcoll.c: Likewise.
22797         * modules/unistr/u8-strcoll (Depends-on): Add
22798         uniconv/u8-strconv-to-enc, localcharset. Remove
22799         uniconv/u8-strconv-to-locale.
22800         (configure.ac): Bump version number.
22801         * modules/unistr/u16-strcoll (Depends-on): Add
22802         uniconv/u16-strconv-to-enc, localcharset. Remove
22803         uniconv/u16-strconv-to-locale.
22804         (configure.ac): Bump version number.
22805         * modules/unistr/u32-strcoll (Depends-on): Add
22806         uniconv/u32-strconv-to-enc, localcharset. Remove
22807         uniconv/u32-strconv-to-locale.
22808         (configure.ac): Bump version number.
22809
22810 2010-05-24  Bruno Haible  <bruno@clisp.org>
22811
22812         Avoid a test failure on NetBSD 5.0.
22813         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22814         an iconv() bug.
22815
22816 2010-05-24  Bruno Haible  <bruno@clisp.org>
22817
22818         Adjust #include directive style.
22819         * modules/regex (Includes): Recommend to write <regex.h>.
22820
22821 2010-05-24  Bruno Haible  <bruno@clisp.org>
22822
22823         regex: Don't require alloca.
22824         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22825         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22826         only inside if (0).
22827
22828 2010-05-23  Jim Meyering  <meyering@redhat.com>
22829
22830         test-renameat.c: include <sys/stat.h>
22831         * tests/test-renameat.c: Include <sys/stat.h>; required for
22832         definition of S_IS* macros.
22833
22834 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22835
22836         Update maintainer documentation for 'relocatable-prog' module.
22837         * doc/relocatable-maint.texi: Update.
22838         Comments by Bruno Haible.
22839
22840 2010-05-23  Bruno Haible  <bruno@clisp.org>
22841
22842         git-merge-changelog: Enable --split-merged-entry by default.
22843         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22844         (usage): Don't mention this option any more.
22845         Reported by Ralf Wildenhues.
22846
22847 2010-05-23  Jim Meyering  <meyering@redhat.com>
22848
22849         test-pwrite: do not leave behind a test file named "out"
22850         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22851         The trivial-looking use of init.sh is really necessary.
22852         It ensures that the temporary file, "out", is created in
22853         a temporary directory, and removed upon termination.
22854         * tests/test-pwrite.sh: Re-add file.
22855         * modules/pwrite-tests: Reference it.
22856
22857 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22858
22859         Fix output redirection buglet in init.sh.
22860         * tests/init.sh: Fix redirection of stderr.
22861
22862 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22863
22864         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22865
22866 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22867
22868         * modules/valgrind-tests: New file.
22869         * m4/valgrind-tests.m4: New file.
22870         * doc/valgrind-tests.texi: New file.
22871         * doc/gnulib.texi (Running self-tests under valgrind): New
22872         section.
22873
22874 2010-05-19  Bruno Haible  <bruno@clisp.org>
22875
22876         Clean up dead code in recent commit.
22877         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22878         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22879         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22880         Suggested by Paolo Bonzini.
22881
22882 2010-05-19  Bruno Haible  <bruno@clisp.org>
22883
22884         Avoid valgrind error reports from libunistring.
22885         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22886         * modules/libunistring (Files): Add it.
22887         * modules/libunistring-optional (Files): Likewise.
22888
22889 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22890             Bruno Haible  <bruno@clisp.org>
22891
22892         New module 'libunistring-optional'.
22893         * modules/libunistring-optional: New file.
22894         * m4/libunistring-base.m4: New file.
22895         * m4/libunistring-optional.m4: New file.
22896         * lib/unicase.in.h: Renamed from lib/unicase.h.
22897         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22898         * lib/unictype.in.h: Renamed from lib/unictype.h.
22899         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22900         * lib/uniname.in.h: Renamed from lib/uniname.h.
22901         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22902         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22903         * lib/unistr.in.h: Renamed from lib/unistr.h.
22904         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22905         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22906         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22907         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22908         gl_LIBUNISTRING. If the library was found, determine the installed
22909         version and set LIBUNISTRING_VERSION.
22910         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22911         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22912         handle a configuration option --with-included-libunistring.
22913         * modules/libunistring (Files): Add m4/absolute-header.m4.
22914         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22915         Add m4/libunistring-base.m4.
22916         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22917         (Makefile.am): Build unicase.h from unicase.in.h.
22918         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22919         Add m4/libunistring-base.m4.
22920         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22921         (Makefile.am): Build uniconv.h from uniconv.in.h.
22922         * modules/unictype/base (Files): Use unictype.in.h instead of
22923         unictype.h. Add m4/libunistring-base.m4.
22924         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22925         (Makefile.am): Build unictype.h from unictype.in.h.
22926         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22927         Add m4/libunistring-base.m4.
22928         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22929         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22930         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22931         Add m4/libunistring-base.m4.
22932         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22933         (Makefile.am): Build uniname.h from uniname.in.h.
22934         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22935         Add m4/libunistring-base.m4.
22936         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22937         (Makefile.am): Build uninorm.h from uninorm.in.h.
22938         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22939         unistdio.h. Add m4/libunistring-base.m4.
22940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22941         (Makefile.am): Build unistdio.h from unistdio.in.h.
22942         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22943         Add m4/libunistring-base.m4.
22944         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22945         (Makefile.am): Build unistr.h from unistr.in.h.
22946         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22947         Add m4/libunistring-base.m4.
22948         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22949         (Makefile.am): Build unitypes.h from unitypes.in.h.
22950         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22951         Add m4/libunistring-base.m4.
22952         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22953         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22954         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22955         uniwidth.h. Add m4/libunistring-base.m4.
22956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22957         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22958         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22959         instead of augmenting lib_SOURCES.
22960         * modules/unicase/empty-suffix-context: Likewise.
22961         * modules/unicase/locale-language: Likewise.
22962         * modules/unicase/tolower: Likewise.
22963         * modules/unicase/totitle: Likewise.
22964         * modules/unicase/toupper: Likewise.
22965         * modules/unicase/u8-casecmp: Likewise.
22966         * modules/unicase/u8-casecoll: Likewise.
22967         * modules/unicase/u8-casefold: Likewise.
22968         * modules/unicase/u8-casexfrm: Likewise.
22969         * modules/unicase/u8-ct-casefold: Likewise.
22970         * modules/unicase/u8-ct-tolower: Likewise.
22971         * modules/unicase/u8-ct-totitle: Likewise.
22972         * modules/unicase/u8-ct-toupper: Likewise.
22973         * modules/unicase/u8-is-cased: Likewise.
22974         * modules/unicase/u8-is-casefolded: Likewise.
22975         * modules/unicase/u8-is-lowercase: Likewise.
22976         * modules/unicase/u8-is-titlecase: Likewise.
22977         * modules/unicase/u8-is-uppercase: Likewise.
22978         * modules/unicase/u8-prefix-context: Likewise.
22979         * modules/unicase/u8-suffix-context: Likewise.
22980         * modules/unicase/u8-tolower: Likewise.
22981         * modules/unicase/u8-totitle: Likewise.
22982         * modules/unicase/u8-toupper: Likewise.
22983         * modules/unicase/u16-casecmp: Likewise.
22984         * modules/unicase/u16-casecoll: Likewise.
22985         * modules/unicase/u16-casefold: Likewise.
22986         * modules/unicase/u16-casexfrm: Likewise.
22987         * modules/unicase/u16-ct-casefold: Likewise.
22988         * modules/unicase/u16-ct-tolower: Likewise.
22989         * modules/unicase/u16-ct-totitle: Likewise.
22990         * modules/unicase/u16-ct-toupper: Likewise.
22991         * modules/unicase/u16-is-cased: Likewise.
22992         * modules/unicase/u16-is-casefolded: Likewise.
22993         * modules/unicase/u16-is-lowercase: Likewise.
22994         * modules/unicase/u16-is-titlecase: Likewise.
22995         * modules/unicase/u16-is-uppercase: Likewise.
22996         * modules/unicase/u16-prefix-context: Likewise.
22997         * modules/unicase/u16-suffix-context: Likewise.
22998         * modules/unicase/u16-tolower: Likewise.
22999         * modules/unicase/u16-totitle: Likewise.
23000         * modules/unicase/u16-toupper: Likewise.
23001         * modules/unicase/u32-casecmp: Likewise.
23002         * modules/unicase/u32-casecoll: Likewise.
23003         * modules/unicase/u32-casefold: Likewise.
23004         * modules/unicase/u32-casexfrm: Likewise.
23005         * modules/unicase/u32-ct-casefold: Likewise.
23006         * modules/unicase/u32-ct-tolower: Likewise.
23007         * modules/unicase/u32-ct-totitle: Likewise.
23008         * modules/unicase/u32-ct-toupper: Likewise.
23009         * modules/unicase/u32-is-cased: Likewise.
23010         * modules/unicase/u32-is-casefolded: Likewise.
23011         * modules/unicase/u32-is-lowercase: Likewise.
23012         * modules/unicase/u32-is-titlecase: Likewise.
23013         * modules/unicase/u32-is-uppercase: Likewise.
23014         * modules/unicase/u32-prefix-context: Likewise.
23015         * modules/unicase/u32-suffix-context: Likewise.
23016         * modules/unicase/u32-tolower: Likewise.
23017         * modules/unicase/u32-totitle: Likewise.
23018         * modules/unicase/u32-toupper: Likewise.
23019         * modules/unicase/ulc-casecmp: Likewise.
23020         * modules/unicase/ulc-casecoll: Likewise.
23021         * modules/unicase/ulc-casexfrm: Likewise.
23022         * modules/uniconv/u8-conv-from-enc: Likewise.
23023         * modules/uniconv/u8-conv-to-enc: Likewise.
23024         * modules/uniconv/u8-strconv-from-enc: Likewise.
23025         * modules/uniconv/u8-strconv-from-locale: Likewise.
23026         * modules/uniconv/u8-strconv-to-enc: Likewise.
23027         * modules/uniconv/u8-strconv-to-locale: Likewise.
23028         * modules/uniconv/u16-conv-from-enc: Likewise.
23029         * modules/uniconv/u16-conv-to-enc: Likewise.
23030         * modules/uniconv/u16-strconv-from-enc: Likewise.
23031         * modules/uniconv/u16-strconv-from-locale: Likewise.
23032         * modules/uniconv/u16-strconv-to-enc: Likewise.
23033         * modules/uniconv/u16-strconv-to-locale: Likewise.
23034         * modules/uniconv/u32-conv-from-enc: Likewise.
23035         * modules/uniconv/u32-conv-to-enc: Likewise.
23036         * modules/uniconv/u32-strconv-from-enc: Likewise.
23037         * modules/uniconv/u32-strconv-from-locale: Likewise.
23038         * modules/uniconv/u32-strconv-to-enc: Likewise.
23039         * modules/uniconv/u32-strconv-to-locale: Likewise.
23040         * modules/unictype/bidicategory-byname: Likewise.
23041         * modules/unictype/bidicategory-name: Likewise.
23042         * modules/unictype/bidicategory-of: Likewise.
23043         * modules/unictype/bidicategory-test: Likewise.
23044         * modules/unictype/block-list: Likewise.
23045         * modules/unictype/block-test: Likewise.
23046         * modules/unictype/category-C: Likewise.
23047         * modules/unictype/category-Cc: Likewise.
23048         * modules/unictype/category-Cf: Likewise.
23049         * modules/unictype/category-Cn: Likewise.
23050         * modules/unictype/category-Co: Likewise.
23051         * modules/unictype/category-Cs: Likewise.
23052         * modules/unictype/category-L: Likewise.
23053         * modules/unictype/category-Ll: Likewise.
23054         * modules/unictype/category-Lm: Likewise.
23055         * modules/unictype/category-Lo: Likewise.
23056         * modules/unictype/category-Lt: Likewise.
23057         * modules/unictype/category-Lu: Likewise.
23058         * modules/unictype/category-M: Likewise.
23059         * modules/unictype/category-Mc: Likewise.
23060         * modules/unictype/category-Me: Likewise.
23061         * modules/unictype/category-Mn: Likewise.
23062         * modules/unictype/category-N: Likewise.
23063         * modules/unictype/category-Nd: Likewise.
23064         * modules/unictype/category-Nl: Likewise.
23065         * modules/unictype/category-No: Likewise.
23066         * modules/unictype/category-P: Likewise.
23067         * modules/unictype/category-Pc: Likewise.
23068         * modules/unictype/category-Pd: Likewise.
23069         * modules/unictype/category-Pe: Likewise.
23070         * modules/unictype/category-Pf: Likewise.
23071         * modules/unictype/category-Pi: Likewise.
23072         * modules/unictype/category-Po: Likewise.
23073         * modules/unictype/category-Ps: Likewise.
23074         * modules/unictype/category-S: Likewise.
23075         * modules/unictype/category-Sc: Likewise.
23076         * modules/unictype/category-Sk: Likewise.
23077         * modules/unictype/category-Sm: Likewise.
23078         * modules/unictype/category-So: Likewise.
23079         * modules/unictype/category-Z: Likewise.
23080         * modules/unictype/category-Zl: Likewise.
23081         * modules/unictype/category-Zp: Likewise.
23082         * modules/unictype/category-Zs: Likewise.
23083         * modules/unictype/category-and: Likewise.
23084         * modules/unictype/category-and-not: Likewise.
23085         * modules/unictype/category-byname: Likewise.
23086         * modules/unictype/category-name: Likewise.
23087         * modules/unictype/category-none: Likewise.
23088         * modules/unictype/category-of: Likewise.
23089         * modules/unictype/category-or: Likewise.
23090         * modules/unictype/category-test: Likewise.
23091         * modules/unictype/combining-class: Likewise.
23092         * modules/unictype/ctype-alnum: Likewise.
23093         * modules/unictype/ctype-alpha: Likewise.
23094         * modules/unictype/ctype-blank: Likewise.
23095         * modules/unictype/ctype-cntrl: Likewise.
23096         * modules/unictype/ctype-digit: Likewise.
23097         * modules/unictype/ctype-graph: Likewise.
23098         * modules/unictype/ctype-lower: Likewise.
23099         * modules/unictype/ctype-print: Likewise.
23100         * modules/unictype/ctype-punct: Likewise.
23101         * modules/unictype/ctype-space: Likewise.
23102         * modules/unictype/ctype-upper: Likewise.
23103         * modules/unictype/ctype-xdigit: Likewise.
23104         * modules/unictype/decimal-digit: Likewise.
23105         * modules/unictype/digit: Likewise.
23106         * modules/unictype/mirror: Likewise.
23107         * modules/unictype/numeric: Likewise.
23108         * modules/unictype/property-alphabetic: Likewise.
23109         * modules/unictype/property-ascii-hex-digit: Likewise.
23110         * modules/unictype/property-bidi-arabic-digit: Likewise.
23111         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23112         * modules/unictype/property-bidi-block-separator: Likewise.
23113         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23114         * modules/unictype/property-bidi-common-separator: Likewise.
23115         * modules/unictype/property-bidi-control: Likewise.
23116         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23117         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23118         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23119         * modules/unictype/property-bidi-european-digit: Likewise.
23120         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23121         * modules/unictype/property-bidi-left-to-right: Likewise.
23122         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23123         * modules/unictype/property-bidi-other-neutral: Likewise.
23124         * modules/unictype/property-bidi-pdf: Likewise.
23125         * modules/unictype/property-bidi-segment-separator: Likewise.
23126         * modules/unictype/property-bidi-whitespace: Likewise.
23127         * modules/unictype/property-byname: Likewise.
23128         * modules/unictype/property-combining: Likewise.
23129         * modules/unictype/property-composite: Likewise.
23130         * modules/unictype/property-currency-symbol: Likewise.
23131         * modules/unictype/property-dash: Likewise.
23132         * modules/unictype/property-decimal-digit: Likewise.
23133         * modules/unictype/property-default-ignorable-code-point: Likewise.
23134         * modules/unictype/property-deprecated: Likewise.
23135         * modules/unictype/property-diacritic: Likewise.
23136         * modules/unictype/property-extender: Likewise.
23137         * modules/unictype/property-format-control: Likewise.
23138         * modules/unictype/property-grapheme-base: Likewise.
23139         * modules/unictype/property-grapheme-extend: Likewise.
23140         * modules/unictype/property-grapheme-link: Likewise.
23141         * modules/unictype/property-hex-digit: Likewise.
23142         * modules/unictype/property-hyphen: Likewise.
23143         * modules/unictype/property-id-continue: Likewise.
23144         * modules/unictype/property-id-start: Likewise.
23145         * modules/unictype/property-ideographic: Likewise.
23146         * modules/unictype/property-ids-binary-operator: Likewise.
23147         * modules/unictype/property-ids-trinary-operator: Likewise.
23148         * modules/unictype/property-ignorable-control: Likewise.
23149         * modules/unictype/property-iso-control: Likewise.
23150         * modules/unictype/property-join-control: Likewise.
23151         * modules/unictype/property-left-of-pair: Likewise.
23152         * modules/unictype/property-line-separator: Likewise.
23153         * modules/unictype/property-logical-order-exception: Likewise.
23154         * modules/unictype/property-lowercase: Likewise.
23155         * modules/unictype/property-math: Likewise.
23156         * modules/unictype/property-non-break: Likewise.
23157         * modules/unictype/property-not-a-character: Likewise.
23158         * modules/unictype/property-numeric: Likewise.
23159         * modules/unictype/property-other-alphabetic: Likewise.
23160         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23161         * modules/unictype/property-other-grapheme-extend: Likewise.
23162         * modules/unictype/property-other-id-continue: Likewise.
23163         * modules/unictype/property-other-id-start: Likewise.
23164         * modules/unictype/property-other-lowercase: Likewise.
23165         * modules/unictype/property-other-math: Likewise.
23166         * modules/unictype/property-other-uppercase: Likewise.
23167         * modules/unictype/property-paired-punctuation: Likewise.
23168         * modules/unictype/property-paragraph-separator: Likewise.
23169         * modules/unictype/property-pattern-syntax: Likewise.
23170         * modules/unictype/property-pattern-white-space: Likewise.
23171         * modules/unictype/property-private-use: Likewise.
23172         * modules/unictype/property-punctuation: Likewise.
23173         * modules/unictype/property-quotation-mark: Likewise.
23174         * modules/unictype/property-radical: Likewise.
23175         * modules/unictype/property-sentence-terminal: Likewise.
23176         * modules/unictype/property-soft-dotted: Likewise.
23177         * modules/unictype/property-space: Likewise.
23178         * modules/unictype/property-terminal-punctuation: Likewise.
23179         * modules/unictype/property-test: Likewise.
23180         * modules/unictype/property-titlecase: Likewise.
23181         * modules/unictype/property-unassigned-code-value: Likewise.
23182         * modules/unictype/property-unified-ideograph: Likewise.
23183         * modules/unictype/property-uppercase: Likewise.
23184         * modules/unictype/property-variation-selector: Likewise.
23185         * modules/unictype/property-white-space: Likewise.
23186         * modules/unictype/property-xid-continue: Likewise.
23187         * modules/unictype/property-xid-start: Likewise.
23188         * modules/unictype/property-zero-width: Likewise.
23189         * modules/unictype/scripts: Likewise.
23190         * modules/unictype/syntax-c-ident: Likewise.
23191         * modules/unictype/syntax-c-whitespace: Likewise.
23192         * modules/unictype/syntax-java-ident: Likewise.
23193         * modules/unictype/syntax-java-whitespace: Likewise.
23194         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23195         * modules/unilbrk/u8-width-linebreaks: Likewise.
23196         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23197         * modules/unilbrk/u16-width-linebreaks: Likewise.
23198         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23199         * modules/unilbrk/u32-width-linebreaks: Likewise.
23200         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23201         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23202         * modules/uniname/uniname: Likewise.
23203         * modules/uninorm/canonical-decomposition: Likewise.
23204         * modules/uninorm/composition: Likewise.
23205         * modules/uninorm/decomposing-form: Likewise.
23206         * modules/uninorm/decomposition: Likewise.
23207         * modules/uninorm/filter: Likewise.
23208         * modules/uninorm/nfc: Likewise.
23209         * modules/uninorm/nfd: Likewise.
23210         * modules/uninorm/nfkc: Likewise.
23211         * modules/uninorm/nfkd: Likewise.
23212         * modules/uninorm/u8-normalize: Likewise.
23213         * modules/uninorm/u8-normcmp: Likewise.
23214         * modules/uninorm/u8-normcoll: Likewise.
23215         * modules/uninorm/u8-normxfrm: Likewise.
23216         * modules/uninorm/u16-normalize: Likewise.
23217         * modules/uninorm/u16-normcmp: Likewise.
23218         * modules/uninorm/u16-normcoll: Likewise.
23219         * modules/uninorm/u16-normxfrm: Likewise.
23220         * modules/uninorm/u32-normalize: Likewise.
23221         * modules/uninorm/u32-normcmp: Likewise.
23222         * modules/uninorm/u32-normcoll: Likewise.
23223         * modules/uninorm/u32-normxfrm: Likewise.
23224         * modules/unistdio/u8-asnprintf: Likewise.
23225         * modules/unistdio/u8-asprintf: Likewise.
23226         * modules/unistdio/u8-snprintf: Likewise.
23227         * modules/unistdio/u8-sprintf: Likewise.
23228         * modules/unistdio/u8-u8-asnprintf: Likewise.
23229         * modules/unistdio/u8-u8-asprintf: Likewise.
23230         * modules/unistdio/u8-u8-snprintf: Likewise.
23231         * modules/unistdio/u8-u8-sprintf: Likewise.
23232         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23233         * modules/unistdio/u8-u8-vasprintf: Likewise.
23234         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23235         * modules/unistdio/u8-u8-vsprintf: Likewise.
23236         * modules/unistdio/u8-vasnprintf: Likewise.
23237         * modules/unistdio/u8-vasprintf: Likewise.
23238         * modules/unistdio/u8-vsnprintf: Likewise.
23239         * modules/unistdio/u8-vsprintf: Likewise.
23240         * modules/unistdio/u16-asnprintf: Likewise.
23241         * modules/unistdio/u16-asprintf: Likewise.
23242         * modules/unistdio/u16-snprintf: Likewise.
23243         * modules/unistdio/u16-sprintf: Likewise.
23244         * modules/unistdio/u16-u16-asnprintf: Likewise.
23245         * modules/unistdio/u16-u16-asprintf: Likewise.
23246         * modules/unistdio/u16-u16-snprintf: Likewise.
23247         * modules/unistdio/u16-u16-sprintf: Likewise.
23248         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23249         * modules/unistdio/u16-u16-vasprintf: Likewise.
23250         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23251         * modules/unistdio/u16-u16-vsprintf: Likewise.
23252         * modules/unistdio/u16-vasnprintf: Likewise.
23253         * modules/unistdio/u16-vasprintf: Likewise.
23254         * modules/unistdio/u16-vsnprintf: Likewise.
23255         * modules/unistdio/u16-vsprintf: Likewise.
23256         * modules/unistdio/u32-asnprintf: Likewise.
23257         * modules/unistdio/u32-asprintf: Likewise.
23258         * modules/unistdio/u32-snprintf: Likewise.
23259         * modules/unistdio/u32-sprintf: Likewise.
23260         * modules/unistdio/u32-u32-asnprintf: Likewise.
23261         * modules/unistdio/u32-u32-asprintf: Likewise.
23262         * modules/unistdio/u32-u32-snprintf: Likewise.
23263         * modules/unistdio/u32-u32-sprintf: Likewise.
23264         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23265         * modules/unistdio/u32-u32-vasprintf: Likewise.
23266         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23267         * modules/unistdio/u32-u32-vsprintf: Likewise.
23268         * modules/unistdio/u32-vasnprintf: Likewise.
23269         * modules/unistdio/u32-vasprintf: Likewise.
23270         * modules/unistdio/u32-vsnprintf: Likewise.
23271         * modules/unistdio/u32-vsprintf: Likewise.
23272         * modules/unistdio/ulc-asnprintf: Likewise.
23273         * modules/unistdio/ulc-asprintf: Likewise.
23274         * modules/unistdio/ulc-fprintf: Likewise.
23275         * modules/unistdio/ulc-snprintf: Likewise.
23276         * modules/unistdio/ulc-sprintf: Likewise.
23277         * modules/unistdio/ulc-vasnprintf: Likewise.
23278         * modules/unistdio/ulc-vasprintf: Likewise.
23279         * modules/unistdio/ulc-vfprintf: Likewise.
23280         * modules/unistdio/ulc-vsnprintf: Likewise.
23281         * modules/unistdio/ulc-vsprintf: Likewise.
23282         * modules/unistr/u8-check: Likewise.
23283         * modules/unistr/u8-chr: Likewise.
23284         * modules/unistr/u8-cmp: Likewise.
23285         * modules/unistr/u8-cmp2: Likewise.
23286         * modules/unistr/u8-cpy: Likewise.
23287         * modules/unistr/u8-cpy-alloc: Likewise.
23288         * modules/unistr/u8-endswith: Likewise.
23289         * modules/unistr/u8-mblen: Likewise.
23290         * modules/unistr/u8-mbsnlen: Likewise.
23291         * modules/unistr/u8-mbtouc: Likewise.
23292         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23293         * modules/unistr/u8-mbtoucr: Likewise.
23294         * modules/unistr/u8-move: Likewise.
23295         * modules/unistr/u8-next: Likewise.
23296         * modules/unistr/u8-prev: Likewise.
23297         * modules/unistr/u8-set: Likewise.
23298         * modules/unistr/u8-startswith: Likewise.
23299         * modules/unistr/u8-stpcpy: Likewise.
23300         * modules/unistr/u8-stpncpy: Likewise.
23301         * modules/unistr/u8-strcat: Likewise.
23302         * modules/unistr/u8-strchr: Likewise.
23303         * modules/unistr/u8-strcmp: Likewise.
23304         * modules/unistr/u8-strcoll: Likewise.
23305         * modules/unistr/u8-strcpy: Likewise.
23306         * modules/unistr/u8-strcspn: Likewise.
23307         * modules/unistr/u8-strdup: Likewise.
23308         * modules/unistr/u8-strlen: Likewise.
23309         * modules/unistr/u8-strmblen: Likewise.
23310         * modules/unistr/u8-strmbtouc: Likewise.
23311         * modules/unistr/u8-strncat: Likewise.
23312         * modules/unistr/u8-strncmp: Likewise.
23313         * modules/unistr/u8-strncpy: Likewise.
23314         * modules/unistr/u8-strnlen: Likewise.
23315         * modules/unistr/u8-strpbrk: Likewise.
23316         * modules/unistr/u8-strrchr: Likewise.
23317         * modules/unistr/u8-strspn: Likewise.
23318         * modules/unistr/u8-strstr: Likewise.
23319         * modules/unistr/u8-strtok: Likewise.
23320         * modules/unistr/u8-to-u16: Likewise.
23321         * modules/unistr/u8-to-u32: Likewise.
23322         * modules/unistr/u8-uctomb: Likewise.
23323         * modules/unistr/u16-check: Likewise.
23324         * modules/unistr/u16-chr: Likewise.
23325         * modules/unistr/u16-cmp: Likewise.
23326         * modules/unistr/u16-cmp2: Likewise.
23327         * modules/unistr/u16-cpy: Likewise.
23328         * modules/unistr/u16-cpy-alloc: Likewise.
23329         * modules/unistr/u16-endswith: Likewise.
23330         * modules/unistr/u16-mblen: Likewise.
23331         * modules/unistr/u16-mbsnlen: Likewise.
23332         * modules/unistr/u16-mbtouc: Likewise.
23333         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23334         * modules/unistr/u16-mbtoucr: Likewise.
23335         * modules/unistr/u16-move: Likewise.
23336         * modules/unistr/u16-next: Likewise.
23337         * modules/unistr/u16-prev: Likewise.
23338         * modules/unistr/u16-set: Likewise.
23339         * modules/unistr/u16-startswith: Likewise.
23340         * modules/unistr/u16-stpcpy: Likewise.
23341         * modules/unistr/u16-stpncpy: Likewise.
23342         * modules/unistr/u16-strcat: Likewise.
23343         * modules/unistr/u16-strchr: Likewise.
23344         * modules/unistr/u16-strcmp: Likewise.
23345         * modules/unistr/u16-strcoll: Likewise.
23346         * modules/unistr/u16-strcpy: Likewise.
23347         * modules/unistr/u16-strcspn: Likewise.
23348         * modules/unistr/u16-strdup: Likewise.
23349         * modules/unistr/u16-strlen: Likewise.
23350         * modules/unistr/u16-strmblen: Likewise.
23351         * modules/unistr/u16-strmbtouc: Likewise.
23352         * modules/unistr/u16-strncat: Likewise.
23353         * modules/unistr/u16-strncmp: Likewise.
23354         * modules/unistr/u16-strncpy: Likewise.
23355         * modules/unistr/u16-strnlen: Likewise.
23356         * modules/unistr/u16-strpbrk: Likewise.
23357         * modules/unistr/u16-strrchr: Likewise.
23358         * modules/unistr/u16-strspn: Likewise.
23359         * modules/unistr/u16-strstr: Likewise.
23360         * modules/unistr/u16-strtok: Likewise.
23361         * modules/unistr/u16-to-u32: Likewise.
23362         * modules/unistr/u16-to-u8: Likewise.
23363         * modules/unistr/u16-uctomb: Likewise.
23364         * modules/unistr/u32-check: Likewise.
23365         * modules/unistr/u32-chr: Likewise.
23366         * modules/unistr/u32-cmp: Likewise.
23367         * modules/unistr/u32-cmp2: Likewise.
23368         * modules/unistr/u32-cpy: Likewise.
23369         * modules/unistr/u32-cpy-alloc: Likewise.
23370         * modules/unistr/u32-endswith: Likewise.
23371         * modules/unistr/u32-mblen: Likewise.
23372         * modules/unistr/u32-mbsnlen: Likewise.
23373         * modules/unistr/u32-mbtouc: Likewise.
23374         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23375         * modules/unistr/u32-mbtoucr: Likewise.
23376         * modules/unistr/u32-move: Likewise.
23377         * modules/unistr/u32-next: Likewise.
23378         * modules/unistr/u32-prev: Likewise.
23379         * modules/unistr/u32-set: Likewise.
23380         * modules/unistr/u32-startswith: Likewise.
23381         * modules/unistr/u32-stpcpy: Likewise.
23382         * modules/unistr/u32-stpncpy: Likewise.
23383         * modules/unistr/u32-strcat: Likewise.
23384         * modules/unistr/u32-strchr: Likewise.
23385         * modules/unistr/u32-strcmp: Likewise.
23386         * modules/unistr/u32-strcoll: Likewise.
23387         * modules/unistr/u32-strcpy: Likewise.
23388         * modules/unistr/u32-strcspn: Likewise.
23389         * modules/unistr/u32-strdup: Likewise.
23390         * modules/unistr/u32-strlen: Likewise.
23391         * modules/unistr/u32-strmblen: Likewise.
23392         * modules/unistr/u32-strmbtouc: Likewise.
23393         * modules/unistr/u32-strncat: Likewise.
23394         * modules/unistr/u32-strncmp: Likewise.
23395         * modules/unistr/u32-strncpy: Likewise.
23396         * modules/unistr/u32-strnlen: Likewise.
23397         * modules/unistr/u32-strpbrk: Likewise.
23398         * modules/unistr/u32-strrchr: Likewise.
23399         * modules/unistr/u32-strspn: Likewise.
23400         * modules/unistr/u32-strstr: Likewise.
23401         * modules/unistr/u32-strtok: Likewise.
23402         * modules/unistr/u32-to-u16: Likewise.
23403         * modules/unistr/u32-to-u8: Likewise.
23404         * modules/unistr/u32-uctomb: Likewise.
23405         * modules/uniwbrk/u8-wordbreaks: Likewise.
23406         * modules/uniwbrk/u16-wordbreaks: Likewise.
23407         * modules/uniwbrk/u32-wordbreaks: Likewise.
23408         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23409         * modules/uniwbrk/wordbreak-property: Likewise.
23410         * modules/uniwidth/u8-strwidth: Likewise.
23411         * modules/uniwidth/u8-width: Likewise.
23412         * modules/uniwidth/u16-strwidth: Likewise.
23413         * modules/uniwidth/u16-width: Likewise.
23414         * modules/uniwidth/u32-strwidth: Likewise.
23415         * modules/uniwidth/u32-width: Likewise.
23416         * modules/uniwidth/width: Likewise.
23417         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23418         with $(LIBUNISTRING).
23419         * modules/unicase/ignorable-tests: Likewise.
23420         * modules/unicase/locale-language-tests: Likewise.
23421         * modules/unicase/tolower-tests: Likewise.
23422         * modules/unicase/totitle-tests: Likewise.
23423         * modules/unicase/toupper-tests: Likewise.
23424         * modules/unicase/u8-casecmp-tests: Likewise.
23425         * modules/unicase/u8-casecoll-tests: Likewise.
23426         * modules/unicase/u8-casefold-tests: Likewise.
23427         * modules/unicase/u8-is-cased-tests: Likewise.
23428         * modules/unicase/u8-is-casefolded-tests: Likewise.
23429         * modules/unicase/u8-is-lowercase-tests: Likewise.
23430         * modules/unicase/u8-is-titlecase-tests: Likewise.
23431         * modules/unicase/u8-is-uppercase-tests: Likewise.
23432         * modules/unicase/u8-tolower-tests: Likewise.
23433         * modules/unicase/u8-totitle-tests: Likewise.
23434         * modules/unicase/u8-toupper-tests: Likewise.
23435         * modules/unicase/u16-casecmp-tests: Likewise.
23436         * modules/unicase/u16-casecoll-tests: Likewise.
23437         * modules/unicase/u16-casefold-tests: Likewise.
23438         * modules/unicase/u16-is-cased-tests: Likewise.
23439         * modules/unicase/u16-is-casefolded-tests: Likewise.
23440         * modules/unicase/u16-is-lowercase-tests: Likewise.
23441         * modules/unicase/u16-is-titlecase-tests: Likewise.
23442         * modules/unicase/u16-is-uppercase-tests: Likewise.
23443         * modules/unicase/u16-tolower-tests: Likewise.
23444         * modules/unicase/u16-totitle-tests: Likewise.
23445         * modules/unicase/u16-toupper-tests: Likewise.
23446         * modules/unicase/u32-casecmp-tests: Likewise.
23447         * modules/unicase/u32-casecoll-tests: Likewise.
23448         * modules/unicase/u32-casefold-tests: Likewise.
23449         * modules/unicase/u32-is-cased-tests: Likewise.
23450         * modules/unicase/u32-is-casefolded-tests: Likewise.
23451         * modules/unicase/u32-is-lowercase-tests: Likewise.
23452         * modules/unicase/u32-is-titlecase-tests: Likewise.
23453         * modules/unicase/u32-is-uppercase-tests: Likewise.
23454         * modules/unicase/u32-tolower-tests: Likewise.
23455         * modules/unicase/u32-totitle-tests: Likewise.
23456         * modules/unicase/u32-toupper-tests: Likewise.
23457         * modules/unicase/ulc-casecmp-tests: Likewise.
23458         * modules/unicase/ulc-casecoll-tests: Likewise.
23459         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23460         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23461         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23462         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23463         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23464         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23465         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23466         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23467         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23468         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23469         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23470         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23471         * modules/unictype/bidicategory-byname-tests: Likewise.
23472         * modules/unictype/bidicategory-name-tests: Likewise.
23473         * modules/unictype/bidicategory-of-tests: Likewise.
23474         * modules/unictype/bidicategory-test-tests: Likewise.
23475         * modules/unictype/block-list-tests: Likewise.
23476         * modules/unictype/block-of-tests: Likewise.
23477         * modules/unictype/block-test-tests: Likewise.
23478         * modules/unictype/category-C-tests: Likewise.
23479         * modules/unictype/category-Cc-tests: Likewise.
23480         * modules/unictype/category-Cf-tests: Likewise.
23481         * modules/unictype/category-Cn-tests: Likewise.
23482         * modules/unictype/category-Co-tests: Likewise.
23483         * modules/unictype/category-Cs-tests: Likewise.
23484         * modules/unictype/category-L-tests: Likewise.
23485         * modules/unictype/category-Ll-tests: Likewise.
23486         * modules/unictype/category-Lm-tests: Likewise.
23487         * modules/unictype/category-Lo-tests: Likewise.
23488         * modules/unictype/category-Lt-tests: Likewise.
23489         * modules/unictype/category-Lu-tests: Likewise.
23490         * modules/unictype/category-M-tests: Likewise.
23491         * modules/unictype/category-Mc-tests: Likewise.
23492         * modules/unictype/category-Me-tests: Likewise.
23493         * modules/unictype/category-Mn-tests: Likewise.
23494         * modules/unictype/category-N-tests: Likewise.
23495         * modules/unictype/category-Nd-tests: Likewise.
23496         * modules/unictype/category-Nl-tests: Likewise.
23497         * modules/unictype/category-No-tests: Likewise.
23498         * modules/unictype/category-P-tests: Likewise.
23499         * modules/unictype/category-Pc-tests: Likewise.
23500         * modules/unictype/category-Pd-tests: Likewise.
23501         * modules/unictype/category-Pe-tests: Likewise.
23502         * modules/unictype/category-Pf-tests: Likewise.
23503         * modules/unictype/category-Pi-tests: Likewise.
23504         * modules/unictype/category-Po-tests: Likewise.
23505         * modules/unictype/category-Ps-tests: Likewise.
23506         * modules/unictype/category-S-tests: Likewise.
23507         * modules/unictype/category-Sc-tests: Likewise.
23508         * modules/unictype/category-Sk-tests: Likewise.
23509         * modules/unictype/category-Sm-tests: Likewise.
23510         * modules/unictype/category-So-tests: Likewise.
23511         * modules/unictype/category-Z-tests: Likewise.
23512         * modules/unictype/category-Zl-tests: Likewise.
23513         * modules/unictype/category-Zp-tests: Likewise.
23514         * modules/unictype/category-Zs-tests: Likewise.
23515         * modules/unictype/category-and-not-tests: Likewise.
23516         * modules/unictype/category-and-tests: Likewise.
23517         * modules/unictype/category-byname-tests: Likewise.
23518         * modules/unictype/category-name-tests: Likewise.
23519         * modules/unictype/category-none-tests: Likewise.
23520         * modules/unictype/category-of-tests: Likewise.
23521         * modules/unictype/category-or-tests: Likewise.
23522         * modules/unictype/category-test-withtable-tests: Likewise.
23523         * modules/unictype/combining-class-tests: Likewise.
23524         * modules/unictype/ctype-alnum-tests: Likewise.
23525         * modules/unictype/ctype-alpha-tests: Likewise.
23526         * modules/unictype/ctype-blank-tests: Likewise.
23527         * modules/unictype/ctype-cntrl-tests: Likewise.
23528         * modules/unictype/ctype-digit-tests: Likewise.
23529         * modules/unictype/ctype-graph-tests: Likewise.
23530         * modules/unictype/ctype-lower-tests: Likewise.
23531         * modules/unictype/ctype-print-tests: Likewise.
23532         * modules/unictype/ctype-punct-tests: Likewise.
23533         * modules/unictype/ctype-space-tests: Likewise.
23534         * modules/unictype/ctype-upper-tests: Likewise.
23535         * modules/unictype/ctype-xdigit-tests: Likewise.
23536         * modules/unictype/decimal-digit-tests: Likewise.
23537         * modules/unictype/digit-tests: Likewise.
23538         * modules/unictype/mirror-tests: Likewise.
23539         * modules/unictype/numeric-tests: Likewise.
23540         * modules/unictype/property-alphabetic-tests: Likewise.
23541         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23542         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23543         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23544         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23545         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23546         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23547         * modules/unictype/property-bidi-control-tests: Likewise.
23548         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23549         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23550         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23551         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23552         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23553         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23554         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23555         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23556         * modules/unictype/property-bidi-pdf-tests: Likewise.
23557         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23558         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23559         * modules/unictype/property-byname-tests: Likewise.
23560         * modules/unictype/property-combining-tests: Likewise.
23561         * modules/unictype/property-composite-tests: Likewise.
23562         * modules/unictype/property-currency-symbol-tests: Likewise.
23563         * modules/unictype/property-dash-tests: Likewise.
23564         * modules/unictype/property-decimal-digit-tests: Likewise.
23565         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23566         * modules/unictype/property-deprecated-tests: Likewise.
23567         * modules/unictype/property-diacritic-tests: Likewise.
23568         * modules/unictype/property-extender-tests: Likewise.
23569         * modules/unictype/property-format-control-tests: Likewise.
23570         * modules/unictype/property-grapheme-base-tests: Likewise.
23571         * modules/unictype/property-grapheme-extend-tests: Likewise.
23572         * modules/unictype/property-grapheme-link-tests: Likewise.
23573         * modules/unictype/property-hex-digit-tests: Likewise.
23574         * modules/unictype/property-hyphen-tests: Likewise.
23575         * modules/unictype/property-id-continue-tests: Likewise.
23576         * modules/unictype/property-id-start-tests: Likewise.
23577         * modules/unictype/property-ideographic-tests: Likewise.
23578         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23579         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23580         * modules/unictype/property-ignorable-control-tests: Likewise.
23581         * modules/unictype/property-iso-control-tests: Likewise.
23582         * modules/unictype/property-join-control-tests: Likewise.
23583         * modules/unictype/property-left-of-pair-tests: Likewise.
23584         * modules/unictype/property-line-separator-tests: Likewise.
23585         * modules/unictype/property-logical-order-exception-tests: Likewise.
23586         * modules/unictype/property-lowercase-tests: Likewise.
23587         * modules/unictype/property-math-tests: Likewise.
23588         * modules/unictype/property-non-break-tests: Likewise.
23589         * modules/unictype/property-not-a-character-tests: Likewise.
23590         * modules/unictype/property-numeric-tests: Likewise.
23591         * modules/unictype/property-other-alphabetic-tests: Likewise.
23592         * modules/unictype/property-other-default-ignorable-code-point-tests:
23593         Likewise.
23594         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23595         * modules/unictype/property-other-id-continue-tests: Likewise.
23596         * modules/unictype/property-other-id-start-tests: Likewise.
23597         * modules/unictype/property-other-lowercase-tests: Likewise.
23598         * modules/unictype/property-other-math-tests: Likewise.
23599         * modules/unictype/property-other-uppercase-tests: Likewise.
23600         * modules/unictype/property-paired-punctuation-tests: Likewise.
23601         * modules/unictype/property-paragraph-separator-tests: Likewise.
23602         * modules/unictype/property-pattern-syntax-tests: Likewise.
23603         * modules/unictype/property-pattern-white-space-tests: Likewise.
23604         * modules/unictype/property-private-use-tests: Likewise.
23605         * modules/unictype/property-punctuation-tests: Likewise.
23606         * modules/unictype/property-quotation-mark-tests: Likewise.
23607         * modules/unictype/property-radical-tests: Likewise.
23608         * modules/unictype/property-sentence-terminal-tests: Likewise.
23609         * modules/unictype/property-soft-dotted-tests: Likewise.
23610         * modules/unictype/property-space-tests: Likewise.
23611         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23612         * modules/unictype/property-test-tests: Likewise.
23613         * modules/unictype/property-titlecase-tests: Likewise.
23614         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23615         * modules/unictype/property-unified-ideograph-tests: Likewise.
23616         * modules/unictype/property-uppercase-tests: Likewise.
23617         * modules/unictype/property-variation-selector-tests: Likewise.
23618         * modules/unictype/property-white-space-tests: Likewise.
23619         * modules/unictype/property-xid-continue-tests: Likewise.
23620         * modules/unictype/property-xid-start-tests: Likewise.
23621         * modules/unictype/property-zero-width-tests: Likewise.
23622         * modules/unictype/scripts-tests: Likewise.
23623         * modules/unictype/syntax-c-ident-tests: Likewise.
23624         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23625         * modules/unictype/syntax-java-ident-tests: Likewise.
23626         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23627         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23628         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23629         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23630         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23631         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23632         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23633         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23634         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23635         * modules/uniname/uniname-tests: Likewise.
23636         * modules/uninorm/canonical-decomposition-tests: Likewise.
23637         * modules/uninorm/compat-decomposition-tests: Likewise.
23638         * modules/uninorm/composition-tests: Likewise.
23639         * modules/uninorm/decomposing-form-tests: Likewise.
23640         * modules/uninorm/decomposition-tests: Likewise.
23641         * modules/uninorm/filter-tests: Likewise.
23642         * modules/uninorm/nfc-tests: Likewise.
23643         * modules/uninorm/nfd-tests: Likewise.
23644         * modules/uninorm/nfkc-tests: Likewise.
23645         * modules/uninorm/nfkd-tests: Likewise.
23646         * modules/uninorm/u8-normcmp-tests: Likewise.
23647         * modules/uninorm/u8-normcoll-tests: Likewise.
23648         * modules/uninorm/u16-normcmp-tests: Likewise.
23649         * modules/uninorm/u16-normcoll-tests: Likewise.
23650         * modules/uninorm/u32-normcmp-tests: Likewise.
23651         * modules/uninorm/u32-normcoll-tests: Likewise.
23652         * modules/unistdio/u8-asnprintf-tests: Likewise.
23653         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23654         * modules/unistdio/u8-vasprintf-tests: Likewise.
23655         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23656         * modules/unistdio/u8-vsprintf-tests: Likewise.
23657         * modules/unistdio/u16-asnprintf-tests: Likewise.
23658         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23659         * modules/unistdio/u16-vasprintf-tests: Likewise.
23660         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23661         * modules/unistdio/u16-vsprintf-tests: Likewise.
23662         * modules/unistdio/u32-asnprintf-tests: Likewise.
23663         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23664         * modules/unistdio/u32-vasprintf-tests: Likewise.
23665         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23666         * modules/unistdio/u32-vsprintf-tests: Likewise.
23667         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23668         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23669         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23670         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23671         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23672         * modules/unistr/u8-check-tests: Likewise.
23673         * modules/unistr/u8-chr-tests: Likewise.
23674         * modules/unistr/u8-cmp-tests: Likewise.
23675         * modules/unistr/u8-cmp2-tests: Likewise.
23676         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23677         * modules/unistr/u8-cpy-tests: Likewise.
23678         * modules/unistr/u8-mblen-tests: Likewise.
23679         * modules/unistr/u8-mbsnlen-tests: Likewise.
23680         * modules/unistr/u8-mbtouc-tests: Likewise.
23681         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23682         * modules/unistr/u8-mbtoucr-tests: Likewise.
23683         * modules/unistr/u8-move-tests: Likewise.
23684         * modules/unistr/u8-next-tests: Likewise.
23685         * modules/unistr/u8-prev-tests: Likewise.
23686         * modules/unistr/u8-set-tests: Likewise.
23687         * modules/unistr/u8-stpcpy-tests: Likewise.
23688         * modules/unistr/u8-stpncpy-tests: Likewise.
23689         * modules/unistr/u8-strcat-tests: Likewise.
23690         * modules/unistr/u8-strcmp-tests: Likewise.
23691         * modules/unistr/u8-strcoll-tests: Likewise.
23692         * modules/unistr/u8-strcpy-tests: Likewise.
23693         * modules/unistr/u8-strdup-tests: Likewise.
23694         * modules/unistr/u8-strlen-tests: Likewise.
23695         * modules/unistr/u8-strmblen-tests: Likewise.
23696         * modules/unistr/u8-strmbtouc-tests: Likewise.
23697         * modules/unistr/u8-strncat-tests: Likewise.
23698         * modules/unistr/u8-strncmp-tests: Likewise.
23699         * modules/unistr/u8-strncpy-tests: Likewise.
23700         * modules/unistr/u8-strnlen-tests: Likewise.
23701         * modules/unistr/u8-to-u16-tests: Likewise.
23702         * modules/unistr/u8-to-u32-tests: Likewise.
23703         * modules/unistr/u8-uctomb-tests: Likewise.
23704         * modules/unistr/u16-check-tests: Likewise.
23705         * modules/unistr/u16-chr-tests: Likewise.
23706         * modules/unistr/u16-cmp-tests: Likewise.
23707         * modules/unistr/u16-cmp2-tests: Likewise.
23708         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23709         * modules/unistr/u16-cpy-tests: Likewise.
23710         * modules/unistr/u16-mblen-tests: Likewise.
23711         * modules/unistr/u16-mbsnlen-tests: Likewise.
23712         * modules/unistr/u16-mbtouc-tests: Likewise.
23713         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23714         * modules/unistr/u16-mbtoucr-tests: Likewise.
23715         * modules/unistr/u16-move-tests: Likewise.
23716         * modules/unistr/u16-next-tests: Likewise.
23717         * modules/unistr/u16-prev-tests: Likewise.
23718         * modules/unistr/u16-set-tests: Likewise.
23719         * modules/unistr/u16-stpcpy-tests: Likewise.
23720         * modules/unistr/u16-stpncpy-tests: Likewise.
23721         * modules/unistr/u16-strcat-tests: Likewise.
23722         * modules/unistr/u16-strcmp-tests: Likewise.
23723         * modules/unistr/u16-strcoll-tests: Likewise.
23724         * modules/unistr/u16-strcpy-tests: Likewise.
23725         * modules/unistr/u16-strdup-tests: Likewise.
23726         * modules/unistr/u16-strlen-tests: Likewise.
23727         * modules/unistr/u16-strmblen-tests: Likewise.
23728         * modules/unistr/u16-strmbtouc-tests: Likewise.
23729         * modules/unistr/u16-strncat-tests: Likewise.
23730         * modules/unistr/u16-strncmp-tests: Likewise.
23731         * modules/unistr/u16-strncpy-tests: Likewise.
23732         * modules/unistr/u16-strnlen-tests: Likewise.
23733         * modules/unistr/u16-to-u32-tests: Likewise.
23734         * modules/unistr/u16-to-u8-tests: Likewise.
23735         * modules/unistr/u16-uctomb-tests: Likewise.
23736         * modules/unistr/u32-check-tests: Likewise.
23737         * modules/unistr/u32-chr-tests: Likewise.
23738         * modules/unistr/u32-cmp-tests: Likewise.
23739         * modules/unistr/u32-cmp2-tests: Likewise.
23740         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23741         * modules/unistr/u32-cpy-tests: Likewise.
23742         * modules/unistr/u32-mblen-tests: Likewise.
23743         * modules/unistr/u32-mbsnlen-tests: Likewise.
23744         * modules/unistr/u32-mbtouc-tests: Likewise.
23745         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23746         * modules/unistr/u32-mbtoucr-tests: Likewise.
23747         * modules/unistr/u32-move-tests: Likewise.
23748         * modules/unistr/u32-next-tests: Likewise.
23749         * modules/unistr/u32-prev-tests: Likewise.
23750         * modules/unistr/u32-set-tests: Likewise.
23751         * modules/unistr/u32-stpcpy-tests: Likewise.
23752         * modules/unistr/u32-stpncpy-tests: Likewise.
23753         * modules/unistr/u32-strcat-tests: Likewise.
23754         * modules/unistr/u32-strcmp-tests: Likewise.
23755         * modules/unistr/u32-strcoll-tests: Likewise.
23756         * modules/unistr/u32-strcpy-tests: Likewise.
23757         * modules/unistr/u32-strdup-tests: Likewise.
23758         * modules/unistr/u32-strlen-tests: Likewise.
23759         * modules/unistr/u32-strmblen-tests: Likewise.
23760         * modules/unistr/u32-strmbtouc-tests: Likewise.
23761         * modules/unistr/u32-strncat-tests: Likewise.
23762         * modules/unistr/u32-strncmp-tests: Likewise.
23763         * modules/unistr/u32-strncpy-tests: Likewise.
23764         * modules/unistr/u32-strnlen-tests: Likewise.
23765         * modules/unistr/u32-to-u16-tests: Likewise.
23766         * modules/unistr/u32-to-u8-tests: Likewise.
23767         * modules/unistr/u32-uctomb-tests: Likewise.
23768         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23769         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23770         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23771         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23772         * modules/uniwidth/u8-strwidth-tests: Likewise.
23773         * modules/uniwidth/u8-width-tests: Likewise.
23774         * modules/uniwidth/u16-strwidth-tests: Likewise.
23775         * modules/uniwidth/u16-width-tests: Likewise.
23776         * modules/uniwidth/u32-strwidth-tests: Likewise.
23777         * modules/uniwidth/u32-width-tests: Likewise.
23778         * modules/uniwidth/width-tests: Likewise.
23779
23780 2010-05-18  Richard Jones  <rjones@redhat.com>
23781
23782         doc: users.txt: list hivex
23783         * users.txt: Add hivex.
23784
23785 2010-05-18  Richard Jones  <rjones@redhat.com>
23786
23787         doc: users.txt: list febootstrap
23788         * users.txt: Add febootstrap.
23789
23790 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23791
23792         bootstrap: fix an error when gnulib is not used as a git submodule
23793         * build-aux/bootstrap (gnulib_path): If its length is zero then
23794         assign "gnulib" to it.
23795         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23796
23797 2010-05-16  Bruno Haible  <bruno@clisp.org>
23798
23799         Avoid autoconf warnings about AM_ICONV.
23800         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23801         2.64.
23802
23803 2010-05-16  Bruno Haible  <bruno@clisp.org>
23804
23805         absolute-header: Make the macro usable in more situations.
23806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23807         from gl_ABSOLUTE_HEADER.
23808         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23809
23810 2010-05-16  James Youngman  <jay@gnu.org>
23811
23812         doc: update users.txt
23813         * users.txt: Add CSSC.
23814
23815 2010-05-16  Jim Meyering  <meyering@redhat.com>
23816
23817         init.sh: fix an error in the previous change; add more comments
23818         * tests/init.sh: Compare exit code in loop against 9, not 2.
23819         Patch by Bruno Haible.
23820         Make the two tests more similar by adding an empty "then" clause.
23821         Add comments.
23822
23823         init.sh: avoid unnecessary shell re-exec
23824         * tests/init.sh: Improve the re-exec-required check to first test the
23825         current shell.  If it passes the test, do not search for a shell that
23826         does pass, and do not re-exec.  This test is particularly contorted to
23827         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23828         of $(...) evokes a syntax error and causes immediate shell exit with
23829         status 2.  Bruno Haible reported that the re-exec made it impossible
23830         to single-step through any init.sh-using script.
23831
23832 2010-05-16  Bruno Haible  <bruno@clisp.org>
23833
23834         Fix collision between gnulib's and libintl's printf replacements.
23835         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23836         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23837         (printf): When using GNU C, map the __printf__ function to rpl_printf
23838         via __asm__. When not using GNU C, define rpl_printf instead of
23839         __printf__.
23840         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23841         commit.
23842         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23843         commit.
23844         * m4/asm-underscore.m4: New file.
23845         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23846         * modules/stdio (Files): Add m4/asm-underscore.m4.
23847         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23848         Reported by Ben Pfaff.
23849
23850 2010-05-16  Bruno Haible  <bruno@clisp.org>
23851
23852         verify: Avoid skipping the test on openSUSE 11.0.
23853         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23854
23855 2010-05-13  Bruno Haible  <bruno@clisp.org>
23856
23857         Avoid useless warnings from G++.
23858         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23859         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23860         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23861
23862 2010-05-11  Jim Meyering  <meyering@redhat.com>
23863
23864         maint.mk: tweak preceding change
23865         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23866         regexps tighter by anchoring at EOL, and make the new group "shy"
23867         for slightly decreased overhead.
23868
23869 2010-05-11  Eric Blake  <eblake@redhat.com>
23870
23871         maint.mk: gnulib doesn't guarantee NSIG
23872         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23873
23874 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23875
23876         test-pwrite.c: Remove unused variable declaration.
23877         * tests/test-pwrite.c (main): Remove read_buf declaration.
23878
23879         Remove useless test-pwrite.sh file.
23880         * tests/test-pwrite.sh: Delete file.
23881         * modules/pwrite-tests: Remove references.
23882         Reported by Bruno Haible.
23883
23884 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23885
23886         init.sh: fix a typo
23887         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23888
23889 2010-05-10  Jim Meyering  <meyering@redhat.com>
23890
23891         maint.mk: avoid using a temporary file in the always-defined-macros check
23892         * top/maint.mk (.re-defmac): Remove rule.
23893         (gl_trap_): Remove definition.
23894         (sc_prohibit_always-defined_macros): Rewrite not to create and
23895         depend on a temporary file.  Instead, depend on GNU grep's ability
23896         to read a list of regular expressions from stdin when given "-f -".
23897
23898 2010-05-09  Bruno Haible  <bruno@clisp.org>
23899
23900         Update to GNU gettext 0.18, part 1.
23901         * m4/gettext.m4: Update to GNU gettext 0.18.
23902         * m4/intl.m4: Likewise.
23903         * m4/po.m4: Likewise.
23904         * modules/gettext (Files): Add m4/fcntl-o.m4.
23905         (configure.ac): Require gettext infrastructure from version 0.18.
23906
23907 2010-05-09  Jim Meyering  <meyering@redhat.com>
23908
23909         init.sh: enable MALLOC_PERTURB_
23910         * tests/init.sh: Enable glibc's malloc-perturbing option.
23911
23912         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23913         With my recent change in init.sh from the two-line form:
23914             -#   : ${srcdir=.}
23915             -#   . "$srcdir/init.sh"; path_prepend_ .
23916             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23917         I noticed that using the one-line form would cause this test
23918         to fail with a false-positive, or to stop working altogether,
23919         depending on whether help-version changed or all the tests did.
23920         * top/maint.mk (_hv_regex): Remove this definition.
23921         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23922         (_hv_regex_strong): Use a stronger regex to check for conformance.
23923         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23924         Give a separate diagnostic for lack of conforming use.
23925
23926         maint.mk: prohibit definition of symbols defined by gnulib
23927         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23928         definition of symbols defined by gnulib.
23929
23930 2010-05-09  Bruno Haible  <bruno@clisp.org>
23931
23932         acl: Avoid test failure on Cygwin-hosted mingw.
23933         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23934
23935 2010-05-09  Bruno Haible  <bruno@clisp.org>
23936
23937         error: Use system's fcntl function.
23938         * lib/error.c (fcntl): Undefine.
23939
23940 2010-05-09  Jim Meyering  <meyering@redhat.com>
23941
23942         verify: adjust formatting to be more consistent
23943         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23944         argument-list '('s, and after one comma.
23945
23946 2010-05-09  Bruno Haible  <bruno@clisp.org>
23947
23948         error: More reliable output on mingw.
23949         * lib/error.c: Include <windows.h>.
23950         (is_open): New function.
23951         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23952         defined.
23953
23954 2010-05-09  Bruno Haible  <bruno@clisp.org>
23955
23956         vasnprintf: Fix syntax errors in libintl build on mingw.
23957         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23958         pad_ourselves and prec_ourselves after use.
23959
23960 2010-05-08  Bruno Haible  <bruno@clisp.org>
23961
23962         * lib/config.charset: Update comments for Cygwin 1.7.
23963         * lib/localcharset.c: Likewise.
23964
23965 2010-05-07  Jim Meyering  <meyering@redhat.com>
23966
23967         init.sh: improve comments
23968         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23969         . "${srcdir=.}/init.sh"; path_prepend_ .
23970         Add a note about path_prepend_ and the alternative of using
23971         TESTS_ENVIRONMENT.
23972
23973 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23974
23975         exclude: Unescape hashed patterns in wildcard mode.
23976         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23977         to the hash list.
23978         * tests/test-exclude8.sh: New test case.
23979         * modules/exclude-tests: Add new test.
23980
23981 2010-05-05  Eric Blake  <eblake@redhat.com>
23982
23983         verify: automate tests
23984         * modules/verify-tests: New module.
23985         * tests/test-verify.sh: New file.
23986         * tests/test-verify.c: Guard each negative test with a unique id.
23987         Also avoid warning about unused left hand of comma expressions.
23988
23989 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23990
23991         Further improvements to verify.h, suggested by Eric Blake.
23992         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23993         the GL_* versions, to avoid collision with OpenGL.
23994         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23995         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23996         than testing merely whether it's defined.
23997
23998         Modify verify.h to pacify gcc -Wredundant_decls.
23999         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24000         These use the prefix "GL_" since they're likely to be useful elsewhere.
24001         We may need to break them out into a different .h file.
24002         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24003         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24004         of verify_function__.
24005
24006 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24007
24008         Tests for module pwrite.
24009         * modules/pwrite-tests: New file.
24010         * tests/test-pwrite.sh: New file.
24011         * tests/test-pwrite.c: New file.
24012
24013         New module pwrite.
24014         * lib/unistd.in.h (pwrite): New declaration.
24015         * lib/pwrite.c: New file, from glibc with modifications.
24016         * m4/pwrite.m4: New file.
24017         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24018         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24019         REPLACE_PWRITE.
24020         * modules/pwrite: New file.
24021         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24022         REPLACE_PWRITE.
24023         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24024         * doc/posix-functions/pwrite.texi: Mention the new module.
24025
24026 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24027
24028         pread: Update documentation.
24029         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24030
24031 2010-05-04  Eric Blake  <eblake@redhat.com>
24032
24033         docs: update cygwin progress
24034         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24035         this bug.
24036         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24037         Added in cygwin 1.7.2.
24038         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24039         Likewise.
24040         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24041         Likewise.
24042         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24043         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24044         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24045         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24046         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24047         Mention nproc module.
24048         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24049         bug in cygwin 1.7.5 addition.
24050         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24051         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24052         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24053         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24054         1.7.5.
24055         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24056         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24057         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24058         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24059         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24060         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24061         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24062         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24063         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24064         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24065         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24066         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24067         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24068         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24069         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24070         Likewise.
24071         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24072         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24073         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24074         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24075         Likewise.
24076         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24077         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24078         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24079         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24080         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24081         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24082         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24083         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24084         Likewise.
24085         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24086         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24087         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24088         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24089         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24090         Likewise.
24091         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24092         Likewise.
24093         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24094         Likewise.
24095         * doc/glibc-functions/xdrrec_endofrecord.texi
24096         (xdrrec_endofrecord): Likewise.
24097         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24098         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24099         Likewise.
24100         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24101         Likewise.
24102
24103 2010-05-04  Jim Meyering  <meyering@redhat.com>
24104
24105         gendocs.sh: make its "-s FILE" option more useful
24106         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24107         $PACKAGE to reflect the probably-different basename of "FILE".
24108
24109 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24110
24111         bootstrap: don't ignore download_po_files failure
24112         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24113         failure.
24114
24115 2010-05-03  Jim Meyering  <meyering@redhat.com>
24116
24117         maint.mk: allow to pass options to gendocs.sh
24118         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24119         (gendocs_options_): New overridable variable.
24120
24121         gnu-web-doc-update: don't ignore configure or build failure
24122         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24123
24124         announce-gen: backslash-escape '@'s in --help output
24125         * build-aux/announce-gen: Fix syntax errors.
24126
24127         maint.mk, announce-gen: allow project-specific announcement mail headers
24128         * top/maint.mk (translation_project_): Define default.
24129         (announcement_Cc_, announcement_mail_headers_): Likewise.
24130         (announcement): Invoke announce-gen with new --mail-headers option.
24131         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24132
24133         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24134         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24135         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24136         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24137         line in the "err2" output file when running "make check" in verbose
24138         mode (i.e., with set -x enabled).
24139
24140 2010-05-03  Bruno Haible  <bruno@clisp.org>
24141
24142         wctob: Fix for weird platforms.
24143         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24144         argument value.
24145
24146 2010-05-03  Jim Meyering  <meyering@redhat.com>
24147
24148         maint.mk: prohibit unwarranted use of <strings.h>
24149         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24150         strings.h in a file that does not also use strcasecmp, strncasecmp,
24151         ffs or ffsll.
24152
24153         maint.mk: remove obsolete comments
24154         * top/maint.mk: Remove stale, commented-out rules.
24155
24156 2010-05-02  Bruno Haible  <bruno@clisp.org>
24157
24158         wcwidth: Declare also when it's aliased.
24159         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24160         macro.
24161
24162 2010-05-02  Bruno Haible  <bruno@clisp.org>
24163
24164         Fix regression from 2010-04-25.
24165         * gnulib-tool (func_modules_transitive_closure): Check the status of
24166         all modules, not only of the tests that are of the form foo-tests where
24167         foo is a module.
24168
24169 2010-05-02  Bruno Haible  <bruno@clisp.org>
24170
24171         wctob: Work around nasty Cygwin 1.7.2 bug.
24172         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24173         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24174
24175 2010-05-01  Bruno Haible  <bruno@clisp.org>
24176
24177         fpurge: Sharper test.
24178         * tests/test-fpurge.c (main): Add one more ftell check.
24179         * modules/fpurge-tests (Depends-on): Add ftell.
24180         Suggested by Eric Blake.
24181
24182 2010-05-01  Bruno Haible  <bruno@clisp.org>
24183
24184         ftello: Another test.
24185         * tests/test-ftello3.c: New file.
24186         * modules/ftello-tests (Files): Add it.
24187         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24188         MOSTLYCLEANFILES.
24189
24190         ftell: Another test.
24191         * tests/test-ftell3.c: New file.
24192         * modules/ftell-tests (Files): Add it.
24193         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24194         MOSTLYCLEANFILES.
24195
24196 2010-05-01  Bruno Haible  <bruno@clisp.org>
24197
24198         ftell, ftello: Work around Solaris bug.
24199         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24200         * lib/ftello.c: Include stdio-impl.h.
24201         (ftello): On Solaris, when _IOWRT is set, compute the result without
24202         looking at _IOREAD.
24203         * modules/ftello (Files): Add lib/stdio-impl.h.
24204         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24205         * doc/posix-functions/ftello.texi: Likewise.
24206         Reported by Eric Blake.
24207
24208 2010-05-01  Bruno Haible  <bruno@clisp.org>
24209
24210         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24211         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24212         the _IOWRT flag is also set.
24213
24214 2010-05-01  Bruno Haible  <bruno@clisp.org>
24215
24216         Fix doc about a HP-UX stdio bug.
24217         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24218         * doc/posix-functions/ftello.texi: Likewise.
24219
24220 2010-05-01  Bruno Haible  <bruno@clisp.org>
24221
24222         lseek test: Fix failure on Solaris.
24223         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24224         output.
24225
24226 2010-04-30  Jim Meyering  <meyering@redhat.com>
24227
24228         bootstrap: don't ignore failure to generate po*/Makevars
24229         * build-aux/bootstrap (with_gettext): Don't ignore failure
24230         to create po/Makevars or runtime-po/Makevars.
24231
24232 2010-04-29  Eric Blake  <eblake@redhat.com>
24233
24234         headers: relax license to LGPLv2+
24235         * modules/fcntl-h (License): Relax license.
24236         * modules/getopt-posix (License): Likewise.
24237         * modules/locale (License): Likewise.
24238         * modules/math (License): Likewise.
24239         * modules/pty (License): Likewise.
24240         * modules/sched (License): Likewise.
24241         * modules/search (License): Likewise.
24242         * modules/spawn (License): Likewise.
24243         * modules/stdarg (License): Likewise.
24244         * modules/sysexits (License): Likewise.
24245
24246 2010-04-29  Jim Meyering  <meyering@redhat.com>
24247
24248         inttypes: relax license to LGPLv2+
24249         * modules/inttypes (License): Relax license.
24250
24251 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24252
24253         * top/maint.mk (indent): Run twice to produce idempotent results.
24254
24255 2010-04-28  Bruno Haible  <bruno@clisp.org>
24256
24257         getdate: Generate getdate.c in the source directory.
24258         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24259         MOSTLYCLEANFILES.
24260         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24261
24262 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24263
24264         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24265         is not declared as a const *; avoid warnings in that case.
24266
24267 2010-04-28  Eric Blake  <eblake@redhat.com>
24268
24269         canonicalize-lgpl: avoid compiler warning
24270         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24271         declaration' / 'extraneous semicolon' warning with some compilers.
24272         Reported by Andreas Gruenbacher.
24273
24274 2010-04-28  Jim Meyering  <meyering@redhat.com>
24275
24276         init.sh: ensure a more reliable exit status when exiting via trap
24277         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24278         Inspired by patches from Dmitry V. Levin.
24279         Also trap on signal 3 (SIGQUIT).
24280
24281 2010-04-27  Bruno Haible  <bruno@clisp.org>
24282
24283         Update doc about utimes().
24284         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24285         'utimens' module.
24286         Reported by Andreas Gruenbacher <agruen@suse.de>.
24287
24288 2010-04-27  Eric Blake  <eblake@redhat.com>
24289
24290         full-read, full-write: relax license
24291         * modules/full-read (License): Drop to LGPLv2+.
24292         * modules/full-write (License): Likewise.
24293         * modules/safe-read (License): Likewise.
24294         * modules/safe-write (License): Likewise.
24295
24296         pthread: mention library for linking
24297         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24298
24299 2010-04-27  Jim Meyering  <meyering@redhat.com>
24300
24301         maint.mk: fix a bug introduced in last change
24302         * top/maint.mk (gl_assured_headers_): Now that all names are on
24303         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24304         is not anchored to end of word, it should be adequate.
24305
24306         maint.mk: avoid side-effect in latest syntax-check
24307         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24308         to run commands via $(shell...), and hence to incur cost only when
24309         the new rule is actually run.
24310
24311         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24312         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24313         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24314         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24315         (gl_assured_headers_, az_, AZ_): Define.
24316         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24317
24318 2010-04-26  Jim Meyering  <jim@meyering.net>
24319             Bruno Haible  <bruno@clisp.org>
24320
24321         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24322         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24323         Prompted by an exchange with Gilles Espinasse.
24324
24325 2010-04-26  Jim Meyering  <meyering@redhat.com>
24326
24327         git-version-gen: aesthetic tweak
24328         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24329         so that the command remains on a single line.
24330
24331 2010-04-26  Eric Blake  <eblake@redhat.com>
24332
24333         git-version-gen: allow use on EBCDIC hosts
24334         * build-aux/git-version-gen (dirty): Use literal rather than tying
24335         ourselves to ascii.
24336         Reported by Steve Goetze.
24337
24338 2010-04-25  Bruno Haible  <bruno@clisp.org>
24339
24340         netdb: Add support for GNULIB_POSIXCHECK.
24341         * lib/netdb.in.h: Include warn-on-use.h.
24342         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24343         functions are used when GNULIB_POSIXCHECK is defined and the
24344         getaddrinfo module is not in use.
24345         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24346         freeaddrinfo, gai_strerror, getnameinfo are declared.
24347         * modules/netdb (Depends-on): Add warn-on-use.
24348         (Makefile.am): Include warn-on-use.h in netdb.h.
24349
24350 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24351
24352         build: avoid "make check" failure without .git/ directory
24353         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24354         there is no .git/ directory.
24355
24356 2010-04-25  Bruno Haible  <bruno@clisp.org>
24357
24358         ptsname: Fix misuse of ttyname_r.
24359         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24360         of errno.
24361
24362 2010-04-25  Bruno Haible  <bruno@clisp.org>
24363
24364         ttyname_r: Make it work on Solaris 10.
24365         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24366         if the system function has the POSIX declaration. Test whether the
24367         function fails if the buffer is less than 128 bytes large.
24368         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24369         system's ttyname_r function. Provide a reasonably large buffer.
24370         * modules/ttyname_r (Depends-on): Add extensions.
24371         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24372
24373 2010-04-25  Bruno Haible  <bruno@clisp.org>
24374
24375         Use the 'extensions' module for some more functions on Solaris.
24376         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24377         module.
24378         * doc/posix-functions/ctime_r.texi: Likewise.
24379         * doc/posix-functions/getgrgid_r.texi: Likewise.
24380         * doc/posix-functions/getgrnam_r.texi: Likewise.
24381         * doc/posix-functions/getpwnam_r.texi: Likewise.
24382         * doc/posix-functions/getpwuid_r.texi: Likewise.
24383         * doc/posix-functions/readdir_r.texi: Likewise.
24384         * doc/posix-functions/sigwait.texi: Likewise.
24385         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24386         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24387
24388 2010-04-25  Bruno Haible  <bruno@clisp.org>
24389
24390         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24391         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24392         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24393         * lib/ttyname_r.c: Include <limits.h>.
24394         (ttyname_r): Define using the system's ttyname_r function, if it exists
24395         and not on Solaris.
24396         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24397         set.
24398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24399         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24400         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24401         Reported by Simon Josefsson.
24402
24403 2010-04-25  Bruno Haible  <bruno@clisp.org>
24404
24405         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24406         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24407         * doc/posix-functions/ctime_r.texi: Likewise.
24408         * doc/posix-functions/getgrgid_r.texi: Likewise.
24409         * doc/posix-functions/getgrnam_r.texi: Likewise.
24410         * doc/posix-functions/getlogin_r.texi: Likewise.
24411         * doc/posix-functions/getpwnam_r.texi: Likewise.
24412         * doc/posix-functions/getpwuid_r.texi: Likewise.
24413         * doc/posix-functions/readdir_r.texi: Likewise.
24414         * doc/posix-functions/sigwait.texi: Likewise.
24415         * doc/posix-functions/ttyname_r.texi: Likewise.
24416         Reported by Simon Josefsson.
24417
24418 2010-04-25  Bruno Haible  <bruno@clisp.org>
24419
24420         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24421         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24422         also to --create-testdir.
24423         (func_acceptable): Don't consider the status of *-tests modules here.
24424         (func_modules_transitive_closure): Consider it here, before including a
24425         test module.
24426         (func_import, func_create_testdir): Set inc_all_direct_tests,
24427         inc_all_indirect_tests.
24428         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24429         --create-testdir and --create-megatestdir.
24430
24431 2010-04-25  Bruno Haible  <bruno@clisp.org>
24432
24433         gnulib-tool: Add --without-*-tests options.
24434         * gnulib-tool (func_usage): Document the --without-*-tests options.
24435         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24436         excl_unportable_tests): New variables.
24437         Fail if they are specified with --import or --update.
24438         (func_acceptable): Respect the excl_*_tests variables.
24439         (func_import): Set the excl_*_tests variables to empty.
24440
24441 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24442             Bruno Haible  <bruno@clisp.org>
24443
24444         Work around a MacOS X 10.4 bug with openpty.
24445         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24446         * tests/test-openpty.c (main): Close the master side explicitly.
24447
24448 2010-04-25  Bruno Haible  <bruno@clisp.org>
24449
24450         strnlen: Fix a C++ test error on MacOS X and Solaris.
24451         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24452         the function is not declared.
24453         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24454         Simon Josefsson.
24455
24456 2010-04-24  Bruno Haible  <bruno@clisp.org>
24457
24458         Avoid a gcc warning.
24459         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24460         of correct type for %08lx directive.
24461         Reported by Eric Blake.
24462
24463 2010-04-24  Bruno Haible  <bruno@clisp.org>
24464
24465         vasnprintf: Correct errno value in case of out-of-memory.
24466         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24467         or sprintf. Use the errno value from SNPRINTF or sprintf.
24468         Reported by Ian Beckwith <ianb@erislabs.net>.
24469
24470 2010-04-24  Bruno Haible  <bruno@clisp.org>
24471
24472         ansi-c++-opt: Find correct compiler when cross-compiling.
24473         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24474         AC_CHECK_PROGS.
24475         Reported by Simon Josefsson.
24476
24477 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24478
24479         vc-list-files: Add support for subversion
24480         * build-aux/vc-list-files: Use "svn list" to generate the list of
24481         files controlled by subversion.
24482
24483 2010-04-23  Jim Meyering  <meyering@redhat.com>
24484
24485         vc-list-files tests: convert to use init.sh
24486         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24487         path_prepend_.
24488         Use Exit, not exit.
24489         Use skip_ rather than open coding it.
24490         Remove trap set-up and compare definitions.
24491         * tests/test-vc-list-files-git.sh: Likewise.
24492         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24493
24494 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24495
24496         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24497         backup files.
24498
24499 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24500
24501         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24502
24503 2010-04-20  Eric Blake  <eblake@redhat.com>
24504
24505         tests: be robust to ignored SIGPIPE
24506         * tests/test-select-in.sh: Consume all output.
24507         * tests/test-lseek.sh: Check correct exit status, while avoiding
24508         EPIPE.
24509
24510 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24511             Bruno Haible  <bruno@clisp.org>
24512
24513         visibility: Don't use -fvisibility if it leads to a warning.
24514         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24515         yes, don't pretend that visibility works if it leads to a warning.
24516         Reported by Mike Gran <spk121@yahoo.com>.
24517
24518 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24519
24520         * build-aux/bootstrap: Use "git -h" for testing for supported options
24521         instead of "git --help".  The short-form option only shows a summary,
24522         and doesn't layout the full man page.  Grep for the full option name
24523         in the summary, too.
24524
24525 2010-04-19  Bruno Haible  <bruno@clisp.org>
24526
24527         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24528         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24529         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24530         mention of RELOCATABLE_STRIP.
24531         Reported by Sylvain Beucler <beuc@beuc.net>.
24532
24533 2010-04-19  Bruno Haible  <bruno@clisp.org>
24534
24535         * lib/diffseq.h: Fix typo in comment.
24536         Reported by Eric Blake.
24537
24538 2010-04-19  Bruno Haible  <bruno@clisp.org>
24539
24540         ioctl: Move autoconf macro to a .m4 file.
24541         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24542         * modules/ioctl (Files): Add it.
24543         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24544         Reported by Ian Beckwith <ianb@erislabs.net>.
24545
24546 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24547             Bruno Haible  <bruno@clisp.org>
24548
24549         diffseq: Accommodate use-case with abstract arrays.
24550         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24551         is not defined.
24552         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24553         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24554
24555 2010-04-18  Bruno Haible  <bruno@clisp.org>
24556
24557         * doc/posix-headers/stdbool.texi: More precise wording.
24558
24559 2010-04-17  Jim Meyering  <meyering@redhat.com>
24560
24561         maint.mk: use gnu-style indentation in an embedded perl script
24562         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24563         Rename variable: s/two/last_two_bytes/
24564
24565 2010-04-16  Eric Blake  <eblake@redhat.com>
24566
24567         test-stdbool: skip test that fails with Solaris CC
24568         * tests/test-stdbool.c (f): Skip test that causes compilation
24569         error under buggy C++ compiler.
24570         * lib/stdbool.in.h: Document the limitation.
24571         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24572
24573         setenv: allow compilation with C++
24574         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24575         register keyword.
24576
24577         stdint: allow test to pass with C++
24578         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24579
24580         getopt: allow compilation with C++
24581         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24582         struct.
24583         * lib/getopt.c (_getopt_internal_r): Use correct type.
24584         Reported by Dagobert Michelson, via Joel E. Denny.
24585
24586 2010-04-16  Bruno Haible  <bruno@clisp.org>
24587
24588         Override netdb.h always.
24589         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24590         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24591         Reported by Ludovic Courtès <ludo@gnu.org>.
24592
24593 2010-04-15  Bruno Haible  <bruno@clisp.org>
24594
24595         openpty: Fix mistake from 2010-03-21.
24596         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24597         Reported by Simon Josefsson.
24598
24599 2010-04-15  Eric Blake  <eblake@redhat.com>
24600
24601         test-forkpty: fix expected signature
24602         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24603         Reported by Simon Josefsson.
24604
24605 2010-04-15  Jim Meyering  <meyering@redhat.com>
24606
24607         maint.mk: texinfo_suffix_re_: correct the default regexp
24608         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24609
24610         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24611         make it configurable via texinfo_suffix_re_.
24612
24613 2010-04-14  Eric Blake  <eblake@redhat.com>
24614
24615         strtok_r: relax license to LGPLv2+
24616         * modules/strtok_r (License): Relax license.
24617         Reported by Matthias Bolte.
24618
24619 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24620
24621         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24622         version 1.4.4 by default instead of requiring the libgcrypt
24623         version used during build.  This makes it possible to use the
24624         application with older but still binary compatible libgcrypt
24625         versions.
24626
24627 2010-04-13  Eric Blake  <eblake@redhat.com>
24628
24629         getopt-gnu: match recent glibc fixes and posix ruling
24630         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24631         '+' handling, when requesting extensions.
24632         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24633         'W;' handling.
24634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24635         * doc/posix-functions/getopt.texi (getopt): Document this.
24636         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24637         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24638         Likewise.
24639
24640         getopt: merge bug fixes from glibc
24641         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24642         diagnostics.  Honor '+:' correctly.  Reject ';'.
24643
24644         getopt-posix: detect MacOS bug
24645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24646         optind when missing a required argument.
24647         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24648         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24649         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24650         Likewise.
24651
24652         getopt-posix: avoid spurious failure on Solaris
24653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24654         an indicator that setting optind=1 is sufficient for reset.
24655
24656         getopt-posix: avoid spurious failure on FreeBSD
24657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24658         in POSIX mode, since the m4 test uses it.
24659
24660         gnulib-tool: silence warning on BSD sh
24661         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24662
24663 2010-04-13  Jim Meyering  <meyering@redhat.com>
24664
24665         doc: users.txt: GNU patch now uses gnulib
24666         * users.txt: Add patch.
24667
24668 2010-04-12  Jim Meyering  <meyering@redhat.com>
24669
24670         maint.mk: generate more concise timing data for syntax-check rules
24671         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24672         " done" from each line that reports a syntax-check test duration.
24673
24674 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24675
24676         git-version-gen: use "git update-index..." rather than "git status"
24677         * build-aux/git-version-gen: Use git update-index --refresh, not
24678         "git status".  With some versions of git, "git status" would fail
24679         to update the index and result in an unwarranted "-dirty" suffix.
24680
24681 2010-04-11  Jim Meyering  <meyering@redhat.com>
24682
24683         openat: correct formatting (no semantic change)
24684         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24685         Suggested by Bruno Haible.
24686
24687 2010-04-11  Bruno Haible  <bruno@clisp.org>
24688
24689         Stricter declaration checking in testdirs.
24690         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24691         If for_tests is true, augment AM_CPPFLAGS to define
24692         GNULIB_STRICT_CHECKING.
24693         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24694         GNULIB_STRICT_CHECKING is defined, verify that the function is
24695         declared.
24696
24697 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24698             Bruno Haible  <bruno@clisp.org>
24699
24700         libunistring: Improve configure output.
24701         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24702         Don't say "consider installing GNU libunistring" when checking again
24703         with libiconv.
24704
24705 2010-04-11  Bruno Haible  <bruno@clisp.org>
24706
24707         libunistring: Correct value of $LTLIBUNISTRING.
24708         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24709         correct the value of $LTLIBUNISTRING.
24710
24711 2010-04-11  Bruno Haible  <bruno@clisp.org>
24712
24713         havelib: Add static libraries to LIBS in the right order.
24714         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24715         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24716
24717 2010-04-11  Bruno Haible  <bruno@clisp.org>
24718
24719         libunistring: Detect libunistring also when it depends on libiconv.
24720         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24721         the second AC_LIB_HAVE_LINKFLAGS invocation.
24722
24723 2010-04-11  James Youngman  <jay@gnu.org>
24724
24725         close-stream: declare local scalars to be "const"
24726         * lib/close-stream.c (close_stream): Make boolean variables const
24727         to document the fact that we set but do not change them.
24728
24729 2010-04-11  Bruno Haible  <bruno@clisp.org>
24730
24731         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24732
24733 2010-04-11  Jim Meyering  <meyering@redhat.com>
24734
24735         maint.mk: don't include dist-check.mk
24736         * top/maint.mk: Remove bogus include directive.
24737
24738         maint.mk: improve empty-line-at-EOF check
24739         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24740         solution, rather than tail+Perl-based one.  The latter would read
24741         a few kilobytes from the end of each file, and did not handle empty
24742         files properly.
24743
24744         maint.mk: print the elapsed time for each syntax-check rule
24745         * top/maint.mk (sc_m_rules_): Save start time in a file.
24746         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24747         (local-check): Interpose the .z rules
24748
24749 2010-04-11  Jim Meyering  <meyering@redhat.com>
24750
24751         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24752         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24753         empty file with one that ends in an empty line.
24754
24755 2010-04-10  Bruno Haible  <bruno@clisp.org>
24756
24757         mkdir: Make it work on mingw64.
24758         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24759         * lib/mkdir.c: Update comment.
24760         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24761
24762 2010-04-10  Bruno Haible  <bruno@clisp.org>
24763
24764         Don't override improved macro from newer autoconf.
24765         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24766         autoconf >= 2.62.
24767         Reported by Joel E. Denny <jdenny@clemson.edu>.
24768
24769 2010-04-10  Jim Meyering  <meyering@redhat.com>
24770
24771         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24772         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24773
24774         maint.mk: correct a diagnostic
24775         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24776         in diagnostic; now use $prohibit.
24777
24778 2010-04-10  Bruno Haible  <address@hidden>
24779
24780         fchownat: Fix a C++ test error on Solaris 8.
24781         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24782         the function does not exist.
24783
24784 2010-04-10  Bruno Haible  <bruno@clisp.org>
24785
24786         vasnprintf: Add more tests.
24787         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24788         (test_function): Test converting an invalid wide string.
24789
24790         vasnprintf: Correct handling of unconvertible wide string arguments.
24791         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24792         VASNPRINTF.
24793         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24794         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24795         smaller than the expected maximum need for the directive. Set errno to
24796         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24797         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24799         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24800         * modules/vasnprintf (Files): Add m4/printf.m4.
24801         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24802
24803 2010-04-10  Bruno Haible  <bruno@clisp.org>
24804
24805         vasnprintf: Fix crash in %ls directive.
24806         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24807         string is passed as argument to %ls, with no precision and no width.
24808         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24809
24810 2010-04-10  Bruno Haible  <bruno@clisp.org>
24811
24812         vasnprintf: Fix multiple test failures on mingw.
24813         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24814         _snprintf, or snwprintf, not _snwprintf.
24815
24816 2010-04-10  Bruno Haible  <bruno@clisp.org>
24817
24818         write: Fix a C++ test error on mingw.
24819         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24820
24821 2010-04-10  Bruno Haible  <bruno@clisp.org>
24822
24823         vasnprintf test: Reduce code duplication.
24824         * tests/test-vasnprintf.c (test_function): New function, extracted from
24825         test_vasnprintf.
24826         (test_vasnprintf, test_asnprintf): Invoke it.
24827
24828 2010-04-10  Bruno Haible  <bruno@clisp.org>
24829
24830         strnlen: Fix warning in C++ mode on MacOS X.
24831         * lib/string.in.h (strnlen): Use the modern idiom.
24832         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24833         defining strnlen as a macro already in <config.h>.
24834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24835         REPLACE_STRNLEN.
24836         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24837         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24838
24839 2010-04-08  James Youngman  <jay@gnu.org>
24840
24841         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24842         the example.
24843
24844 2010-04-09  Jim Meyering  <meyering@redhat.com>
24845
24846         maint.mk: print better diagnostic when there is no $(_hv_file)
24847         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24848         announce that when $(_hv_file) (aka help-version) does not exist.
24849
24850         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24851         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24852         not try to interpret its random input bytes.  Jarno Rajahalme reported
24853         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24854         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24855         (mktempd_): Likewise, just in case.
24856
24857         ftruncate: add two years to projected module removal date: 2012
24858         * m4/ftruncate.m4: Adjust comments.
24859
24860         ftruncate: mark module as obsolete; even MinGW provides it, now
24861         * modules/ftruncate (Status): Obsolete.
24862         (Notice): Say that.
24863         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24864         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24865
24866 2010-04-08  Bruno Haible  <bruno@clisp.org>
24867
24868         Fix side effects from tests-related modules.
24869         * modules/dprintf-posix (Comment): New section.
24870         * modules/fprintf-posix (Comment): Likewise.
24871         * modules/obstack-printf-posix (Comment): Likewise.
24872         * modules/printf-posix (Comment): Likewise.
24873         * modules/snprintf-posix (Comment): Likewise.
24874         * modules/sprintf-posix (Comment): Likewise.
24875         * modules/vasnprintf-posix (Comment): Likewise.
24876         * modules/vasprintf-posix (Comment): Likewise.
24877         * modules/vdprintf-posix (Comment): Likewise.
24878         * modules/vfprintf-posix (Comment): Likewise.
24879         * modules/vprintf-posix (Comment): Likewise.
24880         * modules/vsnprintf-posix (Comment): Likewise.
24881         * modules/vsprintf-posix (Comment): Likewise.
24882         * modules/xprintf-posix (Comment): Likewise.
24883         * modules/xvasprintf-posix (Comment): Likewise.
24884         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24885         * modules/floorf-tests (Depends-on): Likewise.
24886         * modules/round-tests (Depends-on): Likewise.
24887         * modules/roundf-tests (Depends-on): Likewise.
24888         * modules/trunc-tests (Depends-on): Likewise.
24889         * modules/truncf-tests (Depends-on): Likewise.
24890         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24891         'fprintf-posix' module is not present.
24892         * tests/test-floorf2.c (check): Likewise.
24893         * tests/test-trunc2.c (check): Likewise.
24894         * tests/test-truncf2.c (check): Likewise.
24895         * tests/test-round2.c (equal): Likewise.
24896         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24897
24898 2010-04-07  Karl Berry  <karl@gnu.org>
24899
24900         * config/srclist.txt,
24901         * config/srclistvars.sh,
24902         * config/srclist-update: doc fixes.
24903
24904 2010-04-07  Jim Meyering  <meyering@redhat.com>
24905
24906         maint.mk: add a PATH crosschecking syntax-check rule
24907         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24908         Useful if you use a test like the one in help-version (coreutils,
24909         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24910         printed by prog --version.
24911
24912 2010-04-06  Bruno Haible  <bruno@clisp.org>
24913
24914         Fix link error on mingw.
24915         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24916         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24917
24918 2010-04-06  Bruno Haible  <bruno@clisp.org>
24919
24920         Assume rmdir exists.
24921         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24922
24923 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24924
24925         doc: update users.txt
24926         * users.txt: Add gcal.
24927
24928 2010-04-06  Jim Meyering  <meyering@redhat.com>
24929
24930         init.sh: simply unset TMPDIR rather than risking env -i
24931         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24932         although it probably works fine on all Unix-based systems, some
24933         systems (Cygwin?) cannot tolerate a totally cleared environment.
24934         Suggestion from Eric Blake.
24935
24936 2010-04-06  Jim Meyering  <meyering@redhat.com>
24937
24938         init.sh: portability fix: use env's POSIX-specified -i option not -u
24939         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24940         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24941
24942 2010-04-05  Bruno Haible  <bruno@clisp.org>
24943
24944         btowc: Work around Cygwin 1.7.2 bug.
24945         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24946         does not map NUL to 0.
24947         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24948
24949 2010-04-05  Bruno Haible  <bruno@clisp.org>
24950
24951         Make the multithread modules work on Cygwin 1.7.2.
24952         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24953         imported symbols can be declared weak, so that it returns "no" on
24954         Cygwin 1.7.2.
24955
24956 2010-04-05  Bruno Haible  <bruno@clisp.org>
24957
24958         Use the module 'strncat'.
24959         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24960
24961         Tests for module 'strncat'.
24962         * modules/strncat-tests: New file.
24963         * tests/test-strncat.c: New file.
24964
24965         New module 'strncat'.
24966         * lib/string.in.h (strncat): New declaration.
24967         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24968         * m4/strncat.m4: New file, based on m4/memchr.m4.
24969         * modules/strncat: New file.
24970         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24971         is declared.
24972         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24973         REPLACE_STRNCAT.
24974         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24975         REPLACE_STRNCAT.
24976         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24977         module.
24978         * tests/test-string-c++.cc: Check signature of strncat.
24979
24980 2010-04-05  Jim Meyering  <meyering@redhat.com>
24981
24982         xstrtoumax-tests: convert to use init.sh
24983         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24984         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24985         Use Exit, not exit.
24986         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24987
24988         xstrtoimax-tests: convert to use init.sh
24989         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24990         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24991         Use Exit, not exit.
24992         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24993
24994 2010-04-05  Bruno Haible  <bruno@clisp.org>
24995
24996         sys_socket: Avoid #define replacements in C++ mode.
24997         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24998         warning to the function if possible, rather than #defining the symbol
24999         to a dysfunctional alias.
25000
25001 2010-04-05  Bruno Haible  <bruno@clisp.org>
25002
25003         fseeko: Fix C++ test error on mingw.
25004         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25005         gl_FUNC_FSEEKO.
25006         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25007         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25008         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25009         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25010
25011 2010-04-05  Bruno Haible  <bruno@clisp.org>
25012
25013         duplocale: Improve test output.
25014         * tests/test-duplocale.c (main): Print reason for skipped test.
25015
25016 2010-04-05  Bruno Haible  <bruno@clisp.org>
25017
25018         Assume rmdir exists.
25019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25020         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25021
25022 2010-04-05  Bruno Haible  <bruno@clisp.org>
25023
25024         Fix link error on Solaris 8 with cc.
25025         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25026
25027 2010-04-05  Bruno Haible  <bruno@clisp.org>
25028
25029         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25030         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25031
25032 2010-04-05  Bruno Haible  <bruno@clisp.org>
25033
25034         vasprintf: Update documentation.
25035         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25036
25037 2010-04-05  Bruno Haible  <bruno@clisp.org>
25038
25039         ptsname: Improve test.
25040         * tests/test-ptsname.c (main): Also try the various master names of BSD
25041         systems.
25042
25043 2010-04-05  Bruno Haible  <bruno@clisp.org>
25044
25045         memchr: Avoid a possible C++ test error.
25046         * lib/string.in.h (memchr): Provide declaration if function is missing.
25047         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25048         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25050         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25051
25052 2010-04-05  Bruno Haible  <bruno@clisp.org>
25053
25054         strtok_r: Improve idiom.
25055         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25056         AC_LIBOBJ is used.
25057
25058 2010-04-05  Bruno Haible  <bruno@clisp.org>
25059
25060         strdup: Improve idiom.
25061         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25062         AC_LIBOBJ is used.
25063         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25064         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25065         when AC_LIBOBJ is used.
25066
25067 2010-04-05  Bruno Haible  <bruno@clisp.org>
25068
25069         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25070         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25071         don't set REPLACE_MBSINIT to 1.
25072         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25073         don't set REPLACE_MBRTOWC to 1.
25074         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25075         exist, don't set REPLACE_MBSRTOWCS to 1.
25076         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25077         exist, don't set REPLACE_MBSNRTOWCS to 1.
25078         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25079         don't set REPLACE_WCRTOMB to 1.
25080         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25081         exist, don't set REPLACE_WCSRTOMBS to 1.
25082         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25083         exist, don't set REPLACE_WCSNRTOMBS to 1.
25084
25085 2010-04-05  Bruno Haible  <bruno@clisp.org>
25086
25087         ldexpl: Improve idiom.
25088         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25089         make sure to set HAVE_DECL_LDEXPL to 0.
25090
25091 2010-04-05  Jim Meyering  <meyering@redhat.com>
25092
25093         xstrtol-tests: convert to use init.sh
25094         * modules/xstrtol-tests (Files): Add tests/init.sh.
25095         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25096         Use Exit, not exit.
25097         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25098
25099         atexit-tests: convert to use init.sh
25100         * modules/atexit-tests (Files): Add tests/init.sh.
25101         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25102         Use Exit, not exit.
25103         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25104
25105         init.sh: fix typo
25106         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25107
25108         init.sh: make it easier for a test script to write to the tty, ...
25109         when using automake's parallel-tests mode.
25110         * tests/init.sh (stderr_fileno_): Define overridable variable.
25111         (warn_): New function, to use it.
25112         (fail_, skip_, framework_failure_): Use warn_.
25113
25114 2010-04-04  Bruno Haible  <bruno@clisp.org>
25115
25116         btowc: Avoid warning.
25117         * lib/btowc.c: Include <stdlib.h>.
25118         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25119
25120 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25121             Bruno Haible  <bruno@clisp.org>
25122
25123         wchar: Port to NetBSD 1.5.
25124         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25125         * lib/wctype.in.h (WEOF): Likewise.
25126
25127 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25128             Bruno Haible  <bruno@clisp.org>
25129
25130         Port extended stdio to NetBSD 1.5.
25131         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25132         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25133         older.
25134
25135 2010-04-04  Bruno Haible  <bruno@clisp.org>
25136
25137         string: Remove unused substitution.
25138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25139         HAVE_DECL_STRERROR.
25140         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25141
25142 2010-04-04  Bruno Haible  <bruno@clisp.org>
25143
25144         strtod: Avoid a possible C++ test error.
25145         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25146         set REPLACE_STRTOD.
25147
25148 2010-04-04  Bruno Haible  <bruno@clisp.org>
25149
25150         strerror: Update documentation.
25151         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25152
25153 2010-04-04  Bruno Haible  <bruno@clisp.org>
25154
25155         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25156         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25157         _GL_CXXALIAS_SYS_CAST.
25158
25159 2010-04-04  Bruno Haible  <bruno@clisp.org>
25160
25161         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25162         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25163         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25164         REPLACE_FREXPL to 1.
25165         * doc/posix-functions/frexpl.texi: Update documentation.
25166
25167 2010-04-04  Bruno Haible  <bruno@clisp.org>
25168
25169         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25170         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25171
25172 2010-04-04  Bruno Haible  <bruno@clisp.org>
25173
25174         Implement nanosleep for native Windows.
25175         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25176
25177 2010-04-04  Bruno Haible  <bruno@clisp.org>
25178
25179         math: Fix some C++ test errors on Solaris 8.
25180         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25181
25182 2010-04-04  Bruno Haible  <bruno@clisp.org>
25183
25184         math: Fix some C++ test errors on Cygwin.
25185         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25186         truncl): Provide declaration if the system does not have it.
25187         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25188         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25189         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25190         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25191         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25192         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25193         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25194         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25195         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25196         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25197         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25198         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25199         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25200         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25201         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25202         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25204         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25205         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25206         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25207         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25208         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25209
25210 2010-04-04  Bruno Haible  <bruno@clisp.org>
25211
25212         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25213         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25214         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25215         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25216         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25217         * m4/isinf.m4 (gl_ISINF): Likewise.
25218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25219
25220 2010-04-04  Bruno Haible  <bruno@clisp.org>
25221
25222         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25223         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25224
25225 2010-04-04  Bruno Haible  <bruno@clisp.org>
25226
25227         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25228         * modules/tmpfile (configure.ac): Update.
25229
25230         tmpfile: Fix C++ test error on mingw.
25231         * lib/stdio.in.h (tmpfile): New declaration.
25232         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25233         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25234         * modules/tmpfile (Depends-on): Add stdio.
25235         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25236         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25237         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25238         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25239         REPLACE_TMPFILE.
25240         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25241
25242 2010-04-04  Bruno Haible  <bruno@clisp.org>
25243
25244         ioctl: Fix C++ test error on mingw.
25245         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25246         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25247         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25248
25249 2010-04-03  Bruno Haible  <bruno@clisp.org>
25250
25251         wcwidth: Fix C++ test error on mingw.
25252         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25254         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25255
25256 2010-04-03  Bruno Haible  <bruno@clisp.org>
25257
25258         nanosleep: Fix C++ test error on mingw.
25259         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25260         * lib/time.in.h (nanosleep): Use modern idiom.
25261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25262         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25263         REPLACE_NANOSLEEP to 1.
25264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25265         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25266
25267 2010-04-03  Bruno Haible  <bruno@clisp.org>
25268
25269         strptime: Fix C++ test error on mingw.
25270         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25271         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25272         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25273         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25274         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25275         not REPLACE_STRPTIME.
25276         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25277         REPLACE_STRPTIME.
25278
25279 2010-04-03  Bruno Haible  <bruno@clisp.org>
25280
25281         timegm: Fix C++ test error on mingw.
25282         * lib/time.in.h (timegm): Use modern idiom.
25283         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25284         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25285         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25286         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25287
25288 2010-04-03  Bruno Haible  <bruno@clisp.org>
25289
25290         timegm: Assume declaration if function exists.
25291         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25292         if it exists. Don't clobber ac_cv_func_timegm.
25293
25294 2010-04-03  Bruno Haible  <bruno@clisp.org>
25295
25296         time_r: Fix C++ test error on mingw.
25297         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25298         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25299         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25300         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25301         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25302
25303 2010-04-03  Bruno Haible  <bruno@clisp.org>
25304
25305         time_r: Minor updates.
25306         * modules/time_r (Description): Mention the provided functions.
25307         * lib/time_r.c: Don't include <string.h>.
25308         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25309         * doc/posix-functions/localtime_r.texi: Likewise.
25310
25311 2010-04-03  Bruno Haible  <bruno@clisp.org>
25312
25313         time: Fix regression introduced on 2010-03-08.
25314         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25315         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25316
25317 2010-04-03  Jim Meyering  <meyering@redhat.com>
25318
25319         maint.mk: don't silently disable project-specific syntax-check rules
25320         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25321         that they need to convert their project-specific syntax-check rules
25322         to use the new _sc_search_regexp.
25323
25324 2010-04-03  Bruno Haible  <bruno@clisp.org>
25325
25326         fchdir: Fix regression introduced on 2010-03-08.
25327         * lib/unistd.in.h (fchdir): Fix declaration.
25328         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25330         REPLACE_FCHDIR.
25331         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25332         REPLACE_FCHDIR.
25333
25334 2010-04-03  Bruno Haible  <bruno@clisp.org>
25335
25336         getpagesize: Fix C++ test error on mingw.
25337         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25338         system does not declare the function.
25339         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25340         declared.
25341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25342         HAVE_DECL_GETPAGESIZE.
25343         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25344
25345 2010-04-03  Bruno Haible  <bruno@clisp.org>
25346
25347         stdio: Make C++ tests work on mingw.
25348         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25349         does not declare the function.
25350
25351 2010-04-03  Bruno Haible  <bruno@clisp.org>
25352
25353         ftello: Fix C++ test error on mingw.
25354         * lib/stdio.in.h (ftello): Use modern idiom.
25355         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25356         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25357         is missing and that it needs to be replaced.
25358         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25360         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25361
25362 2010-04-03  Bruno Haible  <bruno@clisp.org>
25363
25364         fseeko: Fix C++ test error on mingw.
25365         * lib/stdio.in.h (fseeko): Use modern idiom.
25366         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25367         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25368         is missing and that it needs to be replaced.
25369         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25371         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25372
25373 2010-04-03  Bruno Haible  <bruno@clisp.org>
25374
25375         mkstemp: Fix C++ test error on mingw.
25376         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25377         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25378         function is missing and that it needs to be replaced.
25379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25380         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25381
25382 2010-04-03  Bruno Haible  <bruno@clisp.org>
25383
25384         stpncpy: Fix C++ test error on mingw.
25385         * lib/string.in.h (stpncpy): Use modern idiom.
25386         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25387         function is missing and that it needs to be replaced.
25388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25389         REPLACE_STPNCPY.
25390         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25391
25392 2010-04-03  Bruno Haible  <bruno@clisp.org>
25393
25394         sys_stat: Fix C++ test error on mingw.
25395         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25396         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25397
25398 2010-04-03  Bruno Haible  <bruno@clisp.org>
25399
25400         pty: Update doc.
25401         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25402
25403 2010-04-03  Bruno Haible  <bruno@clisp.org>
25404
25405         unistd: Fix C++ test error on mingw.
25406         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25407
25408 2010-04-03  Bruno Haible  <bruno@clisp.org>
25409
25410         Update doc regarding mingw.
25411         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25412         * doc/glibc-functions/login_tty.texi: Likewise.
25413         * doc/glibc-functions/forkpty.texi: Likewise.
25414
25415 2010-04-03  Bruno Haible  <bruno@clisp.org>
25416
25417         stdlib: Avoid compilation failure of c-strtold on mingw.
25418         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25419
25420 2010-04-03  Bruno Haible  <bruno@clisp.org>
25421
25422         locale: Make C++ tests work on Cygwin and mingw.
25423         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25424         cannot provide the function.
25425         Reported by Simon Josefsson.
25426
25427 2010-04-03  Bruno Haible  <bruno@clisp.org>
25428
25429         localename: Port to MacOS X 10.6.
25430         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25431         memory layout of the locales in MacOS X 10.6 as well.
25432         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25433
25434 2010-04-02  Bruno Haible  <bruno@clisp.org>
25435
25436         gnulib-tool: Ensure that long-running tests are executed last.
25437         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25438         running tests after the one for the other tests.
25439
25440 2010-04-02  Bruno Haible  <bruno@clisp.org>
25441
25442         gnulib-tool: Ensure the tests in the main directory are executed first.
25443         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25444         start with the current directory.
25445
25446 2010-04-02  Bruno Haible  <bruno@clisp.org>
25447
25448         Tests for module 'havelib', moved here from GNU gettext.
25449         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25450         modifications.
25451         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25452         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25453         with modifications.
25454         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25455         modifications.
25456         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25457         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25458         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25459         with modifications.
25460         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25461         with modifications.
25462         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25463         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25464         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25465         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25466         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25467         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25468         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25469         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25470         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25471         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25472         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25473         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25474         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25475         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25476         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25477         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25478         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25479         with modifications.
25480         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25481         with modifications.
25482         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25483         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25484         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25485         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25486         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25487         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25488         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25489         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25490         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25491         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25492         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25493         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25494         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25495         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25496         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25497         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25498         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25499         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25500         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25501         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25502         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25503         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25504         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25505         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25506         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25507         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25508         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25509         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25510         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25511         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25512         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25513         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25514         * tests/havelib/rpathx/rpathx.c: New file, from
25515         gettext/autoconf-lib-link.
25516         * tests/havelib/rpathx/Makefile.am: New file, from
25517         gettext/autoconf-lib-link.
25518         * tests/havelib/rpathx/configure.ac: New file, from
25519         gettext/autoconf-lib-link with modifications.
25520         * tests/havelib/rpathy/rpathy.c: New file, from
25521         gettext/autoconf-lib-link.
25522         * tests/havelib/rpathy/Makefile.am: New file, from
25523         gettext/autoconf-lib-link.
25524         * tests/havelib/rpathy/configure.ac: New file, from
25525         gettext/autoconf-lib-link with modifications.
25526         * tests/havelib/rpathz/rpathz.c: New file, from
25527         gettext/autoconf-lib-link.
25528         * tests/havelib/rpathz/Makefile.am: New file, from
25529         gettext/autoconf-lib-link.
25530         * tests/havelib/rpathz/configure.ac: New file, from
25531         gettext/autoconf-lib-link with modifications.
25532         * tests/havelib/rpathlx/usex.c: New file, from
25533         gettext/autoconf-lib-link.
25534         * tests/havelib/rpathlx/Makefile.am: New file, from
25535         gettext/autoconf-lib-link.
25536         * tests/havelib/rpathlx/configure.ac: New file, from
25537         gettext/autoconf-lib-link with modifications.
25538         * tests/havelib/rpathly/usey.c: New file, from
25539         gettext/autoconf-lib-link.
25540         * tests/havelib/rpathly/Makefile.am: New file, from
25541         gettext/autoconf-lib-link.
25542         * tests/havelib/rpathly/configure.ac: New file, from
25543         gettext/autoconf-lib-link with modifications.
25544         * tests/havelib/rpathlz/usez.c: New file, from
25545         gettext/autoconf-lib-link.
25546         * tests/havelib/rpathlz/Makefile.am: New file, from
25547         gettext/autoconf-lib-link.
25548         * tests/havelib/rpathlz/configure.ac: New file, from
25549         gettext/autoconf-lib-link with modifications.
25550         * tests/havelib/rpathlyx/usey.c: New file, from
25551         gettext/autoconf-lib-link.
25552         * tests/havelib/rpathlyx/Makefile.am: New file, from
25553         gettext/autoconf-lib-link.
25554         * tests/havelib/rpathlyx/configure.ac: New file, from
25555         gettext/autoconf-lib-link with modifications.
25556         * tests/havelib/rpathlzyx/usez.c: New file, from
25557         gettext/autoconf-lib-link.
25558         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25559         gettext/autoconf-lib-link.
25560         * tests/havelib/rpathlzyx/configure.ac: New file, from
25561         gettext/autoconf-lib-link with modifications.
25562         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25563         with modifications.
25564
25565 2010-04-02  Bruno Haible  <bruno@clisp.org>
25566
25567         gnulib-tool: Create distributed built sources also for the tests.
25568         * gnulib-tool (func_create_testdir): Also generate distributed built
25569         sources in the tests directory.
25570
25571 2010-04-02  Bruno Haible  <bruno@clisp.org>
25572
25573         gnulib-tool: Obey user's environment variables.
25574         * gnulib-tool (func_create_testdir): When creating built sources,
25575         respect the environment variables for autoconf, automake, etc. given by
25576         the user.
25577
25578 2010-04-02  Bruno Haible  <bruno@clisp.org>
25579
25580         gnulib-tool: Provide the value of --m4-base to modules.
25581         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25582         of gl_m4_base.
25583
25584 2010-04-02  Eric Blake  <eblake@redhat.com>
25585
25586         maint.mk: fix some fallout
25587         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25588         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25589
25590 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25591
25592         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25593         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25594         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25595         (sc_cast_of_x_alloc_return_value): Likewise.
25596         (sc_cast_of_alloca_return_value): Likewise.
25597         (sc_space_tab): Likewise.
25598         (sc_prohibit_atoi_atof): Likewise.
25599         (sc_prohibit_magic_number_exit): Likewise.
25600         (sc_error_exit_success): Likewise.
25601         (sc_file_system): Likewise.
25602         (sc_prohibit_have_config_h): Likewise.
25603         (sc_require_config_h): Likewise.
25604         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25605         (sc_obsolete_symbols): Likewise.
25606         (sc_changelog): Likewise.
25607         (sc_program_name): Likewise.
25608         (sc_the_the): Likewise.
25609         (sc_trailing_blank): Likewise.
25610         (sc_two_space_separator_in_usage): Likewise.
25611         (sc_useless_cpp_parens): Likewise.
25612         (sc_GPL_version): Likewise.
25613         (sc_GFDL_version): Likewise.
25614         (sc_texinfo_acronym): Likewise.
25615         (sc_prohibit_cvs_keyword): Likewise.
25616         (sc_prohibit_stat_st_blocks): Likewise.
25617         (sc_prohibit_S_IS_definition): Likewise.
25618         (sc_redundant_const): Likewise.
25619         (sc_makefile_TAB_only_indentation): Likewise.
25620         (sc_m4_quote_check): Likewise.
25621         (sc_makefile_path_separator_check): Likewise.
25622         (sc_copyright_check): Likewise.
25623         (sc_Wundef_boolean): Likewise.
25624         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25625
25626         maint.mk: match 0 or more whitespace-before-function-call '('
25627         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25628         that have zero or two-and-more spaces between the function name
25629         and the open parenthesis.
25630         (sc_error_message_warn_fatal): Likewise.
25631         (sc_error_message_uppercase): Likewise.
25632         (sc_error_message_period): Likewise.
25633
25634 2010-03-31  Eric Blake  <eblake@redhat.com>
25635
25636         maint.mk: check for [ as well as test
25637         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25638         Based on a libvirt report by Matthias Bolte.
25639
25640         gnumakefile: don't squelch _version output
25641         * top/GNUmakefile (_version): Create one-shot dependency rather
25642         than using $(shell) when version must be regenerated.
25643         (_autoreconf): Run verbosely, by default.
25644
25645         sys_time: avoid compiler warnings
25646         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25647         unconditional, fixing regression from 2010-03-29.
25648         Reported by Simon Josefsson.
25649
25650 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25651
25652         maint.mk: s/_header_without_use/_sc_header_without_use/
25653         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25654         (sc_prohibit_assert_without_use): Use the new name.
25655         (sc_prohibit_close_stream_without_use): Likewise.
25656         (sc_prohibit_getopt_without_use): Likewise.
25657         (sc_prohibit_quotearg_without_use): Likewise.
25658         (sc_prohibit_quote_without_use): Likewise.
25659         (sc_prohibit_long_options_without_use): Likewise.
25660         (sc_prohibit_inttostr_without_use): Likewise.
25661         (sc_prohibit_ignore_value_without_use): Likewise.
25662         (sc_prohibit_error_without_use): Likewise.
25663         (sc_prohibit_xalloc_without_use): Likewise.
25664         (sc_prohibit_hash_without_use): Likewise.
25665         (sc_prohibit_hash_pjw_without_use): Likewise.
25666         (sc_prohibit_safe_read_without_use): Likewise.
25667         (sc_prohibit_argmatch_without_use): Likewise.
25668         (sc_prohibit_canonicalize_without_use): Likewise.
25669         (sc_prohibit_root_dev_ino_without_use): Likewise.
25670         (sc_prohibit_openat_without_use): Likewise.
25671         (sc_prohibit_c_ctype_without_use): Likewise.
25672         (sc_prohibit_signal_without_use): Likewise.
25673         (sc_prohibit_intprops_without_use): Likewise.
25674
25675 2010-03-30  Eric Blake  <eblake@redhat.com>
25676
25677         maint: improve module indicators
25678         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25679         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25680         columns, and avoid extra macro expansion.
25681
25682         fdopendir: work around FreeBSD bug
25683         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25684         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25685         * modules/dirent (Makefile.am): Substitute it.
25686         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25687         declaration.
25688         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25689         fix.
25690         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25691
25692 2010-03-29  Bruno Haible  <bruno@clisp.org>
25693
25694         Emit #pragma system_header after the inclusion guard, not before.
25695         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25696         guard that spans the entire file, not before. This enables an
25697         optimization in GCC's preprocessor.
25698         * lib/ctype.in.h: Likewise.
25699         * lib/dirent.in.h: Likewise.
25700         * lib/errno.in.h: Likewise.
25701         * lib/float.in.h: Likewise.
25702         * lib/getopt.in.h: Likewise.
25703         * lib/iconv.in.h: Likewise.
25704         * lib/langinfo.in.h: Likewise.
25705         * lib/locale.in.h: Likewise.
25706         * lib/math.in.h: Likewise.
25707         * lib/netdb.in.h: Likewise.
25708         * lib/netinet_in.in.h: Likewise.
25709         * lib/pty.in.h: Likewise.
25710         * lib/sched.in.h: Likewise.
25711         * lib/se-selinux.in.h: Likewise.
25712         * lib/search.in.h: Likewise.
25713         * lib/spawn.in.h: Likewise.
25714         * lib/stdarg.in.h: Likewise.
25715         * lib/stdint.in.h: Likewise.
25716         * lib/string.in.h: Likewise.
25717         * lib/strings.in.h: Likewise.
25718         * lib/sys_file.in.h: Likewise.
25719         * lib/sys_ioctl.in.h: Likewise.
25720         * lib/sys_time.in.h: Likewise.
25721         * lib/sys_times.in.h: Likewise.
25722         * lib/sys_utsname.in.h: Likewise.
25723         * lib/sys_wait.in.h: Likewise.
25724         * lib/sysexits.in.h: Likewise.
25725         * lib/wctype.in.h: Likewise.
25726
25727 2010-03-28  James Youngman  <jay@gnu.org>
25728
25729         save-cwd: don't leak a file descriptor when the caller execs.
25730         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25731         saved file descriptor.
25732         * modules/save-cwd (Depends-on): Depend on cloexec.
25733
25734 2010-03-29  Bruno Haible  <bruno@clisp.org>
25735
25736         Remove vestiges of fts-lgpl module.
25737         * lib/fts_.h: Assume GNULIB_FTS is 1.
25738         * lib/fts.c: Likewise.
25739         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25740
25741 2010-03-28  Bruno Haible  <bruno@clisp.org>
25742
25743         Fix definition of tests witness macro.
25744         * gnulib-tool (func_import): Fix definition of witness macro.
25745
25746 2010-03-28  Bruno Haible  <bruno@clisp.org>
25747
25748         Fix ioctl's protoype on glibc systems.
25749         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25750         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25751         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25752         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25753         signature. If not, arrange to replace the ioctl function.
25754         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25755         REPLACE_IOCTL.
25756         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25757         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25758         Reported by Ludovic Courtès <ludo@gnu.org>.
25759
25760 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25761
25762         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25763         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25764         made it so grep -r --include=GLOB* ... did not work.
25765
25766 2010-03-26  Jim Meyering  <meyering@redhat.com>
25767             Eric Blake  <eblake@redhat.com>
25768
25769         maint.mk: prohibit use of test's -o and -a operators
25770         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25771
25772 2010-03-28  Bruno Haible  <bruno@clisp.org>
25773
25774         Remove unused GNULIB_XYZ macro definitions.
25775         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25776         invocation.
25777
25778 2010-03-28  Bruno Haible  <bruno@clisp.org>
25779
25780         Mark privileged tests modules.
25781         * modules/idpriv-drop-tests (Status): New section.
25782         * modules/idpriv-droptemp-tests (Status): New section.
25783
25784 2010-03-28  Bruno Haible  <bruno@clisp.org>
25785
25786         Split C++ tests into separate tests modules.
25787         * modules/dirent-c++-tests: New file, extracted from
25788         modules/dirent-tests.
25789         * modules/dirent-tests: Depend on it.
25790         * modules/fcntl-h-c++-tests: New file, extracted from
25791         modules/fcntl-h-tests.
25792         * modules/fcntl-h-tests: Depend on it.
25793         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25794         * modules/glob-tests: Depend on it.
25795         * modules/iconv-h-c++-tests: New file, extracted from
25796         modules/iconv-h-tests.
25797         * modules/iconv-h-tests: Depend on it.
25798         * modules/langinfo-c++-tests: New file, extracted from
25799         modules/langinfo-tests.
25800         * modules/langinfo-tests: Depend on it.
25801         * modules/locale-c++-tests: New file, extracted from
25802         modules/locale-tests.
25803         * modules/locale-tests: Depend on it.
25804         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25805         * modules/math-tests: Depend on it.
25806         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25807         * modules/pty-tests: Depend on it.
25808         * modules/search-c++-tests: New file, extracted from
25809         modules/search-tests.
25810         * modules/search-tests: Depend on it.
25811         * modules/signal-c++-tests: New file, extracted from
25812         modules/signal-tests.
25813         * modules/signal-tests: Depend on it.
25814         * modules/spawn-c++-tests: New file, extracted from
25815         modules/spawn-tests.
25816         * modules/spawn-tests: Depend on it.
25817         * modules/stdio-c++-tests: New file, extracted from
25818         modules/stdio-tests.
25819         * modules/stdio-tests: Depend on it.
25820         * modules/stdlib-c++-tests: New file, extracted from
25821         modules/stdlib-tests.
25822         * modules/stdlib-tests: Depend on it.
25823         * modules/string-c++-tests: New file, extracted from
25824         modules/string-tests.
25825         * modules/string-tests: Depend on it.
25826         * modules/sys_ioctl-c++-tests: New file, extracted from
25827         modules/sys_ioctl-tests.
25828         * modules/sys_ioctl-tests: Depend on it.
25829         * modules/sys_select-c++-tests: New file, extracted from
25830         modules/sys_select-tests.
25831         * modules/sys_select-tests: Depend on it.
25832         * modules/sys_socket-c++-tests: New file, extracted from
25833         modules/sys_socket-tests.
25834         * modules/sys_socket-tests: Depend on it.
25835         * modules/sys_stat-c++-tests: New file, extracted from
25836         modules/sys_stat-tests.
25837         * modules/sys_stat-tests: Depend on it.
25838         * modules/sys_time-c++-tests: New file, extracted from
25839         modules/sys_time-tests.
25840         * modules/sys_time-tests: Depend on it.
25841         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25842         * modules/time-tests: Depend on it.
25843         * modules/unistd-c++-tests: New file, extracted from
25844         modules/unistd-tests.
25845         * modules/unistd-tests: Depend on it.
25846         * modules/wchar-c++-tests: New file, extracted from
25847         modules/wchar-tests.
25848         * modules/wchar-tests: Depend on it.
25849         * modules/wctype-c++-tests: New file, extracted from
25850         modules/wctype-tests.
25851         * modules/wctype-tests: Depend on it.
25852         Reported by Simon Josefsson.
25853
25854 2010-03-28  Bruno Haible  <bruno@clisp.org>
25855
25856         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25857         * gnulib-tool (func_exists_module): New function, extracted from
25858         func_verify_module.
25859         (func_verify_module): Use it.
25860         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25861         'foo' only if 'foo' exists.
25862         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25863         module.
25864
25865 2010-03-28  Bruno Haible  <bruno@clisp.org>
25866
25867         gnulib-tool: Add support for special categories of tests.
25868         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25869         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25870         (func_usage): Document them.
25871         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25872         inc_unportable_tests, inc_all_tests): New variables.
25873         (func_acceptable): Consider these variables.
25874         (func_modules_transitive_closure): Make it work when the 'Status' field
25875         consists of multiple words.
25876         (func_import): Store and restore the values of inc_cxx_tests,
25877         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25878         inc_all_tests in gnulib-comp.m4.
25879         (func_create_testdir): Set inc_all_tests to true.
25880         * doc/gnulib.texi (Extra tests modules): New section.
25881         Suggested by Jim Meyering.
25882
25883 2010-03-28  Bruno Haible  <bruno@clisp.org>
25884
25885         ansi-c++-opt: Allow turning off the C++ build by default.
25886         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25887         gl_CXX_CHOICE_DEFAULT_NO is defined.
25888         Requested by Eric Blake.
25889
25890 2010-03-28  Bruno Haible  <bruno@clisp.org>
25891
25892         unistd: Avoid #define replacements in C++ mode.
25893         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25894         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25895         setsockopt, shutdown, select): In C++, attach a warning to the function
25896         if possible, rather than #defining the symbol to a dysfunctional alias.
25897         Reported by John W. Eaton <jwe@gnu.org>.
25898
25899 2010-03-28  Bruno Haible  <bruno@clisp.org>
25900
25901         Fix link errors on mingw.
25902         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25903         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25904         $(LIBSOCKET).
25905         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25906         $(LIBSOCKET).
25907
25908 2010-03-28  Bruno Haible  <bruno@clisp.org>
25909             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25910
25911         lib-ignore: Determine different options for different compilers.
25912         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25913         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25914         Add comments.
25915         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25916         * NEWS: Mention the change.
25917
25918 2010-03-27  Bruno Haible  <bruno@clisp.org>
25919
25920         Remove unused GNULIB_XYZ macro definitions.
25921         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25922         * modules/fseek (configure.ac): Likewise.
25923         * modules/ioctl (configure.ac): Likewise.
25924         * modules/open (configure.ac): Likewise.
25925         * modules/stdlib-safer (configure.ac): Likewise.
25926
25927 2010-03-27  Bruno Haible  <bruno@clisp.org>
25928
25929         Add a remark about certain modules.
25930         * modules/malloc (Comment): New section.
25931         * modules/realloc (Comment): Likewise.
25932         * modules/sigpipe (Comment): Likewise.
25933
25934 2010-03-27  Bruno Haible  <bruno@clisp.org>
25935
25936         Resolve conflict between the two kinds of module indicators.
25937         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25938         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25939         * modules/canonicalize (configure.ac): Invoke
25940         gl_MODULE_INDICATOR_FOR_TESTS.
25941         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25942         GNULIB_XYZ.
25943         * tests/test-dirent-c++.cc: Likewise.
25944         * tests/test-dirent-safer.c: Likewise.
25945         * tests/test-dup2.c: Likewise.
25946         * tests/test-fchdir.c: Likewise.
25947         * tests/test-fcntl-h-c++.cc: Likewise.
25948         * tests/test-getopt.c: Likewise.
25949         * tests/test-getopt.h: Likewise.
25950         * tests/test-langinfo-c++.cc: Likewise.
25951         * tests/test-locale-c++.cc: Likewise.
25952         * tests/test-math-c++.cc: Likewise.
25953         * tests/test-pty-c++.cc: Likewise.
25954         * tests/test-search-c++.cc: Likewise.
25955         * tests/test-signal-c++.cc: Likewise.
25956         * tests/test-spawn-c++.cc: Likewise.
25957         * tests/test-stdio-c++.cc: Likewise.
25958         * tests/test-stdlib-c++.cc: Likewise.
25959         * tests/test-string-c++.cc: Likewise.
25960         * tests/test-sys_ioctl-c++.cc: Likewise.
25961         * tests/test-sys_select-c++.cc: Likewise.
25962         * tests/test-sys_socket-c++.cc: Likewise.
25963         * tests/test-sys_stat-c++.cc: Likewise.
25964         * tests/test-sys_time-c++.cc: Likewise.
25965         * tests/test-time-c++.cc: Likewise.
25966         * tests/test-unistd-c++.cc: Likewise.
25967         * tests/test-wchar-c++.cc: Likewise.
25968         * tests/uninorm/test-u8-nfc.c: Likewise.
25969         * tests/uninorm/test-u8-nfd.c: Likewise.
25970         * tests/uninorm/test-u8-nfkc.c: Likewise.
25971         * tests/uninorm/test-u8-nfkd.c: Likewise.
25972         * tests/uninorm/test-u16-nfc.c: Likewise.
25973         * tests/uninorm/test-u16-nfd.c: Likewise.
25974         * tests/uninorm/test-u16-nfkc.c: Likewise.
25975         * tests/uninorm/test-u16-nfkd.c: Likewise.
25976         * tests/uninorm/test-u32-nfc.c: Likewise.
25977         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25978         * tests/uninorm/test-u32-nfd.c: Likewise.
25979         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25980         * tests/uninorm/test-u32-nfkc.c: Likewise.
25981         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25982         * tests/uninorm/test-u32-nfkd.c: Likewise.
25983         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25984         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25985
25986 2010-03-27  Bruno Haible  <bruno@clisp.org>
25987
25988         Distinguish two kinds of module indicators.
25989         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25990         gl_MODULE_INDICATOR.
25991         (gl_MODULE_INDICATOR): New macro.
25992         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25993         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25994         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25995         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25996         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25997         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25998         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25999         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26000         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26001         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26002         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26003         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26004         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26006         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26007         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26008         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26009         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26010         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26011         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26012         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26013         * modules/cloexec (configure.ac): Likewise.
26014         * modules/getopt-gnu (configure.ac): Likewise.
26015         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26016         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26017         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26018         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26019
26020 2010-03-27  Bruno Haible  <bruno@clisp.org>
26021
26022         New module description field 'Comment'.
26023         * gnulib-tool: New option --extract-comment.
26024         (func_usage): Document it.
26025         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26026         (func_get_comment): New function.
26027         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26028
26029 2010-03-27  Bruno Haible  <bruno@clisp.org>
26030
26031         Addendum to 2010-02-07 commit.
26032         * gnulib-tool (func_usage): Document --extract-applicability option.
26033
26034 2010-03-27  Bruno Haible  <bruno@clisp.org>
26035
26036         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26037         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26038         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26039         rather than link errors.
26040
26041 2010-03-27  Bruno Haible  <bruno@clisp.org>
26042
26043         Avoid side effects from tests-related modules on the compilation of lib.
26044         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26045         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26046         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26047         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26048         macro.
26049         (func_import): Define a witness macro. Assign it a value that depends
26050         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26051         tests-related modules.
26052         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26053         Reported by Jim Meyering.
26054
26055 2010-03-27  Bruno Haible  <bruno@clisp.org>
26056
26057         Factorize common .m4 code.
26058         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26059         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26060         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26061         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26062         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26063         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26064         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26065         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26066         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26067         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26068         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26069         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26070         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26071         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26072         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26073         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26074         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26075         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26076         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26077         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26078         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26079         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26080         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26081         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26082         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26083         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26084         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26085         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26086         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26087         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26088         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26089         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26090
26091 2010-03-27  Bruno Haible  <bruno@clisp.org>
26092
26093         Fix a compilation error on Cygwin with g++ >= 4.3.
26094         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26095         if it is undefined or if we alias it to chmod.
26096         (lstat): Don't warn about the use of this function if it is undefined
26097         or if we alias it to stat.
26098         Reported by Simon Josefsson.
26099
26100 2010-03-27  Bruno Haible  <bruno@clisp.org>
26101
26102         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26103         * modules/getlogin (configure.ac): Update.
26104
26105         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26106         * modules/getlogin_r (configure.ac): Update.
26107
26108         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26110         * modules/inet_ntop (configure.ac): Update.
26111
26112         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26113         * modules/inet_pton (configure.ac): Update.
26114
26115         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26116         * modules/mbslen (configure.ac): Update.
26117
26118         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26119         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26120         * modules/forkpty (configure.ac): Update.
26121         * modules/openpty (configure.ac): Update.
26122
26123 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26124
26125         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26126         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26127
26128 2010-03-25  Eric Blake  <eblake@redhat.com>
26129
26130         maint: use pragma consistently across replacement headers
26131         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26132         * lib/dirent.in.h (system_header): Likewise.
26133         * lib/errno.in.h (system_header): Likewise.
26134         * lib/float.in.h (system_header): Likewise.
26135         * lib/getopt.in.h (system_header): Likewise.
26136         * lib/iconv.in.h (system_header): Likewise.
26137         * lib/inttypes.in.h (system_header): Likewise.
26138         * lib/langinfo.in.h (system_header): Likewise.
26139         * lib/locale.in.h (system_header): Likewise.
26140         * lib/math.in.h (system_header): Likewise.
26141         * lib/netdb.in.h (system_header): Likewise.
26142         * lib/netinet_in.in.h (system_header): Likewise.
26143         * lib/pty.in.h (system_header): Likewise.
26144         * lib/sched.in.h (system_header): Likewise.
26145         * lib/se-selinux.in.h (system_header): Likewise.
26146         * lib/search.in.h (system_header): Likewise.
26147         * lib/spawn.in.h (system_header): Likewise.
26148         * lib/stdarg.in.h (system_header): Likewise.
26149         * lib/stdint.in.h (system_header): Likewise.
26150         * lib/string.in.h (system_header): Likewise.
26151         * lib/strings.in.h (system_header): Likewise.
26152         * lib/sys_file.in.h (system_header): Likewise.
26153         * lib/sys_ioctl.in.h (system_header): Likewise.
26154         * lib/sys_socket.in.h (system_header): Likewise.
26155         * lib/sys_times.in.h (system_header): Likewise.
26156         * lib/sys_utsname.in.h (system_header): Likewise.
26157         * lib/sys_wait.in.h (system_header): Likewise.
26158         * lib/sysexits.in.h (system_header): Likewise.
26159         * lib/unistd.in.h (system_header): Likewise.
26160         * lib/wctype.in.h (system_header): Likewise.
26161
26162         arpa/inet: fix mingw compilation warning
26163         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26164         Reported by Matthew Bolte.
26165
26166 2010-03-25  Bruno Haible  <bruno@clisp.org>
26167
26168         Avoid collision between gnulib wrapper and libintl wrapper.
26169         * lib/printf.c (printf): Don't define if a printf wrapper is already
26170         defined in intl/printf.c.
26171         Reported by Michel Boaventura <michel@michelboaventura.com>.
26172
26173 2010-03-25  Bruno Haible  <bruno@clisp.org>
26174
26175         Use ANSI C.
26176         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26177
26178 2010-03-25  Bruno Haible  <bruno@clisp.org>
26179
26180         Minor formatting changes.
26181         * lib/acosl.c: Insert space before function argument list.
26182         * lib/argz.c: Likewise.
26183         * lib/asinl.c: Likewise.
26184         * lib/expl.c: Likewise.
26185         * lib/gen-uni-tables.c: Likewise.
26186         * lib/gettext.h: Likewise.
26187         * lib/glthread/lock.h: Likewise.
26188         * lib/tanl.c: Likewise.
26189         * lib/uniname/uniname.c: Likewise.
26190         * tests/test-idpriv-drop.c: Likewise.
26191         * tests/test-idpriv-droptemp.c: Likewise.
26192         * tests/test-lock.c: Likewise.
26193         * tests/test-tls.c: Likewise.
26194         * lib/argp-help.c: Insert space before function-like macro argument
26195         list.
26196         * lib/memcmp.c: Likewise.
26197         * tests/test-base64.c: Likewise.
26198         * lib/localename.c: Insert space before sizeof's argument list.
26199         * lib/safe-alloc.h: Likewise.
26200         * lib/file-set.h: Insert space before macro argument list.
26201         * tests/test-argp.c: Likewise.
26202         * lib/argp-namefrob.h: Insert space before function parameter list.
26203         * lib/getaddrinfo.c: Likewise.
26204         * lib/netdb.in.h: Likewise.
26205         * lib/parse-duration.h: Likewise.
26206         * lib/parse-duration.c: Likewise.
26207         * lib/poll.c: Likewise.
26208         * lib/select.c: Likewise.
26209         * lib/trim.h: Likewise.
26210         * tests/test-usleep.c: Likewise.
26211         * lib/ldexpl.c: Insert space before function parameter list and before
26212         function argument list.
26213         * lib/logl.c: Likewise.
26214         * lib/sqrtl.c: Likewise.
26215         * lib/trim.c: Likewise.
26216         * lib/cosl.c: Use GNU style indentation. Insert space before function
26217         argument list.
26218         * lib/sinl.c: Likewise.
26219         * lib/tsearch.c: Insert space after 'for'.
26220         Reported by Jim Meyering.
26221
26222 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26223
26224         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26225         config header before grepping, as it's not present before
26226         autoreconf/configure are run.  Reported by Simon Josefsson.
26227
26228 2010-03-23  Bruno Haible  <bruno@clisp.org>
26229
26230         pt_chown: Make it work with automake < 1.11.
26231         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26232         Reported by Simon Josefsson.
26233
26234 2010-03-23  Bruno Haible  <bruno@clisp.org>
26235
26236         pt_chown: Don't depend on GPLed modules.
26237         * lib/pt_chown.c: Don't include idpriv.h.
26238         (main): Don't drop privileges.
26239         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26240         Reported by Simon Josefsson.
26241
26242 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26243
26244         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26245         suggestions from karl@freefriends.org (Karl Berry).
26246
26247 2010-03-22  Eric Blake  <eblake@redhat.com>
26248
26249         gethostname: further tweaks
26250         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26251         are overriding gethostname.
26252         Suggested by Bruno Haible.
26253
26254 2010-03-21  Bruno Haible  <bruno@clisp.org>
26255
26256         Fix comments.
26257         * lib/forkpty.c (rpl_forkpty): Fix comment.
26258         * lib/openpty.c (rpl_openpty): Likewise.
26259         Reported by Eric Blake.
26260
26261 2010-03-22  Eric Blake  <eblake@redhat.com>
26262
26263         gethostname: fix build on mingw
26264         * lib/unistd.in.h (includes): Work around fact that mingw
26265         <winsock2.h> re-includes <unistd.h>, by avoiding any
26266         redeclarations if we are being included by <winsock2.h>.
26267         Reported by Matthias Bolte.
26268
26269 2010-03-21  Bruno Haible  <bruno@clisp.org>
26270
26271         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26272         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26273         modifications.
26274         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26275         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26276         provide the replacement.
26277         * modules/forkpty (Depends-on): Add openpty, login_tty.
26278         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26279         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26280         * doc/glibc-functions/forkpty.texi: More supported platforms.
26281         * config/srclist.txt: Add forkpty.c (commented).
26282
26283 2010-03-21  Bruno Haible  <bruno@clisp.org>
26284
26285         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26286         (Makefile.am): Verify that PTY_LIB is defined.
26287
26288         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26289
26290 2010-03-21  Bruno Haible  <bruno@clisp.org>
26291
26292         Tests for module 'login_tty'.
26293         * modules/login_tty-tests: New file.
26294         * tests/test-login_tty.c: New file.
26295
26296         New module 'login_tty'.
26297         * lib/login_tty.c: New file.
26298         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26299         * modules/login_tty: New file.
26300         * doc/glibc-functions/login_tty.texi: Mention the new module.
26301
26302 2010-03-21  Bruno Haible  <bruno@clisp.org>
26303
26304         login_tty: Documentation.
26305         * doc/glibc-functions/login_tty.texi: New file.
26306         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26307
26308 2010-03-21  Bruno Haible  <bruno@clisp.org>
26309
26310         pty: Consistent macro naming.
26311         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26312         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26313         * modules/pty (configure.ac): Update.
26314
26315 2010-03-21  Bruno Haible  <bruno@clisp.org>
26316
26317         Tests for openpty: Make stricter.
26318         * tests/test-openpty.c (main): Add test of canonical processing and
26319         erase.
26320         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26321
26322         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26323         * lib/openpty.c (openpty): New replacement function.
26324         * lib/pty.in.h: Include <termios.h>.
26325         (openpty): Update declaration. Add comments.
26326         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26327         is not declared, arrange to provide the replacement. Check for _getpty
26328         and posix_openpt.
26329         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26330         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26331         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26332         * modules/pty-tests (test_pty_c___LDADD): New variable.
26333         * doc/glibc-functions/openpty.texi: More supported platforms.
26334
26335 2010-03-21  Bruno Haible  <bruno@clisp.org>
26336
26337         setenv: Tweaks.
26338         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26339         the test program.
26340         * doc/posix-functions/setenv.texi: Update platforms list.
26341
26342 2010-03-21  Bruno Haible  <bruno@clisp.org>
26343
26344         New module 'unlockpt'.
26345         * lib/unlockpt.c: New file, from glibc with modifications.
26346         * m4/unlockpt.m4: New file.
26347         * modules/unlockpt: New file.
26348         * lib/stdlib.in.h (unlockpt): New declaration.
26349         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26350         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26351         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26352         HAVE_UNLOCKPT.
26353         * doc/posix-functions/unlockpt.texi: Mention the new module.
26354         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26355         * config/srclist.txt: Add unlockpt.c (commented).
26356
26357 2010-03-21  Jim Meyering  <meyering@redhat.com>
26358
26359         maint.mk: prohibit inclusion of "intprops.h" without use
26360         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26361
26362 2010-03-21  Bruno Haible  <bruno@clisp.org>
26363
26364         New module 'grantpt'.
26365         * lib/grantpt.c: New file, from glibc with modifications.
26366         * m4/grantpt.m4: New file.
26367         * modules/grantpt: New file.
26368         * lib/stdlib.in.h (grantpt): New declaration.
26369         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26370         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26371         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26372         HAVE_GRANTPT.
26373         * doc/posix-functions/grantpt.texi: Mention the new module.
26374         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26375         * config/srclist.txt: Add grantpt.c (commented).
26376
26377 2010-03-21  Bruno Haible  <bruno@clisp.org>
26378
26379         New module 'pt_chown'.
26380         * lib/pt_chown.c: New file, from glibc with modifications.
26381         * lib/pty-private.h: New file, from glibc with modifications.
26382         * modules/pt_chown: New file.
26383         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26384
26385 2010-03-21  Bruno Haible  <bruno@clisp.org>
26386
26387         Tests for module 'ptsname'.
26388         * modules/ptsname-tests: New file.
26389         * tests/test-ptsname.c: New file.
26390
26391         New module 'ptsname'.
26392         * lib/ptsname.c: New file, from glibc with modifications.
26393         * m4/ptsname.m4: New file.
26394         * modules/ptsname: New file.
26395         * lib/stdlib.in.h (ptsname): New declaration.
26396         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26397         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26398         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26399         HAVE_PTSNAME.
26400         * doc/posix-functions/ptsname.texi: Mention the new module.
26401         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26402         * config/srclist.txt: Add ptsname.c (commented).
26403
26404 2010-03-21  Bruno Haible  <bruno@clisp.org>
26405
26406         Tests for module 'ttyname_r'.
26407         * modules/ttyname_r-tests: New file.
26408         * tests/test-ttyname_r.c: New file.
26409
26410         New module 'ttyname_r'.
26411         * lib/ttyname_r.c: New file.
26412         * m4/ttyname_r.m4: New file.
26413         * modules/ttyname_r: New file.
26414         * lib/unistd.in.h (ttyname_r): New declaration.
26415         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26416         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26417         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26418         HAVE_TTYNAME_R.
26419         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26420         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26421
26422 2010-03-20  Bruno Haible  <bruno@clisp.org>
26423
26424         signal: Undefine macro definitions in C++ mode.
26425         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26426         sigfillset): Undefine macro definitions from the system header in C++
26427         mode.
26428         Reported by John W. Eaton <jwe@gnu.org>.
26429
26430 2010-03-20  Bruno Haible  <bruno@clisp.org>
26431
26432         Ensure no #include statements inside extern "C" { ... }.
26433         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26434         contain #include statements.
26435         * lib/time.in.h: Likewise.
26436
26437 2010-03-20  Bruno Haible  <bruno@clisp.org>
26438
26439         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26440         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26441         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26442         Reported by John W. Eaton <jwe@gnu.org>.
26443
26444 2010-03-20  Bruno Haible  <bruno@clisp.org>
26445
26446         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26447         Reported by Jim Meyering.
26448
26449 2010-03-20  Bruno Haible  <bruno@clisp.org>
26450
26451         pipe: Set errno upon failure.
26452         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26453         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26454         errno value in error message.
26455
26456 2010-03-20  Bruno Haible  <bruno@clisp.org>
26457             Jim Meyering  <meyering@redhat.com>
26458
26459         lchown: Avoid "unused variable" warning.
26460         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26461
26462 2010-03-20  Bruno Haible  <bruno@clisp.org>
26463
26464         Work around unlink() bug on MacOS X 10.5.6.
26465         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26466         attempting to unlink a parent directory.
26467         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26468         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26469         activate for the replacement function.
26470         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26471
26472 2010-03-20  Bruno Haible  <bruno@clisp.org>
26473
26474         Fix link errors on Solaris 8.
26475         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26476         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26477
26478 2010-03-19  Jim Meyering  <meyering@redhat.com>
26479
26480         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26481         The _LIBC implementation of build_range_exp correctly honors the
26482         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26483         However, the non-_LIBC implementation would ignore that syntax-bit
26484         flag and return REG_ERANGE unconditionally.
26485         This change makes it honor that flag.
26486         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26487         Make two pointer parameters "const".
26488         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26489         (parse_bracket_exp): Update caller.
26490
26491         regex.m4: correct the reversed range endpoint ([b-a]) test
26492         * m4/regex.m4: When requiring that [b-a] evoke failure,
26493         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26494         test pass once again for x86-based systems.
26495
26496 2010-03-19  Bruno Haible  <bruno@clisp.org>
26497
26498         scandir: Fix link error on Solaris 8.
26499         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26500         macros.
26501
26502 2010-03-19  Bruno Haible  <bruno@clisp.org>
26503
26504         getusershell: Fix documentation.
26505         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26506         module.
26507         * doc/glibc-functions/setusershell.texi: Likewise.
26508
26509         getusershell: Provide declaration, missing on Solaris 9.
26510         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26511         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26512         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26513         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26515         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26516         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26517         HAVE_GETUSERSHELL.
26518         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26519
26520 2010-03-19  Bruno Haible  <bruno@clisp.org>
26521
26522         wctype: Provide iswblank function.
26523         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26524         exists and is fine.
26525         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26526         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26527         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26528         * doc/posix-functions/iswblank.texi: Update.
26529
26530 2010-03-19  Bruno Haible  <bruno@clisp.org>
26531
26532         Tests of module 'pty' in C++ mode.
26533         * modules/pty-tests: New file.
26534         * tests/test-pty-c++.cc: New file.
26535         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26536
26537 2010-03-19  Eric Blake  <eblake@redhat.com>
26538
26539         logb: fix documentation
26540         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26541         1.5 declaration bug.
26542
26543         forkpty, openpty: prefer glibc's const-safe prototype
26544         * lib/forkpty.c (rpl_forkpty): New file.
26545         * lib/openpty.c (rpl_openpty): Likewise.
26546         * modules/forkpty (Files): Distribute it.
26547         * modules/openpty (Files): Likewise.
26548         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26549         check...
26550         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26551         replacement for for non-const BSD signature.
26552         * modules/pty (Makefile.am): Substitute witnesses.
26553         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26554         * tests/test-forkpty.c: Update signature check.
26555         * tests/test-openpty.c: Likewise.
26556         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26557         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26558
26559         forkpty, openpty: split functions into new modules
26560         * modules/pty (Makefile.am): Substitute new witnesses.
26561         (Libraries): Move library detection...
26562         * modules/forkpty: ...into new module.
26563         * modules/openpty: Another new module.
26564         * modules/pty-tests: Rename and split...
26565         * modules/forkpty-tests: ...to this...
26566         * modules/openpty-tests: ...and this.
26567         * tests/test-pty.c: Rename and split...
26568         * tests/test-forkpty.c: ...to this...
26569         * tests/test-openpty.c: ...and this.
26570         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26571         (gl_PTY): Split library searching...
26572         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26573         (gl_FORKPTY, gl_OPENPTY): New macros.
26574         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26575         * NEWS: Mention the split.
26576         * MODULES.html.sh (Misc): Document the modules.
26577         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26578         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26579
26580         pty: improve replacement header
26581         * lib/pty.in.h: New file.
26582         * modules/pty (Files): Ship it.
26583         (Makefile.am): Always build replacement.
26584         * m4/pty.m4: Rename...
26585         * m4/pty_h.m4: ...to this.
26586         (gl_PTY): Modernize setting of witness macros; update check of
26587         forkpty to take proper advantage of cache.
26588         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26589
26590         getopt: avoid compiler warning
26591         * lib/getopt.c (attribute_hidden): Remove unused macro.
26592
26593 2010-03-18  Bruno Haible  <bruno@clisp.org>
26594
26595         Fix link errors on Solaris 8.
26596         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26597         * modules/search-tests (test_search_c___LDADD): Likewise.
26598         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26599         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26600         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26601         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26602         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26603         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26604         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26605
26606 2010-03-18  Bruno Haible  <bruno@clisp.org>
26607
26608         Fix bug introduced on 2010-03-14.
26609         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26610         (gl_SPAWN_H): Require it.
26611         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26612         Reported by Simon Josefsson.
26613
26614 2010-03-18  Bruno Haible  <bruno@clisp.org>
26615
26616         Fix typo introduced on 2009-12-31.
26617         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26618         posix_spawn_file_actions_adddup2.
26619
26620 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26621         and Eric Blake  <eblake@redhat.com>
26622
26623         test-vc-list-files-git: make more robust
26624         * tests/test-vc-list-files-git.sh: Unset problematic environment
26625         variables.  Chain commands together.
26626
26627 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26628
26629         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26630         `AC_CHECK_DECL' invocation.
26631
26632 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26633
26634         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26635         appears before executable statements. Suggested by Petr Sumbera
26636         <Petr.Sumbera@Sun.COM>.
26637
26638 2010-03-14  Bruno Haible  <bruno@clisp.org>
26639
26640         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26641         portability problems. Instead use a simpler test.
26642         (main): Check that invalid arguments are rejected only on Linux.
26643
26644 2010-03-14  Bruno Haible  <bruno@clisp.org>
26645
26646         Fix bug introduced on 2009-12-31.
26647         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26648         gl_PREREQ_SYS_H_WINSOCK2 always.
26649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26650         SYS_SOCKET_H variable.
26651         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26652         Update comments.
26653         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26654         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26655         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26657         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26658
26659 2010-03-14  Bruno Haible  <bruno@clisp.org>
26660
26661         Fix values returned by sinl, cosl.
26662         * lib/trigl.h: Add specification comments.
26663         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26664         that combines the values from the precomputed table with the values of
26665         the Chebyshev polynomials.
26666
26667 2010-03-14  Bruno Haible  <bruno@clisp.org>
26668
26669         Fix compilation error when modules 'posix_spawn[p]' are not used.
26670         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26671         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26672
26673 2010-03-14  Bruno Haible  <bruno@clisp.org>
26674
26675         Fix compilation error on mingw when module 'time_r' is not used.
26676         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26677         is 1.
26678         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26679         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26680         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26681         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26682
26683 2010-03-14  Bruno Haible  <bruno@clisp.org>
26684
26685         Fix compilation error with Sun C.
26686         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26687         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26688         instead of GCC specific ULONG_LONG_MAX.
26689         * lib/xstrtoll.c: Likewise.
26690         * lib/xstrtoull.c: Likewise.
26691
26692 2010-03-13  Bruno Haible  <bruno@clisp.org>
26693
26694         Allow the user to disable C++ code and tests.
26695         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26696         (gl_PROG_ANSI_CXX): Require it.
26697
26698 2010-03-13  Bruno Haible  <bruno@clisp.org>
26699
26700         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26701         cases.
26702
26703 2010-03-13  Bruno Haible  <bruno@clisp.org>
26704
26705         Test that gnulib does not break the standard C++ headers.
26706         * tests/test-locale-c++2.cc: New file.
26707         * modules/locale-tests (Files): Add it.
26708         (Makefile.am): Compile it for test-locale-c++.
26709         * tests/test-math-c++2.cc: New file.
26710         * modules/math-tests (Files): Add it.
26711         (Makefile.am): Compile it for test-math-c++.
26712         * tests/test-signal-c++2.cc: New file.
26713         * modules/signal-tests (Files): Add it.
26714         (Makefile.am): Compile it for test-signal-c++.
26715         * tests/test-stdio-c++2.cc: New file.
26716         * modules/stdio-tests (Files): Add it.
26717         (Makefile.am): Compile it for test-stdio-c++.
26718         * tests/test-stdlib-c++2.cc: New file.
26719         * modules/stdlib-tests (Files): Add it.
26720         (Makefile.am): Compile it for test-stdlib-c++.
26721         * tests/test-string-c++2.cc: New file.
26722         * modules/string-tests (Files): Add it.
26723         (Makefile.am): Compile it for test-string-c++.
26724         * tests/test-time-c++2.cc: New file.
26725         * modules/time-tests (Files): Add it.
26726         (Makefile.am): Compile it for test-time-c++.
26727         Reported by John W. Eaton <jwe@gnu.org>.
26728
26729 2010-03-13  Bruno Haible  <bruno@clisp.org>
26730
26731         * gnulib-tool (func_usage): Clarify which options are available for
26732         --create-testdir and --create-megatestdir.
26733
26734 2010-03-13  Bruno Haible  <bruno@clisp.org>
26735
26736         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26737         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26738         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26739         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26740         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26741         when appropriate.
26742         Reported by Jim Meyering.
26743
26744 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26745
26746         * gnulib-tool (func_import): Explain origin of code.
26747
26748 2010-03-12  Bruno Haible  <bruno@clisp.org>
26749
26750         Fix problem with automake's definition of CXXLINK.
26751         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26752         Reported by Simon Josefsson and Ludovic Courtès.
26753
26754 2010-03-12  Bruno Haible  <bruno@clisp.org>
26755
26756         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26757         stable releases.
26758
26759 2010-03-11  Bruno Haible  <bruno@clisp.org>
26760
26761         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26762         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26763         whether the system provides one variant or multiple variants of the
26764         function.
26765         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26766         C++ compilers.
26767         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26768         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26769         Reported by Jim Meyering.
26770
26771 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26772
26773         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26774
26775 2010-03-08  Bruno Haible  <bruno@clisp.org>
26776
26777         gnulib-tool: Add support for --libtool in --create-testdir.
26778         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26779         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26780
26781 2010-03-08  Eric Blake  <eblake@redhat.com>
26782
26783         gnulib-tool.texi: mention possibility of git submodule
26784         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26785         submodules.
26786         * doc/.gitignore: Ignore another generated file.
26787
26788 2010-03-08  Karl Berry  <karl@gnu.org>
26789
26790         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26791         of committing gnulib files while skipping others.
26792
26793 2010-03-07  Bruno Haible  <bruno@clisp.org>
26794
26795         Tests of module 'wctype' in C++ mode.
26796         * tests/test-wctype-c++.cc: New file.
26797         * modules/wctype-tests (Files): Add it and tests/signature.h.
26798         (Depends-on): Add ansi-c++-opt.
26799         (Makefile.am): Arrange to compile and run test-wctype-c++.
26800
26801         Tests of module 'wchar' in C++ mode.
26802         * tests/test-wchar-c++.cc: New file.
26803         * modules/wchar-tests (Files): Add it and tests/signature.h.
26804         (Depends-on): Add ansi-c++-opt.
26805         (Makefile.am): Arrange to compile and run test-wchar-c++.
26806         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26807         gl_MODULE_INDICATOR.
26808
26809         Tests of module 'unistd' in C++ mode.
26810         * tests/test-unistd-c++.cc: New file.
26811         * modules/unistd-tests (Files): Add it and tests/signature.h.
26812         (Depends-on): Add ansi-c++-opt.
26813         (Makefile.am): Arrange to compile and run test-unistd-c++.
26814         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26815         gl_MODULE_INDICATOR.
26816
26817         Tests of module 'time' in C++ mode.
26818         * tests/test-time-c++.cc: New file.
26819         * modules/time-tests (Files): Add it and tests/signature.h.
26820         (Depends-on): Add ansi-c++-opt.
26821         (Makefile.am): Arrange to compile and run test-time-c++.
26822         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26823
26824         Tests of module 'sys_time' in C++ mode.
26825         * tests/test-sys_time-c++.cc: New file.
26826         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26827         (Depends-on): Add ansi-c++-opt.
26828         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26829         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26830         gl_MODULE_INDICATOR.
26831
26832         Tests of module 'sys_stat' in C++ mode.
26833         * tests/test-sys_stat-c++.cc: New file.
26834         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26835         (Depends-on): Add ansi-c++-opt.
26836         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26837         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26838         gl_MODULE_INDICATOR.
26839
26840         Tests of module 'sys_socket' in C++ mode.
26841         * tests/test-sys_socket-c++.cc: New file.
26842         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26843         (Depends-on): Add ansi-c++-opt.
26844         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26845         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26846         gl_MODULE_INDICATOR.
26847
26848         Tests of module 'sys_select' in C++ mode.
26849         * tests/test-sys_select-c++.cc: New file.
26850         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26851         (Depends-on): Add ansi-c++-opt.
26852         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26853         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26854         gl_MODULE_INDICATOR.
26855
26856         Tests of module 'sys_ioctl' in C++ mode.
26857         * tests/test-sys_ioctl-c++.cc: New file.
26858         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26859         (Depends-on): Add ansi-c++-opt.
26860         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26861         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26862         gl_MODULE_INDICATOR.
26863
26864         Tests of module 'string' in C++ mode.
26865         * tests/test-string-c++.cc: New file.
26866         * modules/string-tests (Files): Add it and tests/signature.h.
26867         (Depends-on): Add ansi-c++-opt.
26868         (Makefile.am): Arrange to compile and run test-string-c++.
26869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26870         gl_MODULE_INDICATOR.
26871
26872         Tests of module 'stdlib' in C++ mode.
26873         * tests/test-stdlib-c++.cc: New file.
26874         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26875         (Depends-on): Add ansi-c++-opt.
26876         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26877         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26878         gl_MODULE_INDICATOR.
26879
26880         Tests of module 'stdio' in C++ mode.
26881         * tests/test-stdio-c++.cc: New file.
26882         * modules/stdio-tests (Files): Add it and tests/signature.h.
26883         (Depends-on): Add ansi-c++-opt.
26884         (Makefile.am): Arrange to compile and run test-stdio-c++.
26885         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26886         gl_MODULE_INDICATOR.
26887
26888         Tests of module 'spawn' in C++ mode.
26889         * tests/test-spawn-c++.cc: New file.
26890         * modules/spawn-tests (Files): Add it and tests/signature.h.
26891         (Depends-on): Add ansi-c++-opt.
26892         (Makefile.am): Arrange to compile and run test-spawn-c++.
26893         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26894         gl_MODULE_INDICATOR.
26895
26896         Tests of module 'signal' in C++ mode.
26897         * tests/test-signal-c++.cc: New file.
26898         * modules/signal-tests (Files): Add it and tests/signature.h.
26899         (Depends-on): Add ansi-c++-opt.
26900         (Makefile.am): Arrange to compile and run test-signal-c++.
26901         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26902         gl_MODULE_INDICATOR.
26903
26904         Tests of module 'search' in C++ mode.
26905         * tests/test-search-c++.cc: New file.
26906         * modules/search-tests (Files): Add it and tests/signature.h.
26907         (Depends-on): Add ansi-c++-opt.
26908         (Makefile.am): Arrange to compile and run test-search-c++.
26909         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26910         gl_MODULE_INDICATOR.
26911
26912         Tests of module 'math' in C++ mode.
26913         * tests/test-math-c++.cc: New file.
26914         * modules/math-tests (Files): Add it and tests/signature.h.
26915         (Depends-on): Add ansi-c++-opt.
26916         (Makefile.am): Arrange to compile and run test-math-c++.
26917         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26918
26919         Tests of module 'locale' in C++ mode.
26920         * tests/test-locale-c++.cc: New file.
26921         * modules/locale-tests (Files): Add it and tests/signature.h.
26922         (Depends-on): Add ansi-c++-opt.
26923         (Makefile.am): Arrange to compile and run test-locale-c++.
26924         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26925         gl_MODULE_INDICATOR.
26926
26927         Tests of module 'langinfo' in C++ mode.
26928         * tests/test-langinfo-c++.cc: New file.
26929         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26930         (Depends-on): Add ansi-c++-opt.
26931         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26932         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26933         gl_MODULE_INDICATOR.
26934
26935         Tests of module 'iconv-h' in C++ mode.
26936         * tests/test-iconv-h-c++.cc: New file.
26937         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26938         (Depends-on): Add ansi-c++-opt.
26939         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26940
26941         Tests of module 'glob' in C++ mode.
26942         * tests/test-glob-c++.cc: New file.
26943         * modules/glob-tests (Files): Add it.
26944         (Depends-on): Add ansi-c++-opt.
26945         (Makefile.am): Arrange to compile and run test-glob-c++.
26946
26947         Tests of module 'fcntl-h' in C++ mode.
26948         * tests/test-fcntl-h-c++.cc: New file.
26949         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26950         (Depends-on): Add ansi-c++-opt.
26951         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26952         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26953         gl_MODULE_INDICATOR.
26954
26955         Tests of module 'dirent' in C++ mode.
26956         * tests/test-dirent-c++.cc: New file.
26957         * modules/dirent-tests (Files): Add it and tests/signature.h.
26958         (Depends-on): Add ansi-c++-opt.
26959         (Makefile.am): Arrange to compile and run test-dirent-c++.
26960         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26961         gl_MODULE_INDICATOR.
26962
26963         New module 'ansi-c++-opt'.
26964         * modules/ansi-c++-opt: New file.
26965         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26966
26967         Document C++ namespace mode.
26968         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26969
26970         wctype: Avoid #define replacements in C++ mode.
26971         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26972         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26973         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26974         In C++, define a namespaced alias symbol.
26975         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26976         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26977         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26978         rule.
26979
26980         wchar: Avoid #define replacements in C++ mode.
26981         * lib/wchar.in.h: Include c++defs.h.
26982         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26983         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26984         symbol.
26985         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26986         * modules/wchar (Depends-on): Add c++defs.
26987         (Makefile.am): Update wchar.h rule.
26988
26989         unistd: Avoid #define replacements in C++ mode.
26990         * lib/unistd.in.h: Include c++defs.h.
26991         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26992         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26993         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26994         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26995         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26996         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26997         symbol.
26998         (environ): Update.
26999         * modules/unistd (Depends-on): Add c++defs.
27000         (Makefile.am): Update unistd.h rule.
27001
27002         time: Avoid #define replacements in C++ mode.
27003         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27004         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27005         define a namespaced alias symbol.
27006         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27007         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27008         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27009         * modules/time (Depends-on): Add c++defs, warn-on-use.
27010         (Makefile.am): Update time.h rule.
27011         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27012         * modules/nanosleep (configure.ac): Likewise.
27013         * modules/strptime (configure.ac): Likewise.
27014         * modules/timegm (configure.ac): Likewise.
27015
27016         sys_time: Avoid #define replacements in C++ mode.
27017         * lib/sys_time.in.h: Include c++defs.h.
27018         (gettimeofday): In C++, define a namespaced alias symbol.
27019         * modules/sys_time (Depends-on): Add c++defs.
27020         (Makefile.am): Update sys/time.h rule.
27021
27022         sys_stat: Avoid #define replacements in C++ mode.
27023         * lib/sys_stat.in.h: Include c++defs.h.
27024         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27025         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27026         namespaced alias symbol.
27027         In C++, define a namespaced alias symbol.
27028         * modules/sys_stat (Depends-on): Add c++defs.
27029         (Makefile.am): Update sys/stat.h rule.
27030
27031         sys_socket: Avoid #define replacements in C++ mode.
27032         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27033         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27034         definitions also when the system has a <sys/socket.h>.
27035         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27036         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27037         In C++, define a namespaced alias symbol.
27038         * modules/sys_socket (Depends-on): Add c++defs.
27039         (Makefile.am): Update sys/socket.h rule.
27040
27041         sys_select: Avoid #define replacements in C++ mode.
27042         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27043         definitions also when the system has a <sys/select.h>.
27044         (select): In C++, define a namespaced alias symbol.
27045         * modules/sys_select (Depends-on): Add c++defs.
27046         (Makefile.am): Update sys/select.h rule.
27047
27048         sys_ioctl: Avoid #define replacements in C++ mode.
27049         * lib/sys_ioctl.in.h: Include c++defs.h.
27050         (ioctl): In C++, define a namespaced alias symbol.
27051         * modules/sys_ioctl (Depends-on): Add c++defs.
27052         (Makefile.am): Update sys/ioctl.h rule.
27053
27054         string: Avoid #define replacements in C++ mode.
27055         * lib/string.in.h: Include c++defs.h.
27056         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27057         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27058         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27059         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27060         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27061         * modules/string (Depends-on): Add c++defs.
27062         (Makefile.am): Update string.h rule.
27063
27064         stdlib: Avoid #define replacements in C++ mode.
27065         * lib/stdlib.in.h: Include c++defs.h.
27066         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27067         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27068         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27069         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27070         symbol.
27071         * modules/stdlib (Depends-on): Add c++defs.
27072         (Makefile.am): Update stdlib.h rule.
27073
27074         stdio: Avoid #define replacements in C++ mode.
27075         * lib/stdio.in.h: Include c++defs.h.
27076         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27077         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27078         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27079         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27080         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27081         namespaced alias symbol.
27082         * modules/stdio (Depends-on): Add c++defs.
27083         (Makefile.am): Update stdio.h rule.
27084
27085         spawn: Avoid #define replacements in C++ mode.
27086         * lib/spawn.in.h: Include c++defs.h.
27087         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27088         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27089         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27090         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27091         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27092         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27093         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27094         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27095         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27096         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27097         In C++, define a namespaced alias symbol.
27098         * modules/spawn (Depends-on): Add c++defs.
27099         (Makefile.am): Update spawn.h rule.
27100
27101         signal: Avoid #define replacements in C++ mode.
27102         * lib/signal.in.h: Include c++defs.h.
27103         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27104         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27105         namespaced alias symbol.
27106         * modules/signal (Depends-on): Add c++defs.
27107         (Makefile.am): Update signal.h rule.
27108
27109         search: Avoid #define replacements in C++ mode.
27110         * lib/search.in.h: Include c++defs.h.
27111         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27112         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27113         symbol.
27114         * modules/search (Depends-on): Add c++defs.
27115         (Makefile.am): Update search.h rule.
27116
27117         math: Avoid #define replacements in C++ mode.
27118         * lib/math.in.h: Include c++defs.h.
27119         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27120         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27121         trunc, truncl): In C++, define a namespaced alias symbol.
27122         * modules/math (Depends-on): Add c++defs.
27123         (Makefile.am): Update math.h rule.
27124
27125         locale: Avoid #define replacements in C++ mode.
27126         * lib/locale.in.h: Include c++defs.h.
27127         (duplocale): In C++, define a namespaced alias symbol.
27128         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27129         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27130         * modules/locale (Depends-on): Add c++defs.
27131         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27132
27133         langinfo: Avoid #define replacements in C++ mode.
27134         * lib/langinfo.in.h: Include c++defs.h.
27135         (nl_langinfo): In C++, define a namespaced alias symbol.
27136         * modules/langinfo (Depends-on): Add c++defs.
27137         (Makefile.am): Update langinfo.h rule.
27138
27139         iconv-h: Avoid #define replacements in C++ mode.
27140         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27141         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27142         symbol.
27143         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27144         whenever iconv is present.
27145         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27146         (Makefile.am): Update iconv.h rule.
27147
27148         glob: Avoid #define replacements in C++ mode.
27149         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27150         (_gl_glob_errfunc_fn): New type.
27151         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27152         symbol.
27153         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27154         (Makefile.am): Update glob.h rule.
27155
27156         fcntl-h: Avoid #define replacements in C++ mode.
27157         * lib/fcntl.in.h: Include c++defs.h.
27158         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27159         * modules/fcntl-h (Depends-on): Add c++defs.
27160         (Makefile.am): Update fcntl.h rule.
27161
27162         dirent: Avoid #define replacements in C++ mode.
27163         * lib/dirent.in.h: Include c++defs.h.
27164         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27165         namespaced alias symbol.
27166         (dirfd): Update declaration.
27167         * modules/dirent (Depends-on): Add c++defs.
27168         (Makefile.am): Update dirent.h rule.
27169
27170         ctype: Make it usable in C++ code.
27171         * lib/ctype.in.h: Include c++defs.h.
27172         (isblank): Declare as extern "C".
27173         * modules/ctype (Depends-on): Add c++defs.
27174         (Makefile.am): Update ctype.h rule.
27175
27176         New module 'c++defs'.
27177         * modules/c++defs: New file.
27178         * build-aux/c++defs.h: New file.
27179         Reported by John W. Eaton <jwe@gnu.org>.
27180
27181 2010-03-07  Bruno Haible  <bruno@clisp.org>
27182
27183         logb: Provide missing declaration for Cygwin.
27184         * lib/math.in.h (logb): New declaration.
27185         * m4/logb.m4: New file.
27186         * modules/logb (Files): Add m4/logb.m4.
27187         (Depends-on): Add math.
27188         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27189         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27191         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27192         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27193
27194 2010-03-07  Bruno Haible  <bruno@clisp.org>
27195
27196         Fix test-cond link error.
27197         * tests/test-cond.c: Include <stdio.h>.
27198
27199 2010-03-07  Bruno Haible  <bruno@clisp.org>
27200
27201         Fix test-dirent-safer link error.
27202         * modules/dirent-safer-tests (Makefile.am): Define
27203         test_dirent_safer_LDADD.
27204
27205 2010-03-07  Bruno Haible  <bruno@clisp.org>
27206
27207         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27208         among default module list.
27209
27210 2010-03-07  Bruno Haible  <bruno@clisp.org>
27211
27212         Fix link error on platforms with GNU libiconv.
27213         * modules/unistr/u8-strcoll-tests (Makefile): Define
27214         test_u8_strcoll_LDADD.
27215         * modules/unistr/u16-strcoll-tests (Makefile): Define
27216         test_u16_strcoll_LDADD.
27217         * modules/unistr/u32-strcoll-tests (Makefile): Define
27218         test_u32_strcoll_LDADD.
27219
27220 2010-03-07  Bruno Haible  <bruno@clisp.org>
27221
27222         Use POSIX declarations for socket functions.
27223         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27224         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27225         rpl_sendto): Change declaration to match POSIX.
27226         * lib/connect.c (rpl_connect): Likewise.
27227         * lib/accept.c (rpl_accept): Likewise.
27228         * lib/bind.c (rpl_bind): Likewise.
27229         * lib/getpeername.c (rpl_getpeername): Likewise.
27230         * lib/getsockname.c (rpl_getsockname): Likewise.
27231         * lib/recv.c (rpl_recv): Likewise.
27232         * lib/send.c (rpl_send): Likewise.
27233         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27234         * lib/sendto.c (rpl_sendto): Likewise.
27235
27236 2010-03-06  Bruno Haible  <bruno@clisp.org>
27237
27238         Clarify access, euidaccess, faccessat.
27239         * doc/posix-functions/faccessat.texi: Mention security problem under
27240         "Other problems", not "Portability problems".
27241         * doc/posix-functions/access.texi: Likewise. Mention a related security
27242         problem.
27243         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27244         * lib/euidaccess.c: Add comments about platforms.
27245         * lib/unistd.in.h (access, euidaccess): Add warnings.
27246
27247 2010-03-07  Bruno Haible  <bruno@clisp.org>
27248
27249         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27250         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27251         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27252         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27253         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27254         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27255         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27256         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27257         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27258         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27259         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27260         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27261         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27262         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27263         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27264         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27265         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27266         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27267         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27268         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27269         Likewise.
27270         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27271         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27272         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27273         Likewise.
27274         * tests/test-spawn.c (main): Make it work when
27275         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27276
27277 2010-03-07  Bruno Haible  <bruno@clisp.org>
27278
27279         Fix incorrect Makefile.am generation in German locale.
27280         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27281         Execute sed command with character range in C locale.
27282
27283 2010-03-06  Bruno Haible  <bruno@clisp.org>
27284
27285         Tests for module 'iconv-h'.
27286         * modules/iconv-h-tests: New file.
27287         * tests/test-iconv-h.c: New file.
27288
27289         New module 'iconv-h'.
27290         * modules/iconv-h: New file.
27291         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27292         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27293         (configure.ac): Remove gl_ICONV_H.
27294         (Makefile.am): Remove rule for iconv.h.
27295
27296 2010-03-06  Bruno Haible  <bruno@clisp.org>
27297
27298         More consistent naming of *.m4 files.
27299         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27300         * modules/wctype (Files): Update.
27301
27302         More consistent naming of *.m4 files.
27303         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27304         * modules/wchar (Files): Update.
27305
27306 2010-03-06  Jim Meyering  <meyering@redhat.com>
27307
27308         euidaccess: relax license to LGPLv2+
27309         * modules/euidaccess (License): Relax to LGPLv2+.
27310
27311 2010-03-06  Bruno Haible  <bruno@clisp.org>
27312
27313         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27314         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27315         (Makefile.am): Augment lib_SOURCES instead.
27316
27317 2010-03-04  Jim Meyering  <meyering@redhat.com>
27318
27319         utime: remove obsolete module
27320         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27321         unnecessary for years, and has been marked as obsolete for 10 months.
27322         * modules/utime: Remove file.
27323         * lib/utime.c: Remove file.
27324         * m4/utime.m4: Remove file.
27325         * m4/utimes-null.m4: Remove file.
27326         * doc/posix-functions/utime.texi (utime): Remove reference to
27327         the module.  Move the sole "fixed by gnulib" item into the
27328         "problems not fixed by Gnulib" list.
27329         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27330
27331 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27332
27333         * modules/exit (License): Relax license to LGPLv2+.
27334         (Status): Mark as obsolete.
27335         * NEWS: Mention deprecated 'exit' module.
27336         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27337         of now obsolete 'exit'.
27338
27339 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27340
27341         fts-lgpl: remove unused module
27342         * modules/fts-lgpl: Remove.
27343         * MODULES.html.sh (func_all_modules): Adjust.
27344         * check-module (find_included_lib_files): Adjust.
27345         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27346
27347 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27348
27349         copy-acl: enhance Solaris ACL error handling
27350         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27351         * lib/set-mode-acl.c (qset_acl): Likewise.
27352
27353 2010-03-02  Bruno Haible  <bruno@clisp.org>
27354
27355         spawn: Don't override the system defined values on FreeBSD 8.
27356         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27357         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27358         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27359         if HAVE_POSIX_SPAWN is 1.
27360         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27361
27362 2010-03-01  Bruno Haible  <bruno@clisp.org>
27363
27364         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27365         regarding Automake.
27366
27367 2010-02-25  Bruno Haible  <bruno@clisp.org>
27368
27369         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27370         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27371         setting, not afterwards.
27372         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27373
27374 2010-02-24  Eric Blake  <eblake@redhat.com>
27375
27376         bootstrap, git-version-gen: use timestamp
27377         * build-aux/git-version-gen (scriptversion): Force UTC.
27378         * build-aux/bootstrap (scriptversion): New variable.
27379
27380         bootstrap: allow older git
27381         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27382         older than 1.6.4.  Requested by the libvirt project.
27383
27384 2010-02-23  Eric Blake  <eblake@redhat.com>
27385
27386         warn-on-use: work with old autoconf
27387         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27388         AS_VAR semantics of autoconf 2.60.
27389         Reported by Bruno Haible.
27390
27391         bootstrap: improve some comments
27392         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27393         clarification comments.
27394
27395         gettimeofday: provide correct function
27396         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27397         when replacement is declared, otherwise provide gettimeofday.
27398         Reported by Michael Goffioul.
27399
27400 2010-02-23  Jim Meyering  <meyering@redhat.com>
27401
27402         lib-ignore: relax license to "unlimited", not LGPLv2+
27403         * modules/lib-ignore (License): Relax to "unlimited".
27404
27405 2010-02-23  Jim Meyering  <meyering@redhat.com>
27406
27407         lib-ignore: relax license to LGPLv2+
27408         * modules/lib-ignore (License): Relax to LGPLv2+.
27409
27410 2010-02-22  Eric Blake  <eblake@redhat.com>
27411
27412         lseek: avoid bash 3.2 broken pipe bug
27413         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27414         warning from bash 3.2.
27415         Reported by Ben Pfaff, with analysis from Bruno Haible.
27416
27417         bootstrap: support non-FSF copyright holder
27418         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27419         bootstrap.conf override of COPYRIGHT_HOLDER.
27420         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27421
27422         bootstrap: interoperate with gettext 0.14.1
27423         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27424
27425         bootstrap: allow for alternate submodule location
27426         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27427         hardcoding submodule location.
27428         (gnulib_mk): Allow direct use of Makefile.am.
27429
27430         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27431         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27432         rather than reconfiguring where the submodule points.
27433
27434         gettimeofday: restore support for platforms that lack function
27435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27436         replacement if function is missing.
27437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27438         * modules/sys_time (Makefile.am): Substitute it.
27439         * lib/sys_time.in.h (gettimeofday): Check it.
27440         Reported by Michael Goffioul.
27441
27442 2010-02-21  Bruno Haible  <bruno@clisp.org>
27443
27444         * lib/stdio.in.h (obstack_printf): Fix typo.
27445
27446 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27447
27448         vc-list-files: use bzr ls's -R option
27449         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27450         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27451
27452 2010-02-21  Jim Meyering  <meyering@redhat.com>
27453
27454         init.sh: fix EXEEXT shims to work also for names like test-prog
27455         * tests/init.sh: Re-exec a better shell, when needed.
27456         If the current shell lacks support for posix $(...), an init.sh-using
27457         test will now try to find a shell that supports that.  If EXEEXT is
27458         nonempty, we also require support for hyphen-in-alias-name and shell
27459         substitutions like ${var#glob}.  Failure to find such a shell results
27460         in a skipped test.
27461
27462 2010-02-21  Bruno Haible  <bruno@clisp.org>
27463
27464         Really work around around "broken pipe" error message from bash 3.2.
27465         * gnulib-tool (func_reset_sigpipe): Remove function.
27466         (echo): In bash 3.2, define to a function that uses printf.
27467         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27468
27469 2010-02-20  Bruno Haible  <bruno@clisp.org>
27470
27471         Restore support for automake 1.9.6 with autoconf 2.61.
27472         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27473         Reported by James Youngman <jay@gnu.org>.
27474
27475 2010-02-20  Bruno Haible  <bruno@clisp.org>
27476
27477         Improve *printf warning condition.
27478         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27479         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27480         and the function is overridden due to SIGPIPE emulation.
27481
27482 2010-02-20  Bruno Haible  <bruno@clisp.org>
27483
27484         * lib/stdio.in.h: Tweak comments.
27485
27486 2010-02-19  Bruno Haible  <bruno@clisp.org>
27487
27488         Make it easier to find modules. New gnulib-tool option '--find'.
27489         * gnulib-tool: New option --find.
27490         (func_usage): Document it.
27491         (func_sanitize_modulelist): New function, extracted from
27492         func_all_modules.
27493         (func_all_modules): Invoke it.
27494         * doc/gnulib-tool.texi (Which modules?): New node.
27495
27496 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27497
27498         * lib/sys_select.in.h: Provide select replacement even if
27499         sys/select.h exists on a system, for Interix.
27500
27501 2010-02-18  Jim Meyering  <meyering@redhat.com>
27502
27503         init.sh: don't use $(...) just yet
27504         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27505         to accommodate e.g., Solaris' /bin/sh.
27506
27507 2010-02-17  Bruno Haible  <bruno@clisp.org>
27508
27509         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27510         Reported by Ludovic Courtès <ludo@gnu.org>.
27511
27512 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27513
27514         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27515         linking with -lintl.
27516
27517 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27518
27519         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27520         if not provided by the system's netdb.h.  Reported by
27521         ludo@gnu.org (Ludovic Courtès).
27522
27523 2010-02-15  Jim Meyering  <meyering@redhat.com>
27524
27525         init.sh: improve portability and efficiency
27526         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27527         "dummy" in a for loop.
27528         Use '!', not '^' to select the complement of a character set used
27529         in a "case" statement.
27530         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27531         Suggestions from Eric Blake.
27532
27533         init.sh: automatically accommodate programs with the .exe suffix
27534         Automatically arrange for an invocation of "prog" to execute the
27535         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27536         may use the simpler "prog", yet still work when built on a system
27537         that requires specifying the added suffix.
27538         Do this by constructing a function named "prog" that invokes
27539         "prog.exe" for each .exe file in selected directories.
27540         * tests/init.sh (find_exe_basenames_): New function.
27541         (create_exe_shim_functions_): New function.
27542         (path_prepend_): Use it.
27543
27544         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27545         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27546         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27547
27548 2010-02-14  Jim Meyering  <meyering@redhat.com>
27549
27550         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27551         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27552         (sc_prohibit_hash_pjw_without_use): New rule.
27553
27554         maint.mk: allow the default upload destination dir to be overridden
27555         * top/maint.mk (upload_dest_dir_): Define with a default that
27556         preserves the status quo.
27557         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27558         Reported by Peter Simons.
27559
27560         maint.mk: prohibit inclusion of "hash.h" without_use
27561         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27562
27563 2010-02-10  Jim Meyering  <meyering@redhat.com>
27564
27565         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27566         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27567
27568 2010-02-09  Eric Blake  <ebb9@byu.net>
27569         and Bruno Haible  <bruno@clisp.org>
27570
27571         obstack-printf-posix: ensure declaration
27572         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27573         extracted from gl_FUNC_OBSTACK_PRINTF.
27574         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27575         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27576         Likewise.
27577         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27578         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27579         0.
27580
27581 2010-02-08  Bruno Haible  <bruno@clisp.org>
27582
27583         gnulib-tool: Fix typo in 2010-02-07 commit.
27584         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27585         Reported by Eric Blake.
27586
27587 2010-02-07  Bruno Haible  <bruno@clisp.org>
27588
27589         gnulib-tool: Fix up caching patches.
27590         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27591         option --no-cache. Use associative arrays when supported by the shell.
27592         (sed_comments): New variable.
27593         (modcache): Renamed from do_cache.
27594         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27595         abbreviate unnecessarily.
27596         (have_associative): New variable.
27597         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27598         way also for ksh and zsh.
27599         (func_init_sed_convert_to_cache_statements): New function, extracted
27600         from func_cache_lookup_module. Add support for associative arrays.
27601         Don't set the c_MODULE_cached variable here. Ignore all lines before
27602         the first field header. Remove only the final newline, not all trailing
27603         newlines. Support empty fields correctly. Limit the use of 'eval' to
27604         assignments.
27605         (func_get_description, func_get_status, func_get_notice,
27606         func_get_applicability, func_get_filelist, func_get_dependencies,
27607         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27608         func_get_automake_snippet, func_get_include_directive,
27609         func_get_link_directive, func_get_license, func_get_maintainer):
27610         Update documentation. List the unoptimized code first. Add support for
27611         associative arrays. Limit the use of 'eval' to assignments.
27612         (func_get_applicability): Undo stylistic pessimisations.
27613         (func_get_automake_snippet, func_get_include_directive): Reduce code
27614         duplication.
27615         (func_modules_transitive_closure, func_modules_add_dummy,
27616         func_modules_notice, func_modules_to_filelist, func_add_file,
27617         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27618         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27619         func_create_testdir, func_create_megatestdir): Update documentation.
27620
27621 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27622
27623         * gnulib-tool (func_cache_lookup_module): Store the module name
27624         belonging to the cache variable; error out if two different
27625         module names map to the same cache variable name.
27626
27627 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27628
27629         gnulib-tool: Make caching optional.
27630         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27631         Update matching short versions of --no-changelog.
27632         (func_usage): Update.
27633         (sed_extract_cache_prog): Renamed from ...
27634         (sed_extract_prog): ... this; revert to old extraction script.
27635         (func_get_description, func_get_status)
27636         (func_get_notice, func_get_applicability, func_get_filelist)
27637         (func_get_dependencies, func_get_autoconf_early_snippet)
27638         (func_get_autoconf_snippet, func_get_automake_snippet)
27639         (func_get_include_directive, func_get_link_directive)
27640         (func_get_license, func_get_maintainer): If $do_cache is false,
27641         use old, non-caching extraction scripts.
27642         Suggestion by Bruno Haible.
27643
27644 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27645
27646         gnulib-tool: cache module metainformation.
27647         * gnulib-tool (sed_extract_prog): Match newline before each
27648         header, and rewrite header to a shell variable suffix.
27649         (func_cache_var, func_cache_lookup_module): New functions,
27650         to turn a module name into a cache variable prefix, and to
27651         look up and cache module metainformation.
27652         (func_get_description, func_get_status)
27653         (func_get_notice, func_get_applicability, func_get_filelist)
27654         (func_get_dependencies, func_get_autoconf_early_snippet)
27655         (func_get_autoconf_snippet, func_get_automake_snippet)
27656         (func_get_include_directive, func_get_link_directive)
27657         (func_get_license, func_get_maintainer): Use
27658         func_cache_lookup_module.
27659
27660 2010-02-07  Bruno Haible  <bruno@clisp.org>
27661
27662         fnctl: Fix missing dependency.
27663         * modules/fcntl (Depends-on): Add getdtablesize.
27664         Reported by John W. Eaton <jwe@gnu.org>.
27665
27666 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27667
27668         Argp: fix recognition of short alias options.
27669
27670         * lib/argp-parse.c (convert_options): Fix improper use of
27671         `|' between character values.
27672         * tests/test-argp.c (group1_option): New alias option
27673         --read (-r).
27674         (group1_parser): Special handling for 'r'.
27675         (test15): New test case.
27676         (test_fun): Add test15.
27677         * tests/test-argp-2.sh: Update expected --help and --usage
27678         outputs.
27679
27680 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27681
27682         * tests/test-argp.c: Fix indentation.
27683
27684 2010-02-04  Eric Blake  <ebb9@byu.net>
27685
27686         gettimeofday: expose type of second argument
27687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27688         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27689         * tests/test-gettimeofday.c: Use it to silence warning.
27690         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27691         the issue.
27692
27693 2010-02-03  Jim Meyering  <meyering@redhat.com>
27694
27695         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27696         * lib/regcomp.c (TYPE_SIGNED): Define.
27697         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27698
27699         regcomp.c: avoid a new -Wshadow warning
27700         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27701
27702 2010-02-01  Jim Meyering  <meyering@redhat.com>
27703
27704         removing useless parentheses in cpp #define directives
27705         For motivation, see commit c0221df4, "define STREQ(a,b)
27706         consistently, removing useless parentheses"
27707         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27708         * lib/mountlist.c (MNT_IGNORE): Likewise.
27709         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27710
27711 2010-02-01  Eric Blake  <ebb9@byu.net>
27712
27713         sys_time: use link-warning
27714         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27715         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27716         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27717         * modules/sys_time (Depends-on): Add warn-on-use.
27718         (Makefile.am): Always build replacement.
27719         (configure.ac): Update substitutions.
27720         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27721         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27722         bother with SYS_TIME_H.
27723         * modules/gettimeofday (configure.ac): Declare indicator.
27724         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27725         in use.
27726
27727         closein-tests: silence compiler warning
27728         * tests/test-closein.c (main): Ignore fread result.
27729         * modules/closein-tests (Depends-on): Add ignore-value.
27730
27731         tests: silence warning about system return
27732         * tests/test-areadlink-with-size.c (main): Ignore system result.
27733         * tests/test-areadlink.c (main): Likewise.
27734         * tests/test-areadlinkat-with-size.c (main): Likewise.
27735         * tests/test-areadlinkat.c (main): Likewise.
27736         * tests/test-canonicalize-lgpl.c (main): Likewise.
27737         * tests/test-canonicalize.c (main): Likewise.
27738         * tests/test-chown.c (main): Likewise.
27739         * tests/test-fchownat.c (main): Likewise.
27740         * tests/test-fdutimensat.c (main): Likewise.
27741         * tests/test-fstatat.c (main): Likewise.
27742         * tests/test-futimens.c (main): Likewise.
27743         * tests/test-lchown.c (main): Likewise.
27744         * tests/test-link.c (main): Likewise.
27745         * tests/test-linkat.c (main): Likewise.
27746         * tests/test-lstat.c (main): Likewise.
27747         * tests/test-mkdir.c (main): Likewise.
27748         * tests/test-mkdirat.c (main): Likewise.
27749         * tests/test-mkfifo.c (main): Likewise.
27750         * tests/test-mkfifoat.c (main): Likewise.
27751         * tests/test-mknod.c (main): Likewise.
27752         * tests/test-readlink.c (main): Likewise.
27753         * tests/test-remove.c (main): Likewise.
27754         * tests/test-rename.c (main): Likewise.
27755         * tests/test-renameat.c (main): Likewise.
27756         * tests/test-rmdir.c (main): Likewise.
27757         * tests/test-symlink.c (main): Likewise.
27758         * tests/test-symlinkat.c (main): Likewise.
27759         * tests/test-unlink.c (main): Likewise.
27760         * tests/test-unlinkat.c (main): Likewise.
27761         * tests/test-utimens.c (main): Likewise.
27762         * tests/test-utimensat.c (main): Likewise.
27763         * modules/areadlink-tests (Depends-on): Add ignore-value.
27764         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27765         * modules/areadlinkat-tests (Depends-on): Likewise.
27766         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27767         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27768         * modules/canonicalize-tests (Depends-on): Likewise.
27769         * modules/chown-tests (Depends-on): Likewise.
27770         * modules/fdutimensat-tests (Depends-on): Likewise.
27771         * modules/futimens-tests (Depends-on): Likewise.
27772         * modules/lchown-tests (Depends-on): Likewise.
27773         * modules/link-tests (Depends-on): Likewise.
27774         * modules/linkat-tests (Depends-on): Likewise.
27775         * modules/lstat-tests (Depends-on): Likewise.
27776         * modules/mkdir-tests (Depends-on): Likewise.
27777         * modules/mkfifo-tests (Depends-on): Likewise.
27778         * modules/mkfifoat-tests (Depends-on): Likewise.
27779         * modules/mknod-tests (Depends-on): Likewise.
27780         * modules/openat-tests (Depends-on): Likewise.
27781         * modules/readlink-tests (Depends-on): Likewise.
27782         * modules/remove-tests (Depends-on): Likewise.
27783         * modules/rename-tests (Depends-on): Likewise.
27784         * modules/renameat-tests (Depends-on): Likewise.
27785         * modules/rmdir-tests (Depends-on): Likewise.
27786         * modules/symlink-tests (Depends-on): Likewise.
27787         * modules/symlinkat-tests (Depends-on): Likewise.
27788         * modules/unlink-tests (Depends-on): Likewise.
27789         * modules/utimens-tests (Depends-on): Likewise.
27790         * modules/utimensat-tests (Depends-on): Likewise.
27791
27792 2010-01-31  Bruno Haible  <bruno@clisp.org>
27793
27794         Perform the same test for many <math.h> functions.
27795         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27796         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27797         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27798         of gl_MATHFUNC.
27799         * modules/acos (configure.ac): Likewise.
27800         * modules/asin (configure.ac): Likewise.
27801         * modules/atan (configure.ac): Likewise.
27802         * modules/atan2 (configure.ac): Likewise.
27803         * modules/cbrt (configure.ac): Likewise.
27804         * modules/copysign (configure.ac): Likewise.
27805         * modules/cos (configure.ac): Likewise.
27806         * modules/cosh (configure.ac): Likewise.
27807         * modules/erf (configure.ac): Likewise.
27808         * modules/erfc (configure.ac): Likewise.
27809         * modules/exp (configure.ac): Likewise.
27810         * modules/fmod (configure.ac): Likewise.
27811         * modules/hypot (configure.ac): Likewise.
27812         * modules/j0 (configure.ac): Likewise.
27813         * modules/j1 (configure.ac): Likewise.
27814         * modules/jn (configure.ac): Likewise.
27815         * modules/lgamma (configure.ac): Likewise.
27816         * modules/log (configure.ac): Likewise.
27817         * modules/log10 (configure.ac): Likewise.
27818         * modules/log1p (configure.ac): Likewise.
27819         * modules/pow (configure.ac): Likewise.
27820         * modules/remainder (configure.ac): Likewise.
27821         * modules/sin (configure.ac): Likewise.
27822         * modules/sinh (configure.ac): Likewise.
27823         * modules/tan (configure.ac): Likewise.
27824         * modules/tanh (configure.ac): Likewise.
27825         * modules/y0 (configure.ac): Likewise.
27826         * modules/y1 (configure.ac): Likewise.
27827         * modules/yn (configure.ac): Likewise.
27828         Suggested by Paolo Bonzini.
27829
27830 2010-01-31  Bruno Haible  <bruno@clisp.org>
27831
27832         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27833
27834 2010-01-31  Bruno Haible  <bruno@clisp.org>
27835
27836         Work around getdelim() bug on FreeBSD 8.0.
27837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27838         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27839         not work.
27840         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27841         is 1.
27842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27843         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27844         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27845         a non-zero size.
27846         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27847
27848 2010-01-31  Bruno Haible  <bruno@clisp.org>
27849
27850         Work around getline() bug on FreeBSD 8.0.
27851         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27852         and a non-zero size.
27853         * tests/test-getline.c (main): Likewise.
27854         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27855         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27856
27857 2010-01-28  Eric Blake  <ebb9@byu.net>
27858
27859         regex: fix build failure
27860         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27861         platforms.
27862
27863 2010-01-28  Jim Meyering  <meyering@redhat.com>
27864
27865         regex: do not ignore memory allocation failure
27866         * lib/regex_internal.c (create_cd_newstate): Detect
27867         re_node_set_init_copy failure.   Extracted from glibc commit
27868         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27869
27870         regex: sync more white-space changes from libc
27871         * lib/regex_internal.c: White-space only changes.
27872         * lib/regexec.c: Likewise.
27873
27874         regex: add many uses of __attribute_warn_unused_result__
27875         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27876         * lib/regexec.c: Likewise.
27877         Extracted from a messy glibc commit.
27878
27879         regcomp.c: spelling and merge-artifact from glibc
27880         * lib/regcomp.c: Merge remainder of glibc's
27881         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27882
27883         regcomp.c: sync white-space changes from glibc
27884         * lib/regcomp.c: Merge to accommodate white space
27885         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27886
27887         regcomp.c: do not ignore internal return values
27888         * lib/regcomp.c: Do not ignore internal return values.
27889         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27890         but without its white-space changes and spelling fixes.
27891
27892         regex_internal.h: define __attribute_warn_unused_result__
27893         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27894
27895         maint: add a syntax-check rule to check for vulnerable Makefile.in
27896         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27897
27898 2010-01-27  Jim Meyering  <meyering@redhat.com>
27899
27900         ncftpput-ftp: clean up spaces
27901         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27902         Remove trailing blanks.
27903
27904 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27905
27906         * build-aux/git-version-gen: Fix copyright statement.
27907         * build-aux/gnupload: Likewise.
27908         * tests/test-arcfour.c: Likewise.
27909         * tests/test-arctwo.c: Likewise.
27910         * tests/test-count-one-bits.c: Likewise.
27911         * tests/test-crc.c: Likewise.
27912         * tests/test-des.c: Likewise.
27913         * tests/test-gc-arcfour.c: Likewise.
27914         * tests/test-gc-arctwo.c: Likewise.
27915         * tests/test-gc-des.c: Likewise.
27916         * tests/test-gc-hmac-md5.c: Likewise.
27917         * tests/test-gc-hmac-sha1.c: Likewise.
27918         * tests/test-gc-md2.c: Likewise.
27919         * tests/test-gc-md4.c: Likewise.
27920         * tests/test-gc-md5.c: Likewise.
27921         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27922         * tests/test-gc-rijndael.c: Likewise.
27923         * tests/test-gc-sha1.c: Likewise.
27924         * tests/test-gc.c: Likewise.
27925         * tests/test-gethostname.c: Likewise.
27926         * tests/test-gettimeofday.c: Likewise.
27927         * tests/test-hash.c: Likewise.
27928         * tests/test-hmac-md5.c: Likewise.
27929         * tests/test-hmac-sha1.c: Likewise.
27930         * tests/test-md2.c: Likewise.
27931         * tests/test-md4.c: Likewise.
27932         * tests/test-md5.c: Likewise.
27933         * tests/test-memchr.c: Likewise.
27934         * tests/test-memchr2.c: Likewise.
27935         * tests/test-memcmp.c: Likewise.
27936         * tests/test-memmem.c: Likewise.
27937         * tests/test-memrchr.c: Likewise.
27938         * tests/test-rawmemchr.c: Likewise.
27939         * tests/test-read-file.c: Likewise.
27940         * tests/test-rijndael.c: Likewise.
27941         * tests/test-sockets.c: Likewise.
27942         * tests/test-strchrnul.c: Likewise.
27943         * tests/test-strstr.c: Likewise.
27944         * tests/test-strtod.c: Likewise.
27945         * build-aux/ncftpput-ftp: Likewise.
27946
27947 2010-01-26  Eric Blake  <ebb9@byu.net>
27948
27949         ignore-value: update recommended header name
27950         * modules/ignore-value (Include): Only use <> for headers that
27951         exist in glibc.
27952
27953 2010-01-26  Jim Meyering  <meyering@redhat.com>
27954
27955         test-userspec.c: avoid compiler warnings
27956         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27957         and "initialization discards qualifiers..." warnings.
27958         Put the first "uid" in its own scope, and make char* members "const".
27959
27960 2010-01-25  Bruno Haible  <bruno@clisp.org>
27961
27962         gnulib-tool: Make warning diagnostics consistent.
27963         * gnulib-tool (func_warning): New function.
27964         Use it everywhere where gnulib-tool produces output to stderr and it is
27965         not a fatal error.
27966
27967 2010-01-25  Bruno Haible  <bruno@clisp.org>
27968
27969         Fix test dependencies.
27970         * modules/xstrtol-tests (Depends-on): Add inttypes.
27971         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27972
27973 2010-01-25 Pádraig Brady <P@draigBrady.com>
27974
27975         syntax-check: detect incorrect boolean macro values in config.h
27976         * modules/maintainer-makefile (configure.ac): Parameterize the location
27977         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27978         The logic is from Eric Blake and the location indicated by Jim Meyering.
27979         Note the more natural CONFIG_HEADER name is prohibited by automake
27980         for backwards compatibility reasons.
27981         * top/maint.mk (sc_Wundef_boolean): New rule.
27982
27983 2010-01-25  Jim Meyering  <meyering@redhat.com>
27984
27985         bootstrap: detect MacOS 10.6's shasum, too
27986         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27987         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27988
27989 2010-01-23  Jim Meyering  <meyering@redhat.com>
27990
27991         xstrtoll: new module
27992         * modules/xstrtoll: New file.
27993         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27994         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27995         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27996         ./configure fails if you use this module and lack "long long".
27997         * modules/xstrtoll-tests: New module.
27998         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27999         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28000         new init.sh-based test framework.
28001
28002 2010-01-24  Bruno Haible  <bruno@clisp.org>
28003
28004         Tests for module 'yn'.
28005         * modules/yn-tests: New file.
28006         * tests/test-yn.c: New file.
28007
28008         Tests for module 'y1'.
28009         * modules/y1-tests: New file.
28010         * tests/test-y1.c: New file.
28011
28012         Tests for module 'y0'.
28013         * modules/y0-tests: New file.
28014         * tests/test-y0.c: New file.
28015
28016         Tests for module 'tanh'.
28017         * modules/tanh-tests: New file.
28018         * tests/test-tanh.c: New file.
28019
28020         Tests for module 'tan'.
28021         * modules/tan-tests: New file.
28022         * tests/test-tan.c: New file.
28023
28024         Tests for module 'sqrt'.
28025         * modules/sqrt-tests: New file.
28026         * tests/test-sqrt.c: New file.
28027
28028         Tests for module 'sinh'.
28029         * modules/sinh-tests: New file.
28030         * tests/test-sinh.c: New file.
28031
28032         Tests for module 'sin'.
28033         * modules/sin-tests: New file.
28034         * tests/test-sin.c: New file.
28035
28036         Tests for module 'rint'.
28037         * modules/rint-tests: New file.
28038         * tests/test-rint.c: New file.
28039
28040         Tests for module 'remainder'.
28041         * modules/remainder-tests: New file.
28042         * tests/test-remainder.c: New file.
28043
28044         Tests for module 'pow'.
28045         * modules/pow-tests: New file.
28046         * tests/test-pow.c: New file.
28047
28048         Tests for module 'nextafter'.
28049         * modules/nextafter-tests: New file.
28050         * tests/test-nextafter.c: New file.
28051
28052         Tests for module 'modf'.
28053         * modules/modf-tests: New file.
28054         * tests/test-modf.c: New file.
28055
28056         Tests for module 'logb'.
28057         * modules/logb-tests: New file.
28058         * tests/test-logb.c: New file.
28059
28060         Tests for module 'log1p'.
28061         * modules/log1p-tests: New file.
28062         * tests/test-log1p.c: New file.
28063
28064         Tests for module 'log10'.
28065         * modules/log10-tests: New file.
28066         * tests/test-log10.c: New file.
28067
28068         Tests for module 'log'.
28069         * modules/log-tests: New file.
28070         * tests/test-log.c: New file.
28071
28072         Tests for module 'lgamma'.
28073         * modules/lgamma-tests: New file.
28074         * tests/test-lgamma.c: New file.
28075
28076         Tests for module 'ldexp'.
28077         * modules/ldexp-tests: New file.
28078         * tests/test-ldexp.c: New file.
28079
28080         Tests for module 'jn'.
28081         * modules/jn-tests: New file.
28082         * tests/test-jn.c: New file.
28083
28084         Tests for module 'j1'.
28085         * modules/j1-tests: New file.
28086         * tests/test-j1.c: New file.
28087
28088         Tests for module 'j0'.
28089         * modules/j0-tests: New file.
28090         * tests/test-j0.c: New file.
28091
28092         Tests for module 'hypot'.
28093         * modules/hypot-tests: New file.
28094         * tests/test-hypot.c: New file.
28095
28096         Tests for module 'fmod'.
28097         * modules/fmod-tests: New file.
28098         * tests/test-fmod.c: New file.
28099
28100         Tests for module 'fabs'.
28101         * modules/fabs-tests: New file.
28102         * tests/test-fabs.c: New file.
28103
28104         Tests for module 'exp'.
28105         * modules/exp-tests: New file.
28106         * tests/test-exp.c: New file.
28107
28108         Tests for module 'erfc'.
28109         * modules/erfc-tests: New file.
28110         * tests/test-erfc.c: New file.
28111
28112         Tests for module 'erf'.
28113         * modules/erf-tests: New file.
28114         * tests/test-erf.c: New file.
28115
28116         Tests for module 'cosh'.
28117         * modules/cosh-tests: New file.
28118         * tests/test-cosh.c: New file.
28119
28120         Tests for module 'cos'.
28121         * modules/cos-tests: New file.
28122         * tests/test-cos.c: New file.
28123
28124         Tests for module 'copysign'.
28125         * modules/copysign-tests: New file.
28126         * tests/test-copysign.c: New file.
28127
28128         Tests for module 'cbrt'.
28129         * modules/cbrt-tests: New file.
28130         * tests/test-cbrt.c: New file.
28131
28132         Tests for module 'atan2'.
28133         * modules/atan2-tests: New file.
28134         * tests/test-atan2.c: New file.
28135
28136         Tests for module 'atan'.
28137         * modules/atan-tests: New file.
28138         * tests/test-atan.c: New file.
28139
28140         Tests for module 'asin'.
28141         * modules/asin-tests: New file.
28142         * tests/test-asin.c: New file.
28143
28144         Tests for module 'acos'.
28145         * modules/acos-tests: New file.
28146         * tests/test-acos.c: New file.
28147
28148 2010-01-24  Bruno Haible  <bruno@clisp.org>
28149
28150         Fix tests for common <math.h> functions.
28151         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28152         code snippet that references the function pointer, rather than merely
28153         calling the function. Substitute the FUNC_LIBM variable.
28154         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28155         * modules/acos (configure.ac): Likewise.
28156         * modules/asin (configure.ac): Likewise.
28157         * modules/atan (configure.ac): Likewise.
28158         * modules/atan2 (configure.ac): Likewise.
28159         * modules/cbrt (configure.ac): Likewise.
28160         * modules/copysign (configure.ac): Likewise.
28161         * modules/cos (configure.ac): Likewise.
28162         * modules/cosh (configure.ac): Likewise.
28163         * modules/erf (configure.ac): Likewise.
28164         * modules/erfc (configure.ac): Likewise.
28165         * modules/exp (configure.ac): Likewise.
28166         * modules/fabs (configure.ac): Likewise.
28167         * modules/fmod (configure.ac): Likewise.
28168         * modules/hypot (configure.ac): Likewise.
28169         * modules/j0 (configure.ac): Likewise.
28170         * modules/j1 (configure.ac): Likewise.
28171         * modules/jn (configure.ac): Likewise.
28172         * modules/ldexp (configure.ac): Likewise.
28173         * modules/lgamma (configure.ac): Likewise.
28174         * modules/log (configure.ac): Likewise.
28175         * modules/log10 (configure.ac): Likewise.
28176         * modules/log1p (configure.ac): Likewise.
28177         * modules/logb (configure.ac): Likewise.
28178         * modules/modf (configure.ac): Likewise.
28179         * modules/nextafter (configure.ac): Likewise.
28180         * modules/pow (configure.ac): Likewise.
28181         * modules/remainder (configure.ac): Likewise.
28182         * modules/rint (configure.ac): Likewise.
28183         * modules/sin (configure.ac): Likewise.
28184         * modules/sinh (configure.ac): Likewise.
28185         * modules/tan (configure.ac): Likewise.
28186         * modules/tanh (configure.ac): Likewise.
28187         * modules/y0 (configure.ac): Likewise.
28188         * modules/y1 (configure.ac): Likewise.
28189         * modules/yn (configure.ac): Likewise.
28190
28191 2010-01-24  Bruno Haible  <bruno@clisp.org>
28192
28193         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28194         * tests/test-acosl.c (x): New variable.
28195         (main): Store argument in x and fetch it from x.
28196         * tests/test-asinl.c (x): New variable.
28197         (main): Store argument in x and fetch it from x.
28198         * tests/test-atanl.c (x): New variable.
28199         (main): Store argument in x and fetch it from x.
28200         * tests/test-cosl.c (x): New variable.
28201         (main): Store argument in x and fetch it from x.
28202         * tests/test-expl.c (x): New variable.
28203         (main): Store argument in x and fetch it from x.
28204         * tests/test-logl.c (x): New variable.
28205         (main): Store argument in x and fetch it from x.
28206         * tests/test-sinl.c (x): New variable.
28207         (main): Store argument in x and fetch it from x.
28208         * tests/test-sqrtl.c (x): New variable.
28209         (main): Store argument in x and fetch it from x.
28210         * tests/test-tanl.c (x): New variable.
28211         (main): Store argument in x and fetch it from x.
28212
28213 2010-01-24  Bruno Haible  <bruno@clisp.org>
28214
28215         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28216         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28217         assignments to the initial TESTS_ENVIRONMENT.
28218         * doc/gnulib.texi (Unit test modules): Document it.
28219         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28220         TESTS_ENVIRONMENT.
28221         * modules/btowc-tests (Makefile.am): Likewise.
28222         * modules/c-stack-tests (Makefile.am): Likewise.
28223         * modules/c-strcase-tests (Makefile.am): Likewise.
28224         * modules/copy-file-tests (Makefile.am): Likewise.
28225         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28226         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28227         * modules/mbrtowc-tests (Makefile.am): Likewise.
28228         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28229         * modules/mbscasestr-tests (Makefile.am): Likewise.
28230         * modules/mbschr-tests (Makefile.am): Likewise.
28231         * modules/mbscspn-tests (Makefile.am): Likewise.
28232         * modules/mbsinit-tests (Makefile.am): Likewise.
28233         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28234         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28235         * modules/mbspbrk-tests (Makefile.am): Likewise.
28236         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28237         * modules/mbsrchr-tests (Makefile.am): Likewise.
28238         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28239         * modules/mbsspn-tests (Makefile.am): Likewise.
28240         * modules/mbsstr-tests (Makefile.am): Likewise.
28241         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28242         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28243         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28244         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28245         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28246         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28247         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28248         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28249         * modules/wcrtomb-tests (Makefile.am): Likewise.
28250         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28251         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28252         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28253         assignments from TESTS_ENVIRONMENT.
28254         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28255         augmentation.
28256         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28257         * modules/atexit-tests (Makefile.am): Likewise.
28258         * modules/binary-io-tests (Makefile.am): Likewise.
28259         * modules/closein-tests (Makefile.am): Likewise.
28260         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28261         * modules/exclude-tests (Makefile.am): Likewise.
28262         * modules/fflush-tests (Makefile.am): Likewise.
28263         * modules/fpending-tests (Makefile.am): Likewise.
28264         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28265         * modules/freadahead-tests (Makefile.am): Likewise.
28266         * modules/freadptr-tests (Makefile.am): Likewise.
28267         * modules/freadseek-tests (Makefile.am): Likewise.
28268         * modules/fseek-tests (Makefile.am): Likewise.
28269         * modules/fseeko-tests (Makefile.am): Likewise.
28270         * modules/ftell-tests (Makefile.am): Likewise.
28271         * modules/ftello-tests (Makefile.am): Likewise.
28272         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28273         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28274         * modules/lseek-tests (Makefile.am): Likewise.
28275         * modules/parse-duration-tests (Makefile.am): Likewise.
28276         * modules/perror-tests (Makefile.am): Likewise.
28277         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28278         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28279         * modules/pipe-tests (Makefile.am): Likewise.
28280         * modules/pread-tests (Makefile.am): Likewise.
28281         * modules/printf-posix-tests (Makefile.am): Likewise.
28282         * modules/select-tests (Makefile.am): Likewise.
28283         * modules/sigpipe-tests (Makefile.am): Likewise.
28284         * modules/tsearch-tests (Makefile.am): Likewise.
28285         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28286         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28287         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28288         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28289         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28290         * modules/version-etc-tests (Makefile.am): Likewise.
28291         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28292         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28293         * modules/xalloc-die-tests (Makefile.am): Likewise.
28294         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28295         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28296         * modules/xstrtol-tests (Makefile.am): Likewise.
28297         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28298         * modules/yesno-tests (Makefile.am): Likewise.
28299         Suggested by Jim Meyering.
28300
28301 2010-01-24  Bruno Haible  <bruno@clisp.org>
28302
28303         More documentation.
28304         * doc/gnulib.texi (Writing modules): New chapter.
28305         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28306         the new chapter.
28307
28308 2010-01-24  Jim Meyering  <meyering@redhat.com>
28309
28310         maint.mk: do not prepend "./" after filtering
28311         * top/maint.mk (_prepend_srcdir_prefix): New variable
28312         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28313         "./" when $(srcdir) is ".".
28314
28315         define STREQ(a,b) consistently, removing useless parentheses
28316         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28317         since the only risk is that "a" or "b" contains an unparenthesized
28318         comma, but if either did that, STREQ would have 3 or more arguments.
28319         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28320         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28321         * lib/hash-triple.c (STREQ): Likewise.
28322         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28323         * lib/getugroups.c (STREQ): Likewise.
28324
28325 2010-01-23  Jim Meyering  <meyering@redhat.com>
28326
28327         maint.mk: fix syntax-check in a non-srcdir build directory
28328         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28329         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28330
28331 2010-01-22  Jim Meyering  <meyering@redhat.com>
28332
28333         userspec: add unit tests
28334         * tests/test-userspec.c: New file.
28335         * modules/userspec-tests: Likewise.
28336
28337 2010-01-21  Jim Meyering  <meyering@redhat.com>
28338
28339         maint.mk: handle source file names containing "." robustly
28340         * top/maint.mk (_dot_escaped_srcdir): Define.
28341         (VC_LIST): Use it in LHS of sed substitution.
28342
28343 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28344
28345         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28346         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28347         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28348         from a non-srcdir build.
28349
28350 2010-01-20  Eric Blake  <ebb9@byu.net>
28351
28352         warn-on-use: use instead of link-warning
28353         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28354         * modules/unistd (Depends-on, Makefile.am): Likewise.
28355         * modules/arpa_inet (Depends-on): Replace link-warning with
28356         warn-on-use.
28357         (Makefile.am): Update rules accordingly.
28358         * modules/ctype (Depends-on, Makefile.am): Likewise.
28359         * modules/dirent (Depends-on, Makefile.am): Likewise.
28360         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28361         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28362         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28363         * modules/locale (Depends-on, Makefile.am): Likewise.
28364         * modules/math (Depends-on, Makefile.am): Likewise.
28365         * modules/search (Depends-on, Makefile.am): Likewise.
28366         * modules/signal (Depends-on, Makefile.am): Likewise.
28367         * modules/spawn (Depends-on, Makefile.am): Likewise.
28368         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28369         * modules/string (Depends-on, Makefile.am): Likewise.
28370         * modules/strings (Depends-on, Makefile.am): Likewise.
28371         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28372         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28373         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28374         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28375         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28376         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28377         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28378         * modules/wchar (Depends-on, Makefile.am): Likewise.
28379         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28380         should be poisoned.
28381         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28382         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28383         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28384         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28385         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28386         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28387         * m4/math_h.m4 (gl_MATH_H): Likewise.
28388         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28389         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28390         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28391         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28392         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28393         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28394         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28395         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28397         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28400         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28401         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28402         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28403         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28404         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28405         GL_LINK_WARNING.
28406         * lib/ctype.in.h: Likewise.
28407         * lib/dirent.in.h: Likewise.
28408         * lib/fcntl.in.h: Likewise.
28409         * lib/inttypes.in.h: Likewise.
28410         * lib/langinfo.in.h: Likewise.
28411         * lib/locale.in.h: Likewise.
28412         * lib/math.in.h: Likewise.
28413         * lib/search.in.h: Likewise.
28414         * lib/signal.in.h: Likewise.
28415         * lib/spawn.in.h: Likewise.
28416         * lib/stdio.in.h: Likewise.
28417         * lib/stdlib.in.h: Likewise.
28418         * lib/string.in.h: Likewise.
28419         * lib/strings.in.h: Likewise.
28420         * lib/sys_file.in.h: Likewise.
28421         * lib/sys_ioctl.in.h: Likewise.
28422         * lib/sys_select.in.h: Likewise.
28423         * lib/sys_socket.in.h: Likewise.
28424         * lib/sys_stat.in.h: Likewise.
28425         * lib/sys_times.in.h: Likewise.
28426         * lib/sys_utsname.in.h: Likewise.
28427         * lib/unistd.in.h: Likewise.
28428         * lib/wchar.in.h: Likewise.
28429
28430 2010-01-20  Bruno Haible  <bruno@clisp.org>
28431
28432         Avoid duplicate -lm.
28433         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28434         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28435         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28436         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28437         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28438         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28439         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28440         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28441         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28442         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28443         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28444         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28445         Reported by Paolo Bonzini.
28446
28447 2010-01-19  Bruno Haible  <bruno@clisp.org>
28448
28449         langinfo, nl_langinfo: Relicense under LGPLv2+.
28450         * modules/langinfo (License): Change to LGPLv2+.
28451         * modules/nl_langinfo (License): Likewise.
28452         Patch by David Lutterkort <lutter@redhat.com>.
28453
28454 2010-01-19  Bruno Haible  <bruno@clisp.org>
28455
28456         Avoid compilation error with cc on OSF/1 5.1.
28457         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28458         statement, not before.
28459         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28460
28461 2010-01-18  Bruno Haible  <bruno@clisp.org>
28462
28463         Avoid a link error due to the __printf__ symbol.
28464         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28465         and 2.6.x.
28466         (__format__, __printf__): Remove definitions.
28467         * lib/argp-fmtstream.h: Likewise.
28468         * lib/argp.h: Likewise.
28469         * lib/error.h: Likewise.
28470         * lib/vasnprintf.h: Likewise.
28471         * lib/xprintf.h: Likewise.
28472         * lib/xvasprintf.h: Likewise.
28473         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28474
28475 2010-01-18  Bruno Haible  <bruno@clisp.org>
28476
28477         Tests for module 'tanl'.
28478         * modules/tanl-tests: New file.
28479         * tests/test-tanl.c: New file.
28480
28481         Tests for module 'sqrtl'.
28482         * modules/sqrtl-tests: New file.
28483         * tests/test-sqrtl.c: New file.
28484
28485         Tests for module 'sinl'.
28486         * modules/sinl-tests: New file.
28487         * tests/test-sinl.c: New file.
28488
28489         Tests for module 'logl'.
28490         * modules/logl-tests: New file.
28491         * tests/test-logl.c: New file.
28492
28493         Tests for module 'expl'.
28494         * modules/expl-tests: New file.
28495         * tests/test-expl.c: New file.
28496
28497         Tests for module 'cosl'.
28498         * modules/cosl-tests: New file.
28499         * tests/test-cosl.c: New file.
28500
28501         Tests for module 'atanl'.
28502         * modules/atanl-tests: New file.
28503         * tests/test-atanl.c: New file.
28504
28505         Tests for module 'asinl'.
28506         * modules/asinl-tests: New file.
28507         * tests/test-asinl.c: New file.
28508
28509         Tests for module 'acosl'.
28510         * modules/acosl-tests: New file.
28511         * tests/test-acosl.c: New file.
28512
28513         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28514         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28515         tanl): Use the standard gnulib idiom.
28516         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28517         * lib/sinl.c: Likewise.
28518         * lib/tanl.c: Don't include trigl.c.
28519         (kernel_tanl): Make static.
28520         * lib/sincosl.c: Include trigl.h first.
28521         * lib/trigl.c: Likewise.
28522         * m4/acosl.m4: New file.
28523         * m4/asinl.m4: New file.
28524         * m4/atanl.m4: New file.
28525         * m4/cosl.m4: New file.
28526         * m4/expl.m4: New file.
28527         * m4/logl.m4: New file.
28528         * m4/sinl.m4: New file.
28529         * m4/sqrtl.m4: New file.
28530         * m4/tanl.m4: New file.
28531         * m4/mathl.m4: Remove file.
28532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28533         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28534         Don't initialize GNULIB_MATHL.
28535         * modules/acosl: New file.
28536         * modules/asinl: New file.
28537         * modules/atanl: New file.
28538         * modules/cosl: New file.
28539         * modules/expl: New file.
28540         * modules/logl: New file.
28541         * modules/sinl: New file.
28542         * modules/sqrtl: New file.
28543         * modules/tanl: New file.
28544         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28545         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28546         substitute GNULIB_MATHL.
28547         * modules/mathl: Rewritten.
28548         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28549         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28550         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28551         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28552         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28553         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28554         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28555         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28556         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28557
28558 2010-01-18  Bruno Haible  <bruno@clisp.org>
28559
28560         sqrt: Make gl_FUNC_SQRT requirable.
28561         * m4/sqrt.m4: New file.
28562         * modules/sqrt (Files): Add it.
28563         (configure.ac): Invoke gl_FUNC_SQRT.
28564
28565 2010-01-18  Bruno Haible  <bruno@clisp.org>
28566
28567         New modules for common <math.h> functions.
28568         * m4/mathfunc.m4: New file.
28569         * modules/acos: New file.
28570         * modules/asin: New file.
28571         * modules/atan: New file.
28572         * modules/atan2: New file.
28573         * modules/cbrt: New file.
28574         * modules/copysign: New file.
28575         * modules/cos: New file.
28576         * modules/cosh: New file.
28577         * modules/erf: New file.
28578         * modules/erfc: New file.
28579         * modules/exp: New file.
28580         * modules/fabs: New file.
28581         * modules/fmod: New file.
28582         * modules/hypot: New file.
28583         * modules/j0: New file.
28584         * modules/j1: New file.
28585         * modules/jn: New file.
28586         * modules/ldexp: New file.
28587         * modules/lgamma: New file.
28588         * modules/log: New file.
28589         * modules/log10: New file.
28590         * modules/log1p: New file.
28591         * modules/logb: New file.
28592         * modules/modf: New file.
28593         * modules/nextafter: New file.
28594         * modules/pow: New file.
28595         * modules/remainder: New file.
28596         * modules/rint: New file.
28597         * modules/sin: New file.
28598         * modules/sinh: New file.
28599         * modules/sqrt: New file.
28600         * modules/tan: New file.
28601         * modules/tanh: New file.
28602         * modules/y0: New file.
28603         * modules/y1: New file.
28604         * modules/yn: New file.
28605         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28606         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28607         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28608         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28609         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28610         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28611         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28612         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28613         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28614         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28615         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28616         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28617         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28618         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28619         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28620         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28621         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28622         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28623         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28624         * doc/posix-functions/log.texi: Mention the 'log' module.
28625         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28626         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28627         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28628         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28629         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28630         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28631         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28632         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28633         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28634         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28635         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28636         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28637         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28638         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28639         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28640         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28641
28642 2010-01-18  Jim Meyering  <meyering@redhat.com>
28643
28644         ignore-value: relax license to LGPLv2+
28645         * modules/ignore-value (License): Relax to LGPLv2+.
28646
28647         getdate: don't leak when TZ contains two or more '"'s
28648         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28649         double quote in TZ after the first one.
28650
28651         readtokens: do not leak internal token_lengths buffer
28652         * lib/readtokens.c (readtokens): Free the local, lengths,
28653         when the supplied "token_lengths" parameter is NULL.
28654
28655 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28656
28657         Fix a couple of missing LIBTHREAD link failures on AIX.
28658         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28659         $(LIBTHREAD).
28660         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28661
28662         Link test-poll against INET_PTON_LIB.
28663         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28664         for inet_pton on Solaris 10.
28665
28666 2010-01-17  Bruno Haible  <bruno@clisp.org>
28667
28668         unistdio/*-sprintf: Fix typo in module description.
28669         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28670         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28671         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28672         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28673         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28674         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28675         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28676         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28677
28678 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28679
28680         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28681         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28682         variables in shell case patterns, for AIX and HP-UX ksh.
28683
28684         Split large sed scripts, for HP-UX sed.
28685         * modules/stdio: Split sed scripts around 50 sed commands,
28686         to avoid HP-UX limit of 99 commands, in the near future.
28687         * modules/string: Likewise.
28688         * modules/unistd: Likewise.
28689
28690         gnulib-tool: avoid writing in the current directory.
28691         * gnulib-tool (func_emit_lib_Makefile_am)
28692         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28693         not in the current directory, so concurrent gnulib-tool
28694         instances do not interfere.
28695
28696 2010-01-16  Jim Meyering  <meyering@redhat.com>
28697
28698         doc: update users.txt
28699         * users.txt: Add grep.
28700         (diffutils, gzip): Update URLs.
28701
28702 2010-01-12  Bruno Haible  <bruno@clisp.org>
28703
28704         posix_spawn: Avoid test failure on Cygwin.
28705         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28706         characters.
28707         Reported by Simon Josefsson.
28708
28709 2010-01-12  Bruno Haible  <bruno@clisp.org>
28710
28711         * tests/test-cond.c (main): When skipping the test, show the reason.
28712
28713 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28714
28715         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28716
28717 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28718
28719         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28720         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28721
28722 2010-01-12  Eric Blake  <ebb9@byu.net>
28723
28724         build: guarantee AS_VAR_IF
28725         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28726         (gl_AS_VAR_IF): Move...
28727         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28728         Reported by Simon Josefsson.
28729
28730 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28731
28732         * lib/stdio.in.h: Fix typo.
28733
28734 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28735
28736         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28737         libgpg-error.
28738
28739 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28740
28741         * tests/test-xalloc-die.sh: Use $EXEEXT.
28742
28743 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28744             Bruno Haible  <bruno@clisp.org>
28745
28746         getlogin, getlogin_r: Avoid test failure.
28747         * tests/test-getlogin.c: Include <stdio.h>.
28748         (main): Skip the test when the function fails because stdin is not a
28749         tty.
28750         * tests/test-getlogin_r.c: Include <stdio.h>.
28751         (main): Skip the test when the function fails because stdin is not a
28752         tty.
28753
28754 2010-01-11  Eric Blake  <ebb9@byu.net>
28755
28756         tests: avoid more large file warnings
28757         * tests/test-fflush.c: Avoid warning about ftell use.
28758         * tests/test-fseek.c: Avoid warning about fseek use.
28759
28760 2010-01-10  Bruno Haible  <bruno@clisp.org>
28761
28762         nproc: Work better on Linux when /proc and /sys are not mounted.
28763         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28764         as lower bound when, on glibc/Linux systems,
28765         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28766         Suggested by Pádraig Brady <P@draigbrady.com>.
28767         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28768
28769         nproc: Refactor.
28770         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28771         extracted from num_processors.
28772         (num_processors): Call it.
28773
28774 2010-01-11  Jim Meyering  <meyering@redhat.com>
28775
28776         utimecmp: avoid new warning from upcoming gcc-4.5.0
28777         * lib/utimecmp.c (BILLION): Define using #define rather than an
28778         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28779
28780 2010-01-11  Eric Blake  <ebb9@byu.net>
28781
28782         math: add portability warnings for classification macros
28783         * modules/math (Depends-on): Add warn-on-use.
28784         (Makefile.am): Provide new substitutions.
28785         * m4/math_h.m4 (gl_MATH_H): Require inline.
28786         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28787         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28788         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28789         implement warnings.
28790
28791         unistd: warn on use of environ without module
28792         * modules/unistd (Depends-on): Add warn-on-use.
28793         (Makefile.am): Provide new substitutions.
28794         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28795         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28796
28797         stdio: warn on suspicious uses
28798         * modules/stdio (Depends-on): Add warn-on-use.
28799         (Makefile.am): Provide new substitutions.
28800         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28801         fseeko.
28802         * lib/stdio.in.h (gets): Always warn on use.
28803         (fseek, ftell): Adjust when warnings are issued, and honor
28804         _GL_NO_LARGE_FILES as a way to silence the warning.
28805         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28806         any warning about large file offsets.
28807         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28808         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28809         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28810         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28811         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28812         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28813         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28814         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28815
28816         warn-on-use: new module
28817         * modules/warn-on-use: New file.
28818         * build-aux/warn-on-use.h: Likewise.
28819         * m4/warn-on-use.m4: Likewise.
28820         * MODULES.html.sh (Support for building): Mention it.
28821
28822 2010-01-10  Bruno Haible  <bruno@clisp.org>
28823
28824         Tests for module 'unistr/u32-strdup'.
28825         * modules/unistr/u32-strdup-tests: New file.
28826         * tests/unistr/test-u32-strdup.c: New file.
28827
28828         Tests for module 'unistr/u16-strdup'.
28829         * modules/unistr/u16-strdup-tests: New file.
28830         * tests/unistr/test-u16-strdup.c: New file.
28831
28832         Tests for module 'unistr/u8-strdup'.
28833         * modules/unistr/u8-strdup-tests: New file.
28834         * tests/unistr/test-u8-strdup.c: New file.
28835         * tests/unistr/test-strdup.h: New file.
28836
28837         Tests for module 'unistr/u32-strncmp'.
28838         * modules/unistr/u32-strncmp-tests: New file.
28839         * tests/unistr/test-u32-strncmp.c: New file.
28840
28841         Tests for module 'unistr/u16-strncmp'.
28842         * modules/unistr/u16-strncmp-tests: New file.
28843         * tests/unistr/test-u16-strncmp.c: New file.
28844
28845         Tests for module 'unistr/u8-strncmp'.
28846         * modules/unistr/u8-strncmp-tests: New file.
28847         * tests/unistr/test-u8-strncmp.c: New file.
28848         * tests/unistr/test-strncmp.h: New file.
28849
28850         Tests for module 'unistr/u32-strcoll'.
28851         * modules/unistr/u32-strcoll-tests: New file.
28852         * tests/unistr/test-u32-strcoll.c: New file.
28853
28854         Tests for module 'unistr/u16-strcoll'.
28855         * modules/unistr/u16-strcoll-tests: New file.
28856         * tests/unistr/test-u16-strcoll.c: New file.
28857
28858         Tests for module 'unistr/u8-strcoll'.
28859         * modules/unistr/u8-strcoll-tests: New file.
28860         * tests/unistr/test-u8-strcoll.c: New file.
28861
28862         Tests for module 'unistr/u32-strcmp'.
28863         * modules/unistr/u32-strcmp-tests: New file.
28864         * tests/unistr/test-u32-strcmp.c: New file.
28865         * tests/unistr/test-u32-strcmp.h: New file.
28866
28867         Tests for module 'unistr/u16-strcmp'.
28868         * modules/unistr/u16-strcmp-tests: New file.
28869         * tests/unistr/test-u16-strcmp.c: New file.
28870         * tests/unistr/test-u16-strcmp.h: New file.
28871
28872         Tests for module 'unistr/u8-strcmp'.
28873         * modules/unistr/u8-strcmp-tests: New file.
28874         * tests/unistr/test-u8-strcmp.c: New file.
28875         * tests/unistr/test-u8-strcmp.h: New file.
28876         * tests/unistr/test-strcmp.h: New file.
28877
28878         Tests for module 'unistr/u32-strncat'.
28879         * modules/unistr/u32-strncat-tests: New file.
28880         * tests/unistr/test-u32-strncat.c: New file.
28881
28882         Tests for module 'unistr/u16-strncat'.
28883         * modules/unistr/u16-strncat-tests: New file.
28884         * tests/unistr/test-u16-strncat.c: New file.
28885
28886         Tests for module 'unistr/u8-strncat'.
28887         * modules/unistr/u8-strncat-tests: New file.
28888         * tests/unistr/test-u8-strncat.c: New file.
28889         * tests/unistr/test-strncat.h: New file.
28890
28891         Tests for module 'unistr/u32-strcat'.
28892         * modules/unistr/u32-strcat-tests: New file.
28893         * tests/unistr/test-u32-strcat.c: New file.
28894
28895         Tests for module 'unistr/u16-strcat'.
28896         * modules/unistr/u16-strcat-tests: New file.
28897         * tests/unistr/test-u16-strcat.c: New file.
28898
28899         Tests for module 'unistr/u8-strcat'.
28900         * modules/unistr/u8-strcat-tests: New file.
28901         * tests/unistr/test-u8-strcat.c: New file.
28902         * tests/unistr/test-strcat.h: New file.
28903
28904         Tests for module 'unistr/u32-stpncpy'.
28905         * modules/unistr/u32-stpncpy-tests: New file.
28906         * tests/unistr/test-u32-stpncpy.c: New file.
28907
28908         Tests for module 'unistr/u16-stpncpy'.
28909         * modules/unistr/u16-stpncpy-tests: New file.
28910         * tests/unistr/test-u16-stpncpy.c: New file.
28911
28912         Tests for module 'unistr/u8-stpncpy'.
28913         * modules/unistr/u8-stpncpy-tests: New file.
28914         * tests/unistr/test-u8-stpncpy.c: New file.
28915         * tests/unistr/test-stpncpy.h: New file.
28916
28917         Tests for module 'unistr/u32-strncpy'.
28918         * modules/unistr/u32-strncpy-tests: New file.
28919         * tests/unistr/test-u32-strncpy.c: New file.
28920
28921         Tests for module 'unistr/u16-strncpy'.
28922         * modules/unistr/u16-strncpy-tests: New file.
28923         * tests/unistr/test-u16-strncpy.c: New file.
28924
28925         Tests for module 'unistr/u8-strncpy'.
28926         * modules/unistr/u8-strncpy-tests: New file.
28927         * tests/unistr/test-u8-strncpy.c: New file.
28928         * tests/unistr/test-strncpy.h: New file.
28929
28930         Tests for module 'unistr/u32-stpcpy'.
28931         * modules/unistr/u32-stpcpy-tests: New file.
28932         * tests/unistr/test-u32-stpcpy.c: New file.
28933
28934         Tests for module 'unistr/u16-stpcpy'.
28935         * modules/unistr/u16-stpcpy-tests: New file.
28936         * tests/unistr/test-u16-stpcpy.c: New file.
28937
28938         Tests for module 'unistr/u8-stpcpy'.
28939         * modules/unistr/u8-stpcpy-tests: New file.
28940         * tests/unistr/test-u8-stpcpy.c: New file.
28941         * tests/unistr/test-stpcpy.h: New file.
28942
28943         Tests for module 'unistr/u32-strcpy'.
28944         * modules/unistr/u32-strcpy-tests: New file.
28945         * tests/unistr/test-u32-strcpy.c: New file.
28946
28947         Tests for module 'unistr/u16-strcpy'.
28948         * modules/unistr/u16-strcpy-tests: New file.
28949         * tests/unistr/test-u16-strcpy.c: New file.
28950
28951         Tests for module 'unistr/u8-strcpy'.
28952         * modules/unistr/u8-strcpy-tests: New file.
28953         * tests/unistr/test-u8-strcpy.c: New file.
28954         * tests/unistr/test-strcpy.h: New file.
28955
28956         Tests for module 'unistr/u32-strnlen'.
28957         * modules/unistr/u32-strnlen-tests: New file.
28958         * tests/unistr/test-u32-strnlen.c: New file.
28959
28960         Tests for module 'unistr/u16-strnlen'.
28961         * modules/unistr/u16-strnlen-tests: New file.
28962         * tests/unistr/test-u16-strnlen.c: New file.
28963
28964         Tests for module 'unistr/u8-strnlen'.
28965         * modules/unistr/u8-strnlen-tests: New file.
28966         * tests/unistr/test-u8-strnlen.c: New file.
28967         * tests/unistr/test-strnlen.h: New file.
28968
28969         Tests for module 'unistr/u32-strlen'.
28970         * modules/unistr/u32-strlen-tests: New file.
28971         * tests/unistr/test-u32-strlen.c: New file.
28972
28973         Tests for module 'unistr/u16-strlen'.
28974         * modules/unistr/u16-strlen-tests: New file.
28975         * tests/unistr/test-u16-strlen.c: New file.
28976
28977         Tests for module 'unistr/u8-strlen'.
28978         * modules/unistr/u8-strlen-tests: New file.
28979         * tests/unistr/test-u8-strlen.c: New file.
28980
28981         Tests for module 'unistr/u32-prev'.
28982         * modules/unistr/u32-prev-tests: New file.
28983         * tests/unistr/test-u32-prev.c: New file.
28984
28985         Tests for module 'unistr/u16-prev'.
28986         * modules/unistr/u16-prev-tests: New file.
28987         * tests/unistr/test-u16-prev.c: New file.
28988
28989         Tests for module 'unistr/u8-prev'.
28990         * modules/unistr/u8-prev-tests: New file.
28991         * tests/unistr/test-u8-prev.c: New file.
28992
28993         Tests for module 'unistr/u32-next'.
28994         * modules/unistr/u32-next-tests: New file.
28995         * tests/unistr/test-u32-next.c: New file.
28996
28997         Tests for module 'unistr/u16-next'.
28998         * modules/unistr/u16-next-tests: New file.
28999         * tests/unistr/test-u16-next.c: New file.
29000
29001         Tests for module 'unistr/u8-next'.
29002         * modules/unistr/u8-next-tests: New file.
29003         * tests/unistr/test-u8-next.c: New file.
29004
29005         Tests for module 'unistr/u32-strmbtouc'.
29006         * modules/unistr/u32-strmbtouc-tests: New file.
29007         * tests/unistr/test-u32-strmbtouc.c: New file.
29008
29009         Tests for module 'unistr/u16-strmbtouc'.
29010         * modules/unistr/u16-strmbtouc-tests: New file.
29011         * tests/unistr/test-u16-strmbtouc.c: New file.
29012
29013         Tests for module 'unistr/u8-strmbtouc'.
29014         * modules/unistr/u8-strmbtouc-tests: New file.
29015         * tests/unistr/test-u8-strmbtouc.c: New file.
29016
29017         Tests for module 'unistr/u32-strmblen'.
29018         * modules/unistr/u32-strmblen-tests: New file.
29019         * tests/unistr/test-u32-strmblen.c: New file.
29020
29021         Tests for module 'unistr/u16-strmblen'.
29022         * modules/unistr/u16-strmblen-tests: New file.
29023         * tests/unistr/test-u16-strmblen.c: New file.
29024
29025         Tests for module 'unistr/u8-strmblen'.
29026         * modules/unistr/u8-strmblen-tests: New file.
29027         * tests/unistr/test-u8-strmblen.c: New file.
29028
29029         Tests for module 'unistr/u32-cpy-alloc'.
29030         * modules/unistr/u32-cpy-alloc-tests: New file.
29031         * tests/unistr/test-u32-cpy-alloc.c: New file.
29032
29033         Tests for module 'unistr/u16-cpy-alloc'.
29034         * modules/unistr/u16-cpy-alloc-tests: New file.
29035         * tests/unistr/test-u16-cpy-alloc.c: New file.
29036
29037         Tests for module 'unistr/u8-cpy-alloc'.
29038         * modules/unistr/u8-cpy-alloc-tests: New file.
29039         * tests/unistr/test-u8-cpy-alloc.c: New file.
29040         * tests/unistr/test-cpy-alloc.h: New file.
29041
29042         Tests for module 'unistr/u32-mbsnlen'.
29043         * modules/unistr/u32-mbsnlen-tests: New file.
29044         * tests/unistr/test-u32-mbsnlen.c: New file.
29045
29046         Tests for module 'unistr/u16-mbsnlen'.
29047         * modules/unistr/u16-mbsnlen-tests: New file.
29048         * tests/unistr/test-u16-mbsnlen.c: New file.
29049
29050         Tests for module 'unistr/u8-mbsnlen'.
29051         * modules/unistr/u8-mbsnlen-tests: New file.
29052         * tests/unistr/test-u8-mbsnlen.c: New file.
29053
29054         Tests for module 'unistr/u32-chr'.
29055         * modules/unistr/u32-chr-tests: New file.
29056         * tests/unistr/test-u32-chr.c: New file.
29057
29058         Tests for module 'unistr/u16-chr'.
29059         * modules/unistr/u16-chr-tests: New file.
29060         * tests/unistr/test-u16-chr.c: New file.
29061
29062         Tests for module 'unistr/u8-chr'.
29063         * modules/unistr/u8-chr-tests: New file.
29064         * tests/unistr/test-u8-chr.c: New file.
29065         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29066
29067         Tests for module 'unistr/u32-cmp2'.
29068         * modules/unistr/u32-cmp2-tests: New file.
29069         * tests/unistr/test-u32-cmp2.c: New file.
29070
29071         Tests for module 'unistr/u16-cmp2'.
29072         * modules/unistr/u16-cmp2-tests: New file.
29073         * tests/unistr/test-u16-cmp2.c: New file.
29074
29075         Tests for module 'unistr/u8-cmp2'.
29076         * modules/unistr/u8-cmp2-tests: New file.
29077         * tests/unistr/test-u8-cmp2.c: New file.
29078         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29079
29080         Tests for module 'unistr/u32-cmp'.
29081         * modules/unistr/u32-cmp-tests: New file.
29082         * tests/unistr/test-u32-cmp.c: New file.
29083
29084         Tests for module 'unistr/u16-cmp'.
29085         * modules/unistr/u16-cmp-tests: New file.
29086         * tests/unistr/test-u16-cmp.c: New file.
29087
29088         Tests for module 'unistr/u8-cmp'.
29089         * modules/unistr/u8-cmp-tests: New file.
29090         * tests/unistr/test-u8-cmp.c: New file.
29091         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29092
29093         Tests for module 'unistr/u32-set'.
29094         * modules/unistr/u32-set-tests: New file.
29095         * tests/unistr/test-u32-set.c: New file.
29096
29097         Tests for module 'unistr/u16-set'.
29098         * modules/unistr/u16-set-tests: New file.
29099         * tests/unistr/test-u16-set.c: New file.
29100
29101         Tests for module 'unistr/u8-set'.
29102         * modules/unistr/u8-set-tests: New file.
29103         * tests/unistr/test-u8-set.c: New file.
29104         * tests/unistr/test-set.h: New file.
29105
29106         Tests for module 'unistr/u32-move'.
29107         * modules/unistr/u32-move-tests: New file.
29108         * tests/unistr/test-u32-move.c: New file.
29109
29110         Tests for module 'unistr/u16-move'.
29111         * modules/unistr/u16-move-tests: New file.
29112         * tests/unistr/test-u16-move.c: New file.
29113
29114         Tests for module 'unistr/u8-move'.
29115         * modules/unistr/u8-move-tests: New file.
29116         * tests/unistr/test-u8-move.c: New file.
29117         * tests/unistr/test-move.h: New file.
29118
29119         Tests for module 'unistr/u32-cpy'.
29120         * modules/unistr/u32-cpy-tests: New file.
29121         * tests/unistr/test-u32-cpy.c: New file.
29122
29123         Tests for module 'unistr/u16-cpy'.
29124         * modules/unistr/u16-cpy-tests: New file.
29125         * tests/unistr/test-u16-cpy.c: New file.
29126
29127         Tests for module 'unistr/u8-cpy'.
29128         * modules/unistr/u8-cpy-tests: New file.
29129         * tests/unistr/test-u8-cpy.c: New file.
29130         * tests/unistr/test-cpy.h: New file.
29131
29132 2010-01-09  Bruno Haible  <bruno@clisp.org>
29133
29134         Tests for module 'unistr/u32-uctomb'.
29135         * modules/unistr/u32-uctomb-tests: New file.
29136         * tests/unistr/test-u32-uctomb.c: New file.
29137
29138         Tests for module 'unistr/u16-uctomb'.
29139         * modules/unistr/u16-uctomb-tests: New file.
29140         * tests/unistr/test-u16-uctomb.c: New file.
29141
29142         Tests for module 'unistr/u8-uctomb'.
29143         * modules/unistr/u8-uctomb-tests: New file.
29144         * tests/unistr/test-u8-uctomb.c: New file.
29145
29146         Tests for module 'unistr/u32-mbtoucr'.
29147         * modules/unistr/u32-mbtoucr-tests: New file.
29148         * tests/unistr/test-u32-mbtoucr.c: New file.
29149
29150         Tests for module 'unistr/u16-mbtoucr'.
29151         * modules/unistr/u16-mbtoucr-tests: New file.
29152         * tests/unistr/test-u16-mbtoucr.c: New file.
29153
29154         Tests for module 'unistr/u8-mbtoucr'.
29155         * modules/unistr/u8-mbtoucr-tests: New file.
29156         * tests/unistr/test-u8-mbtoucr.c: New file.
29157
29158         Tests for module 'unistr/u32-mbtouc'.
29159         * modules/unistr/u32-mbtouc-tests: New file.
29160         * tests/unistr/test-u32-mbtouc.c: New file.
29161
29162         Tests for module 'unistr/u16-mbtouc'.
29163         * modules/unistr/u16-mbtouc-tests: New file.
29164         * tests/unistr/test-u16-mbtouc.c: New file.
29165
29166         Tests for module 'unistr/u8-mbtouc'.
29167         * modules/unistr/u8-mbtouc-tests: New file.
29168         * tests/unistr/test-u8-mbtouc.c: New file.
29169
29170         Tests for module 'unistr/u32-mbtouc-unsafe'.
29171         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29172         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29173         * tests/unistr/test-u32-mbtouc.h: New file.
29174
29175         Tests for module 'unistr/u16-mbtouc-unsafe'.
29176         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29177         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29178         * tests/unistr/test-u16-mbtouc.h: New file.
29179
29180         Tests for module 'unistr/u8-mbtouc-unsafe'.
29181         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29182         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29183         * tests/unistr/test-u8-mbtouc.h: New file.
29184
29185         Tests for module 'unistr/u32-mblen'.
29186         * modules/unistr/u32-mblen-tests: New file.
29187         * tests/unistr/test-u32-mblen.c: New file.
29188
29189         Tests for module 'unistr/u16-mblen'.
29190         * modules/unistr/u16-mblen-tests: New file.
29191         * tests/unistr/test-u16-mblen.c: New file.
29192
29193         Tests for module 'unistr/u8-mblen'.
29194         * modules/unistr/u8-mblen-tests: New file.
29195         * tests/unistr/test-u8-mblen.c: New file.
29196
29197         Tests for module 'unistr/u32-to-u16'.
29198         * modules/unistr/u32-to-u16-tests: New file.
29199         * tests/unistr/test-u32-to-u16.c: New file.
29200
29201         Tests for module 'unistr/u32-to-u8'.
29202         * modules/unistr/u32-to-u8-tests: New file.
29203         * tests/unistr/test-u32-to-u8.c: New file.
29204
29205         Tests for module 'unistr/u16-to-u32'.
29206         * modules/unistr/u16-to-u32-tests: New file.
29207         * tests/unistr/test-u16-to-u32.c: New file.
29208
29209         Tests for module 'unistr/u16-to-u8'.
29210         * modules/unistr/u16-to-u8-tests: New file.
29211         * tests/unistr/test-u16-to-u8.c: New file.
29212
29213         Tests for module 'unistr/u8-to-u32'.
29214         * modules/unistr/u8-to-u32-tests: New file.
29215         * tests/unistr/test-u8-to-u32.c: New file.
29216
29217         Tests for module 'unistr/u8-to-u16'.
29218         * modules/unistr/u8-to-u16-tests: New file.
29219         * tests/unistr/test-u8-to-u16.c: New file.
29220
29221         Tests for module 'unistr/u32-check'.
29222         * modules/unistr/u32-check-tests: New file.
29223         * tests/unistr/test-u32-check.c: New file.
29224
29225         Tests for module 'unistr/u16-check'.
29226         * modules/unistr/u16-check-tests: New file.
29227         * tests/unistr/test-u16-check.c: New file.
29228
29229         Tests for module 'unistr/u8-check'.
29230         * modules/unistr/u8-check-tests: New file.
29231         * tests/unistr/test-u8-check.c: New file.
29232
29233         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29234         (category_equals): New function.
29235         (main): Add more tests.
29236         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29237
29238         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29239
29240 2010-01-10  Bruno Haible  <bruno@clisp.org>
29241
29242         unistr/u*-strcoll: Try harder to distinguish different strings.
29243         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29244         compare s1 and s2 to see if they are different.
29245
29246 2010-01-10  Bruno Haible  <bruno@clisp.org>
29247
29248         unistr/u*-stpncpy: Fix the return value.
29249         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29250         description of the return value consistent with stpncpy in glibc.
29251         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29252         written non-NUL unit.
29253
29254 2010-01-10  Bruno Haible  <bruno@clisp.org>
29255
29256         unistr/u*-next: Add missing dependencies.
29257         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29258         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29259         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29260
29261 2010-01-10  Bruno Haible  <bruno@clisp.org>
29262
29263         unistr/u8-mbsnlen: Fix return value for incomplete character.
29264         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29265         u8_mblen.
29266         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29267         Remove unistr/u8-mblen.
29268         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29269         u16_mblen.
29270         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29271         Remove unistr/u16-mblen.
29272
29273 2010-01-10  Bruno Haible  <bruno@clisp.org>
29274
29275         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29276         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29277         Reported by Brian Gough <bjg@gnu.org> and
29278         Chris Clayton <chris2553@googlemail.com> via
29279         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29280
29281 2010-01-09  Bruno Haible  <bruno@clisp.org>
29282
29283         unistr/u16-to-u32: Reject invalid input.
29284         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29285         u16_mbtouc.
29286         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29287         Remove unistr/u16-mbtouc.
29288
29289         unistr/u16-to-u8: Reject invalid input.
29290         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29291         u16_mbtouc.
29292         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29293         Remove unistr/u16-mbtouc.
29294
29295         unistr/u8-to-u32: Reject invalid input.
29296         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29297         u8_mbtouc.
29298         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29299         Remove unistr/u8-mbtouc.
29300
29301         unistr/u8-to-u16: Reject invalid input.
29302         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29303         u8_mbtouc.
29304         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29305         Remove unistr/u8-mbtouc.
29306
29307 2010-01-09  Bruno Haible  <bruno@clisp.org>
29308
29309         Tests for module 'getlogin'.
29310         * modules/getlogin-tests: New file.
29311         * tests/test-getlogin.c: New file.
29312
29313         New module 'getlogin'.
29314         * lib/unistd.in.h (getlogin): New declaration.
29315         * lib/getlogin.c: New file.
29316         * m4/getlogin.m4: New file.
29317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29318         HAVE_GETLOGIN.
29319         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29320         HAVE_GETLOGIN.
29321         * modules/getlogin: New file.
29322         * doc/posix-functions/getlogin.texi: Mention the new module.
29323         Reported by John W. Eaton <jwe@gnu.org>.
29324
29325 2010-01-09  Bruno Haible  <bruno@clisp.org>
29326
29327         getlogin_r: Support for native Windows.
29328         * lib/getlogin_r.c: Include <windows.h>
29329         (getlogin_r): Implement for native Windows.
29330         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29331         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29332         via John W. Eaton <jwe@gnu.org>.
29333
29334 2010-01-09  Bruno Haible  <bruno@clisp.org>
29335
29336         getlogin_r: Small fixes.
29337         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29338         succeeds.
29339         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29340         before testing whether getlogin_r is declared. No need to set
29341         HAVE_DECL_GETLOGIN_R to 1.
29342         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29343
29344 2010-01-09  Bruno Haible  <bruno@clisp.org>
29345
29346         * lib/unistd.in.h (getlogin_r): Add comment.
29347
29348 2010-01-09  Bruno Haible  <bruno@clisp.org>
29349
29350         Tests for module 'getlogin_r'.
29351         * modules/getlogin_r-tests: New file.
29352         * tests/test-getlogin_r.c: New file.
29353
29354 2010-01-09  Jim Meyering  <meyering@redhat.com>
29355
29356         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29357         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29358         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29359
29360 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29361
29362         * lib/dup2.c (rpl_dup2): Improve comment.
29363
29364 2010-01-08  Eric Blake  <ebb9@byu.net>
29365
29366         maint.mk: allow packages to add makefile @@ exceptions
29367         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29368         (sc_makefile_check): Rename...
29369         (sc_makefile_at_at_check): ...to this, and use hook.
29370
29371         dup2: work around mingw bug
29372         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29373         Reported by Simon Josefsson.
29374
29375 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29376
29377         glob: Fix C++ compilation.
29378         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29379         C++.
29380
29381 2010-01-07  Bruno Haible  <bruno@clisp.org>
29382
29383         Fix indentation of wctype.in.h, broken since 2007-01-06.
29384         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29385
29386 2010-01-07  Bruno Haible  <bruno@clisp.org>
29387
29388         mbslen: Avoid collision with system function.
29389         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29390         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29391         * m4/mbslen.m4: New file.
29392         * modules/mbslen (Files): Add it.
29393         (configure.ac): Invoke gl_MBSLEN.
29394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29395         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29396         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29397         via Ian Beckwith <ianb@erislabs.net>.
29398
29399 2010-01-07  Bruno Haible  <bruno@clisp.org>
29400
29401         dirent: Document the last fix.
29402         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29403
29404 2010-01-07  Bruno Haible  <bruno@clisp.org>
29405
29406         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29407         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29408         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29409         va_list are defined.
29410         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29411         Reported by Eric Blake.
29412
29413 2010-01-07  Bruno Haible  <bruno@clisp.org>
29414
29415         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29416         * modules/xlist (Depends-on): Add 'list',
29417         * modules/xoset (Depends-on): Add 'oset'.
29418         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29419
29420 2010-01-07  Bruno Haible  <bruno@clisp.org>
29421
29422         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29423         * doc/posix-functions/strncasecmp.texi: Likewise.
29424
29425 2010-01-07  Bruno Haible  <bruno@clisp.org>
29426
29427         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29428
29429 2010-01-07  John W. Eaton  <jwe@octave.org>
29430
29431         wctype: allow C++ use
29432         * lib/wctype.in.h: Add extern "C" block for C++.
29433
29434 2010-01-06  Eric Blake  <ebb9@byu.net>
29435
29436         maint.mk: detect incorrect GFDL usage
29437         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29438
29439 2010-01-06  Jim Meyering  <meyering@redhat.com>
29440         and Eric Blake  <ebb9@byu.net>
29441
29442         maint.mk: ignore multi-line copyright in NEWS
29443         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29444
29445 2010-01-06  Eric Blake  <ebb9@byu.net>
29446
29447         select: add missing dependency
29448         * modules/select-tests (Depends-on): Move sockets dependency...
29449         * modules/select (Depends-on): ...here.
29450         Reported by Ian Beckwith.
29451
29452         doc: regenerate INSTALL
29453         * doc/INSTALL: Reflect recent autoconf update.
29454         * doc/INSTALL.ISO: Likewise.
29455         * doc/INSTALL.UTF-8: Likewise.
29456
29457         pread: fix compilation on glibc
29458         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29459         Reported by Ralf Wildenhues.
29460
29461         dirent: fix test failure
29462         * lib/dirent.in.h (includes): Guarantee ino_t.
29463         Reported by Ralf Wildenhues.
29464
29465 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29466
29467         linkat, renameat: avoid bad free
29468         * lib/at-func2.c (at_func2): Fix typo.
29469         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29470
29471 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29472
29473         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29474         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29475         to avoid failure of symlink test later.
29476
29477 2010-01-06  Eric Blake  <ebb9@byu.net>
29478
29479         stdio, unistd: guarantee ssize_t
29480         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29481         2008 are exposed when needed.
29482         * lib/stdio.in.h (includes): Likewise.
29483         Reported by Ralf Wildenhues.
29484
29485 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29486
29487         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29488         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29489         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29490
29491 2010-01-06  Jim Meyering  <meyering@redhat.com>
29492
29493         readtokens: this module *does* require xalloc.h
29494         It uses only functions that were omitted by the old syntax-check rule.
29495         * lib/readtokens.c: Include "xalloc.h" once again.
29496         * modules/readtokens (Depends-on): Add xalloc.
29497         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29498
29499 2010-01-05  Eric Blake  <ebb9@byu.net>
29500
29501         maint: support 'make announcement' from a VPATH build
29502         * top/maint.mk (announcement): Look for correct NEWS file.
29503
29504 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29505
29506         utimens (fdutimens): ignore a negative FD, per contract
29507         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29508         when we have a valid file descriptor.  Otherwise, using a brand
29509         new glibc (with just-patched futimens that now fails with EBADF)
29510         would cause this function to fail with ENOSYS.
29511         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29512         See also http://bugzilla.redhat.com/552320.
29513
29514 2010-01-05  Eric Blake  <ebb9@byu.net>
29515
29516         strcase: document what it provides
29517         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29518         gnulib module.
29519         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29520         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29521
29522 2010-01-05  Jim Meyering  <meyering@redhat.com>
29523
29524         maint: remove useless inclusions of "xalloc.h"
29525         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29526         * lib/readtokens.c: Likewise.
29527         * lib/same.c: Likewise.
29528         * modules/getloadavg (Depends-on): Remove xalloc.
29529         * modules/readtokens: Likewise.
29530         * modules/same: Likewise.
29531
29532         maint.mk: include 4 more function names in alloca.h-checking regexp
29533         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29534         regexp.  Before, we would give a false-positive (saying alloca.h
29535         is included unnecessarily) when the only uses involved omitted symbols.
29536
29537         xalloc.h: use consistent formatting
29538         * lib/xalloc.h: Move declarations to start in the first column.
29539
29540 2010-01-05  Eric Blake  <ebb9@byu.net>
29541
29542         mkdir: avoid xalloc
29543         * lib/mkdir.c (includes): Drop unused header.
29544         Reported by John W. Eaton.
29545
29546 2010-01-04  Jim Meyering  <meyering@redhat.com>
29547
29548         nl_langinfo: avoid configure-time syntax error
29549         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29550         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29551         the empty string.  Don't let that provoke a shell syntax error.
29552
29553         regcomp, regexec, fnmatch: avoid array bounds read error
29554         * lib/regcomp.c (build_equiv_class): From glibc:
29555         Use only the low 24 bits of a findidx return value as an index
29556         into the weights array.  Patch by Ulrich Drepper:
29557         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29558         * lib/regexec.c (check_node_accept_bytes): Likewise.
29559         * lib/fnmatch_loop.c (FCT): Likewise.
29560
29561         regcomp: skip collseq lookup when there are no rules
29562         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29563         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29564
29565         regcomp: recognize ill-formed { } expressions
29566         * lib/regcomp.c (parse_dup_op): From glibc:
29567         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29568
29569         regcomp: fix typo in comment
29570         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29571         s/satisfy/satisfies/.
29572
29573         regcomp: sync from glibc: remove dead store
29574         * lib/regcomp.c (duplicate_node_closure): Remove useless
29575         search_duplicated_node call and dead store.
29576
29577         regcomp: sync from glibc; always use nl_langinfo
29578         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29579         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29580         * modules/regex (Depends-on): Add nl_langinfo.
29581
29582 2010-01-04  Eric Blake  <ebb9@byu.net>
29583
29584         fdopendir: fix configure test
29585         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29586
29587 2010-01-01  Bruno Haible  <bruno@clisp.org>
29588
29589         wchar: Remove unused configure check.
29590         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29591
29592 2010-01-01  Eric Blake  <ebb9@byu.net>
29593
29594         headers: make check of system header explicit
29595         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29596         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29597         ourselves.
29598         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29599         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29600         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29601         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29602         internals.
29603         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29604         missing.
29605         Suggested by Bruno Haible.
29606
29607 2010-01-01  Jim Meyering  <meyering@redhat.com>
29608
29609         ChangeLog: tweak to eliminate unnecessary copyright line
29610         * ChangeLog: Remove a copyright line that was mistakenly updated
29611         by today's update-copyright run.  Reported by Eric Blake.
29612
29613         test-update-copyright: don't let envvar setting cause test failure
29614         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29615
29616 2010-01-01  Bruno Haible  <bruno@clisp.org>
29617
29618         localename: Avoid gcc warning.
29619         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29620         function if it is not used.
29621
29622 2010-01-01  Jim Meyering  <meyering@redhat.com>
29623
29624         update nearly all FSF copyright year lists to include 2010
29625         Use the same procedure as for 2009, outlined in
29626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29627
29628         version-etc: set COPYRIGHT_YEAR to 2010
29629         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29630
29631 2009-12-31  Eric Blake  <ebb9@byu.net>
29632
29633         doc: correct availability of cygwin 1.5.x getopt
29634         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29635         variables.
29636         * doc/posix-functions/opterr.texi (opterr): Likewise.
29637         * doc/posix-functions/optind.texi (optind): Likewise.
29638         * doc/posix-functions/optopt.texi (optopt): Likewise.
29639         * doc/posix-functions/tzname.texi (tzname): Likewise.
29640
29641         openat: update maintainer
29642         * modules/openat (Maintainer): Add myself.
29643
29644         utimens: avoid shadowing warning
29645         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29646         buffers into one, to avoid shadowing, as well as avoiding a
29647         redundant stat.
29648         Reported by Jim Meyering.
29649
29650         test-dup2: avoid compiler warning
29651         * tests/test-dup2.c (is_inheritable): Only define if used.
29652
29653 2010-01-01  Bruno Haible  <bruno@clisp.org>
29654
29655         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29656         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29657         defined, use wctomb instead of wcrtomb.
29658
29659 2010-01-01  Bruno Haible  <bruno@clisp.org>
29660
29661         iconv: Reject native Solaris iconv.
29662         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29663         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29664
29665 2009-12-31  Bruno Haible  <bruno@clisp.org>
29666
29667         * tests/test-signal.c (main): Remove test of 'SIG'.
29668
29669 2009-12-31  Bruno Haible  <bruno@clisp.org>
29670
29671         spawn: Fix incomplete fix.
29672         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29673         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29674         warnings for GNULIB_POSIXCHECK again.
29675         Reported by Eric Blake.
29676
29677 2009-12-31  Bruno Haible  <bruno@clisp.org>
29678
29679         Avoid namespace pollution on glibc systems.
29680         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29681         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29682         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29683         glibc systems.
29684
29685 2009-12-31  Bruno Haible  <bruno@clisp.org>
29686
29687         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29688         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29689         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29690         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29691         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29692         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29693         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29694
29695 2009-12-31  Bruno Haible  <bruno@clisp.org>
29696
29697         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29698         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29699         afterwards.
29700
29701 2009-12-31  Bruno Haible  <bruno@clisp.org>
29702
29703         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29704         SYS_UTSNAME_H.
29705
29706 2009-12-31  Bruno Haible  <bruno@clisp.org>
29707
29708         spawn: Fix misapplied patch.
29709         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29710         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29711         warnings for GNULIB_POSIXCHECK.
29712
29713 2009-12-31  Bruno Haible  <bruno@clisp.org>
29714
29715         times: Update after sys_times changed.
29716         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29717         * modules/times (Files): Add it.
29718         (configure.ac): Invoke gl_FUNC_TIMES.
29719
29720 2009-12-31  Bruno Haible  <bruno@clisp.org>
29721
29722         Use AC_C_INLINE where necessary.
29723         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29724         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29725         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29726         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29727         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29728         * m4/mbiter.m4 (gl_MBITER): Likewise.
29729         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29730         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29731         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29732         * modules/u64 (configure.ac): Likewise.
29733
29734 2009-12-31  Bruno Haible  <bruno@clisp.org>
29735
29736         Use AC_C_INLINE instead of module 'inline' where possible.
29737         * modules/inline (Description): Clarify purpose.
29738         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29739         * modules/count-one-bits (Depends-on): Remove inline.
29740         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29741         * modules/openat (Depends-on): Remove inline.
29742         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29743         instead of depending on module 'inline'.
29744         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29745         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29746         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29747         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29748         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29749         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29750         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29751         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29752         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29753         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29754         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29755         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29756         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29757         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29758         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29759         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29760         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29761         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29762         Likewise.
29763         * modules/unictype/property-ascii-hex-digit (Depends-on,
29764         configure.ac): Likewise.
29765         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29766         configure.ac): Likewise.
29767         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29768         configure.ac): Likewise.
29769         * modules/unictype/property-bidi-block-separator (Depends-on,
29770         configure.ac): Likewise.
29771         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29772         configure.ac): Likewise.
29773         * modules/unictype/property-bidi-common-separator (Depends-on,
29774         configure.ac): Likewise.
29775         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29776         Likewise.
29777         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29778         configure.ac): Likewise.
29779         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29780         configure.ac): Likewise.
29781         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29782         configure.ac): Likewise.
29783         * modules/unictype/property-bidi-european-digit (Depends-on,
29784         configure.ac): Likewise.
29785         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29786         configure.ac): Likewise.
29787         * modules/unictype/property-bidi-left-to-right (Depends-on,
29788         configure.ac): Likewise.
29789         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29790         configure.ac): Likewise.
29791         * modules/unictype/property-bidi-other-neutral (Depends-on,
29792         configure.ac): Likewise.
29793         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29794         Likewise.
29795         * modules/unictype/property-bidi-segment-separator (Depends-on,
29796         configure.ac): Likewise.
29797         * modules/unictype/property-bidi-whitespace (Depends-on,
29798         configure.ac): Likewise.
29799         * modules/unictype/property-combining (Depends-on, configure.ac):
29800         Likewise.
29801         * modules/unictype/property-composite (Depends-on, configure.ac):
29802         Likewise.
29803         * modules/unictype/property-currency-symbol (Depends-on,
29804         configure.ac): Likewise.
29805         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29806         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29807         Likewise.
29808         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29809         configure.ac): Likewise.
29810         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29811         Likewise.
29812         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29813         Likewise.
29814         * modules/unictype/property-extender (Depends-on, configure.ac):
29815         Likewise.
29816         * modules/unictype/property-format-control (Depends-on, configure.ac):
29817         Likewise.
29818         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29819         Likewise.
29820         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29821         Likewise.
29822         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29823         Likewise.
29824         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29825         Likewise.
29826         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29827         Likewise.
29828         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29829         Likewise.
29830         * modules/unictype/property-id-start (Depends-on, configure.ac):
29831         Likewise.
29832         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29833         Likewise.
29834         * modules/unictype/property-ids-binary-operator (Depends-on,
29835         configure.ac): Likewise.
29836         * modules/unictype/property-ids-trinary-operator (Depends-on,
29837         configure.ac): Likewise.
29838         * modules/unictype/property-ignorable-control (Depends-on,
29839         configure.ac): Likewise.
29840         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29841         Likewise.
29842         * modules/unictype/property-join-control (Depends-on, configure.ac):
29843         Likewise.
29844         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29845         Likewise.
29846         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29847         Likewise.
29848         * modules/unictype/property-logical-order-exception (Depends-on,
29849         configure.ac): Likewise.
29850         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29851         Likewise.
29852         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29853         * modules/unictype/property-non-break (Depends-on, configure.ac):
29854         Likewise.
29855         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29856         Likewise.
29857         * modules/unictype/property-numeric (Depends-on, configure.ac):
29858         Likewise.
29859         * modules/unictype/property-other-alphabetic (Depends-on,
29860         configure.ac): Likewise.
29861         * modules/unictype/property-other-default-ignorable-code-point
29862         (Depends-on, configure.ac): Likewise.
29863         * modules/unictype/property-other-grapheme-extend (Depends-on,
29864         configure.ac): Likewise.
29865         * modules/unictype/property-other-id-continue (Depends-on,
29866         configure.ac): Likewise.
29867         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29868         Likewise.
29869         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29870         Likewise.
29871         * modules/unictype/property-other-math (Depends-on, configure.ac):
29872         Likewise.
29873         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29874         Likewise.
29875         * modules/unictype/property-paired-punctuation (Depends-on,
29876         configure.ac): Likewise.
29877         * modules/unictype/property-paragraph-separator (Depends-on,
29878         configure.ac): Likewise.
29879         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29880         Likewise.
29881         * modules/unictype/property-pattern-white-space (Depends-on,
29882         configure.ac): Likewise.
29883         * modules/unictype/property-private-use (Depends-on, configure.ac):
29884         Likewise.
29885         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29886         Likewise.
29887         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29888         Likewise.
29889         * modules/unictype/property-radical (Depends-on, configure.ac):
29890         Likewise.
29891         * modules/unictype/property-sentence-terminal (Depends-on,
29892         configure.ac): Likewise.
29893         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29894         Likewise.
29895         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29896         * modules/unictype/property-terminal-punctuation (Depends-on,
29897         configure.ac): Likewise.
29898         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29899         Likewise.
29900         * modules/unictype/property-unassigned-code-value (Depends-on,
29901         configure.ac): Likewise.
29902         * modules/unictype/property-unified-ideograph (Depends-on,
29903         configure.ac): Likewise.
29904         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29905         Likewise.
29906         * modules/unictype/property-variation-selector (Depends-on,
29907         configure.ac): Likewise.
29908         * modules/unictype/property-white-space (Depends-on, configure.ac):
29909         Likewise.
29910         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29911         Likewise.
29912         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29913         Likewise.
29914         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29915         Likewise.
29916         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29917         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29918         Likewise.
29919
29920 2009-12-31  Bruno Haible  <bruno@clisp.org>
29921
29922         Remove unnecessary AC_C_INLINE invocation.
29923         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29924         since 2009-08-21.
29925
29926 2009-12-31  Jim Meyering  <meyering@redhat.com>
29927
29928         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29929         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29930         With this change, we can all remove the gpg_key_ID = ... definition
29931         from our respective cfg.mk files.
29932
29933         maint.mk: create announcement template in ~/, not in /tmp
29934         * top/maint.mk (emit_upload_commands): Adjust.
29935         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29936         Remove temporary file, .ci-msg.
29937
29938 2009-12-31  Eric Blake  <ebb9@byu.net>
29939
29940         link-warning: always build headers with link warnings
29941         * modules/arpa_inet (Makefile.am): Always build replacement
29942         header.
29943         * modules/ctype (Makefile.am): Likewise.
29944         * modules/dirent (Makefile.am): Likewise.
29945         * modules/inttypes (Makefile.am): Likewise.
29946         * modules/langinfo (Makefile.am): Likewise.
29947         * modules/locale (Makefile.am): Likewise.
29948         * modules/spawn (Makefile.am): Likewise.
29949         * modules/sys_file (Makefile.am): Likewise.
29950         * modules/sys_ioctl (Makefile.am): Likewise.
29951         * modules/sys_select (Makefile.am): Likewise.
29952         * modules/sys_socket (Makefile.am): Likewise.
29953         * modules/sys_times (Makefile.am): Likewise.
29954         * modules/sys_utsname (Makefile.am): Likewise.
29955         * modules/sys_wait (Makefile.am): Likewise.
29956         * modules/wchar (Makefile.am): Likewise.
29957         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29958         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29959         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29960         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29961         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29962         Likewise.
29963         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29964         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29965         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29966         Likewise.
29967         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29968         Likewise.
29969         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29970         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29971         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29972         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29973         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29974         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29975         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29976         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29977         (gl_WCHAR_H_DEFAULTS): Likewise.
29978
29979 2009-12-31  Eric Blake  <ebb9@byu.net>
29980
29981         signal, spawn: use link warnings
29982         * lib/signal.in.h (sigset_t): Make unconditional.
29983         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29984         (sigpending, sigprocmask, sigaction): Add link warnings.
29985         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29986         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29987         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29988         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29989         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29990         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29991         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29992         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29993         (posix_spawn_file_actions_destroy)
29994         (posix_spawn_file_actions_addopen)
29995         (posix_spawn_file_actions_addclose)
29996         (posix_spawn_file_actions_adddup2): Likewise.
29997         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29998         * tests/test-signal.c (main): Enhance test.
29999
30000         spawn: improve wrapper support
30001         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30002         (gl_SPAWN_H_DEFAULTS): New defaults.
30003         * modules/spawn (Makefile.am): Substitute them.
30004         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30005         Only declare if missing or broken.
30006
30007         sys_times, sys_utsname: use include_next
30008         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30009         header.
30010         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30011         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30012         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30013         * modules/sys_times (Depends-on): Add include_next.
30014         (Makefile.am): Substitute additional values.
30015         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30016         * lib/sys_times.in.h (includes): Include native header, if
30017         available.
30018         * lib/sys_utsname.in.h (includes): Likewise.
30019         * tests/test-sys_times.c (main): Enhance test.
30020
30021         fdutimensat: revert prior patch
30022         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30023         utimens.h.
30024         Reported by Bruno Haible.
30025
30026 2009-12-30  Eric Blake  <ebb9@byu.net>
30027
30028         sys_wait: drop link-warning dependency
30029         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30030         link-warning efforts.
30031         * lib/sys_wait.in.h: Likewise.
30032
30033         fdutimensat: remove bogus dependency
30034         * modules/fdutimensat (Depends-on): Drop inline.
30035
30036         unistd: fix typo
30037         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30038
30039 2009-12-30  Bruno Haible  <bruno@clisp.org>
30040
30041         Fix compilation error with Solaris cc.
30042         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30043         * lib/unicase/u16-is-invariant.c: Likewise.
30044         * lib/unicase/u32-is-invariant.c: Likewise.
30045         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30046
30047 2009-12-30  Bruno Haible  <bruno@clisp.org>
30048
30049         Fix test crash.
30050         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30051         locales.
30052         Reported by Simon Josefsson <simon@josefsson.org>.
30053
30054 2009-12-30  Bruno Haible  <bruno@clisp.org>
30055
30056         Fix compilation error on most platforms.
30057         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30058         Reported by Simon Josefsson <simon@josefsson.org>
30059         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30060
30061 2009-12-30  Eric Blake  <ebb9@byu.net>
30062
30063         futimens, utimensat: work around ntfs-3g bug
30064         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30065         a ctime bug is present, and expand workaround to cover ntfs-3g.
30066         * lib/utimens.c (fdutimens, lutimens): Likewise.
30067         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30068         (validate_timespec): Adjust return value.
30069         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30070         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30071         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30072
30073 2009-12-29  Eric Blake  <ebb9@byu.net>
30074
30075         link-warning: make usage consistent
30076         * modules/ctype (Depends-on): Add link-warning.
30077         (Makefile.am): Update rules accordingly.
30078         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30079         * modules/locale (Depends-on, Makefile.am): Likewise.
30080         * modules/sys_file (Makefile.am): Likewise.
30081         * modules/getopt-posix (Makefile.am): Delete unused link warning
30082         efforts.
30083         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30084         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30085         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30086         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30087
30088         stdio: remove unused variables
30089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30090         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30091         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30092
30093         tests: test more substitute headers
30094         * modules/ctype-tests: New file.
30095         * modules/dirent-tests: Likewise.
30096         * modules/spawn-tests: Likewise.
30097         * modules/sys_file-tests: Likewise.
30098         * modules/sys_ioctl-tests: Likewise.
30099         * modules/sys_wait-tests: Likewise.
30100         * tests/test-ctype.c: Likewise.
30101         * tests/test-dirent.c: Likewise.
30102         * tests/test-spawn.c: Likewise.
30103         * tests/test-sys_file.c: Likewise.
30104         * tests/test-sys_ioctl.c: Likewise.
30105         * tests/test-sys_wait.c: Likewise.
30106         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30107         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30108         whether or not flock is in use.
30109
30110         tests: remove License section from module
30111         * modules/arpa_inet-tests: Remove unneeded section.
30112         * modules/byteswap-tests: Likewise.
30113         * modules/ceilf-tests: Likewise.
30114         * modules/ceill-tests: Likewise.
30115         * modules/crypto/des-tests: Likewise.
30116         * modules/crypto/gc-arcfour-tests: Likewise.
30117         * modules/crypto/gc-arctwo-tests: Likewise.
30118         * modules/crypto/gc-des-tests: Likewise.
30119         * modules/crypto/gc-hmac-md5-tests: Likewise.
30120         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30121         * modules/crypto/gc-md2-tests: Likewise.
30122         * modules/crypto/gc-md4-tests: Likewise.
30123         * modules/crypto/gc-md5-tests: Likewise.
30124         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30125         * modules/crypto/gc-rijndael-tests: Likewise.
30126         * modules/crypto/gc-sha1-tests: Likewise.
30127         * modules/crypto/gc-tests: Likewise.
30128         * modules/crypto/md2-tests: Likewise.
30129         * modules/crypto/md4-tests: Likewise.
30130         * modules/fcntl-h-tests: Likewise.
30131         * modules/floorf-tests: Likewise.
30132         * modules/floorl-tests: Likewise.
30133         * modules/frexp-nolibm-tests: Likewise.
30134         * modules/frexp-tests: Likewise.
30135         * modules/frexpl-nolibm-tests: Likewise.
30136         * modules/frexpl-tests: Likewise.
30137         * modules/getaddrinfo-tests: Likewise.
30138         * modules/inttypes-tests: Likewise.
30139         * modules/isfinite-tests: Likewise.
30140         * modules/isinf-tests: Likewise.
30141         * modules/ldexpl-tests: Likewise.
30142         * modules/locale-tests: Likewise.
30143         * modules/math-tests: Likewise.
30144         * modules/netdb-tests: Likewise.
30145         * modules/netinet_in-tests: Likewise.
30146         * modules/printf-frexp-tests: Likewise.
30147         * modules/printf-frexpl-tests: Likewise.
30148         * modules/priv-set-tests: Likewise.
30149         * modules/random_r-tests: Likewise.
30150         * modules/round-tests: Likewise.
30151         * modules/roundf-tests: Likewise.
30152         * modules/roundl-tests: Likewise.
30153         * modules/search-tests: Likewise.
30154         * modules/select-tests: Likewise.
30155         * modules/signal-tests: Likewise.
30156         * modules/stdbool-tests: Likewise.
30157         * modules/stddef-tests: Likewise.
30158         * modules/stdint-tests: Likewise.
30159         * modules/stdio-tests: Likewise.
30160         * modules/stdlib-tests: Likewise.
30161         * modules/string-tests: Likewise.
30162         * modules/strings-tests: Likewise.
30163         * modules/sys_select-tests: Likewise.
30164         * modules/sys_socket-tests: Likewise.
30165         * modules/sys_stat-tests: Likewise.
30166         * modules/sys_time-tests: Likewise.
30167         * modules/sys_utsname-tests: Likewise.
30168         * modules/sysexits-tests: Likewise.
30169         * modules/time-tests: Likewise.
30170         * modules/trunc-tests: Likewise.
30171         * modules/truncf-tests: Likewise.
30172         * modules/truncl-tests: Likewise.
30173         * modules/tsearch-tests: Likewise.
30174         * modules/unistd-tests: Likewise.
30175         * modules/wchar-tests: Likewise.
30176         * modules/wctype-tests: Likewise.
30177
30178         tests: fix license on several tests
30179         * tests/test-des.c: Update to GPLv3+.
30180         * tests/test-flock.c: Likewise.
30181         * tests/test-fsync.c: Likewise.
30182         * tests/test-futimens.h: Likewise.
30183         * tests/test-gc-arcfour.c: Likewise.
30184         * tests/test-gc-arctwo.c: Likewise.
30185         * tests/test-gc-des.c: Likewise.
30186         * tests/test-gc-hmac-md5.c: Likewise.
30187         * tests/test-gc-hmac-sha1.c: Likewise.
30188         * tests/test-gc-md2.c: Likewise.
30189         * tests/test-gc-md4.c: Likewise.
30190         * tests/test-gc-md5.c: Likewise.
30191         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30192         * tests/test-gc-rijndael.c: Likewise.
30193         * tests/test-gc-sha1.c: Likewise.
30194         * tests/test-gc.c: Likewise.
30195         * tests/test-getcwd.c: Likewise.
30196         * tests/test-link.c: Likewise.
30197         * tests/test-link.h: Likewise.
30198         * tests/test-lutimens.h: Likewise.
30199         * tests/test-md2.c: Likewise.
30200         * tests/test-md4.c: Likewise.
30201         * tests/test-mkdir.h: Likewise.
30202         * tests/test-rename.c: Likewise.
30203         * tests/test-rename.h: Likewise.
30204         * tests/test-safe-alloc.c: Likewise.
30205         * tests/test-utimens-common.h: Likewise.
30206         * tests/test-utimens.h: Likewise.
30207
30208         maint: sync license texts
30209         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30210         * doc/gpl-3.0.texi: Revert copyright year update.
30211         * doc/lgpl-3.0.texi: Likewise.
30212
30213 2009-12-29  Jim Meyering  <meyering@redhat.com>
30214
30215         update nearly all FSF copyright year lists to include 2009
30216         The files named by the following are exempted:
30217             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30218               test -f "$dst" && { echo "$dst"; continue; }
30219               test -d "$dst" || continue
30220               echo "$dst"/$(basename "$src")
30221             done > exempt
30222             git ls-files tests/unictype >> exempt
30223         In the remaining files, convert to all-interval notation if
30224         - there is already at least one year interval like 2000-2003
30225         - the file is maintained by me
30226         - the file is in lib/uni*/, where that style already prevails
30227         Otherwise, use update-copyright's default.
30228
30229 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30230         and Eric Blake  <ebb9@byu.net>
30231
30232         tests: don't require debug system() to pass
30233         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30234         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30235         * tests/test-unlink.h (test_unlink_func): Likewise.
30236         * tests/test-fstatat.c (main): ...into callers.
30237         * tests/test-lstat.c (main): Likewise.
30238         * tests/test-rmdir.c (main): Likewise.
30239         * tests/test-unlink.c (main): Likewise.
30240         * tests/test-unlinkat.c (main): Likewise.
30241         * tests/test-areadlink-with-size.c (main): Don't require a
30242         debug-only system call to pass, aiding cross-testing to mingw.
30243         * tests/test-areadlink.c (main): Likewise.
30244         * tests/test-areadlinkat-with-size.c (main): Likewise.
30245         * tests/test-areadlinkat.c (main): Likewise.
30246         * tests/test-canonicalize-lgpl.c (main): Likewise.
30247         * tests/test-canonicalize.c (main): Likewise.
30248         * tests/test-chown.c (main): Likewise.
30249         * tests/test-fchownat.c (main): Likewise.
30250         * tests/test-lchown.c (main): Likewise.
30251         * tests/test-fdutimensat.c (main): Likewise.
30252         * tests/test-futimens.c (main): Likewise.
30253         * tests/test-link.c (main): Likewise.
30254         * tests/test-linkat.c (main): Likewise.
30255         * tests/test-mkdir.c (main): Likewise.
30256         * tests/test-mkdirat.c (main): Likewise.
30257         * tests/test-mkfifo.c (main): Likewise.
30258         * tests/test-mkfifoat.c (main): Likewise.
30259         * tests/test-mknod.c (main): Likewise.
30260         * tests/test-readlink.c (main): Likewise.
30261         * tests/test-remove.c (main): Likewise.
30262         * tests/test-rename.c (main): Likewise.
30263         * tests/test-renameat.c (main): Likewise.
30264         * tests/test-symlink.c (main): Likewise.
30265         * tests/test-symlinkat.c (main): Likewise.
30266         * tests/test-utimens.c (main): Likewise.
30267         * tests/test-utimensat.c (main): Likewise.
30268
30269 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30270
30271         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30272         on $(UNUSED_PARAMETER_H) to avoid build failure.
30273
30274 2009-12-28  Jim Meyering  <meyering@redhat.com>
30275
30276         update-copyright: you may specify a max. line length other than 72
30277         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30278
30279         maint: use consistent FSF copyright line syntax
30280         * lib/posixtm.c: Add missing comma in FSF copyright line.
30281         * lib/posixtm.h: Likewise.
30282         * lib/getugroups.c: Add missing ", Inc.".
30283
30284         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30285         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30286         FSF copyright line.  Remove trailing blanks.
30287
30288 2009-12-28  Eric Blake  <ebb9@byu.net>
30289
30290         test-dup2: reduce dependencies
30291         * modules/cloexec (Configure.ac): Set witness.
30292         * modules/dup2-tests (Depends-on): Drop cloexec.
30293         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30294         not present.
30295         Suggested by Bruno Haible.
30296
30297 2009-12-26  Bruno Haible  <bruno@clisp.org>
30298
30299         Remove an unneeded dependency.
30300         * modules/fseterr (Depends-on): Remove dup2.
30301
30302 2009-12-26  Eric Blake  <ebb9@byu.net>
30303
30304         tests: use macros.h in more places
30305         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30306         (ASSERT_STREAM): Provide default of stderr.
30307         * tests/test-dirent-safer.c: Include macros.h, using alternate
30308         stream for assertions.
30309         * tests/test-dup-safer.c: Likewise.
30310         * tests/test-freopen-safer.c: Likewise.
30311         * tests/test-getopt.c: Likewise.
30312         * tests/test-openat-safer.c: Likewise.
30313         * tests/test-pipe.c: Likewise.
30314         * tests/test-popen-safer.c: Likewise.
30315         * modules/dirent-safer-tests (Files): Include macros.h.
30316         * modules/unistd-safer-tests (Files): Likewise.
30317         * modules/freopen-safer-tests (Files): Likewise.
30318         * modules/getopt-posix-tests (Files): Likewise.
30319         * modules/openat-safer-tests (Files): Likewise.
30320         * modules/pipe-tests (Files): Likewise.
30321
30322 2009-12-26  Bruno Haible  <bruno@clisp.org>
30323
30324         javacomp: Portability fix.
30325         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30326         that it also works on Solaris.
30327
30328 2009-12-26  Bruno Haible  <bruno@clisp.org>
30329
30330         localename: Fix storage allocation of gl_locale_name_thread's result.
30331         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30332         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30333         all platforms that have 'uselocale'.
30334         (gl_locale_name_thread_unsafe): New function, extracted from
30335         gl_locale_name_thread.
30336         (gl_locale_name_thread): Call struniq on all platforms that have
30337         'uselocale'.
30338         * tests/test-localename.c (test_locale_name_thread): Check that the
30339         resulting strings are permanently allocated.
30340         * modules/localename-tests (Depends-on): Add strdup.
30341
30342 2009-12-26  Bruno Haible  <bruno@clisp.org>
30343
30344         * tests/test-localename.c (categories): Fill in the strings.
30345
30346 2009-12-26  Jim Meyering  <meyering@redhat.com>
30347
30348         isdir: complete the removal of m4/isdir.m4
30349         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30350
30351         isdir: clean up, since at least grep still uses it
30352         * lib/isdir.c: Include "isdir.h".
30353         (S_ISDIR): Remove now-unneeded definition.
30354         * modules/isdir (Files): Add lib/isdir.h.
30355         * lib/isdir.h: New file, with declaration.
30356         * m4/isdir.m4: Remove file -- unneeded.
30357
30358 2009-12-25  Bruno Haible  <bruno@clisp.org>
30359
30360         selinux-h: Make generated .h files standalone.
30361         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30362         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30363         * lib/se-selinux.in.h: Likewise.
30364         * modules/selinux-h (Depends-on): Add unused-parameter.
30365         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30366         selinux/selinux.h and selinux/context.h.
30367         Suggested by Eric Blake.
30368
30369 2009-12-25  Bruno Haible  <bruno@clisp.org>
30370
30371         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30372         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30373         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30374         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30375         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30376
30377 2009-12-24  Bruno Haible  <bruno@clisp.org>
30378
30379         openat: Fix warning.
30380         * lib/openat-proc.c: Include <unistd.h>.
30381
30382 2009-12-24  Bruno Haible  <bruno@clisp.org>
30383
30384         New module 'unused-parameter'.
30385         * build-aux/unused-parameter.h: New file, extracted from earlier
30386         gnulib-common.m4.
30387         * modules/unused-parameter: New file.
30388         * lib/unistr.h: Include unused-parameter.h.
30389         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30390         _GL_UNUSED.
30391         * modules/unistr/base (Depends-on): Add unused-parameter.
30392
30393 2009-12-24  Bruno Haible  <bruno@clisp.org>
30394
30395         Add missing dependencies to 'extensions' module.
30396         * m4/extensions.m4: Add comment.
30397         * modules/accept4 (Depends-on): Add extensions.
30398         * modules/dup3 (Depends-on): Likewise.
30399         * modules/fcntl (Depends-on): Likewise.
30400         * modules/futimens (Depends-on): Likewise.
30401         * modules/mknod (Depends-on): Likewise.
30402         * modules/pipe2 (Depends-on): Likewise.
30403         * modules/stat-time (Depends-on): Likewise.
30404         * modules/strcasestr-simple (Depends-on): Likewise.
30405         * modules/strsignal (Depends-on): Likewise.
30406         * modules/utimensat (Depends-on): Likewise.
30407         * modules/localcharset (Depends-on): Likewise. Needed because of
30408         gl_FCNTL_O_FLAGS.
30409         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30410         AC_TYPE_MBSTATE_T.
30411         * modules/wcsnrtombs (Depends-on): Likewise.
30412         * modules/wcsrtombs (Depends-on): Likewise.
30413
30414 2009-12-24  Bruno Haible  <bruno@clisp.org>
30415
30416         binary-io: Avoid gcc warning due to SET_BINARY.
30417         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30418         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30419
30420 2009-12-24  Bruno Haible  <bruno@clisp.org>
30421
30422         Avoid future namespace pollution on glibc systems.
30423         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30424         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30425         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30426         glibc systems.
30427
30428 2009-12-24  Bruno Haible  <bruno@clisp.org>
30429
30430         Refactor common macros used in tests.
30431         * tests/macros.h: New file.
30432         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30433         and/or <stdlib.h>, if appropriate.
30434         (ASSERT, SIZEOF): Remove macros.
30435         * tests/test-areadlink-with-size.c: Likewise.
30436         * tests/test-areadlinkat.c: Likewise.
30437         * tests/test-areadlinkat-with-size.c: Likewise.
30438         * tests/test-argmatch.c: Likewise.
30439         * tests/test-argv-iter.c: Likewise.
30440         * tests/test-array-mergesort.c: Likewise.
30441         * tests/test-array_list.c: Likewise.
30442         * tests/test-array_oset.c: Likewise.
30443         * tests/test-avltree_list.c: Likewise.
30444         * tests/test-avltree_oset.c: Likewise.
30445         * tests/test-avltreehash_list.c: Likewise.
30446         * tests/test-base64.c: Likewise.
30447         * tests/test-binary-io.c: Likewise.
30448         * tests/test-bitrotate.c: Likewise.
30449         * tests/test-btowc.c: Likewise.
30450         * tests/test-byteswap.c: Likewise.
30451         * tests/test-c-ctype.c: Likewise.
30452         * tests/test-c-stack.c: Likewise.
30453         * tests/test-c-strcasecmp.c: Likewise.
30454         * tests/test-c-strcasestr.c: Likewise.
30455         * tests/test-c-strncasecmp.c: Likewise.
30456         * tests/test-c-strstr.c: Likewise.
30457         * tests/test-canonicalize-lgpl.c: Likewise.
30458         * tests/test-canonicalize.c: Likewise.
30459         * tests/test-carray_list.c: Likewise.
30460         * tests/test-ceilf1.c: Likewise.
30461         * tests/test-ceilf2.c: Likewise.
30462         * tests/test-ceill.c: Likewise.
30463         * tests/test-chown.c: Likewise.
30464         * tests/test-cloexec.c: Likewise.
30465         * tests/test-copy-acl.c: Likewise.
30466         * tests/test-copy-file.c: Likewise.
30467         * tests/test-count-one-bits.c: Likewise.
30468         * tests/test-dprintf-posix.c: Likewise.
30469         * tests/test-dup2.c: Likewise.
30470         * tests/test-dup3.c: Likewise.
30471         * tests/test-duplocale.c: Likewise.
30472         * tests/test-fbufmode.c: Likewise.
30473         * tests/test-fchdir.c: Likewise.
30474         * tests/test-fchownat.c: Likewise.
30475         * tests/test-fcntl-safer.c: Likewise.
30476         * tests/test-fcntl.c: Likewise.
30477         * tests/test-fdopendir.c: Likewise.
30478         * tests/test-fdutimensat.c: Likewise.
30479         * tests/test-fflush2.c: Likewise.
30480         * tests/test-file-has-acl.c: Likewise.
30481         * tests/test-filevercmp.c: Likewise.
30482         * tests/test-flock.c: Likewise.
30483         * tests/test-floorf1.c: Likewise.
30484         * tests/test-floorf2.c: Likewise.
30485         * tests/test-floorl.c: Likewise.
30486         * tests/test-fnmatch.c: Likewise.
30487         * tests/test-fopen.h: Likewise.
30488         * tests/test-fpending.c: Likewise.
30489         * tests/test-fprintf-posix.c: Likewise.
30490         * tests/test-fpurge.c: Likewise.
30491         * tests/test-freadable.c: Likewise.
30492         * tests/test-freadahead.c: Likewise.
30493         * tests/test-freading.c: Likewise.
30494         * tests/test-freadptr.c: Likewise.
30495         * tests/test-freadptr2.c: Likewise.
30496         * tests/test-freadseek.c: Likewise.
30497         * tests/test-freopen.c: Likewise.
30498         * tests/test-frexp.c: Likewise.
30499         * tests/test-frexpl.c: Likewise.
30500         * tests/test-fseek.c: Likewise.
30501         * tests/test-fseeko.c: Likewise.
30502         * tests/test-fstatat.c: Likewise.
30503         * tests/test-fstrcmp.c: Likewise.
30504         * tests/test-fsync.c: Likewise.
30505         * tests/test-ftell.c: Likewise.
30506         * tests/test-ftello.c: Likewise.
30507         * tests/test-func.c: Likewise.
30508         * tests/test-futimens.c: Likewise.
30509         * tests/test-fwritable.c: Likewise.
30510         * tests/test-fwriting.c: Likewise.
30511         * tests/test-getcwd.c: Likewise.
30512         * tests/test-getdate.c: Likewise.
30513         * tests/test-getdelim.c: Likewise.
30514         * tests/test-getdtablesize.c: Likewise.
30515         * tests/test-getgroups.c: Likewise.
30516         * tests/test-getline.c: Likewise.
30517         * tests/test-getndelim2.c: Likewise.
30518         * tests/test-glob.c: Likewise.
30519         * tests/test-hash.c: Likewise.
30520         * tests/test-i-ring.c: Likewise.
30521         * tests/test-iconv-utf.c: Likewise.
30522         * tests/test-iconv.c: Likewise.
30523         * tests/test-idpriv-drop.c: Likewise.
30524         * tests/test-idpriv-droptemp.c: Likewise.
30525         * tests/test-inet_ntop.c: Likewise.
30526         * tests/test-inet_pton.c: Likewise.
30527         * tests/test-isblank.c: Likewise.
30528         * tests/test-isfinite.c: Likewise.
30529         * tests/test-isinf.c: Likewise.
30530         * tests/test-isnan.c: Likewise.
30531         * tests/test-isnand.h: Likewise.
30532         * tests/test-isnanf.h: Likewise.
30533         * tests/test-isnanl.h: Likewise.
30534         * tests/test-lchown.c: Likewise.
30535         * tests/test-ldexpl.c: Likewise.
30536         * tests/test-link.c: Likewise.
30537         * tests/test-linkat.c: Likewise.
30538         * tests/test-linked_list.c: Likewise.
30539         * tests/test-linkedhash_list.c: Likewise.
30540         * tests/test-localename.c: Likewise.
30541         * tests/test-lseek.c: Likewise.
30542         * tests/test-lstat.c: Likewise.
30543         * tests/test-mbmemcasecmp.c: Likewise.
30544         * tests/test-mbmemcasecoll.c: Likewise.
30545         * tests/test-mbrtowc.c: Likewise.
30546         * tests/test-mbscasecmp.c: Likewise.
30547         * tests/test-mbscasestr1.c: Likewise.
30548         * tests/test-mbscasestr2.c: Likewise.
30549         * tests/test-mbscasestr3.c: Likewise.
30550         * tests/test-mbscasestr4.c: Likewise.
30551         * tests/test-mbschr.c: Likewise.
30552         * tests/test-mbscspn.c: Likewise.
30553         * tests/test-mbsinit.c: Likewise.
30554         * tests/test-mbsncasecmp.c: Likewise.
30555         * tests/test-mbsnrtowcs.c: Likewise.
30556         * tests/test-mbspbrk.c: Likewise.
30557         * tests/test-mbspcasecmp.c: Likewise.
30558         * tests/test-mbsrchr.c: Likewise.
30559         * tests/test-mbsrtowcs.c: Likewise.
30560         * tests/test-mbsspn.c: Likewise.
30561         * tests/test-mbsstr1.c: Likewise.
30562         * tests/test-mbsstr2.c: Likewise.
30563         * tests/test-mbsstr3.c: Likewise.
30564         * tests/test-memchr.c: Likewise.
30565         * tests/test-memchr2.c: Likewise.
30566         * tests/test-memcmp.c: Likewise.
30567         * tests/test-memmem.c: Likewise.
30568         * tests/test-memrchr.c: Likewise.
30569         * tests/test-mkdir.c: Likewise.
30570         * tests/test-mkdirat.c: Likewise.
30571         * tests/test-mkfifo.c: Likewise.
30572         * tests/test-mkfifoat.c: Likewise.
30573         * tests/test-mknod.c: Likewise.
30574         * tests/test-nanosleep.c: Likewise.
30575         * tests/test-nl_langinfo.c: Likewise.
30576         * tests/test-obstack-printf.c: Likewise.
30577         * tests/test-open.c: Likewise.
30578         * tests/test-openat.c: Likewise.
30579         * tests/test-pipe-filter-gi1.c: Likewise.
30580         * tests/test-pipe-filter-gi2-main.c: Likewise.
30581         * tests/test-pipe-filter-ii1.c: Likewise.
30582         * tests/test-pipe-filter-ii2-main.c: Likewise.
30583         * tests/test-pipe2.c: Likewise.
30584         * tests/test-popen.h: Likewise.
30585         * tests/test-posixtm.c: Likewise.
30586         * tests/test-pread.c: Likewise.
30587         * tests/test-printf-frexp.c: Likewise.
30588         * tests/test-printf-frexpl.c: Likewise.
30589         * tests/test-printf-posix.c: Likewise.
30590         * tests/test-priv-set.c: Likewise.
30591         * tests/test-quotearg.c: Likewise.
30592         * tests/test-random_r.c: Likewise.
30593         * tests/test-rawmemchr.c: Likewise.
30594         * tests/test-rbtree_list.c: Likewise.
30595         * tests/test-rbtree_oset.c: Likewise.
30596         * tests/test-rbtreehash_list.c: Likewise.
30597         * tests/test-readlink.c: Likewise.
30598         * tests/test-remove.c: Likewise.
30599         * tests/test-rename.c: Likewise.
30600         * tests/test-renameat.c: Likewise.
30601         * tests/test-rmdir.c: Likewise.
30602         * tests/test-round1.c: Likewise.
30603         * tests/test-roundf1.c: Likewise.
30604         * tests/test-roundl.c: Likewise.
30605         * tests/test-safe-alloc.c: Likewise.
30606         * tests/test-sameacls.c: Likewise.
30607         * tests/test-set-mode-acl.c: Likewise.
30608         * tests/test-setenv.c: Likewise.
30609         * tests/test-sigaction.c: Likewise.
30610         * tests/test-signbit.c: Likewise.
30611         * tests/test-sleep.c: Likewise.
30612         * tests/test-snprintf-posix.c: Likewise.
30613         * tests/test-snprintf.c: Likewise.
30614         * tests/test-sprintf-posix.c: Likewise.
30615         * tests/test-stat-time.c: Likewise.
30616         * tests/test-stat.c: Likewise.
30617         * tests/test-strcasestr.c: Likewise.
30618         * tests/test-strchrnul.c: Likewise.
30619         * tests/test-strerror.c: Likewise.
30620         * tests/test-striconv.c: Likewise.
30621         * tests/test-striconveh.c: Likewise.
30622         * tests/test-striconveha.c: Likewise.
30623         * tests/test-strsignal.c: Likewise.
30624         * tests/test-strstr.c: Likewise.
30625         * tests/test-strtod.c: Likewise.
30626         * tests/test-strverscmp.c: Likewise.
30627         * tests/test-symlink.c: Likewise.
30628         * tests/test-symlinkat.c: Likewise.
30629         * tests/test-trunc1.c: Likewise.
30630         * tests/test-trunc2.c: Likewise.
30631         * tests/test-truncf1.c: Likewise.
30632         * tests/test-truncf2.c: Likewise.
30633         * tests/test-truncl.c: Likewise.
30634         * tests/test-uname.c: Likewise.
30635         * tests/test-unlink.c: Likewise.
30636         * tests/test-unlinkat.c: Likewise.
30637         * tests/test-unsetenv.c: Likewise.
30638         * tests/test-usleep.c: Likewise.
30639         * tests/test-utimens.c: Likewise.
30640         * tests/test-utimensat.c: Likewise.
30641         * tests/test-vasnprintf-posix.c: Likewise.
30642         * tests/test-vasnprintf-posix2.c: Likewise.
30643         * tests/test-vasnprintf.c: Likewise.
30644         * tests/test-vasprintf-posix.c: Likewise.
30645         * tests/test-vasprintf.c: Likewise.
30646         * tests/test-vdprintf-posix.c: Likewise.
30647         * tests/test-vfprintf-posix.c: Likewise.
30648         * tests/test-vprintf-posix.c: Likewise.
30649         * tests/test-vsnprintf-posix.c: Likewise.
30650         * tests/test-vsnprintf.c: Likewise.
30651         * tests/test-vsprintf-posix.c: Likewise.
30652         * tests/test-wcrtomb.c: Likewise.
30653         * tests/test-wcsnrtombs.c: Likewise.
30654         * tests/test-wcsrtombs.c: Likewise.
30655         * tests/test-wctype.c: Likewise.
30656         * tests/test-wcwidth.c: Likewise.
30657         * tests/test-xfprintf-posix.c: Likewise.
30658         * tests/test-xmemdup0.c: Likewise.
30659         * tests/test-xprintf-posix.c: Likewise.
30660         * tests/test-xvasprintf.c: Likewise.
30661         * tests/unicase/test-locale-language.c: Likewise.
30662         * tests/unicase/test-mapping-part1.h: Likewise.
30663         * tests/unicase/test-predicate-part1.h: Likewise.
30664         * tests/unicase/test-u8-casecmp.c: Likewise.
30665         * tests/unicase/test-u8-casecoll.c: Likewise.
30666         * tests/unicase/test-u8-casefold.c: Likewise.
30667         * tests/unicase/test-u8-is-cased.c: Likewise.
30668         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30669         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30670         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30671         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30672         * tests/unicase/test-u8-tolower.c: Likewise.
30673         * tests/unicase/test-u8-totitle.c: Likewise.
30674         * tests/unicase/test-u8-toupper.c: Likewise.
30675         * tests/unicase/test-u16-casecmp.c: Likewise.
30676         * tests/unicase/test-u16-casecoll.c: Likewise.
30677         * tests/unicase/test-u16-casefold.c: Likewise.
30678         * tests/unicase/test-u16-is-cased.c: Likewise.
30679         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30680         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30681         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30682         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30683         * tests/unicase/test-u16-tolower.c: Likewise.
30684         * tests/unicase/test-u16-totitle.c: Likewise.
30685         * tests/unicase/test-u16-toupper.c: Likewise.
30686         * tests/unicase/test-u32-casecmp.c: Likewise.
30687         * tests/unicase/test-u32-casecoll.c: Likewise.
30688         * tests/unicase/test-u32-casefold.c: Likewise.
30689         * tests/unicase/test-u32-is-cased.c: Likewise.
30690         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30691         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30692         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30693         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30694         * tests/unicase/test-u32-tolower.c: Likewise.
30695         * tests/unicase/test-u32-totitle.c: Likewise.
30696         * tests/unicase/test-u32-toupper.c: Likewise.
30697         * tests/unicase/test-ulc-casecmp.c: Likewise.
30698         * tests/unicase/test-ulc-casecoll.c: Likewise.
30699         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30700         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30701         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30702         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30703         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30704         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30705         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30706         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30707         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30708         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30709         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30710         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30711         * tests/unictype/test-bidi_byname.c: Likewise.
30712         * tests/unictype/test-bidi_name.c: Likewise.
30713         * tests/unictype/test-bidi_of.c: Likewise.
30714         * tests/unictype/test-bidi_test.c: Likewise.
30715         * tests/unictype/test-block_list.c: Likewise.
30716         * tests/unictype/test-block_of.c: Likewise.
30717         * tests/unictype/test-block_test.c: Likewise.
30718         * tests/unictype/test-categ_and.c: Likewise.
30719         * tests/unictype/test-categ_and_not.c: Likewise.
30720         * tests/unictype/test-categ_byname.c: Likewise.
30721         * tests/unictype/test-categ_name.c: Likewise.
30722         * tests/unictype/test-categ_none.c: Likewise.
30723         * tests/unictype/test-categ_of.c: Likewise.
30724         * tests/unictype/test-categ_or.c: Likewise.
30725         * tests/unictype/test-categ_test_withtable.c: Likewise.
30726         * tests/unictype/test-combining.c: Likewise.
30727         * tests/unictype/test-decdigit.c: Likewise.
30728         * tests/unictype/test-digit.c: Likewise.
30729         * tests/unictype/test-mirror.c: Likewise.
30730         * tests/unictype/test-numeric.c: Likewise.
30731         * tests/unictype/test-pr_byname.c: Likewise.
30732         * tests/unictype/test-pr_test.c: Likewise.
30733         * tests/unictype/test-predicate-part1.h: Likewise.
30734         * tests/unictype/test-scripts.c: Likewise.
30735         * tests/unictype/test-sy_c_ident.c: Likewise.
30736         * tests/unictype/test-sy_java_ident.c: Likewise.
30737         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30738         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30739         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30740         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30741         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30742         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30743         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30744         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30745         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30746         * tests/uninorm/test-compat-decomposition.c: Likewise.
30747         * tests/uninorm/test-composition.c: Likewise.
30748         * tests/uninorm/test-decomposing-form.c: Likewise.
30749         * tests/uninorm/test-decomposition.c: Likewise.
30750         * tests/uninorm/test-u8-nfc.c: Likewise.
30751         * tests/uninorm/test-u8-nfd.c: Likewise.
30752         * tests/uninorm/test-u8-nfkc.c: Likewise.
30753         * tests/uninorm/test-u8-nfkd.c: Likewise.
30754         * tests/uninorm/test-u8-normcmp.c: Likewise.
30755         * tests/uninorm/test-u8-normcoll.c: Likewise.
30756         * tests/uninorm/test-u16-nfc.c: Likewise.
30757         * tests/uninorm/test-u16-nfd.c: Likewise.
30758         * tests/uninorm/test-u16-nfkc.c: Likewise.
30759         * tests/uninorm/test-u16-nfkd.c: Likewise.
30760         * tests/uninorm/test-u16-normcmp.c: Likewise.
30761         * tests/uninorm/test-u16-normcoll.c: Likewise.
30762         * tests/uninorm/test-u32-nfc.c: Likewise.
30763         * tests/uninorm/test-u32-nfd.c: Likewise.
30764         * tests/uninorm/test-u32-nfkc.c: Likewise.
30765         * tests/uninorm/test-u32-nfkd.c: Likewise.
30766         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30767         * tests/uninorm/test-u32-normcmp.c: Likewise.
30768         * tests/uninorm/test-u32-normcoll.c: Likewise.
30769         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30770         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30771         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30772         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30773         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30774         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30775         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30776         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30777         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30778         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30779         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30780         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30781         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30782         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30783         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30784         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30785         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30786         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30787         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30788         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30789         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30790         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30791         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30792         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30793         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30794         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30795         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30796         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30797         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30798         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30799         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30800         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30801         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30802         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30803         * tests/uniwidth/test-u8-width.c: Likewise.
30804         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30805         * tests/uniwidth/test-u16-width.c: Likewise.
30806         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30807         * tests/uniwidth/test-u32-width.c: Likewise.
30808         * tests/uniwidth/test-uc_width.c: Likewise.
30809         * tests/uniwidth/test-uc_width2.c: Likewise.
30810         * modules/acl-tests (Files): Add tests/macros.h.
30811         * modules/areadlink-tests (Files): Likewise.
30812         * modules/areadlink-with-size-tests (Files): Likewise.
30813         * modules/areadlinkat-tests (Files): Likewise.
30814         * modules/areadlinkat-with-size-tests (Files): Likewise.
30815         * modules/argmatch-tests (Files): Likewise.
30816         * modules/argv-iter-tests (Files): Likewise.
30817         * modules/array-list-tests (Files): Likewise.
30818         * modules/array-mergesort-tests (Files): Likewise.
30819         * modules/array-oset-tests (Files): Likewise.
30820         * modules/avltree-list-tests (Files): Likewise.
30821         * modules/avltree-oset-tests (Files): Likewise.
30822         * modules/avltreehash-list-tests (Files): Likewise.
30823         * modules/base64-tests (Files): Likewise.
30824         * modules/binary-io-tests (Files): Likewise.
30825         * modules/bitrotate-tests (Files): Likewise.
30826         * modules/btowc-tests (Files): Likewise.
30827         * modules/byteswap-tests (Files): Likewise.
30828         * modules/c-ctype-tests (Files): Likewise.
30829         * modules/c-stack-tests (Files): Likewise.
30830         * modules/c-strcase-tests (Files): Likewise.
30831         * modules/c-strcasestr-tests (Files): Likewise.
30832         * modules/c-strstr-tests (Files): Likewise.
30833         * modules/canonicalize-lgpl-tests (Files): Likewise.
30834         * modules/canonicalize-tests (Files): Likewise.
30835         * modules/carray-list-tests (Files): Likewise.
30836         * modules/ceilf-tests (Files): Likewise.
30837         * modules/ceill-tests (Files): Likewise.
30838         * modules/chown-tests (Files): Likewise.
30839         * modules/cloexec-tests (Files): Likewise.
30840         * modules/copy-file-tests (Files): Likewise.
30841         * modules/count-one-bits-tests (Files): Likewise.
30842         * modules/dprintf-posix-tests (Files): Likewise.
30843         * modules/dup2-tests (Files): Likewise.
30844         * modules/dup3-tests (Files): Likewise.
30845         * modules/duplocale-tests (Files): Likewise.
30846         * modules/fbufmode-tests (Files): Likewise.
30847         * modules/fchdir-tests (Files): Likewise.
30848         * modules/fcntl-safer-tests (Files): Likewise.
30849         * modules/fcntl-tests (Files): Likewise.
30850         * modules/fdopendir-tests (Files): Likewise.
30851         * modules/fdutimensat-tests (Files): Likewise.
30852         * modules/fflush-tests (Files): Likewise.
30853         * modules/filevercmp-tests (Files): Likewise.
30854         * modules/flock-tests (Files): Likewise.
30855         * modules/floorf-tests (Files): Likewise.
30856         * modules/floorl-tests (Files): Likewise.
30857         * modules/fnmatch-tests (Files): Likewise.
30858         * modules/fopen-safer-tests (Files): Likewise.
30859         * modules/fopen-tests (Files): Likewise.
30860         * modules/fpending-tests (Files): Likewise.
30861         * modules/fprintf-posix-tests (Files): Likewise.
30862         * modules/fpurge-tests (Files): Likewise.
30863         * modules/freadable-tests (Files): Likewise.
30864         * modules/freadahead-tests (Files): Likewise.
30865         * modules/freading-tests (Files): Likewise.
30866         * modules/freadptr-tests (Files): Likewise.
30867         * modules/freadseek-tests (Files): Likewise.
30868         * modules/freopen-tests (Files): Likewise.
30869         * modules/frexp-nolibm-tests (Files): Likewise.
30870         * modules/frexp-tests (Files): Likewise.
30871         * modules/frexpl-nolibm-tests (Files): Likewise.
30872         * modules/frexpl-tests (Files): Likewise.
30873         * modules/fseek-tests (Files): Likewise.
30874         * modules/fseeko-tests (Files): Likewise.
30875         * modules/fstrcmp-tests (Files): Likewise.
30876         * modules/fsync-tests (Files): Likewise.
30877         * modules/ftell-tests (Files): Likewise.
30878         * modules/ftello-tests (Files): Likewise.
30879         * modules/func-tests (Files): Likewise.
30880         * modules/futimens-tests (Files): Likewise.
30881         * modules/fwritable-tests (Files): Likewise.
30882         * modules/fwriting-tests (Files): Likewise.
30883         * modules/getcwd-tests (Files): Likewise.
30884         * modules/getdate-tests (Files): Likewise.
30885         * modules/getdelim-tests (Files): Likewise.
30886         * modules/getdtablesize-tests (Files): Likewise.
30887         * modules/getgroups-tests (Files): Likewise.
30888         * modules/getline-tests (Files): Likewise.
30889         * modules/getndelim2-tests (Files): Likewise.
30890         * modules/glob-tests (Files): Likewise.
30891         * modules/hash-tests (Files): Likewise.
30892         * modules/i-ring-tests (Files): Likewise.
30893         * modules/iconv-tests (Files): Likewise.
30894         * modules/iconv_open-utf-tests (Files): Likewise.
30895         * modules/idpriv-drop-tests (Files): Likewise.
30896         * modules/idpriv-droptemp-tests (Files): Likewise.
30897         * modules/inet_ntop-tests (Files): Likewise.
30898         * modules/inet_pton-tests (Files): Likewise.
30899         * modules/isblank-tests (Files): Likewise.
30900         * modules/isfinite-tests (Files): Likewise.
30901         * modules/isinf-tests (Files): Likewise.
30902         * modules/isnan-tests (Files): Likewise.
30903         * modules/isnand-nolibm-tests (Files): Likewise.
30904         * modules/isnand-tests (Files): Likewise.
30905         * modules/isnanf-nolibm-tests (Files): Likewise.
30906         * modules/isnanf-tests (Files): Likewise.
30907         * modules/isnanl-nolibm-tests (Files): Likewise.
30908         * modules/isnanl-tests (Files): Likewise.
30909         * modules/lchown-tests (Files): Likewise.
30910         * modules/ldexpl-tests (Files): Likewise.
30911         * modules/link-tests (Files): Likewise.
30912         * modules/linkat-tests (Files): Likewise.
30913         * modules/linked-list-tests (Files): Likewise.
30914         * modules/linkedhash-list-tests (Files): Likewise.
30915         * modules/localename-tests (Files): Likewise.
30916         * modules/lseek-tests (Files): Likewise.
30917         * modules/lstat-tests (Files): Likewise.
30918         * modules/mbmemcasecmp-tests (Files): Likewise.
30919         * modules/mbmemcasecoll-tests (Files): Likewise.
30920         * modules/mbrtowc-tests (Files): Likewise.
30921         * modules/mbscasecmp-tests (Files): Likewise.
30922         * modules/mbscasestr-tests (Files): Likewise.
30923         * modules/mbschr-tests (Files): Likewise.
30924         * modules/mbscspn-tests (Files): Likewise.
30925         * modules/mbsinit-tests (Files): Likewise.
30926         * modules/mbsncasecmp-tests (Files): Likewise.
30927         * modules/mbsnrtowcs-tests (Files): Likewise.
30928         * modules/mbspbrk-tests (Files): Likewise.
30929         * modules/mbspcasecmp-tests (Files): Likewise.
30930         * modules/mbsrchr-tests (Files): Likewise.
30931         * modules/mbsrtowcs-tests (Files): Likewise.
30932         * modules/mbsspn-tests (Files): Likewise.
30933         * modules/mbsstr-tests (Files): Likewise.
30934         * modules/memchr-tests (Files): Likewise.
30935         * modules/memchr2-tests (Files): Likewise.
30936         * modules/memcmp-tests (Files): Likewise.
30937         * modules/memmem-tests (Files): Likewise.
30938         * modules/memrchr-tests (Files): Likewise.
30939         * modules/mkdir-tests (Files): Likewise.
30940         * modules/mkfifo-tests (Files): Likewise.
30941         * modules/mkfifoat-tests (Files): Likewise.
30942         * modules/mknod-tests (Files): Likewise.
30943         * modules/nanosleep-tests (Files): Likewise.
30944         * modules/nl_langinfo-tests (Files): Likewise.
30945         * modules/obstack-printf-tests (Files): Likewise.
30946         * modules/open-tests (Files): Likewise.
30947         * modules/openat-tests (Files): Likewise.
30948         * modules/pipe-filter-gi-tests (Files): Likewise.
30949         * modules/pipe-filter-ii-tests (Files): Likewise.
30950         * modules/pipe2-tests (Files): Likewise.
30951         * modules/popen-safer-tests (Files): Likewise.
30952         * modules/popen-tests (Files): Likewise.
30953         * modules/posixtm-tests (Files): Likewise.
30954         * modules/pread-tests (Files): Likewise.
30955         * modules/printf-frexp-tests (Files): Likewise.
30956         * modules/printf-frexpl-tests (Files): Likewise.
30957         * modules/printf-posix-tests (Files): Likewise.
30958         * modules/priv-set-tests (Files): Likewise.
30959         * modules/quotearg-tests (Files): Likewise.
30960         * modules/random_r-tests (Files): Likewise.
30961         * modules/rawmemchr-tests (Files): Likewise.
30962         * modules/rbtree-list-tests (Files): Likewise.
30963         * modules/rbtree-oset-tests (Files): Likewise.
30964         * modules/rbtreehash-list-tests (Files): Likewise.
30965         * modules/readlink-tests (Files): Likewise.
30966         * modules/remove-tests (Files): Likewise.
30967         * modules/rename-tests (Files): Likewise.
30968         * modules/renameat-tests (Files): Likewise.
30969         * modules/rmdir-tests (Files): Likewise.
30970         * modules/round-tests (Files): Likewise.
30971         * modules/roundf-tests (Files): Likewise.
30972         * modules/roundl-tests (Files): Likewise.
30973         * modules/safe-alloc-tests (Files): Likewise.
30974         * modules/setenv-tests (Files): Likewise.
30975         * modules/sigaction-tests (Files): Likewise.
30976         * modules/signbit-tests (Files): Likewise.
30977         * modules/sleep-tests (Files): Likewise.
30978         * modules/snprintf-posix-tests (Files): Likewise.
30979         * modules/snprintf-tests (Files): Likewise.
30980         * modules/sprintf-posix-tests (Files): Likewise.
30981         * modules/stat-tests (Files): Likewise.
30982         * modules/stat-time-tests (Files): Likewise.
30983         * modules/strcasestr-tests (Files): Likewise.
30984         * modules/strchrnul-tests (Files): Likewise.
30985         * modules/strerror-tests (Files): Likewise.
30986         * modules/striconv-tests (Files): Likewise.
30987         * modules/striconveh-tests (Files): Likewise.
30988         * modules/striconveha-tests (Files): Likewise.
30989         * modules/strsignal-tests (Files): Likewise.
30990         * modules/strstr-tests (Files): Likewise.
30991         * modules/strtod-tests (Files): Likewise.
30992         * modules/strverscmp-tests (Files): Likewise.
30993         * modules/symlink-tests (Files): Likewise.
30994         * modules/symlinkat-tests (Files): Likewise.
30995         * modules/trunc-tests (Files): Likewise.
30996         * modules/truncf-tests (Files): Likewise.
30997         * modules/truncl-tests (Files): Likewise.
30998         * modules/uname-tests (Files): Likewise.
30999         * modules/unicase/cased-tests (Files): Likewise.
31000         * modules/unicase/ignorable-tests (Files): Likewise.
31001         * modules/unicase/locale-language-tests (Files): Likewise.
31002         * modules/unicase/tolower-tests (Files): Likewise.
31003         * modules/unicase/totitle-tests (Files): Likewise.
31004         * modules/unicase/toupper-tests (Files): Likewise.
31005         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31006         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31007         * modules/unicase/u8-casefold-tests (Files): Likewise.
31008         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31009         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31010         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31011         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31012         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31013         * modules/unicase/u8-tolower-tests (Files): Likewise.
31014         * modules/unicase/u8-totitle-tests (Files): Likewise.
31015         * modules/unicase/u8-toupper-tests (Files): Likewise.
31016         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31017         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31018         * modules/unicase/u16-casefold-tests (Files): Likewise.
31019         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31020         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31021         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31022         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31023         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31024         * modules/unicase/u16-tolower-tests (Files): Likewise.
31025         * modules/unicase/u16-totitle-tests (Files): Likewise.
31026         * modules/unicase/u16-toupper-tests (Files): Likewise.
31027         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31028         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31029         * modules/unicase/u32-casefold-tests (Files): Likewise.
31030         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31031         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31032         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31033         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31034         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31035         * modules/unicase/u32-tolower-tests (Files): Likewise.
31036         * modules/unicase/u32-totitle-tests (Files): Likewise.
31037         * modules/unicase/u32-toupper-tests (Files): Likewise.
31038         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31039         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31040         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31041         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31042         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31043         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31044         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31045         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31046         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31047         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31048         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31049         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31050         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31051         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31052         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31053         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31054         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31055         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31056         * modules/unictype/block-list-tests (Files): Likewise.
31057         * modules/unictype/block-of-tests (Files): Likewise.
31058         * modules/unictype/block-test-tests (Files): Likewise.
31059         * modules/unictype/category-C-tests (Files): Likewise.
31060         * modules/unictype/category-Cc-tests (Files): Likewise.
31061         * modules/unictype/category-Cf-tests (Files): Likewise.
31062         * modules/unictype/category-Cn-tests (Files): Likewise.
31063         * modules/unictype/category-Co-tests (Files): Likewise.
31064         * modules/unictype/category-Cs-tests (Files): Likewise.
31065         * modules/unictype/category-L-tests (Files): Likewise.
31066         * modules/unictype/category-Ll-tests (Files): Likewise.
31067         * modules/unictype/category-Lm-tests (Files): Likewise.
31068         * modules/unictype/category-Lo-tests (Files): Likewise.
31069         * modules/unictype/category-Lt-tests (Files): Likewise.
31070         * modules/unictype/category-Lu-tests (Files): Likewise.
31071         * modules/unictype/category-M-tests (Files): Likewise.
31072         * modules/unictype/category-Mc-tests (Files): Likewise.
31073         * modules/unictype/category-Me-tests (Files): Likewise.
31074         * modules/unictype/category-Mn-tests (Files): Likewise.
31075         * modules/unictype/category-N-tests (Files): Likewise.
31076         * modules/unictype/category-Nd-tests (Files): Likewise.
31077         * modules/unictype/category-Nl-tests (Files): Likewise.
31078         * modules/unictype/category-No-tests (Files): Likewise.
31079         * modules/unictype/category-P-tests (Files): Likewise.
31080         * modules/unictype/category-Pc-tests (Files): Likewise.
31081         * modules/unictype/category-Pd-tests (Files): Likewise.
31082         * modules/unictype/category-Pe-tests (Files): Likewise.
31083         * modules/unictype/category-Pf-tests (Files): Likewise.
31084         * modules/unictype/category-Pi-tests (Files): Likewise.
31085         * modules/unictype/category-Po-tests (Files): Likewise.
31086         * modules/unictype/category-Ps-tests (Files): Likewise.
31087         * modules/unictype/category-S-tests (Files): Likewise.
31088         * modules/unictype/category-Sc-tests (Files): Likewise.
31089         * modules/unictype/category-Sk-tests (Files): Likewise.
31090         * modules/unictype/category-Sm-tests (Files): Likewise.
31091         * modules/unictype/category-So-tests (Files): Likewise.
31092         * modules/unictype/category-Z-tests (Files): Likewise.
31093         * modules/unictype/category-Zl-tests (Files): Likewise.
31094         * modules/unictype/category-Zp-tests (Files): Likewise.
31095         * modules/unictype/category-Zs-tests (Files): Likewise.
31096         * modules/unictype/category-and-not-tests (Files): Likewise.
31097         * modules/unictype/category-and-tests (Files): Likewise.
31098         * modules/unictype/category-byname-tests (Files): Likewise.
31099         * modules/unictype/category-name-tests (Files): Likewise.
31100         * modules/unictype/category-none-tests (Files): Likewise.
31101         * modules/unictype/category-of-tests (Files): Likewise.
31102         * modules/unictype/category-or-tests (Files): Likewise.
31103         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31104         * modules/unictype/combining-class-tests (Files): Likewise.
31105         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31106         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31107         * modules/unictype/ctype-blank-tests (Files): Likewise.
31108         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31109         * modules/unictype/ctype-digit-tests (Files): Likewise.
31110         * modules/unictype/ctype-graph-tests (Files): Likewise.
31111         * modules/unictype/ctype-lower-tests (Files): Likewise.
31112         * modules/unictype/ctype-print-tests (Files): Likewise.
31113         * modules/unictype/ctype-punct-tests (Files): Likewise.
31114         * modules/unictype/ctype-space-tests (Files): Likewise.
31115         * modules/unictype/ctype-upper-tests (Files): Likewise.
31116         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31117         * modules/unictype/decimal-digit-tests (Files): Likewise.
31118         * modules/unictype/digit-tests (Files): Likewise.
31119         * modules/unictype/mirror-tests (Files): Likewise.
31120         * modules/unictype/numeric-tests (Files): Likewise.
31121         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31122         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31123         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31124         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31125         Likewise.
31126         * modules/unictype/property-bidi-block-separator-tests (Files):
31127         Likewise.
31128         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31129         Likewise.
31130         * modules/unictype/property-bidi-common-separator-tests (Files):
31131         Likewise.
31132         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31133         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31134         Likewise.
31135         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31136         Likewise.
31137         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31138         Likewise.
31139         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31140         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31141         Likewise.
31142         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31143         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31144         Likewise.
31145         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31146         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31147         * modules/unictype/property-bidi-segment-separator-tests (Files):
31148         Likewise.
31149         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31150         * modules/unictype/property-byname-tests (Files): Likewise.
31151         * modules/unictype/property-combining-tests (Files): Likewise.
31152         * modules/unictype/property-composite-tests (Files): Likewise.
31153         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31154         * modules/unictype/property-dash-tests (Files): Likewise.
31155         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31156         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31157         Likewise.
31158         * modules/unictype/property-deprecated-tests (Files): Likewise.
31159         * modules/unictype/property-diacritic-tests (Files): Likewise.
31160         * modules/unictype/property-extender-tests (Files): Likewise.
31161         * modules/unictype/property-format-control-tests (Files): Likewise.
31162         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31163         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31164         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31165         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31166         * modules/unictype/property-hyphen-tests (Files): Likewise.
31167         * modules/unictype/property-id-continue-tests (Files): Likewise.
31168         * modules/unictype/property-id-start-tests (Files): Likewise.
31169         * modules/unictype/property-ideographic-tests (Files): Likewise.
31170         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31171         * modules/unictype/property-ids-trinary-operator-tests (Files):
31172         Likewise.
31173         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31174         * modules/unictype/property-iso-control-tests (Files): Likewise.
31175         * modules/unictype/property-join-control-tests (Files): Likewise.
31176         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31177         * modules/unictype/property-line-separator-tests (Files): Likewise.
31178         * modules/unictype/property-logical-order-exception-tests (Files):
31179         Likewise.
31180         * modules/unictype/property-lowercase-tests (Files): Likewise.
31181         * modules/unictype/property-math-tests (Files): Likewise.
31182         * modules/unictype/property-non-break-tests (Files): Likewise.
31183         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31184         * modules/unictype/property-numeric-tests (Files): Likewise.
31185         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31186         * modules/unictype/property-other-default-ignorable-code-point-tests
31187         (Files): Likewise.
31188         * modules/unictype/property-other-grapheme-extend-tests (Files):
31189         Likewise.
31190         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31191         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31192         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31193         * modules/unictype/property-other-math-tests (Files): Likewise.
31194         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31195         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31196         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31197         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31198         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31199         * modules/unictype/property-private-use-tests (Files): Likewise.
31200         * modules/unictype/property-punctuation-tests (Files): Likewise.
31201         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31202         * modules/unictype/property-radical-tests (Files): Likewise.
31203         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31204         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31205         * modules/unictype/property-space-tests (Files): Likewise.
31206         * modules/unictype/property-terminal-punctuation-tests (Files):
31207         Likewise.
31208         * modules/unictype/property-test-tests (Files): Likewise.
31209         * modules/unictype/property-titlecase-tests (Files): Likewise.
31210         * modules/unictype/property-unassigned-code-value-tests (Files):
31211         Likewise.
31212         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31213         * modules/unictype/property-uppercase-tests (Files): Likewise.
31214         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31215         * modules/unictype/property-white-space-tests (Files): Likewise.
31216         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31217         * modules/unictype/property-xid-start-tests (Files): Likewise.
31218         * modules/unictype/property-zero-width-tests (Files): Likewise.
31219         * modules/unictype/scripts-tests (Files): Likewise.
31220         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31221         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31222         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31223         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31224         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31225         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31226         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31227         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31228         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31229         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31230         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31231         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31232         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31233         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31234         * modules/uninorm/composition-tests (Files): Likewise.
31235         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31236         * modules/uninorm/decomposition-tests (Files): Likewise.
31237         * modules/uninorm/filter-tests (Files): Likewise.
31238         * modules/uninorm/nfc-tests (Files): Likewise.
31239         * modules/uninorm/nfd-tests (Files): Likewise.
31240         * modules/uninorm/nfkc-tests (Files): Likewise.
31241         * modules/uninorm/nfkd-tests (Files): Likewise.
31242         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31243         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31244         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31245         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31246         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31247         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31248         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31249         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31250         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31251         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31252         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31253         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31254         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31255         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31256         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31257         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31258         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31259         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31260         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31261         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31262         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31263         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31264         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31265         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31266         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31267         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31268         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31269         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31270         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31271         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31272         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31273         * modules/uniwidth/u8-width-tests (Files): Likewise.
31274         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31275         * modules/uniwidth/u16-width-tests (Files): Likewise.
31276         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31277         * modules/uniwidth/u32-width-tests (Files): Likewise.
31278         * modules/uniwidth/width-tests (Files): Likewise.
31279         * modules/unlink-tests (Files): Likewise.
31280         * modules/unsetenv-tests (Files): Likewise.
31281         * modules/usleep-tests (Files): Likewise.
31282         * modules/utimens-tests (Files): Likewise.
31283         * modules/utimensat-tests (Files): Likewise.
31284         * modules/vasnprintf-posix-tests (Files): Likewise.
31285         * modules/vasnprintf-tests (Files): Likewise.
31286         * modules/vasprintf-posix-tests (Files): Likewise.
31287         * modules/vasprintf-tests (Files): Likewise.
31288         * modules/vdprintf-posix-tests (Files): Likewise.
31289         * modules/vfprintf-posix-tests (Files): Likewise.
31290         * modules/vprintf-posix-tests (Files): Likewise.
31291         * modules/vsnprintf-posix-tests (Files): Likewise.
31292         * modules/vsnprintf-tests (Files): Likewise.
31293         * modules/vsprintf-posix-tests (Files): Likewise.
31294         * modules/wcrtomb-tests (Files): Likewise.
31295         * modules/wcsnrtombs-tests (Files): Likewise.
31296         * modules/wcsrtombs-tests (Files): Likewise.
31297         * modules/wctype-tests (Files): Likewise.
31298         * modules/wcwidth-tests (Files): Likewise.
31299         * modules/xmemdup0-tests (Files): Likewise.
31300         * modules/xprintf-posix-tests (Files): Likewise.
31301         * modules/xvasprintf-tests (Files): Likewise.
31302
31303 2009-12-24  Eric Blake  <ebb9@byu.net>
31304
31305         test-nanosleep: fix typo
31306         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31307         patch.
31308         Reported by Bruno Haible.
31309
31310 2009-12-24  Bruno Haible  <bruno@clisp.org>
31311
31312         Reduce namespace pollution on glibc systems.
31313         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31314         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31315         systems.
31316         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31317         <getopt.h> on glibc systems.
31318         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31319         systems.
31320         * lib/fcntl.c: Include <unistd.h> here instead.
31321
31322 2009-12-24  Bruno Haible  <bruno@clisp.org>
31323
31324         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31325
31326 2009-12-24  Eric Blake  <ebb9@byu.net>
31327
31328         tests: add signature checks
31329         * tests/signature.h (SIGNATURE_CHECK): New file.
31330         * modules/atexit-tests (Files): Use it.
31331         * modules/btowc-tests (Files): Likewise.
31332         * modules/canonicalize-lgpl-tests (Files): Likewise.
31333         * modules/ceilf-tests (Files): Likewise.
31334         * modules/ceill-tests (Files): Likewise.
31335         * modules/chown-tests (Files): Likewise.
31336         * modules/dprintf-posix-tests (Files): Likewise.
31337         * modules/dup2-tests (Files): Likewise.
31338         * modules/dup3-tests (Files): Likewise.
31339         * modules/duplocale-tests (Files): Likewise.
31340         * modules/fchdir-tests (Files): Likewise.
31341         * modules/fcntl-tests (Files): Likewise.
31342         * modules/fdopendir-tests (Files): Likewise.
31343         * modules/fflush-tests (Files): Likewise.
31344         * modules/flock-tests (Files): Likewise.
31345         * modules/floorf-tests (Files): Likewise.
31346         * modules/floorl-tests (Files): Likewise.
31347         * modules/fnmatch-tests (Files): Likewise.
31348         * modules/fopen-tests (Files): Likewise.
31349         * modules/fprintf-posix-tests (Files): Likewise.
31350         * modules/freopen-tests (Files): Likewise.
31351         * modules/frexp-nolibm-tests (Files): Likewise.
31352         * modules/frexp-tests (Files): Likewise.
31353         * modules/frexpl-nolibm-tests (Files): Likewise.
31354         * modules/frexpl-tests (Files): Likewise.
31355         * modules/fseek-tests (Files): Likewise.
31356         * modules/fseeko-tests (Files): Likewise.
31357         * modules/fsync-tests (Files): Likewise.
31358         * modules/ftell-tests (Files): Likewise.
31359         * modules/ftello-tests (Files): Likewise.
31360         * modules/futimens-tests (Files): Likewise.
31361         * modules/getaddrinfo-tests (Files): Likewise.
31362         * modules/getcwd-tests (Files): Likewise.
31363         * modules/getdelim-tests (Files): Likewise.
31364         * modules/getdtablesize-tests (Files): Likewise.
31365         * modules/getgroups-tests (Files): Likewise.
31366         * modules/gethostname-tests (Files): Likewise.
31367         * modules/getline-tests (Files): Likewise.
31368         * modules/getopt-posix-tests (Files): Likewise.
31369         * modules/gettimeofday-tests (Files): Likewise.
31370         * modules/glob-tests (Files): Likewise.
31371         * modules/iconv-tests (Files): Likewise.
31372         * modules/inet_ntop-tests (Files): Likewise.
31373         * modules/inet_pton-tests (Files): Likewise.
31374         * modules/isblank-tests (Files): Likewise.
31375         * modules/lchown-tests (Files): Likewise.
31376         * modules/ldexpl-tests (Files): Likewise.
31377         * modules/link-tests (Files): Likewise.
31378         * modules/linkat-tests (Files): Likewise.
31379         * modules/lseek-tests (Files): Likewise.
31380         * modules/lstat-tests (Files): Likewise.
31381         * modules/mbrtowc-tests (Files): Likewise.
31382         * modules/mbsinit-tests (Files): Likewise.
31383         * modules/mbsnrtowcs-tests (Files): Likewise.
31384         * modules/mbsrtowcs-tests (Files): Likewise.
31385         * modules/memchr-tests (Files): Likewise.
31386         * modules/memcmp-tests (Files): Likewise.
31387         * modules/memmem-tests (Files): Likewise.
31388         * modules/memrchr-tests (Files): Likewise.
31389         * modules/mkdir-tests (Files): Likewise.
31390         * modules/mkfifo-tests (Files): Likewise.
31391         * modules/mkfifoat-tests (Files): Likewise.
31392         * modules/mknod-tests (Files): Likewise.
31393         * modules/nanosleep-tests (Files): Likewise.
31394         * modules/nl_langinfo-tests (Files): Likewise.
31395         * modules/obstack-printf-tests (Files): Likewise.
31396         * modules/open-tests (Files): Likewise.
31397         * modules/openat-tests (Files): Likewise.
31398         * modules/perror-tests (Files): Likewise.
31399         * modules/pipe2-tests (Files): Likewise.
31400         * modules/poll-tests (Files): Likewise.
31401         * modules/popen-tests (Files): Likewise.
31402         * modules/posix_spawn-tests (Files): Likewise.
31403         * modules/posix_spawnp-tests (Files): Likewise.
31404         * modules/pread-tests (Files): Likewise.
31405         * modules/printf-posix-tests (Files): Likewise.
31406         * modules/pty-tests (Files): Likewise.
31407         * modules/random_r-tests (Files): Likewise.
31408         * modules/rawmemchr-tests (Files): Likewise.
31409         * modules/readlink-tests (Files): Likewise.
31410         * modules/remove-tests (Files): Likewise.
31411         * modules/rename-tests (Files): Likewise.
31412         * modules/renameat-tests (Files): Likewise.
31413         * modules/rmdir-tests (Files): Likewise.
31414         * modules/round-tests (Files): Likewise.
31415         * modules/roundf-tests (Files): Likewise.
31416         * modules/roundl-tests (Files): Likewise.
31417         * modules/select-tests (Files): Likewise.
31418         * modules/setenv-tests (Files): Likewise.
31419         * modules/sigaction-tests (Files): Likewise.
31420         * modules/sleep-tests (Files): Likewise.
31421         * modules/snprintf-posix-tests (Files): Likewise.
31422         * modules/snprintf-tests (Files): Likewise.
31423         * modules/sprintf-posix-tests (Files): Likewise.
31424         * modules/stat-tests (Files): Likewise.
31425         * modules/strcasestr-tests (Files): Likewise.
31426         * modules/strchrnul-tests (Files): Likewise.
31427         * modules/strerror-tests (Files): Likewise.
31428         * modules/strsignal-tests (Files): Likewise.
31429         * modules/strstr-tests (Files): Likewise.
31430         * modules/strtod-tests (Files): Likewise.
31431         * modules/strverscmp-tests (Files): Likewise.
31432         * modules/symlink-tests (Files): Likewise.
31433         * modules/symlinkat-tests (Files): Likewise.
31434         * modules/times-tests (Files): Likewise.
31435         * modules/trunc-tests (Files): Likewise.
31436         * modules/truncf-tests (Files): Likewise.
31437         * modules/truncl-tests (Files): Likewise.
31438         * modules/tsearch-tests (Files): Likewise.
31439         * modules/uname-tests (Files): Likewise.
31440         * modules/unlink-tests (Files): Likewise.
31441         * modules/unsetenv-tests (Files): Likewise.
31442         * modules/usleep-tests (Files): Likewise.
31443         * modules/utimensat-tests (Files): Likewise.
31444         * modules/vasprintf-tests (Files): Likewise.
31445         * modules/vdprintf-posix-tests (Files): Likewise.
31446         * modules/vfprintf-posix-tests (Files): Likewise.
31447         * modules/vprintf-posix-tests (Files): Likewise.
31448         * modules/vsnprintf-posix-tests (Files): Likewise.
31449         * modules/vsnprintf-tests (Files): Likewise.
31450         * modules/vsprintf-posix-tests (Files): Likewise.
31451         * modules/wcrtomb-tests (Files): Likewise.
31452         * modules/wcsnrtombs-tests (Files): Likewise.
31453         * modules/wcsrtombs-tests (Files): Likewise.
31454         * modules/wcwidth-tests (Files): Likewise.
31455         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31456         * tests/test-isinf.c (isinf): Likewise.
31457         * tests/test-isnan.c (isnan): Likewise.
31458         * tests/test-signbit.c (signbit): Likewise.
31459         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31460         declaration, either as macro or with correct signature.
31461         (select): Ensure function under test is declared with correct
31462         signature in correct header.
31463         * tests/test-atexit.c (atexit): Likewise.
31464         * tests/test-btowc.c (btowc): Likewise.
31465         * tests/test-canonicalize-lgpl.c (realpath)
31466         (canonicalize_file_name): Likewise.
31467         * tests/test-ceilf1.c (ceilf): Likewise.
31468         * tests/test-ceill.c (ceill): Likewise.
31469         * tests/test-chown.c (chown): Likewise.
31470         * tests/test-dprintf-posix.c (dprintf): Likewise.
31471         * tests/test-dup2.c (dup2): Likewise.
31472         * tests/test-dup3.c (dup3): Likewise.
31473         * tests/test-duplocale.c (duplocale): Likewise.
31474         * tests/test-fchdir.c (fchdir): Likewise.
31475         * tests/test-fchownat.c (fchownat): Likewise.
31476         * tests/test-fcntl.c (fcntl): Likewise.
31477         * tests/test-fdopendir.c (fdopendir): Likewise.
31478         * tests/test-fflush.c (fflush): Likewise.
31479         * tests/test-flock.c (flock): Likewise.
31480         * tests/test-floorf1.c (floorf): Likewise.
31481         * tests/test-floorl.c (floorl): Likewise.
31482         * tests/test-fnmatch.c (fnmatch): Likewise.
31483         * tests/test-fopen.c (fopen): Likewise.
31484         * tests/test-fprintf-posix.c (fprintf): Likewise.
31485         * tests/test-freopen.c (freopen): Likewise.
31486         * tests/test-frexp.c (frexp): Likewise.
31487         * tests/test-frexpl.c (frexpl): Likewise.
31488         * tests/test-fseek.c (fseek): Likewise.
31489         * tests/test-fseeko.c (fseeko): Likewise.
31490         * tests/test-fstatat.c (fstatat): Likewise.
31491         * tests/test-fsync.c (fsync): Likewise.
31492         * tests/test-ftell.c (ftell): Likewise.
31493         * tests/test-ftello.c (ftello): Likewise.
31494         * tests/test-futimens.c (futimens): Likewise.
31495         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31496         (gai_strerror): Likewise.
31497         * tests/test-getcwd.c (getcwd): Likewise.
31498         * tests/test-getdelim.c (getdelim): Likewise.
31499         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31500         * tests/test-getgroups.c (getgroups): Likewise.
31501         * tests/test-gethostname.c (gethostname): Likewise.
31502         * tests/test-getline.c (getline): Likewise.
31503         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31504         Likewise.
31505         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31506         * tests/test-glob.c (glob, globfree): Likewise.
31507         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31508         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31509         * tests/test-inet_pton.c (inet_pton): Likewise.
31510         * tests/test-isblank.c (isblank): Likewise.
31511         * tests/test-lchown.c (lchown): Likewise.
31512         * tests/test-ldexpl.c (ldexpl): Likewise.
31513         * tests/test-link.c (link): Likewise.
31514         * tests/test-linkat.c (linkat): Likewise.
31515         * tests/test-lseek.c (lseek): Likewise.
31516         * tests/test-lstat.c (lstat): Likewise.
31517         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31518         * tests/test-mbsinit.c (mbsinit): Likewise.
31519         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31520         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31521         * tests/test-memchr.c (memchr): Likewise.
31522         * tests/test-memcmp.c (memcmp): Likewise.
31523         * tests/test-memmem.c (memmem): Likewise.
31524         * tests/test-memrchr.c (memrchr): Likewise.
31525         * tests/test-mkdir.c (mkdir): Likewise.
31526         * tests/test-mkdirat.c (mkdirat): Likewise.
31527         * tests/test-mkfifo.c (mkfifo): Likewise.
31528         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31529         * tests/test-mknod.c (mknod): Likewise.
31530         * tests/test-nanosleep.c (nanosleep): Likewise.
31531         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31532         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31533         Likewise.
31534         * tests/test-open.c (open): Likewise.
31535         * tests/test-openat.c (openat): Likewise.
31536         * tests/test-perror.c (perror): Likewise.
31537         * tests/test-pipe2.c (pipe2): Likewise.
31538         * tests/test-poll.c (poll): Likewise.
31539         * tests/test-popen.c (popen, pclose): Likewise.
31540         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31541         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31542         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31543         (posix_spawn_file_actions_destroy)
31544         (posix_spawn_file_actions_addclose)
31545         (posix_spawn_file_actions_addopen)
31546         (posix_spawn_file_actions_adddup2): Likewise.
31547         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31548         * tests/test-pread.c (pread): Likewise.
31549         * tests/test-printf-posix.c (printf): Likewise.
31550         * tests/test-pty.c (openpty, forkpty): Likewise.
31551         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31552         (random_r): Likewise.
31553         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31554         * tests/test-readlink.c (readlink): Likewise.
31555         * tests/test-remove.c (remove): Likewise.
31556         * tests/test-rename.c (rename): Likewise.
31557         * tests/test-renameat.c (renameat): Likewise.
31558         * tests/test-rmdir.c (rmdir): Likewise.
31559         * tests/test-round1.c (round): Likewise.
31560         * tests/test-roundf1.c (roundf): Likewise.
31561         * tests/test-roundl.c (roundl): Likewise.
31562         * tests/test-setenv.c (setenv): Likewise.
31563         * tests/test-sigaction.c (sigaction): Likewise.
31564         * tests/test-sleep.c (sleep): Likewise.
31565         * tests/test-snprintf.c (snprintf): Likewise.
31566         * tests/test-sprintf-posix.c (sprintf): Likewise.
31567         * tests/test-stat.c (stat): Likewise.
31568         * tests/test-stpncpy.c (stpncpy): Likewise.
31569         * tests/test-strcasestr.c (strcasestr): Likewise.
31570         * tests/test-strchrnul.c (strchrnul): Likewise.
31571         * tests/test-strerror.c (strerror): Likewise.
31572         * tests/test-strsignal.c (strsignal): Likewise.
31573         * tests/test-strstr.c (strstr): Likewise.
31574         * tests/test-strtod.c (strtod): Likewise.
31575         * tests/test-strverscmp.c (strverscmp): Likewise.
31576         * tests/test-symlink.c (symlink): Likewise.
31577         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31578         * tests/test-times.c (times): Likewise.
31579         * tests/test-trunc1.c (trunc): Likewise.
31580         * tests/test-truncf1.c (truncf): Likewise.
31581         * tests/test-truncl.c (truncl): Likewise.
31582         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31583         Likewise.
31584         * tests/test-uname.c (uname): Likewise.
31585         * tests/test-unlink.c (unlink): Likewise.
31586         * tests/test-unlinkat.c (unlinkat): Likewise.
31587         * tests/test-unsetenv.c (unsetenv): Likewise.
31588         * tests/test-usleep.c (usleep): Likewise.
31589         * tests/test-utimensat.c (utimensat): Likewise.
31590         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31591         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31592         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31593         * tests/test-vprintf-posix.c (vprintf): Likewise.
31594         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31595         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31596         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31597         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31598         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31599         * tests/test-wcwidth.c (wcwidth): Likewise.
31600
31601         build: pull in conditional headers during GNULIB_POSIXCHECK
31602         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31603         definitions from any conditionally-included headers.
31604         * lib/stdlib.in.h (includes): Likewise.
31605         * lib/unistd.in.h (includes): Likewise.
31606
31607 2009-12-24  Bruno Haible  <bruno@clisp.org>
31608
31609         * tests/test-argv-iter.c: Include header file being tested immediately
31610         after config.h.
31611         * tests/test-base64.c: Likewise.
31612         * tests/test-flock.c: Likewise.
31613         * tests/test-fsync.c: Likewise.
31614         * tests/test-getdate.c: Likewise.
31615         * tests/test-getndelim2.c: Likewise.
31616         * tests/test-isfinite.c: Likewise.
31617         * tests/test-isinf.c: Likewise.
31618         * tests/test-strerror.c: Likewise.
31619         * tests/test-strsignal.c: Likewise.
31620
31621 2009-12-23  Eric Blake  <ebb9@byu.net>
31622
31623         unistd: work around cygwin bug
31624         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31625         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31626         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31627
31628 2009-12-23  Bruno Haible  <bruno@clisp.org>
31629
31630         localename: More tests.
31631         * tests/test-localename.c (SIZEOF): New macro.
31632         (categories): New variable.
31633         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31634         test_locale_name_default): Add test w.r.t. thread locale.
31635         (test_locale_name_thread): New function.
31636         (main): Invoke it.
31637
31638         localename: Make aware of thread locale.
31639         * lib/localename.h (gl_locale_name_thread): New declaration.
31640         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31641         behaviour with respect to thread locale.
31642         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31643         <langinfo.h>, glthread/lock.h.
31644         (SIZE_BITS): New macro.
31645         (string_hash): New function.
31646         (struct hash_node): New type.
31647         (HASH_TABLE_SIZE): New macro.
31648         (struniq_hash_table, struniq_lock): New variables.
31649         (struniq): New function.
31650         (gl_locale_name_thread): New function.
31651         (gl_locale_name): Invoke it.
31652         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31653         * modules/localename (Depends-on): Add lock.
31654         Reported by Mike Gran <spk121@yahoo.com>.
31655
31656 2009-12-23  Eric Blake  <ebb9@byu.net>
31657
31658         va-args: new module
31659         * modules/va-args: New file.
31660         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31661         * MODULES.html.sh (Core language properties): Mention it.
31662
31663         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31664         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31665         named alias for __attribute__((__unused__)).
31666         * lib/chown.c: Update client.
31667         * lib/fchmodat.c: Likewise.
31668         * lib/fts.c: Likewise.
31669         * lib/getdate.y: Likewise.
31670         * lib/getgroups.c: Likewise.
31671         * lib/getopt.c: Likewise.
31672         * lib/getugroups.c: Likewise.
31673         * lib/mkdir.c: Likewise.
31674         * lib/mkfifo.c: Likewise.
31675         * lib/mkfifoat.c: Likewise.
31676         * lib/mknod.c: Likewise.
31677         * lib/mknodat.c: Likewise.
31678         * lib/readlink.c: Likewise.
31679         * lib/se-context.in.h: Likewise.
31680         * lib/se-selinux.in.h: Likewise.
31681         * lib/sockets.c: Likewise.
31682         * lib/symlink.c: Likewise.
31683         * lib/symlinkat.c: Likewise.
31684         * lib/unicodeio.c: Likewise.
31685         * lib/unistr.h: Likewise.
31686         * tests/test-areadlink.c: Likewise.
31687         * tests/test-areadlinkat.c: Likewise.
31688         * tests/test-filenamecat.c: Likewise.
31689         * tests/test-fseeko.c: Likewise.
31690         * tests/test-ftello.c: Likewise.
31691         * tests/test-getdate.c: Likewise.
31692         * tests/test-getgroups.c: Likewise.
31693         * tests/test-gethostname.c: Likewise.
31694         * tests/test-quotearg.c: Likewise.
31695         * tests/test-version-etc.c: Likewise.
31696         * tests/test-xalloc-die.c: Likewise.
31697         * tests/test-xfprintf-posix.c: Likewise.
31698         * tests/test-xprintf-posix.c: Likewise.
31699         * tests/test-xvasprintf.c: Likewise.
31700
31701         tests: avoid compiler warnings
31702         * tests/test-fcntl.c (main): Delete unused parameters.
31703         * tests/test-freopen-safer.c (main): Likewise.
31704         * tests/test-xalloc-die.c (main): Mark unused parameters.
31705         * tests/test-fseeko.c (main): Likewise.
31706         * tests/test-ftello.c (main): Likewise.
31707         * tests/test-nanosleep.c (main): Avoid declaration warning.
31708         * tests/test-sleep.c (main): Likewise.
31709         * tests/test-unsetenv.c (main): Silence warning about string
31710         literal.
31711         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31712
31713 2009-12-23  Bruno Haible  <bruno@clisp.org>
31714
31715         * tests/test-localename.c (test_locale_name): New function, extracted
31716         from main. Also test mixed situations.
31717         (test_locale_name_posix, test_locale_name_environ,
31718         test_locale_name_default): New functions.
31719         (main): Invoke them all.
31720         * modules/localename-tests (configure.ac): Test for newlocale.
31721
31722 2009-12-23  Bruno Haible  <bruno@clisp.org>
31723
31724         unistd: Ensure getcwd gets declared before being overridden.
31725         * lib/unistd.in.h: Conditionally include <io.h>.
31726
31727 2009-12-22  Bruno Haible  <bruno@clisp.org>
31728
31729         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31730         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31731         (gl_WCHAR_H): Invoke it.
31732         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31733         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31734         Reported by Karl Berry <karl@freefriends.org>.
31735
31736 2009-12-22  Eric Blake  <ebb9@byu.net>
31737
31738         math, unistd: avoid redundant includes
31739         * lib/math.in.h (isnan): No need to re-include <math.h>.
31740         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31741
31742         getsubopt: work around cygwin bug
31743         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31744         avoid conflicting with system getsubopt.
31745         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31746         bug.
31747
31748         getopt: synchronize from glibc
31749         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31750         parameter order.  Adjust all callers.
31751         (_getopt_internal_r, main): Adjust quoting in error messages.
31752         Drop considerations for outdated POSIX 1003.2 error message.
31753         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31754         callers.
31755         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31756
31757         test-getopt: test stderr behavior
31758         * modules/getopt-posix-tests (Depends-on): Add dup2.
31759         * tests/test-getopt.c (ASSERT): Avoid stderr.
31760         (main): Move stderr to a temporary file.
31761         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31762         Instead, add parameter to inform caller if output occurred.
31763         (test_getopt): Adjust all existing tests to expect silence, and
31764         add new tests of leading ":".
31765         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31766         glibc shortcomings with leading "-:" or "+:" in optstring.
31767         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31768         Likewise.
31769         * doc/posix-functions/getopt.texi (getopt): Likewise.
31770
31771         test-getopt: enhance test
31772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31773         supports optind=0.
31774         * tests/test-getopt.c (OPTIND_MIN): Move...
31775         * tests/test-getopt.h (OPTIND_MIN): ...here.
31776         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31777         Require that optind=0 works, since modern BSD supports it in
31778         addition to optreset, and since coreutils expects it.
31779         (test_getopt_long_only): New test.
31780         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31781         glibc shortcomings with 'W;', and enforcement of optind=0.
31782         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31783         Likewise.
31784
31785 2009-12-21  Bruno Haible  <bruno@clisp.org>
31786
31787         localename: Improvements for MacOS X and Cygwin.
31788         * lib/localename.h (gl_locale_name_environ): New declaration.
31789         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31790         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31791         (gl_locale_name_posix): Invoke it.
31792         (gl_locale_name_default): Add comments. Use Windows native API also on
31793         Cygwin.
31794
31795 2009-12-21  Bruno Haible  <bruno@clisp.org>
31796
31797         Update list of Win32 locale ids.
31798         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31799         (LANG_SAMI): Renamed from LANG_SAAMI.
31800         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31801         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31802         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31803         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31804         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31805         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31806         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31807         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31808         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31809         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31810         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31811         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31812         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31813         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31814         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31815         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31816         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31817         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31818         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31819         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31820         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31821         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31822         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31823         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31824         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31825         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31826         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31827         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31828         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31829         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31830         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31831         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31832         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31833         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31834         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31835         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31836         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31837         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31838         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31839         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31840         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31841         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31842         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31843         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31844         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31845         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31846         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31847         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31848         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31849         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31850         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31851         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31852         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31853         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31854         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31855         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31856         Add more languages and countries for Sami, Sorbian. Add more countries
31857         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31858         for Pashto. Change country for Syriac, Tswana.
31859
31860 2009-12-21  Eric Blake  <ebb9@byu.net>
31861
31862         test-utimens: avoid spurious failure
31863         * tests/test-chown.h (nap): Factor...
31864         * tests/nap.h: ...into new file.
31865         * tests/test-lchown.h (nap): Avoid duplication.
31866         * tests/test-utimens-common.h (nap): Use shared implementation,
31867         necessary on file systems with 1-second resolution.
31868         * modules/chown-tests (Files): Include new file.
31869         * modules/fdutimensat-tests (Files): Likewise.
31870         * modules/futimens-tests (Files): Likewise.
31871         * modules/lchown-tests (Files): Likewise.
31872         * modules/openat-tests (Files): Likewise.
31873         * modules/utimens-tests (Files): Likewise.
31874         * modules/utimensat-tests (Files): Likewise.
31875
31876 2009-12-19  Eric Blake  <ebb9@byu.net>
31877
31878         futimens, utimensat: work around Linux bug
31879         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31880         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31881         * lib/utimensat.c (rpl_utimensat): Work around it.
31882         * lib/futimens.c (rpl_futimens): Adjust comment.
31883
31884         utimens: work around Linux ctime bug
31885         * lib/utimens.c (detect_ctime_bug): New helper function.
31886         (update_timespec): Differentiate between workaround needed for
31887         this bug vs. what is needed for systems that lack utimensat.
31888         (fdutimens, lutimens): Work around bug.
31889
31890         utimens: check for ctime update
31891         * tests/test-utimens-common.h (check_ctime): Define.
31892         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31893         * tests/test-futimens.h (test_futimens): Likewise.
31894         * tests/test-lutimens.h (test_lutimens): Likewise.
31895         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31896         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31897
31898 2009-12-19  Bruno Haible  <bruno@clisp.org>
31899
31900         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31901         * tests/test-dprintf-posix2.sh: New file.
31902         * tests/test-dprintf-posix2.c: New file.
31903         * modules/dprintf-posix-tests (Files): Add them.
31904         (configure.ac): Check for getrlimit and setrlimit.
31905         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31906
31907 2009-12-19  Bruno Haible  <bruno@clisp.org>
31908
31909         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31910         * tests/test-fprintf-posix3.sh: New file.
31911         * tests/test-fprintf-posix3.c: New file.
31912         * modules/fprintf-posix-tests (Files): Add them.
31913         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31914
31915 2009-12-19  Eric Blake  <ebb9@byu.net>
31916
31917         dirfd: fix prototype
31918         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31919         * lib/dirfd.c (dirfd): Likewise.
31920
31921         canonicalize: reduce memory usage
31922         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31923         allocation to size.
31924         Reported by Solar Designer <solar@openwall.com>.
31925
31926 2009-12-19  Bruno Haible  <bruno@clisp.org>
31927
31928         New module attribute 'Applicability'.
31929         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31930         * gnulib-tool: New option --extract-applicability.
31931         (func_usage): Document it.
31932         (sed_extract_prog): Recognize it.
31933         (func_get_applicability): New function.
31934         (func_import): Generalize handling of 'link-warning' module.
31935         * modules/link-warning (Applicability): New section.
31936         * modules/arg-nonnull (Applicability): New section.
31937         Repoted by Simon Josefsson <simon@josefsson.org>.
31938
31939 2009-12-19  Bruno Haible  <bruno@clisp.org>
31940
31941         fflush: tweak
31942         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31943         * lib/fseeko.c (rpl_fseeko): Likewise.
31944
31945 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31946
31947         * lib/gl_list.h: Fix typo in comment.
31948
31949 2009-12-16  Eric Blake  <ebb9@byu.net>
31950
31951         fcntl: use to simplify other modules
31952         * modules/cloexec (Depends-on): Add fcntl.
31953         * modules/fchdir (Depends-on): Likewise.
31954         * modules/fd-safer-flag (Depends-on): Likewise.
31955         * modules/unistd-safer (Depends-on): Likewise.
31956         * modules/dup3 (configure.ac): Set module indicator.
31957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31958         missing.
31959         * lib/fchdir.c (_gl_register_dup): Fix comment.
31960         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31961         * lib/dup-safer.c (dup_safer): Likewise.
31962         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31963         * lib/dup3.c (dup3): Likewise.
31964         * tests/test-fchdir.c (main): Enhance test.
31965         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31966
31967         fcntl: port portions of fcntl to mingw
31968         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31969         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31970         replacement for mingw.
31971         * modules/fcntl (Description): Update.
31972         (Depends-on): Add dup2.
31973         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31974         * modules/fcntl-h (Makefile.am): Substitute it.
31975         * lib/fcntl.in.h (fcntl): Update declaration.
31976         (F_DUPFD, F_GETFD): New macros, when needed.
31977         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31978         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31979         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31980         we now guarantee.
31981
31982         fcntl: work around cygwin bug in F_DUPFD
31983         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31984         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31985         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31986         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31987         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31988
31989         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31990         * modules/fcntl (Files): List new files.
31991         (configure.ac): Run a test.
31992         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31993         * lib/fcntl.c (rpl_fcntl): Likewise.
31994         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31995         (gl_FCNTL_H): Always replace fcntl.h.
31996         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31997         * lib/fcntl.in.h (fcntl): Declare replacement.
31998         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31999         needed, plus a witness.
32000         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32001         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32002         * tests/test-fcntl.c: New file.
32003         * modules/fcntl-tests: Likewise.
32004
32005         binary-io: avoid potential compilation warning
32006         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32007         directives.
32008
32009         fflush: avoid compilation error on NetBSD
32010         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32011         between off_t and fpos_t, since the latter is sometimes a struct.
32012         * lib/fseeko.c (rpl_fseeko): Likewise.
32013         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32014
32015 2009-12-15  Eric Blake  <ebb9@byu.net>
32016
32017         fcntl-h, stdio, sys_ioctl: fix declarations
32018         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32019         function must not take arguments.
32020         * lib/sys_ioctl.in.h (ioctl): Likewise.
32021         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32022         (open): Add a link warning.
32023
32024 2009-12-15  Jim Meyering  <meyering@redhat.com>
32025
32026         areadlink, areadlink-with-size: relax license to LGPLv2+
32027         * modules/areadlink (License): Relax to LGPLv2+.
32028         * modules/areadlink-with-size (License): Likewise.
32029
32030 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32031             Bruno Haible  <bruno@clisp.org>
32032
32033         *printf: Fix memory leak.
32034         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32035         * lib/vfprintf.c (vfprintf): Likewise.
32036         * lib/dprintf.c (dprintf): Likewise.
32037         * lib/vdprintf.c (vdprintf): Likewise.
32038
32039 2009-12-14  Eric Blake  <ebb9@byu.net>
32040
32041         accept4: adjust module dependencies
32042         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32043
32044         utimens: one more try at avoiding compiler warning
32045         * lib/utimens.c (lutimens): Lower scope of result.
32046
32047 2009-12-13  Bruno Haible  <bruno@clisp.org>
32048
32049         Move the malloc checking from module 'list' to new module 'xlist'.
32050         * modules/xlist: New file.
32051         * lib/gl_xlist.h: New file.
32052         * lib/gl_xlist.c: New file.
32053         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32054         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32055         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32056         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32057         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32058         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32059         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32060         gl_sortedlist_nx_add): New declarations.
32061         (struct gl_list_implementation): Rename and change methods accordingly.
32062         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32063         (gl_list_nx_create): Renamed from gl_list_create.
32064         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32065         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32066         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32067         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32068         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32069         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32070         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32071         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32072         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32073         gl_list_create_empty.
32074         (gl_list_nx_create): Renamed from gl_list_create.
32075         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32076         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32077         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32078         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32079         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32080         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32081         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32082         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32083         * lib/gl_array_list.c: Don't include xalloc.h.
32084         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32085         NULL upon out-of-memory.
32086         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32087         out-of-memory.
32088         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32089         Change return type to 'int'.
32090         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32091         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32092         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32093         upon out-of-memory.
32094         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32095         upon out-of-memory.
32096         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32097         upon out-of-memory.
32098         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32099         upon out-of-memory.
32100         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32101         out-of-memory.
32102         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32103         Update.
32104         (gl_array_list_implementation): Update.
32105         * lib/gl_carray_list.c: Don't include xalloc.h.
32106         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32107         Return NULL upon out-of-memory.
32108         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32109         out-of-memory.
32110         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32111         Change return type to 'int'.
32112         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32113         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32114         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32115         upon out-of-memory.
32116         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32117         upon out-of-memory.
32118         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32119         out-of-memory.
32120         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32121         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32122         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32123         Update.
32124         (gl_carray_list_implementation): Update.
32125         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32126         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32127         gl_linked_create_empty. Return NULL upon out-of-memory.
32128         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32129         out-of-memory.
32130         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32131         Change return type to 'int'. Return -1 upon out-of-memory.
32132         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32133         out-of-memory.
32134         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32135         upon out-of-memory.
32136         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32137         upon out-of-memory.
32138         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32139         NULL upon out-of-memory.
32140         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32141         upon out-of-memory.
32142         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32143         out-of-memory.
32144         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32145         Update.
32146         * lib/gl_linked_list.c: Don't include xalloc.h.
32147         (gl_linked_list_implementation): Update.
32148         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32149         (add_to_bucket): Change return type to 'int'.
32150         (gl_linkedhash_list_implementation): Update.
32151         * lib/gl_anytree_list1.h (free_subtree): New function.
32152         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32153         gl_tree_create_empty. Return NULL upon out-of-memory.
32154         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32155         Change return type to 'int'. Return -1 upon out-of-memory.
32156         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32157         out-of-memory.
32158         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32159         (gl_tree_remove_node): New function, moved here from
32160         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32161         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32162         Update.
32163         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32164         malloc, not xmalloc. Return NULL upon out-of-memory.
32165         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32166         out-of-memory.
32167         (gl_tree_remove_node_from_tree): New function, extracted from
32168         gl_tree_remove_node.
32169         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32170         upon out-of-memory.
32171         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32172         out-of-memory.
32173         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32174         upon out-of-memory.
32175         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32176         upon out-of-memory.
32177         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32178         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32179         not xmalloc. Return NULL upon out-of-memory.
32180         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32181         out-of-memory.
32182         (gl_tree_remove_node_from_tree): New function, extracted from
32183         gl_tree_remove_node.
32184         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32185         upon out-of-memory.
32186         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32187         out-of-memory.
32188         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32189         upon out-of-memory.
32190         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32191         upon out-of-memory.
32192         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32193         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32194         gl_anytree_list1.h before gl_anyavltree_list2.h.
32195         (gl_avltree_list_implementation): Update.
32196         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32197         gl_anytree_list1.h before gl_anyavltree_list2.h.
32198         (gl_rbtree_list_implementation): Update.
32199         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32200         Change return type to 'int'. Return -1 upon out-of-memory. Use
32201         __builtin_expect.
32202         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32203         (gl_avltreehash_list_implementation): Update.
32204         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32205         (gl_rbtreehash_list_implementation): Update.
32206         * modules/array-list (Depends-on): Remove xalloc.
32207         * modules/carray-list (Depends-on): Likewise.
32208         * modules/linked-list (Depends-on): Likewise.
32209         * modules/linkedhash-list (Depends-on): Likewise.
32210         * modules/avltree-list (Depends-on): Likewise.
32211         * modules/rbtree-list (Depends-on): Likewise.
32212         * modules/avltreehash-list (Depends-on): Likewise.
32213         * modules/rbtreehash-list (Depends-on): Likewise.
32214
32215         * modules/xsublist: New file.
32216         * lib/gl_xsublist.h: New file.
32217         * lib/gl_xsublist.c: New file.
32218         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32219         (gl_sublist_nx_create): New declaration.
32220         * lib/gl_sublist.c: Don't include xalloc.h.
32221         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32222         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32223         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32224         Change return type to 'int'. Return -1 upon out-of-memory.
32225         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32226         upon out-of-memory.
32227         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32228         NULL upon out-of-memory.
32229         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32230         upon out-of-memory.
32231         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32232         NULL upon out-of-memory.
32233         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32234         NULL upon out-of-memory.
32235         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32236         upon out-of-memory.
32237         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32238         (gl_sublist_list_implementation): Update.
32239         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32240         upon out-of-memory.
32241         * modules/sublist (Depends-on): Remove xalloc.
32242
32243         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32244         * tests/test-carray_list.c: Likewise.
32245         * tests/test-linked_list.c: Likewise.
32246         * tests/test-linkedhash_list.c: Likewise.
32247         * tests/test-avltree_list.c: Likewise.
32248         * tests/test-rbtree_list.c: Likewise.
32249         * tests/test-avltreehash_list.c: Likewise.
32250         * tests/test-rbtreehash_list.c: Likewise.
32251         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32252         * modules/carray-list-tests (Makefile.am): Likewise.
32253         * modules/linked-list-tests (Makefile.am): Likewise.
32254         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32255         * modules/avltree-list-tests (Makefile.am): Likewise.
32256         * modules/rbtree-list-tests (Makefile.am): Likewise.
32257         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32258         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32259
32260         * NEWS: Mention the changes.
32261
32262         * lib/clean-temp.c: Include gl_xlist.h.
32263         * modules/clean-temp (Depends-on): Add xlist.
32264
32265         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32266         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32267
32268         * tests/test-array_oset.c: Include gl_xlist.h.
32269         * modules/array-oset-tests (Depends-on): Add xlist.
32270
32271         Reported by José E. Marchesi <jemarch@gnu.org>.
32272
32273 2009-12-13  Bruno Haible  <bruno@clisp.org>
32274
32275         Move the malloc checking from module 'oset' to new module 'xoset'.
32276         * modules/xoset: New file.
32277         * lib/gl_xoset.h: New file.
32278         * lib/gl_xoset.c: New file.
32279         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32280         declarations.
32281         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32282         (struct gl_oset_implementation): Rename and change methods accordingly.
32283         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32284         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32285         'int'. Mark as __warn_unused_result__.
32286         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32287         gl_oset_create_empty.
32288         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32289         'int'.
32290         * lib/gl_array_oset.c: Don't include xalloc.h.
32291         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32292         malloc, not xmalloc.
32293         (grow): Change return type to 'int'. Don't call xalloc_die.
32294         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32295         to 'int'.
32296         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32297         'int'.
32298         (gl_array_oset_implementation): Update.
32299         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32300         gl_tree_create_empty.
32301         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32302         'int'.
32303         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32304         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32305         xmalloc.
32306         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32307         not xmalloc.
32308         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32309         xmalloc.
32310         (gl_avltree_oset_implementation): Update.
32311         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32312         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32313         xmalloc.
32314         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32315         not xmalloc.
32316         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32317         xmalloc.
32318         (gl_rbtree_oset_implementation): Update.
32319         * modules/array-oset (Depends-on): Remove xalloc.
32320         * modules/avltree-oset (Depends-on): Likewise.
32321         * modules/rbtree-oset (Depends-on): Likewise.
32322         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32323         * tests/test-avltree_oset.c: Likewise.
32324         * tests/test-rbtree_oset.c: Likewise.
32325         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32326         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32327         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32328         * NEWS: Mention the change.
32329
32330 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32331
32332         maint.mk: allow a project to override release-prep commands
32333         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32334         commands into a new rule.
32335         (release-prep): New rule.
32336         (release-prep-hook): New overridable variable.
32337
32338 2009-12-13  Bruno Haible  <bruno@clisp.org>
32339
32340         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32341
32342 2009-12-13  Jim Meyering  <meyering@redhat.com>
32343
32344         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32345         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32346
32347 2009-12-12  Bruno Haible  <bruno@clisp.org>
32348
32349         duplocale: Tweak.
32350         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32351
32352 2009-12-12  Karl Berry  <karl@gnu.org>
32353
32354         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32355
32356 2009-12-12  Bruno Haible  <bruno@clisp.org>
32357
32358         * m4/po.m4: Undo incorrect untabification.
32359
32360 2009-12-12  Bruno Haible  <bruno@clisp.org>
32361
32362         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32363         * modules/c-strtod (Depends-on): Add locale.
32364         * modules/c-strtold (Depends-on): Likewise.
32365
32366 2009-12-12  Bruno Haible  <bruno@clisp.org>
32367
32368         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32369
32370 2009-12-11  Eric Blake  <ebb9@byu.net>
32371
32372         setenv: relax requirement in light of POSIX ruling
32373         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32374         not NULL.
32375         * tests/test-setenv.c (main): Relax test.
32376         * tests/test-unsetenv.c (main): Likewise.
32377         * doc/posix-functions/setenv.texi (setenv): Document this.
32378         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32379
32380 2009-12-11  Bruno Haible  <bruno@clisp.org>
32381
32382         New module 'fd-safer-flag'.
32383         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32384         * lib/dup-safer.c (dup_safer_flag): Remove function.
32385         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32386         * lib/fd-safer.c (fd_safer_flag): Remove function.
32387         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32388         * modules/cloexec (configure.ac): Drop indicator macro.
32389         * modules/fd-safer-flag: New file.
32390         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32391         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32392         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32393
32394 2009-12-11  Bruno Haible  <bruno@clisp.org>
32395
32396         Tests for module 'nl_langinfo'.
32397         * modules/nl_langinfo-tests: New file.
32398         * tests/test-nl_langinfo.sh: New file.
32399         * tests/test-nl_langinfo.c: New file.
32400
32401         New module 'nl_langinfo'.
32402         * lib/nl_langinfo.c: New file.
32403         * m4/nl_langinfo.m4: New file.
32404         * modules/nl_langinfo: New file.
32405         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32406
32407 2009-12-11  Bruno Haible  <bruno@clisp.org>
32408
32409         Tests for module 'langinfo'.
32410         * modules/langinfo-tests: New file.
32411         * tests/test-langinfo.c: New file.
32412
32413         New module 'langinfo'.
32414         * lib/langinfo.in.h: New file.
32415         * m4/langinfo_h.m4: New file.
32416         * modules/langinfo: New file.
32417         * doc/posix-headers/langinfo.texi: Mention the new module.
32418
32419 2009-12-11  Bruno Haible  <bruno@clisp.org>
32420
32421         * lib/config.charset: Untabify.
32422
32423 2009-12-11  Bruno Haible  <bruno@clisp.org>
32424
32425         * modules/unistd-safer (configure.ac): Drop indicator macro.
32426
32427 2009-12-11  Bruno Haible  <bruno@clisp.org>
32428
32429         Move pipe2-safer code to its own file.
32430         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32431         * lib/pipe-safer.c (pipe2_safer): Remove function.
32432         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32433         (Makefile.am): Add it to lib_SOURCES.
32434
32435 2009-12-10  Bruno Haible  <bruno@clisp.org>
32436
32437         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32438
32439 2009-12-10  Bruno Haible  <bruno@clisp.org>
32440
32441         Declare which arguments expect non-NULL values, for GCC and clang.
32442         * build-aux/arg-nonnull.h: New file.
32443         * modules/arg-nonnull: New file.
32444         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32445         (inet_ntop, inet_pton): Use it.
32446         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32447         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32448         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32449         (open, openat): Use it.
32450         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32451         (fnmatch): Use it.
32452         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32453         (getopt, getopt_long, getopt_long_only): Use it.
32454         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32455         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32456         Use it.
32457         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32458         (iconv_open): Use it.
32459         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32460         (strtoimax, strtoumax): Use it.
32461         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32462         (duplocale): Use it.
32463         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32464         (frexp, frexpl): Use it.
32465         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32466         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32467         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32468         (tsearch, tfind, tdelete, twalk): Use it.
32469         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32470         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32471         sigpending): Use it.
32472         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32473         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32474         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32475         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32476         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32477         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32478         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32479         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32480         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32481         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32482         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32483         Use it.
32484         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32485         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32486         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32487         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32488         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32489         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32490         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32491         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32492         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32493         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32494         strtoull, unsetenv): Use it.
32495         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32496         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32497         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32498         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32499         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32500         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32501         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32502         (strcasecmp, strncasecmp): Use it.
32503         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32504         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32505         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32506         rpl_setsockopt): Use it.
32507         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32508         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32509         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32510         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32511         (gettimeofday): Use it.
32512         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32513         (times): Use it.
32514         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32515         (uname): Use it.
32516         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32517         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32518         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32519         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32520         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32521         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32522         unlinkat, write): Use it.
32523         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32524         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32525         * lib/argv-iter.h: Include arg-nonnull.h.
32526         (_ATTRIBUTE_NONNULL_): Remove macro.
32527         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32528         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32529         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32530         optimization.
32531         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32532         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32533         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32534         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32535         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32536         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32537         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32538         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32539         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32540         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32541         * modules/dirent (Depends-on): Add arg-nonnull.
32542         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32543         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32544         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32545         * modules/fnmatch (Depends-on): Add arg-nonnull.
32546         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32547         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32548         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32549         * modules/glob (Depends-on): Add arg-nonnull.
32550         (Makefile.am): Insert arg-nonnull.h into glob.h.
32551         * modules/iconv_open (Depends-on): Add arg-nonnull.
32552         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32553         * modules/inttypes (Depends-on): Add arg-nonnull.
32554         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32555         * modules/locale (Depends-on): Add arg-nonnull.
32556         (Makefile.am): Insert arg-nonnull.h into locale.h.
32557         * modules/math (Depends-on): Add arg-nonnull.
32558         (Makefile.am): Insert arg-nonnull.h into math.h.
32559         * modules/netdb (Depends-on): Add arg-nonnull.
32560         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32561         * modules/search (Depends-on): Add arg-nonnull.
32562         (Makefile.am): Insert arg-nonnull.h into search.h.
32563         * modules/signal (Depends-on): Add arg-nonnull.
32564         (Makefile.am): Insert arg-nonnull.h into signal.h.
32565         * modules/spawn (Depends-on): Add arg-nonnull.
32566         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32567         * modules/stdio (Depends-on): Add arg-nonnull.
32568         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32569         * modules/stdlib (Depends-on): Add arg-nonnull.
32570         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32571         * modules/string (Depends-on): Add arg-nonnull.
32572         (Makefile.am): Insert arg-nonnull.h into string.h.
32573         * modules/strings (Depends-on): Add arg-nonnull.
32574         (Makefile.am): Insert arg-nonnull.h into strings.h.
32575         * modules/sys_socket (Depends-on): Add arg-nonnull.
32576         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32577         * modules/sys_stat (Depends-on): Add arg-nonnull.
32578         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32579         * modules/sys_time (Depends-on): Add arg-nonnull.
32580         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32581         * modules/sys_times (Depends-on): Add arg-nonnull.
32582         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32583         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32584         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32585         * modules/time (Depends-on): Add arg-nonnull.
32586         (Makefile.am): Insert arg-nonnull.h into time.h.
32587         * modules/unistd (Depends-on): Add arg-nonnull.
32588         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32589         * modules/wchar (Depends-on): Add arg-nonnull.
32590         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32591         * modules/argv-iter (Depends-on): Add arg-nonnull.
32592         * tests/test-canonicalize.c (null_ptr): New function.
32593         (main): Use it.
32594         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32595         (main): Use it.
32596         * tests/test-memmem.c (null_ptr): New function.
32597         (main): Use it.
32598         Reported by Jim Meyering.
32599
32600 2009-12-10  Bruno Haible  <bruno@clisp.org>
32601
32602         Use spaces for indentation, not tabs.
32603         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32604         * m4/*.m4: Untabify.
32605         * build-aux/*.h: Untabify.
32606         * tests/**/*.[hc]: Untabify.
32607         * README: New section "Indent with spaces, not TABs", based on
32608         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32609         * NEWS: Mention the change.
32610
32611 2009-12-10  Bruno Haible  <bruno@clisp.org>
32612
32613         pty test: Fix link error.
32614         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32615         test_pty_LDADD.
32616
32617 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32618
32619         * modules/pty: New file.
32620         * modules/pty-tests: New file.
32621         * m4/pty.m4: New file.
32622         * tests/test-pty.c: New file.
32623         * doc/glibc-headers/pty.texi: Modified.
32624         * doc/glibc-functions/forkpty.texi: Modified.
32625         * doc/glibc-functions/openpty.texi: Modified.
32626
32627 2009-12-10  Bruno Haible  <bruno@clisp.org>
32628
32629         Avoid syntax error in C++ mode.
32630         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32631
32632 2009-12-10  Bruno Haible  <bruno@clisp.org>
32633
32634         Use sed with option -e.
32635         * gnulib-tool (func_version, func_emit_copyright_notice,
32636         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32637         option -e to sed.
32638         * modules/link-warning (Makefile.am): Likewise.
32639
32640 2009-12-10  Jim Meyering  <meyering@redhat.com>
32641
32642         mgetgroups: do not write bytes beyond end of malloc'd buffer
32643         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32644         username, we call getgroups with a one-element-shorter buffer,
32645         but still told it the length was original, max_n_groups.
32646
32647 2009-12-09  Eric Blake  <ebb9@byu.net>
32648
32649         cloexec: relax license
32650         * modules/cloexec (Maintainer): Add myself.
32651         (License): Use LGPL, not GPL.
32652
32653         link-warning: optimize generation
32654         * modules/link-warning (Makefile.am): Reduce process usage.
32655
32656 2009-12-09  Bruno Haible  <bruno@clisp.org>
32657
32658         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32659         workaround was added on 2009-11-17.
32660
32661 2009-12-09  Jim Meyering  <meyering@redhat.com>
32662             Bruno Haible  <bruno@clisp.org>
32663
32664         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32665         * modules/link-warning (Makefile.am): Make the comment-removing sed
32666         command more robust in the face of bootstrap-prepended comment lines.
32667
32668 2009-12-09  Bruno Haible  <bruno@clisp.org>
32669
32670         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32671         most one group.
32672
32673 2009-12-09  Simon Josefsson <simon@josefsson.org>
32674             Bruno Haible  <bruno@clisp.org>
32675
32676         * build-aux/link-warning.h: Add copyright notice.
32677         * modules/link-warning (Makefile.am): Generate link-warning.h from
32678         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32679         * NEWS: Mention change in link-warning module.
32680         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32681         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32682         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32683         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32684         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32685         * modules/math (Makefile.am): Add dependency to math.h.
32686         * modules/search (Makefile.am): Add dependency to search.h.
32687         * modules/signal (Makefile.am): Add dependency to signal.h.
32688         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32689         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32690         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32691         * modules/string (Makefile.am): Add dependency to string.h.
32692         * modules/strings (Makefile.am): Add dependency to strings.h.
32693         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32694         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32695         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32696         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32697         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32698         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32699         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32700         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32701         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32702
32703 2009-12-09  Bruno Haible  <bruno@clisp.org>
32704
32705         fchdir: Optimize away rpl_fstat when possible.
32706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32707         REPLACE_OPEN_DIRECTORY.
32708         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32709
32710 2009-12-09  Bruno Haible  <bruno@clisp.org>
32711
32712         * lib/fchdir.c: Update comment.
32713
32714 2009-12-09  Bruno Haible  <bruno@clisp.org>
32715
32716         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32717
32718 2009-12-08  Eric Blake  <ebb9@byu.net>
32719
32720         fchdir: avoid memory leak on re-registration.
32721         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32722
32723 2009-12-08  Jim Meyering  <meyering@redhat.com>
32724
32725         init.sh: avoid Solaris 10 /bin/sh portability problem
32726         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32727         sourced script:
32728           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32729           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32730           bar
32731         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32732         and two tests used that idiom.
32733         * tests/init.sh: Update suggested usage comments.
32734         (path_prepend_): New function, to be used in place
32735         of the --src-path=DIR option.
32736         (setup_): Move PATH-prepending code into path_prepend_.
32737         * tests/test-pread.sh: Adapt to new usage.
32738         * tests/test-xalloc-die.sh: Likewise.
32739
32740 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32741
32742         * doc/gnulib.texi (Glibc pty.h): Add.
32743         * doc/glibc-functions/forkpty.texi: Add.
32744         * doc/glibc-functions/openpty.texi: Add.
32745         Suggested by Bruno Haible.
32746
32747 2009-12-08  Eric Blake  <ebb9@byu.net>
32748
32749         fchdir: fix logic bugs
32750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32751         * tests/test-fchdir.c (main): Enhance test.
32752         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32753         is in use.
32754
32755         dup2: fix logic bugs
32756         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32757         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32758         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32759         exists.
32760         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32761
32762 2009-12-07  Eric Blake  <ebb9@byu.net>
32763
32764         unlink: fix m4 detection
32765         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32766
32767         unistd-safer: add unit test
32768         * modules/unistd-safer-tests: New file.
32769         * tests/test-dup-safer.c: Likewise.
32770         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32771         * tests/test-dup2.c (setmode): Likewise.
32772         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32773
32774         cloexec: preserve text vs. binary across dup_cloexec
32775         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32776         mode.
32777         * modules/dup2-tests (Depends-on): Add binary-io.
32778         * modules/cloexec-tests (Depends-on): Likewise.
32779         * tests/test-dup2.c (setmode, is_mode): New helpers.
32780         (main): Add tests that translation mode is preserved.
32781         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32782         Reported by Bruno Haible.
32783
32784         mgetgroups: reduce duplicate listings
32785         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32786         resulting array.
32787         * tests/test-chown.h (test_chown): Simplify client.
32788         * tests/test-lchown.h (test_lchown): Likewise.
32789
32790 2009-12-06  Bruno Haible  <bruno@clisp.org>
32791
32792         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32793         value.
32794
32795 2009-12-06  Bruno Haible  <bruno@clisp.org>
32796
32797         * lib/progname.c: Include stdio.h, stdlib.h.
32798         (set_program_name): Reject a NULL argument.
32799
32800 2009-12-05  Eric Blake  <ebb9@byu.net>
32801
32802         pipe2-safer: new module
32803         * modules/pipe2-safer: New file.
32804         * lib/unistd-safer.h (pipe2_safer): New prototype.
32805         * lib/unistd--.h (pipe2): New wrapper.
32806         * lib/pipe-safer.c (pipe2_safer): New function.
32807         * modules/pipe (Depends-on): Add pipe2-safer.
32808         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32809
32810         stdlib-safer: preserve cloexec flag for mkostemp[s]
32811         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32812         fd_safer_flag.
32813
32814         unistd-safer: allow preservation of cloexec status via flag
32815         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32816         prototypes.
32817         * lib/dup-safer.c (dup_safer_flag): New function.
32818         * lib/fd-safer.c (fd_safer_flag): Likewise.
32819         * modules/cloexec (configure.ac): Set witness.
32820
32821         test-dup2: enhance test
32822         * modules/dup2-tests (Depends-on): Add cloexec.
32823         * tests/test-dup2.c (main): Enhance test.
32824
32825         cloexec: add dup_cloexec
32826         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32827         header and comments.
32828         * lib/cloexec.c (set_cloexec_flag): Add comments.
32829         (dup_cloexec): New function, with mingw implementation borrowed
32830         from...
32831         * lib/w32spawn.h (dup_noinherit): ...here.
32832         * modules/execute (Depends-on): Add cloexec.
32833         * modules/pipe (Depends-on): Likewise.
32834         * modules/cloexec (Depends-on): Add dup2.
32835         * modules/cloexec-tests (Files): New file.
32836         * tests/test-cloexec.c: Likewise.
32837
32838         test-xalloc-die: fix test for mingw
32839         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32840         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32841         directory and .exe suffix off argv[0] output.
32842
32843         test-fseeko: fix test for mingw
32844         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32845         than undefining fseek, so test will pass on mingw.
32846
32847 2009-12-05  Bruno Haible  <bruno@clisp.org>
32848
32849         * lib/progname.h (set_program_name): Clarify specification.
32850         * lib/progname.c (set_program_name): Likewise.
32851         Reported by Jim Meyering.
32852
32853 2009-12-05  Jim Meyering  <meyering@redhat.com>
32854
32855         maint.mk: backslash-escape parens in default regexp
32856         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32857         backslash-escape the literal parentheses.
32858
32859         maint.mk: news-date-check: use grep -E
32860         * top/maint.mk (today): Define a Make variable, not a...
32861         (news-date-check): ...shell variable.
32862         (news-date-regexp): Use the Make variable.
32863         Use grep's -E option.  Change the failing diagnostic to mention
32864         the variable, $(news-date-regexp).
32865
32866 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32867
32868         maintainer-makefile: allow customization of NEWS entry format
32869         * top/maint.mk (news-date-regexp): New overridable variable.
32870         (news-date-check): Use it.
32871
32872 2009-12-04  Eric Blake  <ebb9@byu.net>
32873
32874         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32875         * lib/mgetgroups.h (xgetgroups): New prototype.
32876         * lib/mgetgroups.c (xgetgroups): New wrapper.
32877         (mgetgroups): Handle ENOSYS.
32878         * modules/mgetgroups (Depends-on): Add realloc.
32879         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32880
32881         mgetgroups: avoid argument promotion issues with -1
32882         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32883         for invalid gid_t.
32884         * tests/test-chown.h (getegid, test_chown): Likewise.
32885         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32886
32887 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32888
32889         exclude: Fix header file problems.
32890         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32891
32892 2009-12-01  Jim Meyering  <meyering@redhat.com>
32893
32894         fts: fts_open: do not let an empty string cause immediate failure
32895         This is required in support of GNU rm, for which the command
32896         "rm A '' B" must process and remove both A and B, in spite of
32897         the empty string argument.
32898         * lib/fts.c (fts_open): Do not let the presence of an empty string
32899         cause fts_open to fail immediately.  Most fts-using tools must be
32900         able to process all arguments, in order, and can be expected to
32901         diagnose such arguments themselves.
32902
32903 2009-11-30  Eric Blake  <ebb9@byu.net>
32904
32905         utimens: fix compilation error
32906         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32907         Declare variable at right scope.
32908
32909 2009-11-29  Jim Meyering  <meyering@redhat.com>
32910
32911         bootstrap: handle perl-5.11's changed --version output
32912         * build-aux/bootstrap (get_version): Handle perl separately,
32913         since perl-5.11's --version output is different.
32914
32915 2009-11-28  Jim Meyering  <meyering@redhat.com>
32916
32917         userspec: depend on the inttostr module, too
32918         * modules/userspec (Depends-on): Add inttostr.
32919
32920         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32921         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32922         number of MAXUID when it evaluates to (uid_t) -1.
32923         Likewise for group ID.  Reported by Matt McCutchen in
32924         <http://savannah.gnu.org/bugs/?28113>
32925
32926         userspec: reformat to use spaces, not TABs
32927         * lib/userspec.c: Expand TABs to spaces.
32928         Add Emacs' "indent-tabs-mode: nil" hint.
32929
32930 2009-11-27  Eric Blake  <ebb9@byu.net>
32931
32932         getopt-gnu: flush out another BSD bug
32933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32934         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32935         flush out BSD bug.
32936         * tests/test-getopt.h (test_getopt): End lists with NULL.
32937         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32938         (test_getopt_long_posix): Enhance test.
32939         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32940         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32941         getopt-gnu.
32942         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32943         Likewise.
32944
32945 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32946
32947         * modules/idpriv-droptemp-tests (Notice): Fix text.
32948
32949 2009-11-27  Jim Meyering  <meyering@redhat.com>
32950
32951         test-xalloc-die: avoid spurious failure due to libtool argv difference
32952         In a libtool-enabled project, this test would fail due to a difference
32953         in the emitted program name, e.g.,
32954         -test-xalloc-die: memory exhausted
32955         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32956         Use program to avoid that.
32957         * modules/xalloc-die-tests (Depends-on): Add progname.
32958         * tests/test-xalloc-die.c: Include progname.h".
32959         (program_name): Remove decl.
32960         (main): Call set_program_name.
32961         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32962
32963 2009-11-26  Richard Jones  <rjones@redhat.com>
32964
32965         w32sock: leave win32 error in place.
32966         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32967
32968 2009-11-26  Eric Blake  <ebb9@byu.net>
32969
32970         init.sh: suggest to use skip_ and fail_ functions in comments
32971         * tests/init.sh: Add a sentence.
32972
32973 2009-11-25  Bruno Haible  <bruno@clisp.org>
32974
32975         init.sh: add documentation in comments
32976         * tests/init.sh: Add some developer and user documentation.
32977
32978 2009-11-26  Jim Meyering  <meyering@redhat.com>
32979
32980         init.sh: accommodate even those who specify bogus srcdir manually
32981         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32982         configure-time tests to be sanitized, so that there is no need to
32983         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32984         (with no double quotes) suffices.  However, since tests may be
32985         invoked manually, and since you may explicitly set srcdir to the
32986         name of a directory containing spaces, do quote its uses here.
32987         * tests/test-pread.sh: Likewise.
32988         Suggested by Bruno Haible.
32989
32990         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32991         * tests/test-pread.sh: Write no data into the pipe, because
32992         test-pread actually reads none.  This avoids a diagnostic,
32993         "bash: echo: write error: Broken pipe", that arises in the unusual
32994         event something is ignoring SIGPIPE, and might be interpreted
32995         as some sort of failure.  Reported by Bruno Haible.
32996
32997 2009-11-25  Jim Meyering  <meyering@redhat.com>
32998
32999         test-pread: cover failure with ESPIPE and EINVAL
33000         * tests/test-pread.c (main): Test for failure, too.
33001         * tests/test-pread.sh: Invoke with stdin on a pipe.
33002         Suggested by Eric Blake.
33003
33004         pread: improvement and fix
33005         * modules/pread (Depends-on): Depend on lseek, for portability to
33006         e.g., mingw.  Suggested by Eric Blake.
33007         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33008
33009         unistd.in.h: correct declaration of pread
33010         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33011         Reported by Richard W.M. Jones.
33012
33013         test-pread.sh: distribute the test script
33014         * modules/pread-tests (Files): Include test-pread.sh.
33015
33016         test-pread.sh: clean up
33017         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33018         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33019         That is unnecessary, since it's always ".".
33020         Suggestion from Eric Blake.
33021
33022         test-pread.sh: make executable
33023         * tests/test-pread.sh: Set executable bit.
33024         Reported by Eric Blake.
33025
33026         correct typo in test-pread.sh
33027         * tests/test-pread.sh: Add #! line.
33028
33029         test pread
33030         * tests/test-pread.c: New file.
33031         * tests/test-pread.sh: Likewise.
33032         * modules/pread-tests: Likewise.
33033
33034         pread: new module
33035         * modules/pread: New file.
33036         * lib/unistd.in.h (pread): Define/declare.
33037         * lib/pread.c (pread): New file.
33038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33039         * modules/unistd (Makefile.am): Substitute witnesses.
33040         * doc/posix-functions/pread.texi (pread): Update.
33041         * MODULES.html.sh: Add pread.
33042
33043 2009-11-25  Jim Meyering  <meyering@redhat.com>
33044
33045         tests/init.sh: new file to be used via most *.sh tests
33046         * tests/init.sh: New file.
33047
33048 2009-11-25  Eric Blake  <ebb9@byu.net>
33049
33050         utimens: work around older Linux failure with symlinks
33051         * lib/utimens.c (lutimensat_works_really): New variable.
33052         (fdutimens, lutimens): Use it to manage kernels that support
33053         nanosecond times on files, but not on symlinks.
33054         Reported by Ondřej Vašík.
33055
33056         utimes: fix configure grammar
33057         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33058
33059 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33060
33061         regex: Fix fastmap for multibyte character ranges.
33062         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33063         characters when a multibyte character range is included.
33064
33065 2009-11-22  Andy Wingo  <wingo@pobox.com>
33066
33067         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33068         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33069
33070 2009-11-24  Bruno Haible  <bruno@clisp.org>
33071
33072         doc: Most *_l functions exist in MacOS X 10.5.
33073         * doc/posix-functions/duplocale.texi: Update platforms list.
33074         * doc/posix-functions/freelocale.texi: Likewise.
33075         * doc/posix-functions/newlocale.texi: Likewise.
33076         * doc/posix-functions/uselocale.texi: Likewise.
33077         * doc/posix-functions/isalnum_l.texi: Likewise.
33078         * doc/posix-functions/isalpha_l.texi: Likewise.
33079         * doc/posix-functions/isblank_l.texi: Likewise.
33080         * doc/posix-functions/iscntrl_l.texi: Likewise.
33081         * doc/posix-functions/isdigit_l.texi: Likewise.
33082         * doc/posix-functions/isgraph_l.texi: Likewise.
33083         * doc/posix-functions/islower_l.texi: Likewise.
33084         * doc/posix-functions/isprint_l.texi: Likewise.
33085         * doc/posix-functions/ispunct_l.texi: Likewise.
33086         * doc/posix-functions/isspace_l.texi: Likewise.
33087         * doc/posix-functions/isupper_l.texi: Likewise.
33088         * doc/posix-functions/iswalnum_l.texi: Likewise.
33089         * doc/posix-functions/iswalpha_l.texi: Likewise.
33090         * doc/posix-functions/iswblank_l.texi: Likewise.
33091         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33092         * doc/posix-functions/iswctype_l.texi: Likewise.
33093         * doc/posix-functions/iswdigit_l.texi: Likewise.
33094         * doc/posix-functions/iswgraph_l.texi: Likewise.
33095         * doc/posix-functions/iswlower_l.texi: Likewise.
33096         * doc/posix-functions/iswprint_l.texi: Likewise.
33097         * doc/posix-functions/iswpunct_l.texi: Likewise.
33098         * doc/posix-functions/iswspace_l.texi: Likewise.
33099         * doc/posix-functions/iswupper_l.texi: Likewise.
33100         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33101         * doc/posix-functions/isxdigit_l.texi: Likewise.
33102         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33103         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33104         * doc/posix-functions/strcoll_l.texi: Likewise.
33105         * doc/posix-functions/strfmon_l.texi: Likewise.
33106         * doc/posix-functions/strftime_l.texi: Likewise.
33107         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33108         * doc/posix-functions/strxfrm_l.texi: Likewise.
33109         * doc/posix-functions/tolower_l.texi: Likewise.
33110         * doc/posix-functions/toupper_l.texi: Likewise.
33111         * doc/posix-functions/towctrans_l.texi: Likewise.
33112         * doc/posix-functions/towlower_l.texi: Likewise.
33113         * doc/posix-functions/towupper_l.texi: Likewise.
33114         * doc/posix-functions/wcscoll_l.texi: Likewise.
33115         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33116         * doc/posix-functions/wctrans_l.texi: Likewise.
33117         * doc/posix-functions/wctype_l.texi: Likewise.
33118         * doc/glibc-functions/strptime_l.texi: Likewise.
33119         * doc/glibc-functions/strtod_l.texi: Likewise.
33120         * doc/glibc-functions/strtof_l.texi: Likewise.
33121         * doc/glibc-functions/strtol_l.texi: Likewise.
33122         * doc/glibc-functions/strtold_l.texi: Likewise.
33123         * doc/glibc-functions/strtoll_l.texi: Likewise.
33124         * doc/glibc-functions/strtoul_l.texi: Likewise.
33125         * doc/glibc-functions/strtoull_l.texi: Likewise.
33126         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33127         * doc/glibc-functions/wcstod_l.texi: Likewise.
33128         * doc/glibc-functions/wcstof_l.texi: Likewise.
33129         * doc/glibc-functions/wcstol_l.texi: Likewise.
33130         * doc/glibc-functions/wcstold_l.texi: Likewise.
33131         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33132         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33133         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33134
33135 2009-11-24  Bruno Haible  <bruno@clisp.org>
33136
33137         duplocale: Fix logic bug.
33138         * lib/duplocale.c: Don't include <langinfo.h>.
33139         (_NL_LOCALE_NAME): Remove macro.
33140         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33141         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33142
33143 2009-11-23  Jim Meyering  <meyering@redhat.com>
33144
33145         test-update-copyright: don't hard-code /usr/bin/perl
33146         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33147         perl to print the current year.  Gilles Espinasse reported that
33148         the replaced use of perl was hard-coded as /usr/bin/perl.
33149
33150 2009-11-23  Bruno Haible  <bruno@clisp.org>
33151
33152         duplocale: Add support for glibc 2.3.x.
33153         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33154
33155 2009-11-22  Bruno Haible  <bruno@clisp.org>
33156
33157         vasnprintf: Tiny optimization.
33158         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33159         MacOS X.
33160
33161 2009-11-22  Bruno Haible  <bruno@clisp.org>
33162
33163         Tests for module 'duplocale'.
33164         * modules/duplocale-tests: New file.
33165         * tests/test-duplocale.c: New file.
33166
33167         New module 'duplocale'.
33168         * m4/duplocale.m4: New file.
33169         * lib/locale.in.h (duplocale): New declaration.
33170         * lib/duplocale.c: New file.
33171         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33172         gl_LOCALE_H_DEFAULTS): New macros.
33173         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33174         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33175         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33176         REPLACE_DUPLOCALE.
33177         * modules/duplocale: New file.
33178         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33179
33180 2009-11-22  Bruno Haible  <bruno@clisp.org>
33181
33182         * modules/locale-tests (configure.ac): Test for newlocale function.
33183         * tests/test-locale.c: When the system has extended locale functions,
33184         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33185
33186         locale: Make locale_t available when possible.
33187         * lib/locale.in.h: Include <xlocale.h> when it exists.
33188         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33189         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33190         * modules/locale (Depends-on): Add extensions.
33191         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33192         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33193
33194 2009-11-22  Bruno Haible  <bruno@clisp.org>
33195
33196         Add comments.
33197         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33198         invocation.
33199         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33200         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33201         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33202
33203 2009-11-22  Bruno Haible  <bruno@clisp.org>
33204
33205         error: account for the possibility of freopen (stdout).
33206         * lib/error.c: Include <unistd.h>.
33207         (flush_stdout): New function, extracted from error and error_at_line.
33208         Determine stdout's fd dynamically.
33209         (error, error_at_line): Invoke flush_stdout.
33210         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33211         * modules/error (Depends-on): Add unistd.
33212
33213 2009-11-22  Bruno Haible  <bruno@clisp.org>
33214
33215         diffseq: Add comment.
33216         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33217
33218 2009-11-22  Jim Meyering  <meyering@redhat.com>
33219
33220         c-stack: avoid defining an unused static function
33221         * lib/c-stack.c (find_stack_direction): Do not define this function
33222         when it will not be used.
33223
33224         diffseq: avoid spurious gcc warnings
33225         * lib/diffseq.h (IF_LINT2): Define.
33226         (compareseq): Use it to initialize two members of "part".
33227         This avoids two used-uninitialized warnings.
33228
33229 2009-11-21  Jim Meyering  <meyering@redhat.com>
33230
33231         c-stack: avoid "ignoring return value of `write'" warning
33232         * lib/c-stack.c: Include "ignore-value.h".
33233         (die): Explicitly ignore each write return value.
33234         * modules/c-stack (Depends-on): Add ignore-value.
33235
33236 2009-11-21  Bruno Haible  <bruno@clisp.org>
33237
33238         diffseq: reduce scope of variable 'best'.
33239         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33240         variable, earlier used for two different purposes.
33241
33242 2009-11-21  Jim Meyering  <meyering@redhat.com>
33243
33244         diffseq: remove useless assignment to "best"
33245         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33246         assignment.  At that point "best" is already guaranteed to be zero.
33247
33248 2009-11-20  Eric Blake  <ebb9@byu.net>
33249
33250         build: mention ftp redirector in release announcements
33251         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33252         values that used to come from cfg.mk; mention FTP redirect URL.
33253         * build-aux/announce-gen: Mention the mirror list.
33254         Suggested by Karl Berry.
33255
33256         nanosleep: improve port to mingw
33257         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33259         LIB_NANOSLEEP, but only when needed.
33260         * modules/select (Link): Document LIBSOCKET.
33261         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33262         enough.
33263
33264         nanosleep: work around cygwin bug
33265         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33266         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33267         bug.
33268         (getnow): Delete, not needed.
33269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33270         LIB_CLOCK_GETTIME.
33271         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33272         clock-time, gettime.
33273         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33274         bug.
33275         * modules/nanosleep-tests: New test.
33276         * tests/test-nanosleep.c: New file.
33277
33278         sleep: work around cygwin bug
33279         * lib/sleep.c (rpl_sleep): Work around the bug.
33280         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33281         (gl_PREREQ_SLEEP): Delete unused macro.
33282         * modules/sleep (Depends-on): Add verify.
33283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33284         * modules/unistd (Makefile.am): Substitute witness.
33285         * lib/unistd.in.h (sleep): Update prototype.
33286         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33287         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33288         * modules/sleep-tests (Depends-on): Check for alarm.
33289
33290 2009-11-20  Jim Meyering  <meyering@redhat.com>
33291
33292         maint.mk: improve sc_prohibit_magic_number_exit
33293         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33294         so it does not match uses like System.exit(1).
33295         Add comments showing how to correct all offenders.
33296
33297 2009-11-19  Eric Blake  <ebb9@byu.net>
33298
33299         xalloc-die-tests: add missing library
33300         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33301
33302         test-xvasprintf: silence compiler warnings
33303         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33304         empty string from gcc.
33305
33306 2009-11-19  Jim Meyering  <meyering@redhat.com>
33307
33308         xfreopen: new module, from coreutils
33309         * modules/xfreopen: New module.
33310         * lib/xfreopen.c: New file.
33311         * lib/xfreopen.h: New file.
33312         * MODULES.html.sh (File stream based Input/Output"): Add it.
33313
33314 2009-11-19  Eric Blake  <ebb9@byu.net>
33315
33316         manywarnings: depend on warnings
33317         * modules/manywarnings (Depends-on): Add warnings.
33318
33319         build: avoid compiler warnings
33320         * lib/select.c (rpl_select): Delete unused variable.
33321         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33322
33323 2009-11-18  Eric Blake  <ebb9@byu.net>
33324
33325         tests: avoid false negative with --with-packager
33326         * tests/test-version-etc.sh: Discard packager information.
33327         * tests/test-argp-version-etc-1.sh: Likewise.
33328         Reported by Mike Frysinger.
33329
33330         utimens: fix regression on Solaris
33331         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33332         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33333         can only change fd timestamps via futimesat.  Instead, use an
33334         additional witness macro to avoid BSD bug.
33335         Reported by Jim Meyering.
33336
33337 2009-11-17  Eric Blake  <ebb9@byu.net>
33338
33339         usleep: use it to simplify tests
33340         * modules/stat-time-tests (Depends-on): Add usleep.
33341         (configure.ac): Drop usleep check.
33342         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33343         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33344         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33345         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33346         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33347         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33348         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33349         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33350         Likewise.
33351         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33352         * tests/test-lchown.h (nap): Likewise.
33353         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33354         * tests/test-stat-time.c (nap): Likewise.
33355         * tests/test-utimens-common.h (nap): Update comments.
33356
33357         usleep: new module
33358         * modules/usleep: New file.
33359         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33360         * lib/usleep.c (usleep): Likewise.
33361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33362         * modules/unistd (Makefile.am): Substitute witnesses.
33363         * lib/unistd.in.h (usleep): Add declaration.
33364         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33365         * MODULES.html.sh (Date and time): Likewise.
33366         * modules/usleep-tests (Depends-on): New test.
33367         * tests/test-usleep.c: New file.
33368
33369         chown: work around OpenBSD bug
33370         * lib/chown.c (rpl_chown): Work around the bug.
33371         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33372         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33373         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33374         * modules/chown (Depends-on): Add stdbool.
33375         * modules/lchown (Depends-on): Likewise.
33376         * doc/posix-functions/chown.texi (chown): Document the bug.
33377         * doc/posix-functions/lchown.texi (lchown): Likewise.
33378         * tests/test-lchown.h (test_chown): Relax test.
33379
33380         mkstemp: avoid conflict with C++ keyword template
33381         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33382         * lib/mkostemp.c (mkostemp): Likewise.
33383         * lib/mkostemps.c (mkostemps): Likewise.
33384         * lib/mkstemp.c (mkstemp): Likewise.
33385         * lib/mkstemps.c (mkstemps): Likewise.
33386
33387         xalloc-die-tests: optimize
33388         * tests/test-xalloc-die.sh: Reduce number of processes.
33389
33390 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33391
33392         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33393         patch from ludo@gnu.org (Ludovic Courtès).
33394
33395 2009-11-17  Jim Meyering  <meyering@redhat.com>
33396
33397         version-etc: use proper license string
33398         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33399         * modules/version-etc-fsf: Likewise.
33400
33401 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33402
33403         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33404         printed to stdout.  Deal with EOL differences.
33405
33406 2009-11-17  Eric Blake  <ebb9@byu.net>
33407
33408         unsetenv: work around Solaris bug
33409         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33410         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33411         Reported by Jim Meyering.
33412
33413         vasnprintf: avoid compiler warnings
33414         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33415         variables.
33416         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33417
33418 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33419
33420         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33421         settings since xalloc-die is no longer the self test,
33422         xalloc-die.sh is.
33423
33424 2009-11-17  Jim Meyering  <meyering@redhat.com>
33425
33426         test-xalloc-die.sh: make the code agree with the commit log
33427         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33428         at the end, just in case you happen to have a test-xalloc-die
33429         program in some other PATH directory.
33430
33431         test-xalloc-die.sh: fix a portability bug
33432         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33433         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33434         Otherwise, argv[0] (as often seen in diagnostics) would be too
33435         system-dependent, sometimes with, and sometimes without the leading "./".
33436
33437         version-etc-fsf: relax license to LGPLv3+
33438         * modules/version-etc-fsf (License): Relax license.
33439
33440 2009-11-16  Eric Blake  <ebb9@byu.net>
33441
33442         xalloc-die-tests: avoid printing null pointer
33443         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33444         shell script.
33445         * tests/test-xalloc-die.c (program_name): Declare.
33446         * tests/test-xalloc-die.sh (tmpfiles): New file.
33447
33448         setenv, unsetenv: work around various bugs
33449         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33450         (setenv) [HAVE_SETENV]: Work around bugs.
33451         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33453         for bugs.
33454         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33455         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33457         * modules/stdlib (Makefile.am): Update substitutions.
33458         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33459         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33460         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33461         * modules/setenv-tests: New test.
33462         * modules/unsetenv-tests: Likewise.
33463         * tests/test-setenv.c: New file.
33464         * tests/test-unsetenv.c: Likewise.
33465
33466 2009-11-16  Jim Meyering  <meyering@redhat.com>
33467
33468         version-etc: relax license to LGPLv3+
33469         * modules/version-etc (License): Relax license.
33470
33471         better AC_REQUIRE expanded-before-required-warning avoidance
33472         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33473         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33474         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33475         which is no longer needed.
33476
33477 2009-11-16  Eric Blake  <ebb9@byu.net>
33478
33479         test-freading: clean up temporary file
33480         * tests/test-freading.c (main): Remove file on success, and use
33481         ASSERT more liberally.
33482         Reported by Jim Meyering.
33483
33484 2009-11-16  Jim Meyering  <meyering@redhat.com>
33485
33486         avoid new AC_REQUIRE expanded-before-required warnings
33487         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33488         merely using it.
33489         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33490         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33491
33492 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33493
33494         * tests/test-xalloc-die.c: New file.
33495         * modules/xalloc-die-tests: New file.
33496         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33497         XFAIL_TESTS so it can be appended by modules.
33498
33499 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33500
33501         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33502         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33503
33504 2009-11-14  Eric Blake  <ebb9@byu.net>
33505
33506         fnmatch: avoid compiler warning
33507         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33508         to silence compiler warning about mismatch signedness in ?:.
33509         Reported by Robert Millan.
33510
33511         intprops: add double-inclusion guard
33512         * lib/intprops.h: Allow idempotent includes.
33513         Suggested by Bruce Korb.
33514
33515         openat: detect Solaris fchownat bug
33516         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33517         penalizing glibc chownat when only lchownat is broken.
33518         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33519         trailing slash bugs.
33520         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33521         * modules/openat-tests (Files): Include more files.
33522         (Depends-on): Add mgetgroups, sleep, stat-time.
33523         (configure.ac): Add additional checks.
33524         (Makefile.am): Build new test.
33525         * tests/test-fchownat.c: New file.
33526
33527         lchown: detect Solaris and FreeBSD bug
33528         * lib/lchown.c (rpl_lchown): Work around bug.
33529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33531         * modules/unistd (Makefile.am): Populate it.
33532         * lib/unistd.in.h (lchown): Update declaration.
33533         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33534         * modules/lchown-tests: New file.
33535         * tests/test-lchown.h (test_lchown): Likewise.
33536         * tests/test-lchown.c (main): Likewise.
33537
33538         chown: detect Solaris and FreeBSD bug
33539         * lib/chown.c (rpl_chown): Work around bug.
33540         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33541         (gl_PREREQ_CHOWN): Delete.
33542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33543         * modules/unistd (Makefile.am): Populate it.
33544         * lib/unistd.in.h (chown): Update declaration.
33545         * lib/lchown.c (chown): Update client.
33546         * modules/lchown (Depends-on): Add lstat.
33547         * doc/posix-functions/chown.texi (chown): Document the bug.
33548         * doc/posix-functions/getgroups.texi (getgroups): Document
33549         getgroups pitfall.
33550         * modules/chown-tests: New file.
33551         * tests/test-chown.h (test_chown): Likewise.
33552         * tests/test-chown.c (main): Likewise.
33553
33554 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33555
33556         gnulib-tool: correctly detect absence of m4 directories
33557         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33558
33559 2009-11-14  Jim Meyering  <meyering@redhat.com>
33560
33561         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33562         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33563
33564 2009-11-14  John W. Eaton  <jwe@gnu.org>
33565
33566         strftime.h: wrap funtion declaration in extern "C" block
33567         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33568
33569 2009-11-13  Eric Blake  <ebb9@byu.net>
33570
33571         getgroups: avoid compiler warning
33572         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33573
33574         getgroups: work around FreeBSD bug
33575         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33576         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33577         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33578         * tests/test-getgroups.c (main): Fix buffer overrun.
33579
33580         getgroups: avoid compilation failure
33581         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33582         * modules/getgroups (Depends-on): Add stdint.
33583
33584 2009-11-13  Jim Meyering  <meyering@redhat.com>
33585
33586         test-getgroups: avoid compilation failure
33587         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33588
33589 2009-11-13  Eric Blake  <ebb9@byu.net>
33590
33591         mgetgroups: new module, taken from coreutils
33592         * modules/mgetgroups: New file.
33593         * lib/mgetgroups.h: Likewise.
33594         * lib/mgetgroups.c (mgetgroups): Likewise.
33595         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33596         * MODULES.html.sh (Users and groups): Mention it.
33597
33598         getgroups: don't expose GETGROUPS_T to user
33599         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33600         an element at a time if GETGROUPS_T is wrong size.
33601         * lib/getugroups.h (getugroups): Change signature.
33602         * lib/unistd.in.h (getgroups): Likewise.
33603         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33604         signature needs fixing.
33605         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33606         AC_TYPE_GETGROUPS.
33607         * modules/group-member (Depends-on): Add getgroups.
33608         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33609         (group_member): Rely on getgroups replacement.
33610         * lib/getugroups.c (getugroups): Use gid_t.
33611         * tests/test-getgroups.c (main): Likewise.
33612         * NEWS: Mention the signature change.
33613         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33614         problem with signature.
33615         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33616         GETGROUPS_T is still useful for setgroups.
33617
33618         getgroups, getugroups: provide stubs for mingw
33619         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33620         * lib/getugroups.c (getugroups): Likewise.
33621         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33622         function.  Modernize replacement scheme.
33623         (gl_PREREQ_GETGROUPS): Delete.
33624         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33625         * modules/getgroups (configure.ac): Declare witness.
33626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33627         * modules/unistd (Depends-on): Substitute witness.
33628         * lib/unistd.in.h (getgroups): Declare replacement.
33629
33630         getgroups: avoid calling exit
33631         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33632         drop xalloc.
33633         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33634         dependencies.
33635         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33636         exiting, in the rare case of malloc failure.
33637
33638         getgroups: fix logic error
33639         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33640         has more than 20 groups.
33641         * modules/getgroups-tests: New test.
33642         * tests/test-getgroups.c: New file.
33643
33644 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33645
33646         * tests/test-base64.c: Improve.
33647
33648 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33649
33650         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33651         Blake <ebb9@byu.net>.
33652
33653 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33654
33655         * tests/test-xvasprintf.c: Add %s%s related checks.
33656
33657 2009-11-12  Eric Blake  <ebb9@byu.net>
33658
33659         version-etc: match standards.texi style
33660         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33661         and use <> only for URLs.
33662
33663 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33664
33665         fts: do not fail on a submount during traversal
33666         * lib/fts.c (fts_build): Read the stat info again after opening
33667         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33668         Original report at http://bugzilla.redhat.com/501848.
33669
33670 2009-11-12  Jim Meyering  <meyering@redhat.com>
33671
33672         bootstrap: sync from coreutils
33673         * build-aux/bootstrap (bootstrap_epilogue): New function.
33674         Use git_modules_config in one more place.  This make bootstrap's
33675         --gnulib-srcdir option more useful for testing.
33676
33677         bootstrap: generalize autoheader check
33678         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33679         AC_CONFIG_HEADERS.
33680
33681 2009-11-11  Eric Blake  <ebb9@byu.net>
33682
33683         mkfifoat: use new modules for Solaris and BSD bugs
33684         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33685         * lib/mkfifoat.c (mknodat): Split...
33686         * lib/mknodat.c (mknodat): ...into new file.
33687         * modules/mkfifoat (Files): Ship new file.
33688         (Depends-on): Add mkfifo, mknod.
33689         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33690         (Depends-on): Add symlink.
33691         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33692         redundant with test_mkfifo.h.
33693         (do_mkfifoat, do_mknodat): New helpers.
33694
33695         mknod: new module
33696         * modules/mknod: New file.
33697         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33698         * lib/mknod.c (mknod): Likewise.
33699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33700         defaults.
33701         * modules/sys_stat (Makefile.am): Substitute them.
33702         * lib/sys_stat.in.h (mknod): Declare replacement.
33703         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33704         Document it.
33705         * doc/posix-functions/mknod.texi (mknod): Likewise.
33706         * modules/mknod-tests: New test.
33707         * tests/test-mknod.c: Likewise.
33708
33709         mkfifo: new module
33710         * modules/mkfifo: New file.
33711         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33712         * lib/mkfifo.c (mkfifo): Likewise.
33713         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33714         defaults.
33715         * modules/sys_stat (Makefile.am): Substitute them.
33716         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33717         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33718         Document it.
33719         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33720         * modules/mkfifo-tests: New test.
33721         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33722         from test-mkfifoat.c.
33723         * tests/test-mkfifo.c: New file.
33724
33725         readlink: detect FreeBSD bug
33726         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33727         slash on symlink.
33728         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33729         * tests/test-readlink.h (test_readlink): Enhance test.
33730
33731         symlink: detect FreeBSD bug
33732         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33733         slash on symlink.
33734         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33735         * tests/test-symlink.h (test_symlink): Enhance test.
33736
33737 2009-11-10  Eric Blake  <ebb9@byu.net>
33738
33739         link: detect FreeBSD bug
33740         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33741         symlink.
33742         * doc/posix-functions/link.texi (link): Document the bug.
33743         * tests/test-link.h (test_link): Enhance test.
33744         * tests/test-linkat.c (main): Update caller.
33745
33746         unlink, remove: detect FreeBSD bug
33747         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33748         slash on symlink.
33749         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33750         * doc/posix-functions/remove.texi (remove): Likewise.
33751         * tests/test-unlink.h (test_unlink): Enhance test.
33752         * tests/test-remove.c (main): Likewise.
33753
33754 2009-11-09  Eric Blake  <ebb9@byu.net>
33755
33756         rename: detect FreeBSD bug
33757         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33758         slash on symlink.
33759         * modules/renameat-tests (Depends-on): Add filenamecat.
33760         * tests/test-rename.h (test_rename): Allow one more errno.
33761         * tests/test-renameat.c (main): Likewise.
33762         * doc/posix-functions/rename.texi (rename): Document the bug.
33763
33764         open: detect FreeBSD bug
33765         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33766         symlink.
33767         * doc/posix-functions/open.texi (open): Document the bug.
33768         * doc/posix-functions/utimes.texi (utimes): Likewise.
33769         * tests/test-open.h (test_open): Add parameters, and test symlink
33770         handling.
33771         * tests/test-open.c (main): Adjust caller.
33772         * tests/test-fcntl-safer.c (main): Likewise.
33773         * modules/open-tests (Depends-on): Add stdbool, symlink.
33774         * modules/fcntl-safer-tests (Depends-on): Likewise.
33775         * tests/test-openat.c (main): Add test-open tests.
33776
33777         stat: detect FreeBSD bug
33778         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33779         symlink.
33780         * doc/posix-functions/stat.texi (stat): Document the bug.
33781         * tests/test-stat.h (test_stat_func): Add argument.
33782         * tests/test-stat.c (main): Adjust caller.
33783         * tests/test-fstatat.c (main): Likewise.
33784         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33785         Reported by Jim Meyering.
33786
33787 2009-11-09  James Youngman  <jay@gnu.org>
33788
33789         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33790         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33791
33792 2009-11-08  Jim Meyering  <meyering@redhat.com>
33793
33794         utimens: remove invalid futimesat call
33795         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33796         It used the file descriptor of the target file as the DIR_FD
33797         parameter and NULL as the file name.  That caused failure with
33798         errno == EFAULT on FreeBSD-8.0-rc2
33799
33800 2009-11-07  Eric Blake  <ebb9@byu.net>
33801
33802         fflush, freadseek: use fseeko, not fseek
33803         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33804         (clear_ungetc_buffer): Avoid potential problems on large files.
33805         * lib/freadseek.c (freadseek): Likewise.
33806         * modules/freadseek (Depends-on): Add fseeko.
33807         * modules/fseek (configure.ac): Set a witness.
33808         * tests/test-fflush.c (main): Use fseeko.
33809         * tests/test-fpurge.c (fseek): Disable link warning.
33810         * tests/test-freadable.c (fseek): Likewise.
33811         * tests/test-freading.c (fseek): Likewise.
33812         * tests/test-fseeko.c (fseek): Likewise.
33813         * tests/test-ftell.c (fseek): Likewise.
33814         * tests/test-ftello.c (fseek): Likewise.
33815         * tests/test-fwritable.c (fseek): Likewise.
33816         * tests/test-fwriting.c (fseek): Likewise.
33817
33818 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33819
33820         * modules/memchr (Depends-on): Drop getpagesize dependency.
33821
33822 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33823
33824         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33825         Reported by Ludovic Courtès.
33826         * build-aux/pmccabe2html: Improve example usage.
33827         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33828
33829 2009-11-06  Jim Meyering  <meyering@redhat.com>
33830
33831         do-release-commit-and-tag: New module.
33832         Automate the release-commit and tag process.
33833         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33834         * modules/do-release-commit-and-tag: New file.
33835         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33836
33837 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33838
33839         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33840         because test-select.c uses inet_pton.
33841
33842 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33843
33844         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33845         GETADDRINFO_LIB.  Bump serial number.
33846         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33847         Suggested by Eric Blake <ebb9@byu.net>.
33848
33849 2009-11-05  Eric Blake  <ebb9@byu.net>
33850
33851         strtod: detect darwin bug
33852         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33853         Reported by Leo Davis.
33854
33855         freopen-safer: new module
33856         * modules/freopen-safer: New module.
33857         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33858         * lib/freopen-safer.c (freopen_safer): New file.
33859         * lib/stdio-safer.h (freopen_safer): New declaration.
33860         * lib/stdio--.h (freopen): New override.
33861         * MODULES.html.sh (File stream based Input/Output): Mention it.
33862         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33863         freopen-safer module.
33864         * doc/posix-functions/stderr.texi (stderr): Likewise.
33865         * doc/posix-functions/stdin.texi (stdin): Likewise.
33866         * doc/posix-functions/stdout.texi (stdout): Likewise.
33867         * modules/freopen-safer-tests: New test.
33868         * tests/test-reopen-safer.c: New file.
33869
33870 2009-11-05  Jim Meyering  <meyering@redhat.com>
33871
33872         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33873         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33874
33875 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33876
33877         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33878
33879 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33880
33881         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33882
33883 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33884
33885         Fix link error.
33886         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33887         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33888
33889 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33890
33891         * tests/test-func.c: Also test value of __func__.
33892
33893 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33894
33895         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33896         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33897
33898 2009-11-05  Bruno Haible  <bruno@clisp.org>
33899
33900         Fix link error.
33901         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33902         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33903         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33904
33905 2009-11-05  Bruno Haible  <bruno@clisp.org>
33906
33907         Tests for module 'inet_pton'.
33908         * modules/inet_pton-tests: New file.
33909         * tests/test-inet_pton.c: New file.
33910
33911 2009-11-05  Bruno Haible  <bruno@clisp.org>
33912
33913         Tests for module 'inet_ntop'.
33914         * modules/inet_ntop-tests: New file.
33915         * tests/test-inet_ntop.c: New file.
33916
33917 2009-11-04  Eric Blake  <ebb9@byu.net>
33918
33919         stdlib-safer: wrap all mkstemp variants
33920         * modules/mkostemp (configure.ac): Set witness.
33921         * modules/mkostemps (configure.ac): Likewise.
33922         * modules/mkstemps (configure.ac): Likewise.
33923         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33924         (mkstemps_safer): Wrap more functions.
33925         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33926         wrapping.
33927         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33928         (mkstemps_safer): Implement the wrappers.
33929
33930         mkstemps, mkostemps: new modules
33931         * modules/mkostemps: New module.
33932         * modules/mkstemps: Likewise.
33933         * lib/mkostemps.c (mkostemps): New file.
33934         * lib/mkstemps.c (mkstemps): Likewise.
33935         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33936         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33938         * modules/stdlib (Makefile.am): Substitute them.
33939         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33940         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33941         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33942         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33943         * MODULES.html.sh (File system functions): Mention them.
33944
33945         tempname: resync from glibc
33946         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33947         same values for __GT_FILE as glibc.  Abort even when assertions
33948         are disabled.
33949         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33950         match its value otherwise.  Allow idempotent inclusion.
33951         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33952         * lib/mkostemp.c (mkostemp): Likewise.
33953         * lib/mkstemp.c (mkstemp): Likewise.
33954         * lib/tmpfile.c (tmpfile): Likewise.
33955         * NEWS: Document this.
33956
33957         utimens: fix use of futimens on older Linux
33958         * lib/utimens.c (fdutimens): Use updated, rather than original,
33959         timespec to avoid bug in older Linux kernel.
33960         Reported by Simon Josefsson.
33961
33962 2009-11-04  Bruno Haible  <bruno@clisp.org>
33963
33964         Make num_processors more flexible and consistent.
33965         * lib/nproc.h (enum nproc_query): New type.
33966         (num_processors): Add a 'query' argument.
33967         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33968         (num_processors): Add a 'query' argument. Test the value of the
33969         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33970         mingw, count the number of CPUs available for the current process.
33971         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33972         Check for sched_getaffinity and sched_getaffinity_np.
33973         * modules/nproc (Depends-on): Add c-ctype, extensions.
33974         * NEWS: Mention the change.
33975
33976 2009-11-03  Bruno Haible  <bruno@clisp.org>
33977
33978         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33979
33980 2009-11-03  Jim Meyering  <meyering@redhat.com>
33981
33982         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33983         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33984         if it is defined.
33985
33986 2009-11-02  Eric Blake  <ebb9@byu.net>
33987
33988         mktime, timegm: share common declaration
33989         * lib/mktime-internal.h: New file.
33990         * lib/mktime.c: Use it rather than open-coding a declaration.
33991         * lib/timegm.c: Likewise.
33992         * modules/mktime (Files): Ship it.
33993         * modules/timegm (Files): Likewise.
33994         Suggested by Bruno Haible.
33995
33996         test-update-copyright: update test to match script changes
33997         * tests/test-update-copyright.sh: Avoid hard-coding perl
33998         location.  Don't update *.bak created by earlier runs.
33999
34000 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34001             Simon Josefsson  <simon@josefsson.org>
34002             Bruno Haible  <bruno@clisp.org>
34003
34004         Fix link error on Solaris 8.
34005         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34006         also in libnsl. Define also INET_PTON_LIB.
34007         * modules/inet_pton (Link): New section.
34008
34009 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34010             Bruno Haible  <bruno@clisp.org>
34011
34012         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34013         * modules/inet_ntop (Link): New section.
34014         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34015
34016 2009-11-02  Eric Blake  <ebb9@byu.net>
34017
34018         maint: avoid compiler warnings in m4 macros
34019         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34020         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34021
34022 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34023
34024         * m4/pmccabe2html.m4: Remove file.
34025         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34026         function.  Change maintainer.
34027         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34028         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34029         Courtès).
34030
34031 2009-10-31  Eric Blake  <ebb9@byu.net>
34032
34033         fseeko: fix m4 regression
34034         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34035         regression from 2009-10-27.
34036         Reported by Ralf Wildenhues.
34037
34038 2009-10-31  Jim Meyering  <meyering@redhat.com>
34039
34040         inttostr: aesthetics and improved (compile-time) safety
34041         Define inttype_is_signed rather than inttype_is_unsigned,
34042         since the sole use is via "#if inttype_is_signed".
34043         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34044         inttype_is_unsigned.
34045         * lib/offtostr.c (inttype_is_signed): Likewise.
34046         * lib/uinttostr.c (inttype_is_signed): Likewise.
34047         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34048         * lib/inttostr.c (inttostr): Use verify to cross-check the
34049         inttype_is_signed value and the signedness of the actual type.
34050         * modules/inttostr (Depends-on): Add verify.
34051
34052 2009-10-30  Eric Blake  <ebb9@byu.net>
34053
34054         build: avoid compiler warnings
34055         * lib/fchmodat.c (lchmod): Mark unused variables.
34056         * lib/getopt.c (_getopt_initialize): Likewise.
34057         * lib/mktime.c (__mktime_internal): Provide prototype.
34058         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34059         older gcc that do not understand #pragma GCC diagnostic.
34060         * lib/uinttostr.c (inttype_is_unsigned): Define.
34061         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34062
34063 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34064
34065         stat: fix compilation on AIX
34066         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34067         only see struct stat64.
34068
34069 2009-10-30  Eric Blake  <ebb9@byu.net>
34070
34071         exclude: make more robust
34072         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34073         rather than masking a coding bug.
34074         Suggested by Bruno Haible.
34075
34076 2009-10-30  Jim Meyering  <meyering@redhat.com>
34077
34078         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34079         Rather than putting #!/usr/bin/perl on the first line,
34080         start with a variant of what's recommended by "man perlrun" that
34081         invokes the first "perl" program from your shell's search path.
34082         * build-aux/gitlog-to-changelog: Replace #!... as above.
34083         Add a "Local Variables" perl mode setting.
34084         Prompted by a patch from Ludovic Courtès.
34085         Improved by Eric Blake.
34086         * build-aux/useless-if-before-free: Likewise.
34087         * build-aux/announce-gen: Likewise.
34088         * build-aux/update-copyright: Likewise.
34089
34090 2009-10-29  Eric Blake  <ebb9@byu.net>
34091
34092         filenamecat-lgpl: adjust clients
34093         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34094         filenamecat.
34095         * modules/renameat (Depends-on): Likewise.
34096
34097         filenamecat: split into filenamecat-lgpl
34098         * modules/filenamecat-lgpl: New module.
34099         * modules/filenamecat (Files): Move library-safe files into
34100         filenamecat-lgpl.
34101         (Depends-on): Add filenamecat-lgpl.
34102         (configure.ac): Declare witness.
34103         * lib/filenamecat.h (file_name_concat): Only declare when using
34104         GPL module.
34105         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34106         Move...
34107         * lib/filenamecat-lgpl.c: ...into new file.
34108         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34109         (gl_FILE_NAME_CONCAT): Use it.
34110         * MODULES.html.sh (File system functions): Mention new module.
34111
34112         argp: avoid memory leak
34113         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34114         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34115         base_name, since the latter malloc()s and can call exit().
34116         Leak introduced 2006-07-03.
34117
34118         dirname-lgpl: adjust clients that don't need full dirname
34119         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34120         * modules/filenamecat (Depends-on): Likewise.
34121         * modules/linkat (Depends-on): Likewise.
34122         * modules/mkancesdirs (Depends-on): Likewise.
34123         * modules/mkdir (Depends-on): Likewise.
34124         * modules/openat (Depends-on): Likewise.
34125         * modules/savewd (Depends-on): Likewise.
34126         * modules/rename (Depends-on): Likewise.
34127         (License): Relax license.
34128         * modules/mkdir-tests (Depends-on): Drop progname.
34129         (Makefile.am): Delete unneeded LDADD.
34130         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34131
34132         dirname: split into dirname-lgpl
34133         * modules/dirname-lgpl: New module.
34134         * modules/dirname (Files): Move library-safe files into
34135         dirname-lgpl.
34136         (Depends-on): Add dirname-lgpl.
34137         (configure.ac): Declare witness.
34138         * modules/double-slash-root (License): Relax license.
34139         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34140         module.
34141         * lib/dirname.c (dir_len, mdir_name): Move...
34142         * lib/dirname-lgpl.c: ...into new file.
34143         * lib/basename.c (last_component, base_len): Move...
34144         * lib/basename-lgpl.c: ...into new file.
34145         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34146         (gl_DIRNAME): Use it.
34147         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34148         Mention new module.
34149         * modules/dirname-tests (Depends-on): Add progname.
34150         * tests/test-dirname.c (program_name): Delete.
34151
34152         mkdir: make safe for libraries
34153         * modules/mkdir (Depends-on): Drop xalloc.
34154         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34155         exit.
34156
34157         tests: avoid some compiler warnings
34158         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34159         literals.
34160         * tests/test-memchr.c (main): Avoid type mismatch.
34161         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34162         * tests/test-base64.c (main): Likewise.
34163         * tests/test-getdelim.c (main): Likewise.
34164         * tests/test-gethostname.c (main): Likewise.
34165         * tests/test-getline.c (main): Likewise.
34166         * tests/test-netinet_in.c (main): Likewise.
34167         * tests/test-select.c (open_server_socket, main): Likewise.
34168         * tests/test-select-stdin.c (main): Likewise.
34169         * tests/test-sockets.c (main): Likewise.
34170         * tests/test-strsignal.c (main): Likewise.
34171         * tests/test-sys_select.c (main): Likewise.
34172         * tests/test-sys_socket.c (main): Likewise.
34173         * tests/test-u64.c (main): Likewise.
34174         * tests/test-xfprintf-posix.c (main): Likewise.
34175         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34176
34177         sockets: avoid compiler warning
34178         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34179
34180         maint: detect usage(1) and other suspicious exits
34181         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34182
34183 2009-10-29  Jim Meyering  <meyering@redhat.com>
34184
34185         timespec: long-to-int truncation could make timespec_cmp malfunction
34186         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34187         a multiple of 2^32 nanoseconds as no difference.
34188
34189 2009-10-28  Jim Meyering  <meyering@redhat.com>
34190
34191         fprintftime: wrap macro code argument in "do {...} while(0)"
34192         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34193         cpy macro must be a statement that can be followed by a semicolon.
34194         Now that the else clause contains a comment and is hence longer
34195         than one line, I require curly braces.  That in turn requires
34196         that we wrap this code block in the standard do...while(0).
34197
34198         fprintftime: remove stray semicolon from previous change
34199         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34200
34201         fprintftime: avoid a warning about ignored fwrite return value
34202         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34203         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34204         that is unsafe.
34205         * modules/fprintftime (Depends-on): Add ignore-value.
34206
34207         exclude: avoid an unwarranted warning
34208         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34209
34210 2009-10-27  Eric Blake  <ebb9@byu.net>
34211
34212         fseek: avoid compilation failure when fflush is replaced
34213         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34214         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34215         module is in use.
34216         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34217         module is not in use; since REPLACE_FSEEK worked otherwise.
34218         (GNULIB_FTELLO): Likewise for ftell.
34219         Reported by Ian Beckwith and others.
34220
34221 2009-10-27  Bruno Haible  <bruno@clisp.org>
34222
34223         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34224         Reported by Jim Meyering.
34225
34226 2009-10-27  Jim Meyering  <jim@meyering.net>
34227             Bruno Haible  <bruno@clisp.org>
34228
34229         Avoid warning despite dropping the return value of fwrite.
34230         * lib/unicodeio.c: Include ignore-value.h.
34231         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34232         * modules/unicodeio (Depends-on): Add ignore-value.
34233
34234 2009-10-26  Eric Blake  <ebb9@byu.net>
34235
34236         areadlinkat: fix fallback path
34237         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34238         pointer and zero.
34239
34240 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34241
34242         Use a better IO block size for modern systems
34243         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34244         * lib/md2.c: Likewise.
34245         * lib/md4.c: Likewise.
34246         * lib/md5.c: Likewise.
34247         * lib/sha1.c: Likewise.
34248         * lib/sha256.c: Likewise.
34249         * lib/sha512.c: Likewise.
34250
34251 2009-10-22  Eric Blake  <ebb9@byu.net>
34252
34253         tests: avoid several compiler warnings
34254         * tests/test-getcwd.c (main): Avoid buffer underflow.
34255         * tests/test-getdate.c (main): String literals are not safe with
34256         putenv, so use setenv.  Declare unused argument.
34257         * modules/getdate-tests (Depends-on): Add setenv.
34258         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34259         problems with string literals in char *.
34260         * tests/test-hash.c (main): Avoid shadowing declaration.
34261         (insert_new): Treat string literals as char const *.
34262         * tests/test-getopt.h (test_getopt): Likewise.
34263         (getopt_loop): Alter types to minimize casting elsewhere.
34264         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34265         (test_getopt_long_posix): Likewise.
34266         (do_getopt_long): Add wrapper to minimize casting.
34267         * tests/test-atexit.c (clear_temp_file): Use void.
34268         * tests/test-areadlink-with-size.c (main): Declare unused
34269         arguments.
34270         * tests/test-areadlink.c (main): Likewise.
34271         * tests/test-areadlinkat-with-size.c (main): Likewise.
34272         * tests/test-areadlinkat.c (main): Likewise.
34273         * tests/test-canonicalize-lgpl.c (main): Likewise.
34274         * tests/test-canonicalize.c (main): Likewise.
34275         * tests/test-dirent-safer.c (main): Likewise.
34276         * tests/test-dirname.c (main): Likewise.
34277         * tests/test-dup2.c (main): Likewise.
34278         * tests/test-fchdir.c (main): Likewise.
34279         * tests/test-fcntl-h.c (main): Likewise.
34280         * tests/test-fcntl-safer.c (main): Likewise.
34281         * tests/test-fdopendir.c (main): Likewise.
34282         * tests/test-fdutimensat.c (main): Likewise.
34283         * tests/test-fflush.c (main): Likewise.
34284         * tests/test-filenamecat.c (main): Likewise.
34285         * tests/test-filevercmp.c (main): Likewise.
34286         * tests/test-fopen-safer.c (main): Likewise.
34287         * tests/test-fopen.c (main): Likewise.
34288         * tests/test-fpending.c (main): Likewise.
34289         * tests/test-fpurge.c (main): Likewise.
34290         * tests/test-freading.c (main): Likewise.
34291         * tests/test-fstatat.c (main): Likewise.
34292         * tests/test-fsync.c (main): Likewise.
34293         * tests/test-futimens.c (main): Likewise.
34294         * tests/test-getndelim2.c (main): Likewise.
34295         * tests/test-gettimeofday.c (main): Likewise.
34296         * tests/test-getopt.c (main): Likewise.
34297         * tests/test-i-ring.c (main): Likewise.
34298         * tests/test-inttypes.c (main): Likewise.
34299         * tests/test-link.c (main): Likewise.
34300         * tests/test-lstat.c (main): Likewise.
34301         * tests/test-math.c (main): Likewise.
34302         * tests/test-md5.c (main): Likewise.
34303         * tests/test-memchr2.c (main): Likewise.
34304         * tests/test-memrchr.c (main): Likewise.
34305         * tests/test-mkdir.c (main): Likewise.
34306         * tests/test-mkdirat.c (main): Likewise.
34307         * tests/test-mkfifoat.c (main): Likewise.
34308         * tests/test-open.c (main): Likewise.
34309         * tests/test-openat-safer.c (main): Likewise.
34310         * tests/test-openat.c (main): Likewise.
34311         * tests/test-quotearg.c (main): Likewise.
34312         * tests/test-rawmemchr.c (main): Likewise.
34313         * tests/test-readlink.c (main): Likewise.
34314         * tests/test-remove.c (main): Likewise.
34315         * tests/test-rename.c (main): Likewise.
34316         * tests/test-renameat.c (main): Likewise.
34317         * tests/test-rmdir.c (main): Likewise.
34318         * tests/test-sha1.c (main): Likewise.
34319         * tests/test-signal.c (main): Likewise.
34320         * tests/test-sigaction.c (main): Likewise.
34321         * tests/test-stat.c (main): Likewise.
34322         * tests/test-stat-time.c (main): Likewise.
34323         * tests/test-stddef.c (main): Likewise.
34324         * tests/test-stdint.c (main): Likewise.
34325         * tests/test-stdio.c (main): Likewise.
34326         * tests/test-stdlib.c (main): Likewise.
34327         * tests/test-strchrnul.c (main): Likewise.
34328         * tests/test-strerror.c (main): Likewise.
34329         * tests/test-string.c (main): Likewise.
34330         * tests/test-strtod.c (main): Likewise.
34331         * tests/test-strverscmp.c (main): Likewise.
34332         * tests/test-symlink.c (main): Likewise.
34333         * tests/test-symlinkat.c (main): Likewise.
34334         * tests/test-sys_stat.c (main): Likewise.
34335         * tests/test-sys_time.c (main): Likewise.
34336         * tests/test-time.c (main): Likewise.
34337         * tests/test-unistd.c (main): Likewise.
34338         * tests/test-unlink.c (main): Likewise.
34339         * tests/test-unlinkat.c (main): Likewise.
34340         * tests/test-utimens.c (main): Likewise.
34341         * tests/test-utimensat.c (main): Likewise.
34342         * tests/test-version-etc.c (main): Likewise.
34343         * tests/test-wchar.c (main): Likewise.
34344         * tests/test-wctype.c (main): Likewise.
34345         * tests/test-xprintf-posix.c (main): Likewise.
34346         * tests/test-posixtm.c (main): Likewise.
34347         (STREQ): Delete unused macro.
34348         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34349         shadowed variables.
34350         * tests/test-memchr.c (main): Likewise.
34351
34352 2009-10-21  Eric Blake  <ebb9@byu.net>
34353
34354         areadlinkat: avoid failure on older glibc
34355         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34356         rather than mis-comparing 0 against FUNC_RESULT of char*.
34357
34358 2009-10-21  Bruno Haible  <bruno@clisp.org>
34359
34360         * modules/stpncpy (License): Relicense under LGPLv2+.
34361         Reported by David Lutterkort <lutter@redhat.com>.
34362
34363 2009-10-20  Eric Blake  <ebb9@byu.net>
34364
34365         utimensat: work around Solaris 9 bug
34366         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34367         has trailing slash bugs.
34368         * tests/test-lutimens.h (test_lutimens): Enhance test.
34369         * tests/test-utimens.h (test_utimens): Likewise.
34370         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34371         * doc/posix-functions/utimes.texi (utimes): Likewise.
34372         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34373         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34374         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34375         * doc/posix-functions/futimens.texi (futimens): Likewise.
34376
34377         fdutimensat: new module
34378         * modules/fdutimensat: New file.
34379         * lib/fdutimensat.c (fdutimensat): Likewise.
34380         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34381         * MODULES.html.sh (File system functions): Mention module.
34382         * modules/fdutimensat-tests: New test.
34383         * tests/test-fdutimensat.c: Likewise.
34384
34385         doc: regenerate INSTALL
34386         * doc/INSTALL: Reflect recent autoconf update.
34387         * doc/INSTALL.ISO: Likewise.
34388         * doc/INSTALL.UTF-8: Likewise.
34389
34390 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34391
34392         acl: warn if ACL support is not detected
34393         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34394
34395 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34396
34397         * lib/nproc.h: Add extern "C" block for C++.
34398
34399 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34400             Bruno Haible  <bruno@clisp.org>
34401
34402         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34403         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34404         * doc/posix-functions/isalpha.texi: Likewise.
34405         * doc/posix-functions/isblank.texi: Likewise.
34406         * doc/posix-functions/iscntrl.texi: Likewise.
34407         * doc/posix-functions/isdigit.texi: Likewise.
34408         * doc/posix-functions/isgraph.texi: Likewise.
34409         * doc/posix-functions/islower.texi: Likewise.
34410         * doc/posix-functions/isprint.texi: Likewise.
34411         * doc/posix-functions/ispunct.texi: Likewise.
34412         * doc/posix-functions/isspace.texi: Likewise.
34413         * doc/posix-functions/isupper.texi: Likewise.
34414         * doc/posix-functions/isxdigit.texi: Likewise.
34415
34416 2009-10-18  Bruno Haible  <bruno@clisp.org>
34417
34418         Tests for module 'isblank'.
34419         * modules/isblank-tests: New file.
34420         * tests/test-isblank.c: New file.
34421
34422         New module 'isblank'.
34423         * lib/isblank.c: New file.
34424         * m4/isblank.m4: New file.
34425         * modules/isblank: New file.
34426         * doc/posix-functions/isblank.texi: Mention the new module.
34427
34428 2009-10-18  Bruno Haible  <bruno@clisp.org>
34429
34430         New module 'ctype'.
34431         * lib/ctype.in.h: New file.
34432         * m4/ctype.m4: New file.
34433         * modules/ctype: New file.
34434         * doc/posix-headers/ctype.texi: Mention the new module.
34435
34436 2009-10-18  Jim Meyering  <meyering@redhat.com>
34437
34438         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34439         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34440         right after its initialization, rather than farther down.
34441         Keeping these in close proximity makes it easier to ensure
34442         that each such variable is initialized.  E.g.,
34443
34444             LIB_CLOCK_GETTIME=
34445             AC_SUBST([LIB_CLOCK_GETTIME])
34446
34447         This change also increments these serial numbers.
34448         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34449         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34451
34452 2009-10-18  Bruno Haible  <bruno@clisp.org>
34453
34454         Don't let environment variables perturb build.
34455         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34456         (gl_PREREQ_GETHRXTIME): ... not here.
34457
34458 2009-10-18  Bruno Haible  <bruno@clisp.org>
34459
34460         Avoid symlink attack in localcharset module.
34461         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34462         (O_NOFOLLOW): Define fallback.
34463         (get_charset_aliases): Don't open the file if it is a symbolic link.
34464         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34465         gl_FCNTL_H.
34466         (gl_FCNTL_H): Require it.
34467         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34468         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34469         Reported by Fergal Glynn <fglynn@veracode.com>.
34470
34471 2009-10-18  Bruno Haible  <bruno@clisp.org>
34472
34473         Implement nproc for mingw.
34474         * lib/nproc.c: Include <windows.h>
34475         (num_processors): On native Windows platforms, try GetSystemInfo.
34476
34477 2009-10-18  Bruno Haible  <bruno@clisp.org>
34478
34479         Implement nproc for IRIX.
34480         * lib/nproc.c: Include <sys/sysmp.h>.
34481         (num_processors): On IRIX systems, try sysmp.
34482         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34483
34484 2009-10-18  Bruno Haible  <bruno@clisp.org>
34485
34486         Implement nproc for HP-UX.
34487         * lib/nproc.c: Include <sys/pstat.h>
34488         (num_processors): On HP-UX systems, try pstat_getdynamic.
34489         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34490         pstat_getdynamic.
34491
34492 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34493             Bruno Haible  <bruno@clisp.org>
34494
34495         Implement nproc for NetBSD, OpenBSD.
34496         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34497         (ARRAY_SIZE): New macro.
34498         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34499         * m4/nproc.m4: New file.
34500         * modules/nproc (Files): Add m4/nproc.m4.
34501         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34502         (Makefile.am): Instead, augment lib_SOURCES.
34503
34504 2009-10-18  Bruno Haible  <bruno@clisp.org>
34505
34506         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34507         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34508         sys/param.h.
34509
34510 2009-10-16  Eric Blake  <ebb9@byu.net>
34511
34512         utimensat: new module
34513         * modules/utimensat: New file.
34514         * lib/utimensat.c (utimensat): Likewise.
34515         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34516         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34517         so we can work around Linux bugs.
34518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34519         * modules/sys_stat (Makefile.am): Substitute them.
34520         * lib/sys_stat.in.h (utimensat): Declare it.
34521         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34522         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34523         * modules/utimensat-tests: New test.
34524         * tests/test-utimensat.c: Likewise.
34525
34526         utimens: let lutimens work on non-symlinks
34527         * lib/utimens.c (lutimens): Fall back to utimens rather than
34528         failing with ENOSYS, when file is not a symlink.
34529         (utimens): Reduce redirection.
34530         * tests/test-lutimens.h (test_lutimens): Update test to cover
34531         non-symlinks.
34532         * tests/test-utimens.h (test_utimens): Update test to cover
34533         symlinks.
34534         * tests/test-utimens.c (main): Update caller.
34535
34536         utimens: cache whether utimensat syscall works
34537         * lib/utimens.c (utimensat_works_really): New cache variable.
34538         (fdutimens, lutimens): Use it to avoid failing syscall.
34539
34540         test-stat-time, test-utimens: improve portability
34541         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34542         ext4 on alpha, and for cygwin.
34543         * tests/test-utimens-common.h: New file.
34544         (nap): Factor delays into single function.
34545         * tests/test-lutimens.h (test_lutimens): Use new header.
34546         * tests/test-futimens.h (test_futimens): Likewise.
34547         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34548         timestamps to occur from same machine, as was done previously for
34549         test_utimens.
34550         * modules/utimens-tests (Files): Ship new file.
34551         * modules/futimens-tests (Files): Likewise.
34552         Reported in part by Jim Meyering.
34553
34554         sys_stat: sort replacement declarations
34555         * lib/sys_stat.in.h: Sort declarations.
34556         * lib/futimens.c (futimens): Fix typo.
34557
34558 2009-10-15  Jim Meyering  <meyering@redhat.com>
34559
34560         don't let environment settings perturb build
34561         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34562         could cause a configure-time and/or build-time malfunction.
34563         Typically, a configure-time function-in-library test is performed
34564         via code like this:
34565
34566           LIB_VAR=
34567           AC_SUBST([LIB_VAR])
34568           prefix_saved_LIBS=$LIBS
34569             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34570                        [test "$ac_cv_search_FUNC" = "none required" ||
34571                         LIB_VAR=$ac_cv_search_FUNC])
34572           LIBS=$prefix_saved_LIBS
34573
34574         However, in each of the files affected by this change, the LIB_VAR=
34575         initialization was omitted.  Thus, when set in the environment, its
34576         value would propagate into generated Makefiles when FUNC is not found
34577         in LIB_NAME.
34578         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34579         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34581
34582 2009-10-14  Eric Blake  <ebb9@byu.net>
34583
34584         fchdir: avoid infinite recursion in mingw
34585         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34586         recursing.
34587
34588         test-stat-time: port to mingw
34589         * tests/test-stat-time.c (force_unlink): Return a value.
34590         (test_ctime) [W32]: Fix compilation error.
34591         (nap): Don't call usleep with too large an argument.  Use
34592         force_unlink.
34593         * doc/pastposix-functions/usleep.texi (usleep): Document the
34594         portability issue.
34595
34596 2009-10-13  Jim Meyering  <meyering@redhat.com>
34597
34598         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34599         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34600         * modules/pipe-filter-ii: Likewise.
34601         * modules/sys_socket-tests: Likewise.
34602         * modules/tsearch-tests: Likewise.
34603         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34604         (check): Depend on it.
34605
34606 2009-10-12  Eric Blake  <ebb9@byu.net>
34607
34608         utimens-tests: port to NFS file systems
34609         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34610         comparisons to avoid spurious failures from timestamp drift
34611         between NFS machines.
34612
34613 2009-10-12  Eric Blake  <ebb9@byu.net>
34614
34615         stat-time-tests: minor cleanups
34616         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34617         * tests/test-stat-time.c (nap): Separate assignment from call.
34618         Suggested by Paolo Bonzini and Bruno Haible.
34619
34620         sys_stat: guarantee struct timespec
34621         * lib/sys_stat.in.h (includes): Always include <time.h>
34622         * modules/sys_stat (Depends-on): Add time.
34623         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34624         mode_t permission values.
34625         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34626         get at subsecond timestamps.
34627
34628 2009-10-10  Eric Blake  <ebb9@byu.net>
34629
34630         futimens: new module
34631         * modules/futimens: New file.
34632         * lib/futimens.c (futimens): Likewise.
34633         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34634         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34635         we can work around Linux bugs.
34636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34637         * modules/sys_stat (Makefile.am): Substitute them.
34638         * lib/sys_stat.in.h (futimens): Declare it.
34639         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34640         * doc/posix-functions/futimens.texi (futimens): Likewise.
34641         * modules/futimens-tests: New test.
34642         * tests/test-futimens.c: Likewise.
34643
34644         utimens: introduce fdutimens
34645         * lib/utimens.h (fdutimens): New prototype.
34646         * lib/utimens.c (gl_futimens): Move guts...
34647         (fdutimens): ...to new interface.
34648         * tests/test-utimens.c (do_fdutimens): Use it.
34649
34650         utimens: add UTIME_NOW and UTIME_OMIT support
34651         * lib/utimens.c (validate_timespec, update_timespec): New helper
34652         functions.
34653         (gl_futimens, lutimens): Use them.
34654         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34655         stdbool, sys_stat.
34656         (Link): Mention resulting library dependency.
34657         * modules/utimecmp (Link): Likewise.
34658         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34659         (Makefile.am): Pick up library dependency.
34660         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34661         definition.
34662         * tests/test-sys_stat.c: Test the definitions.
34663         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34664         * NEWS: Document library dependency.
34665
34666         utimecmp: support symlink timestamps
34667         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34668         hashing when possible.  Use pathconf when available.
34669         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34670         * modules/utimecmp (Depends-on): Add lstat.
34671
34672         utimens: add lutimens interface
34673         * lib/utimens.c (lutimens): New function.
34674         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34675         * lib/utimens.h (lutimens): Declare new interface.
34676         * tests/test-utimens.c (main): Enhance test.
34677         * tests/test-lutimens.h (test_lutimens): New file.
34678         * modules/utimens-tests (Files): Distribute it.
34679         (Depends-on): Add symlink.
34680         (configure.ac): Check for usleep.
34681
34682         utimens: validate futimens usage
34683         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34684         fewer syscalls on failure later on.  Avoid compiler warning on
34685         mingw.
34686         * modules/utimens (Depends-on): Add dup2.
34687
34688         utimens: add test
34689         * modules/utimens-tests: New test.
34690         * tests/test-utimens.h: New file.
34691         * tests/test-futimens.h: Likewise.
34692         * tests/test-utimens.c: Likewise.
34693
34694         doc: mention timestamp portability issues
34695         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34696         instead.
34697         * doc/posix-functions/utime.texi (utime): Likewise.
34698         * doc/posix-functions/utimes.texi (utimes): Likewise.
34699         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34700         instead.
34701         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34702         module.
34703         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34704         Mention weakness with symlink timestamps.
34705         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34706         to utimensat/futimens instead.
34707         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34708
34709         test-dup2: enhance test
34710         * tests/test-dup2.c (main): Also check AT_FDCWD.
34711
34712         test-stat-time: avoid more spurious failures
34713         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34714         xfs; and avoid race if the two timestamps cross quantization edge.
34715
34716         relocatable: prefer 'file system' over 'filesystem'
34717         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34718         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34719         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34720         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34721         * lib/relocatable.c (compute_curr_prefix): Likewise.
34722
34723 2009-10-10  Jim Meyering  <meyering@redhat.com>
34724
34725         stat-time-tests: check for the usleep function
34726         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34727
34728 2009-10-10  Bruno Haible  <bruno@clisp.org>
34729
34730         * modules/xnanosleep: Put the Link section after the Include section.
34731
34732 2009-10-09  Eric Blake  <ebb9@byu.net>
34733
34734         dup2: work around FreeBSD 6.1 bug
34735         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34736         * doc/posix-functions/dup2.texi (dup2): Document it.
34737         Reported by Nelson H. F. Beebe and Jim Meyering.
34738
34739         test-stat-time: port to buggy NFS clients
34740         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34741         (test_ctime): Also skip test if mtime and ctime are skewed.
34742
34743         maint: prefer 'file system' over 'filesystem'
34744         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34745         * doc/posix-functions/lstat.texi (lstat): Likewise.
34746         * lib/file-has-acl.c (file_has_acl): Likewise.
34747         * lib/fwriteerror.c [TEST]: Likewise.
34748         * tests/test-areadlink.h (test_areadlink): Likewise.
34749         * tests/test-areadlinkat-with-size.c (main): Likewise.
34750         * tests/test-areadlinkat.c (main): Likewise.
34751         * tests/test-canonicalize-lgpl.c (main): Likewise.
34752         * tests/test-canonicalize.c (main): Likewise.
34753         * tests/test-fstatat.c (main): Likewise.
34754         * tests/test-linkat.c (main): Likewise.
34755         * tests/test-lstat.h (test_lstat_func): Likewise.
34756         * tests/test-mkdir.h (test_mkdir): Likewise.
34757         * tests/test-readlink.h (test_readlink): Likewise.
34758         * tests/test-remove.c (main): Likewise.
34759         * tests/test-rename.h (test_rename): Likewise.
34760         * tests/test-renameat.c (main): Likewise.
34761         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34762         * tests/test-symlink.h (test_symlink): Likewise.
34763         * tests/test-symlinkat.c (main): Likewise.
34764         * tests/test-unlink.h (test_unlink_func): Likewise.
34765         * tests/test-unlinkat.c (main): Likewise.
34766
34767         maint: make realtime library usage explicit
34768         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34769         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34770         * modules/settime (Link): Likewise.
34771         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34772
34773         test-stat-time: speed up execution
34774         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34775         warning on mingw.
34776         (nap): New helper function.
34777         (prepare_test): Use it to reduce sleep time.
34778         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34779         execution.
34780         * modules/stat-time-tests (configure.ac): Check for usleep.
34781
34782 2009-10-09  Jim Meyering  <meyering@redhat.com>
34783
34784         selinux-h: always use getfilecon wrappers
34785         * lib/getfilecon.c: New file.
34786         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34787         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34788         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34789         (fgetfilecon): Provide a stub.
34790         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34791         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34792         file unconditionally.
34793         When <selinux/selinux.h> is found, arrange to use wrappers.
34794         * modules/selinux-h (Files): Add getfilecon.c.
34795         (Makefile.am): Substitute include-next-related bits
34796         into the now-always-generated selinux/selinux.h file.
34797         * doc/glibc-functions/lgetfilecon.texi: New file.
34798         * doc/glibc-functions/fgetfilecon.texi: New file.
34799         * doc/glibc-functions/getfilecon.texi: New file.
34800         * doc/glibc-functions/getfilecon-desc.texi: New file.
34801         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34802         which to pull in the new files.
34803         * MODULES.html.sh (Misc): Add selinux-h.
34804
34805 2009-10-08  Jim Meyering  <meyering@redhat.com>
34806
34807         unistd: fix comment typo
34808         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34809
34810 2009-10-08  Eric Blake  <ebb9@byu.net>
34811
34812         areadlink: use SIZE_MAX consistently
34813         * modules/areadlink (Depends-on): Add stdint.
34814         * modules/areadlink-with-size (Depends-on): Likewise.
34815         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34816         gives NULL; drop sys/types, since unistd gives size_t; and add
34817         stdint for SIZE_MAX.
34818         (SIZE_MAX): Rely on headers.
34819         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34820         and add stdint.
34821         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34822         (SIZE_MAX): Likewise.
34823         (INITIAL_BUF_SIZE): Turn into enum.
34824         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34825
34826 2009-10-08  Jim Meyering  <meyering@redhat.com>
34827
34828         areadlinkat: avoid compilation failure
34829         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34830         Fix typo in comment.
34831
34832 2009-10-07  Eric Blake  <ebb9@byu.net>
34833
34834         areadlinkat-with-size: new module
34835         * modules/areadlinkat-with-size: New module.
34836         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34837         * lib/areadlink.h (areadlinkat): Declare it.
34838         * MODULES.html.sh (File system functions): Mention it.
34839         * modules/areadlinkat-with-size-tests: New test.
34840         * tests/test-areadlinkat-with-size.c: New file.
34841
34842         xreadlinkat: new module
34843         * modules/xreadlinkat: New module.
34844         * lib/xreadlinkat.c (xreadlinkat): New file.
34845         * lib/xreadlink.h (xreadlinkat): Declare it.
34846         * MODULES.html.sh (File system functions): Mention it.
34847
34848         areadlinkat: new module
34849         * lib/at-func.c (FUNC_FAIL): New define.
34850         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34851         * modules/areadlinkat: New module.
34852         * lib/linkat.c (areadlinkat): Move...
34853         * lib/areadlinkat.c (areadlinkat): ...to new file.
34854         * lib/areadlink.h (areadlinkat): Declare it.
34855         * modules/linkat (Depends-on): Add areadlinkat.
34856         * MODULES.html.sh (File system functions): Mention it.
34857         * modules/areadlinkat-tests: New test.
34858         * tests/test-areadlinkat.c: New file.
34859
34860         areadlink, areadlink-with-size: add tests
34861         * modules/areadlink-tests: New test.
34862         * modules/areadlink-with-size-tests: Likewise.
34863         * tests/test-areadlink.h: New file.
34864         * tests/test-areadlink.c: Likewise.
34865         * tests/test-areadlink-with-size.c: Likewise.
34866
34867         maint: minor cleanups
34868         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34869         _UNUSED_PARAMETER_ instead.
34870         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34871         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34872         * modules/linkat-tests (Files): Distribute test-link.h.
34873
34874         openat, utimens: whitespace cleanup
34875         * lib/openat.c: Prefer space throughout, rather than mix of 8
34876         spaces vs. tabs.
34877         * lib/at-func.c: Likewise.
34878         * lib/utimens.c: Likewise.
34879
34880         openat: avoid using wrong fd
34881         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34882         working directory chooses same fd.
34883         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34884
34885         mkdir, mkdirat: fix cygwin 1.5.x bug
34886         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34887         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34888         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34889         bug.
34890         (gl_PREREQ_MKDIR): Delete unused macro.
34891         * modules/mkdir (Files): Track file rename.
34892         (configure.ac): Update macro name.
34893         * modules/openat (Depends-on): Add mkdir.
34894         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34895
34896         mkdir, mkdirat: add tests
34897         * modules/mkdir-tests: New test.
34898         * tests/test-mkdir.h: New file.
34899         * tests/test-mkdir.c: Likewise.
34900         * tests/test-mkdirat.c: Likewise.
34901         * modules/openat-tests (Files): Add new files.
34902         (Makefile.am): Run new test.
34903
34904 2009-10-06  Eric Blake  <ebb9@byu.net>
34905
34906         doc: tweak *at function documentation
34907         * doc/posix-functions/faccessat.texi (faccessat): Mention
34908         known issue with replacement.
34909         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34910         * doc/posix-functions/linkat.texi (linkat): Likewise.
34911         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34912         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34913         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34914         * doc/posix-functions/renameat.texi (renameat): Likewise.
34915         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34916
34917         openat: fix GNU/Hurd bug in unlinkat
34918         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34919         broken.
34920         * doc/posix-functions/unlink.texi (unlink): Document this.
34921         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34922
34923         fdopendir: fix GNU/Hurd bug
34924         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34925         allowing non-directory fds.
34926         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34927         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34928         * modules/dirent (Makefile.am): Substitute it.
34929         * lib/dirent.in.h (fdopendir): Declare replacement.
34930         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34931         * tests/test-fdopendir.c (main): Test something other than
34932         /dev/null, since on Hurd that behaves like a directory.
34933
34934         test-symlink: port to GNU/Hurd
34935         * tests/test-symlink.h (test_symlink): Relax expected errno.
34936
34937         doc: tweak more cygwin information
34938         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34939         now compatible with glibc.
34940         * doc/posix-functions/getopt.texi (getopt): Likewise.
34941
34942         getopt-gnu: add another test
34943         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34944         guarantee behavior relied on by m4.
34945         * tests/test-getopt.c (main): Use it.
34946         * modules/getopt-posix-tests (Depends-on): Add setenv.
34947         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34948
34949         getopt: fix compilation on darwin
34950         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34951         include.
34952         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34953         Reported by Ludovic Courtès.
34954
34955 2009-10-06  Bruno Haible  <bruno@clisp.org>
34956
34957         * modules/size_max (Description): Discourage its use.
34958         Reported by Simon Josefsson.
34959
34960 2009-10-06  Jim Meyering  <meyering@redhat.com>
34961
34962         linkat: avoid compilation failure
34963         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34964
34965 2009-10-05  Eric Blake  <ebb9@byu.net>
34966
34967         linkat: support Linux 2.6.17
34968         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34969         linkat on Linux, but allow cache variable override.
34970         * lib/linkat.c (rpl_linkat): Define override.
34971         * modules/linkat (Depends-on): Add symlinkat.
34972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34973         * modules/unistd (Makefile.am): Substitute it.
34974         * lib/unistd.in.h (linkat): Declare replacement.
34975         Reported by Pádraig Brady.
34976
34977         quotearg: port test to systems with C.UTF-8 locale
34978         * tests/test-quotearg.c (struct result_strings): Add another
34979         member, differentiating between C.ASCII and C.UTF-8 handling.
34980         (compare_strings): Add parameter.
34981         (main): Adjust all callers.
34982
34983         getopt: avoid clash with FreeBSD _getopt_internal
34984         * lib/getopt.in.h (_getopt_internal): Override the name.
34985         * lib/getopt_int.h (includes): Pick up any overrides.
34986         Reported by Reuben Thomas.
34987
34988         hash: allow C89 compilation
34989         * lib/hash.c (check_tuning): Move declaration before statement.
34990         Reported by Reuben Thomas.
34991
34992 2009-10-05  Karl Berry  <karl@gnu.org>
34993
34994         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34995
34996 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34997             Bruno Haible  <bruno@clisp.org>
34998
34999         * lib/uname.c (uname): Use a table-driven algorithm to compute
35000         Windows NT versions.
35001
35002 2009-10-04  Bruno Haible  <bruno@clisp.org>
35003
35004         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35005         program_invocation_short_name.
35006         * modules/progname (configure.ac): Test for presence of
35007         program_invocation_short_name.
35008         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35009
35010 2009-10-04  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/progname.c (set_program_name): Fix comment.
35013         Reported by Jim Meyering.
35014
35015 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35016             Bruno Haible  <bruno@clisp.org>
35017
35018         * lib/uname.c: Include <string.h>.
35019         (uname): Do only one call to GetVersionEx in the common case.
35020
35021 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35022             Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35025         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35026         (uname): Add support for Windows CE and various non-x86 CPU types.
35027
35028 2009-10-03  Bruno Haible  <bruno@clisp.org>
35029
35030         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35031         invocation to tests/configure.ac.
35032         Reported by Ian Beckwith <ianb@erislabs.net>.
35033
35034 2009-10-02  Eric Blake  <ebb9@byu.net>
35035
35036         fchdir: avoid compiler warning
35037         * lib/fchdir.c (canonicalize_file_name)
35038         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35039
35040         test-open: support mingw errno values
35041         * tests/test-open.h (test_open): Relax test.
35042         * tests/test-fopen.h (test_fopen): Likewise.
35043         * tests/test-openat-safer.c (main): Likewise.
35044
35045         open: fix opening directory on mingw
35046         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35047
35048         test-open: on GNU/Hurd, /dev/null is a directory
35049         * tests/test-fopen.h (main): Rename...
35050         (test_fopen): ...to this.  Use a guaranteed non-directory when
35051         confirming open behavior on trailing slash.
35052         * tests/test-openat-safer.c (main): Likewise.
35053         * tests/test-open.h (main): Likewise....
35054         (test_open): ...to this.
35055         * tests/test-fopen.c (main): Adjust caller.
35056         * tests/test-fopen-safer.c (main): Likewise.
35057         * tests/test-open.c (main): Likewise.
35058         * tests/test-fcntl-safer.c (main): Likewise.
35059         Reported by Samuel Thibault.
35060
35061         rename, fchdir: don't ignore chdir failure
35062         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35063         * lib/rename.c (rpl_rename) [W32]: Likewise.
35064         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35065         an empty destination directory if source cannot be renamed,
35066         although there is still possibility for failure.
35067         * doc/posix-functions/rename.texi (rename): Document the race.
35068         Reported by Jim Meyering.
35069
35070         maint: cleanup whitespace in recent commits
35071         * lib/rename.c (rpl_rename): Remove tabs.
35072         * tests/test-link.h (test_link): Likewise.
35073         * lib/fchdir.c (get_name): Likewise.
35074         Reported by Jim Meyering.
35075
35076 2009-10-02  Ben Pfaff  <blp@gnu.org>
35077
35078         relocatable-prog-wrapper: Add missing dependency on
35079         double-slash-root.
35080         * modules/relocatable-prog-wrapper: Add dependency.
35081         Reported by Ian Beckwith <ianb@erislabs.net>.
35082
35083 2009-10-02  Eric Blake  <ebb9@byu.net>
35084
35085         renameat: fix Solaris bugs
35086         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35087         needed fixing.
35088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35089         * modules/stdio (Makefile.am): Substitute it.
35090         * lib/stdio.in.h (renameat): Declare replacement.
35091         * lib/renameat.c (rpl_renameat): Implement fix.
35092
35093         renameat: new module
35094         * modules/renameat: New file.
35095         * lib/renameat.c (renameat): Likewise.
35096         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35098         * modules/stdio (Makefile.am): Substitute them.
35099         * lib/stdio.in.h (renameat): Declare it.
35100         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35101         * doc/posix-functions/renameat.texi (renameat): Likewise.
35102         * modules/renameat-tests: New test.
35103         * tests/test-renameat.c: Likewise.
35104
35105         rename: fix mingw bugs
35106         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35107         directory overwrite bugs.
35108
35109         rename: fix another cygwin 1.5 bug
35110         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35111         checks.
35112         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35113         unnecessary cygwin workarounds.  Also work around bug with moving
35114         full directory onto an empty one.
35115         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35116
35117         rename-dest-slash: merge into rename module
35118         * modules/rename-dest-slash (Status): Mark obsolete.
35119         (Depends-on): Add rename.
35120         (Files): Let rename do it all.
35121         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35122         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35123         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35124         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35125         * lib/rename.c (rpl_rename): Update comments.
35126
35127         rename: fix cygwin 1.5.x bugs
35128         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35129         * lib/rename.c (rpl_rename): Work around them.
35130         * modules/rename (Depends-on): Add same-inode.
35131
35132         rename: fix Solaris 10 bug
35133         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35134         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35135         was the only bug.
35136
35137         rename: fix Solaris 9 bug
35138         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35139         on non-directory.  Avoid calling exit.
35140         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35141         strdup.
35142         * modules/rename-tests (Depends-on): Drop lstat.
35143         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35144         (gl_PREREQ_RENAME): Delete unused macro.
35145
35146         rename-dest-slash: fix NetBSD bug
35147         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35148         links.
35149         * modules/rename-dest-slash (Depends-on): Add same-inode.
35150
35151         rename-tests: new test, exposes several platform bugs
35152         * modules/rename-tests: New file.
35153         * tests/test-rename.h: Likewise.
35154         * tests/test-rename.c: Likewise.
35155         * doc/posix-functions/rename.texi (rename): Improve documentation,
35156         including bugs that will eventually be fixed in gnulib.
35157
35158 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35159
35160         * lib/uname.c: Include <stdlib.h>
35161         (uname): Assume version info is available.
35162
35163 2009-10-02  Jim Meyering  <meyering@redhat.com>
35164
35165         gnu-web-doc-update: correct --help output
35166         * build-aux/gnu-web-doc-update: Make --help output relevant.
35167
35168         gnu-web-doc-update: add standard options
35169         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35170
35171         gnu-web-doc-update: New module.
35172         Use this script to automatically update the on-line web documentation
35173         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35174         * modules/gnu-web-doc-update: New file, from coreutils.
35175         * build-aux/gnu-web-doc-update: New script.
35176
35177 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35178
35179         link: LoadLibrary is not needed.
35180         * lib/link.c: Use GetModuleHandle.
35181
35182 2009-10-01  Eric Blake  <ebb9@byu.net>
35183
35184         getopt: bump serial number
35185         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35186         change.
35187
35188         tests: tighten link, rmdir, and remove tests
35189         * tests/test-link.h (includes): No need to use <config.h> here.
35190         Clean up if directory hard link was created, otherwise test for
35191         trailing '.'.
35192         * tests/test-linkat.c (main): Simplify.
35193         * tests/test-remove.c (main): Enhance test for trailing '.'.
35194         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35195
35196 2009-10-01  Jim Meyering  <meyering@redhat.com>
35197
35198         maint.mk: requiring "make major" was annoying, for a "minor" release.
35199         What is intended is "stable", to contrast with alpha and beta,
35200         so require "make stable", not "make major".
35201         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35202         (get_tool_versions): Likewise.
35203         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35204
35205 2009-09-30  Ben Pfaff  <blp@gnu.org>
35206
35207         Fix broken build of replacement for Windows tmpfile().
35208         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35209         flags argument added along with the 'mkostemp' module.
35210
35211 2009-09-28  Bruno Haible  <bruno@clisp.org>
35212
35213         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35214         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35215         to 'remove_elt'.
35216         (gl_list_remove): Update.
35217         * lib/gl_list.c (gl_list_remove): Update.
35218         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35219         to 'remove_elt'.
35220         (gl_oset_remove): Update.
35221         * lib/gl_list.c (gl_oset_remove): Update.
35222         Reported by Eric Blake.
35223
35224 2009-09-28  Eric Blake  <ebb9@byu.net>
35225
35226         doc: mention yet more cygwin 1.7 status
35227         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35228         cygwin.
35229         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35230         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35231
35232         argp: fix test failure
35233         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35234         that are not upper-case.  Pass correct range to tolower.
35235
35236 2009-09-27  Jim Meyering  <meyering@redhat.com>
35237
35238         test-yesno: work around sparc-dash here-document infelicity
35239         Without this change, the literal \177 byte in a here document
35240         would make dash 0.5.5.1-3 access uninitialized memory.
35241         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35242         Instead, use a marker, "@", and filter through tr to create the desired
35243         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35244
35245 2009-09-27  Bruno Haible  <bruno@clisp.org>
35246
35247         Disable untested support for new flavours of ACLs on AIX.
35248         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35249         progress.
35250         * lib/set-mode-acl.c (qset_acl): Likewise.
35251
35252 2008-12-07  Bruno Haible  <bruno@clisp.org>
35253
35254         Add support for new flavours of ACLs on AIX. (Untested.)
35255         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35256         (file_has_acl): Add support for newer AIX.
35257         * lib/set-mode-acl.c (qset_acl): Likewise.
35258         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35259         Rainer Tammer <tammer@tammer.net>.
35260
35261 2009-09-26  Eric Blake  <ebb9@byu.net>
35262
35263         argp: fix compilation of getopt
35264         * lib/getopt.in.h (includes): Use different guard than glibc.
35265         Reported by Sergey Poznyakoff.
35266
35267         doc: mention more cygwin 1.7 status
35268         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35269         bug.
35270         * doc/posix-functions/execl.texi (execl): Likewise.
35271         * doc/posix-functions/execle.texi (execle): Likewise.
35272         * doc/posix-functions/execlp.texi (execlp): Likewise.
35273         * doc/posix-functions/execv.texi (execv): Likewise.
35274         * doc/posix-functions/execve.texi (execve): Likewise.
35275         * doc/posix-functions/execvp.texi (execvp): Likewise.
35276         * doc/glibc-functions/canonicalize_file_name.texi
35277         (canonicalize_file_name): Cygwin 1.7 now provides this.
35278         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35279         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35280         on AT_SYMLINK_NOFOLLOW.
35281
35282 2009-09-24  Eric Blake  <ebb9@byu.net>
35283
35284         test-linkat: make test more robust
35285         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35286
35287         getopt: fix inclusion guards for cygwin
35288         * modules/getopt-posix (Depends-on): Add include-next.
35289         (Makefile.am): Substitute more items in replacement header.
35290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35291         <getopt.h>.
35292         * lib/getopt.in.h (includes): Use split inclusion guard, and
35293         prefer <getopt.h> over include <unistd.h> when one is present.
35294         (option): Also override name of 'struct option'.
35295
35296         same-inode: revert prior change; it is not yet ready
35297         * NEWS: Undo mention of this change.
35298         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35299         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35300         * lib/cycle-check.c (cycle_check): Likewise.
35301         * lib/same.c (same_name): Likewise.
35302         * lib/at-func2.c (at_func2): Likewise.
35303
35304 2009-09-23  Eric Blake  <ebb9@byu.net>
35305
35306         linkat: new module
35307         * modules/linkat: New file.
35308         * lib/at-func2.c (at_func2): Likewise.
35309         * lib/linkat.c (linkat): Likewise.
35310         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35311         * lib/openat-priv.h (at_func2): Add declaration.
35312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35313         * modules/unistd (Makefile.am): Substitute them.
35314         * lib/unistd.in.h (linkat): Declare it.
35315         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35316         * doc/posix-functions/linkat.texi (linkat): Likewise.
35317         * doc/posix-functions/link.texi (link): Tweak wording.
35318         * tests/test-link.c (main): Move guts...
35319         * tests/test-link.h (test_link): ...into new file.
35320         * modules/linkat-tests: New test.
35321         * tests/test-linkat.c: Likewise.
35322         * modules/link-tests (Files): Ship new file.
35323         (Depends-on): Add stdbool.
35324
35325         dirname: add library-safe mdir_name
35326         * lib/dirname.h (mdir_name): New prototype.
35327         * lib/dirname.c (dir_name): Move guts...
35328         (mdir_name): ...to new function that avoids xalloc_die.
35329
35330         fchdir: another mingw fix
35331         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35332         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35333         on mingw (where it has not yet been ported), and make it optional
35334         elsewhere.
35335         (_gl_register_fd): Use it.
35336
35337         same-inode: make SAME_INODE tri-state, to port to mingw
35338         * NEWS: Mention this change.
35339         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35340         st_ino always being 0.
35341         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35342         * lib/cycle-check.c (cycle_check): Likewise.
35343         * lib/same.c (same_name): Likewise.
35344
35345         lstat: avoid mingw compilation error
35346         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35347         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35348         lstat ourselves.
35349         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35350         was adequate.
35351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35352         the checks for lstat.
35353         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35354
35355         link: fix test failure on Solaris 9
35356         * lib/link.c (rpl_link): Don't assume link will catch bogus
35357         trailing slash on source.
35358
35359         test-symlinkat: enhance test
35360         * tests/test-readlink.c (main): Move guts...
35361         * tests/test-readlink.h (test_readlink): ...into new file.
35362         * tests/test-symlink.c (main): Move guts...
35363         * tests/test-symlink.h (test_symlink): ...into new file.
35364         * tests/test-symlinkat.c (main): Use new files for further
35365         coverage.
35366         (do_symlink, do_readlink): New helper functions.
35367         * modules/symlink-tests (Files): Ship new file.
35368         (Depends-on): Add stdbool.
35369         * modules/readlink-tests (Files): Ship new file.
35370         (Depends-on): Add stdbool.
35371         * modules/symlinkat-tests (Files): Use new files.
35372
35373 2009-09-23  Eric Blake  <ebb9@byu.net>
35374
35375         readlink: document portability issue with symlink length
35376         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35377         systems have bogus st_size on symlinks, and mention the
35378         areadlink-with-size module.
35379         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35380         * doc/posix-functions/readlink.texi (readlink): Mention the
35381         areadlink module, and ERANGE failure.
35382         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35383         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35384
35385         readlink: fix Solaris 9 bug with trailing slash
35386         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35387         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35388         * doc/posix-functions/readlink.texi (readlink): Document this.
35389         * modules/readlink-tests: New test.
35390         * tests/test-readlink.c: Likewise.
35391
35392         readlink: fix cygwin 1.5.x bug with return type
35393         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35394         * lib/unistd.in.h (readlink): Use ssize_t.
35395         * lib/readlink.c (readlink): Likewise.
35396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35397         * modules/unistd (Makefile.am): Substitute it.
35398         * lib/unistd.in.h (readlink): Declare replacement.
35399         * doc/posix-functions/readlink.texi (readlink): Document this.
35400
35401         symlink: use throughout gnulib
35402         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35403         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35404         symlink is not used.
35405         * modules/symlinkat (Depends-on): Add symlink.
35406         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35407         * modules/canonicalize-tests (Depends-on): Likewise.
35408         * modules/lstat-tests (Depends-on): Likewise.
35409         * modules/openat-tests (Depends-on): Likewise.
35410         * modules/remove-tests (Depends-on): Likewise.
35411         * modules/rmdir-tests (Depends-on): Likewise.
35412         * modules/unlink-tests (Depends-on): Likewise.
35413         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35414         * tests/test-canonicalize.c (symlink): Likewise.
35415         * tests/test-fstatat.c (symlink): Likewise.
35416         * tests/test-lstat.c (symlink): Likewise.
35417         * tests/test-remove.c (symlink): Likewise.
35418         * tests/test-rmdir.c (symlink): Likewise.
35419         * tests/test-unlink.c (symlink): Likewise.
35420         * tests/test-unlinkat.c (symlink): Likewise.
35421
35422         symlink: new module, for Solaris 9 bug
35423         * modules/symlink: New file.
35424         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35425         * lib/symlink.c: Likewise.
35426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35427         * modules/unistd (Makefile.am): Substitute them.
35428         * lib/unistd.in.h (symlink): Declare replacement.
35429         * MODULES.html.sh (File system functions): Mention it.
35430         * doc/posix-functions/symlink.texi (symlink): Likewise.
35431         * modules/symlink-tests: New test.
35432         * tests/test-symlink.c: Likewise.
35433
35434 2009-09-23  Bruno Haible  <bruno@clisp.org>
35435
35436         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35437         when needed.
35438         Test case: gnulib-tool --import --with-tests atexit inttypes.
35439         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35440
35441 2009-09-23  Bruno Haible  <bruno@clisp.org>
35442
35443         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35444         subcommand, not in a subshell.
35445
35446 2009-09-22  Eric Blake  <ebb9@byu.net>
35447
35448         unistd: sort replacement declarations
35449         * lib/unistd.in.h: Sort declarations.
35450
35451         open, openat: minor optimization
35452         * lib/open.c (open): If open succeeded, len is non-zero.
35453         * lib/openat.c (rpl_openat): Likewise.
35454
35455         link-follow: ensure correct result
35456         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35457         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35458         distinguish between possible failures.
35459
35460 2009-09-21  Eric Blake  <ebb9@byu.net>
35461
35462         fts: avoid compiler warning
35463         * lib/fts.c (dirent_inode_sort_may_be_useful)
35464         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35465
35466 2009-09-19  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/progreloc.c (canonicalize_file_name): New declaration.
35469
35470 2009-09-19  Eric Blake  <ebb9@byu.net>
35471
35472         link: fix quoting
35473         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35474
35475         openat: fix openat bugs on Solaris 9
35476         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35477         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35478         * modules/openat (Depends-on): Add open.
35479         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35480         * modules/fcntl-h (Makefile.am): Substitute it.
35481         * lib/fcntl.in.h (openat): Declare replacement.
35482         * doc/posix-functions/openat.texi (openat): Document this.
35483
35484         openat: move fstatat and unlinkat into correct files
35485         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35486         compiled.
35487         * lib/openat.c (fstatat, unlinkat): Move...
35488         * lib/fstatat.c (fstatat): ...into correct files.
35489         * lib/unlinkat.c (unlinkat): Likewise.
35490
35491         openat: fix unlinkat bugs on Solaris 9
35492         * lib/unlinkat.c (unlinkat): New file.
35493         * modules/openat (Depends-on): Add unlink.
35494         (Files): Distribute it.
35495         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35496         trailing slash behavior is broken.
35497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35498         * modules/unistd (Makefile.am): Substitute it.
35499         * lib/unistd.in.h (unlinkat): Declare replacement.
35500         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35501
35502         openat: fix fstatat bugs on Solaris 9
35503         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35504         stat.
35505         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35506
35507         test-unlinkat: enhance test, to expose Solaris 9 bug
35508         * tests/test-unlink.c (main): Factor guts...
35509         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35510         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35511         * tests/test-rmdir.c (main): Adjust caller.
35512         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35513         (unlinker): New helper function.
35514         (rmdirat): Enhance check.
35515         * modules/rmdir-tests (Depends-on): Add stdbool.
35516         * modules/unlink-tests (Depends-on): Likewise.
35517         (Files): Add test-unlink.h.
35518         * modules/openat-tests (Files): Likewise.
35519         (Depends-on): Add unlinkdir.
35520
35521         test-fstatat: new test, to expose Solaris 9 bugs
35522         * tests/test-stat.c (main): Factor guts...
35523         * tests/test-stat.h (test_stat_func): ...into new file.
35524         * tests/test-lstat.c (main): Factor guts...
35525         * tests/test-lstat.h (test_lstat_func): ...into new file.
35526         * tests/test-fstatat.c: New file.
35527         * modules/stat-tests (Files): Add test-stat.h.
35528         * modules/lstat-tests (Files): Add test-lstat.h.
35529         (Depends-on): Add stdbool.
35530         * modules/openat-tests (Depends-on): Add pathmax.
35531         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35532         (Makefile.am): Run new test.
35533
35534         remove: new module, for mingw and Solaris 9 bugs
35535         * modules/remove: New file.
35536         * lib/remove.c: Likewise.
35537         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35539         * modules/stdio (Makefile.am): Use them.
35540         * lib/stdio.in.h (remove): Declare replacement.
35541         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35542         * doc/posix-functions/remove.texi (remove): Likewise.
35543         * modules/remove-tests: New test.
35544         * tests/test-remove.c: Likewise.
35545
35546         unlink: new module, for Solaris 9 bug
35547         * modules/unlink: New file.
35548         * lib/unlink.c: Likewise.
35549         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35551         * modules/unistd (Makefile.am): Use them.
35552         * lib/unistd.in.h (stat): Declare replacement.
35553         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35554         * doc/posix-functions/unlink.texi (unlink): Likewise.
35555         * modules/unlink-tests: New test.
35556         * tests/test-unlink.c: Likewise.
35557
35558         lstat: fix Solaris 9 bug
35559         * lib/lstat.c (lstat): Also check for trailing slash on
35560         non-symlink, non-directories.  Use stat module to simplify logic.
35561         * doc/posix-functions/lstat.texi (lstat): Document it.
35562         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35563         (configure.ac): Check for symlink.
35564         * tests/test-lstat.c (main): Add more tests.
35565
35566         stat: add as dependency to other modules
35567         * modules/chown (Depends-on): Add stat.
35568         * modules/euidaccess (Depends-on): Likewise.
35569         * modules/fchdir (Depends-on): Likewise.
35570         * modules/isdir (Depends-on): Likewise.
35571         * modules/link (Depends-on): Likewise.
35572         * modules/lstat (Depends-on): Likewise.
35573         * modules/mkdir-p (Depends-on): Likewise.
35574         * modules/modechange (Depends-on): Likewise.
35575         * modules/open (Depends-on): Likewise.
35576         * modules/readlink (Depends-on): Likewise.
35577         * modules/same (Depends-on): Likewise.
35578
35579         stat: fix Solaris 9 bug
35580         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35581         slash.
35582         * lib/stat.c (rpl_stat): Work around it.
35583         * doc/posix-functions/stat.texi (stat): Update documentation.
35584
35585         stat: new module, for mingw bug
35586         * modules/stat: New file.
35587         * lib/stat.c: Likewise.
35588         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35590         * modules/sys_stat (Makefile.am): Use them.
35591         * lib/sys_stat.in.h (stat): Declare replacement.
35592         * lib/openat.c (fstatat): Deal with lstat and stat being function
35593         macros.
35594         * modules/openat (Depends-on): Add inline.
35595         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35596         * doc/posix-functions/stat.texi (stat): Likewise.
35597         * modules/stat-tests: New test.
35598         * tests/test-stat.c: Likewise.
35599
35600 2009-09-19  Jim Meyering  <meyering@redhat.com>
35601
35602         syntax-check: detect unnecessary inclusion of canonicalize.h
35603         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35604
35605 2009-09-19  Eric Blake  <ebb9@byu.net>
35606
35607         canonicalize-lgpl: adjust clients to use correct header
35608         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35609         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35610         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35611         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35612         * lib/progreloc.c (includes): Likewise.
35613
35614 2009-09-19  Jim Meyering  <meyering@redhat.com>
35615
35616         test-posixtm.c: correct a comment
35617         * tests/test-posixtm.c: Correct first-line comment.
35618         Spotted by Eric Blake.
35619
35620 2009-09-16  Jim Meyering  <meyering@redhat.com>
35621
35622         posixtm-tests: make T const-correct; add a test case
35623         * tests/test-posixtm.c (T): Declare const.
35624         Add a test for -(2^31+1).
35625         Remove useless can-succeed-only-in-2002 test.
35626
35627         posixtm-tests: adjust the sole failing test
35628         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35629         expected output matches what mktime now produces.  Cross-checked via
35630         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35631
35632         posixtm: move #ifdef'd tests into a new module
35633         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35634         * tests/test-posixtm.c: ... this new file.
35635         * modules/posixtm-tests: New module.
35636
35637 2009-09-19  Eric Blake  <ebb9@byu.net>
35638
35639         openat: simplify use of at-func.c
35640         * lib/at-func.c (includes): Include prerequisites here, to
35641         simplify requirements on client files.
35642         * lib/openat-priv.h: Add double-inclusion guard.
35643         * lib/faccessat.c (includes): Simplify.
35644         * lib/fchmodat.c (includes): Likewise.
35645         * lib/fchownat.c (includes): Likewise.
35646         * lib/mkdirat.c (includes): Likewise.
35647         * lib/mkfifoat.c (includes): Likewise.
35648         * lib/symlinkat.c (includes): Likewise.
35649
35650         openat: allow return of fd 0
35651         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35652         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35653         unistd-safer.
35654         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35655         <fcntl.h>; this module does not leak fds.
35656         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35657         must be allowed to return 0, leaving openat_safer to add the
35658         safety.
35659         (openat_permissive): Avoid writing to just-opened fd 2 if
35660         restoring the current directory fails.
35661         * lib/openat-die.c (openat_restore_fail): Add comment.
35662         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35663         (save_cwd): Guarantee safe fd, but without use of open_safer.
35664         * tests/test-openat.c: New test.
35665         * modules/openat-tests (Files, Makefile.am): Distribute and build
35666         new file.
35667
35668         relocatable-prog-wrapper: fix build
35669         * modules/relocatable-prog-wrapper (Files): Update name of
35670         canonicalize m4 file, broken on 2009-09-17.
35671         Reported by emad hajjar <aleppos@hotmail.com>.
35672
35673 2009-09-19  Bruno Haible  <bruno@clisp.org>
35674
35675         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35676         * lib/safe-alloc.c: Likewise.
35677         Reported by Ian Beckwith <ianb@erislabs.net>.
35678
35679 2009-09-18  Bruno Haible  <bruno@clisp.org>
35680
35681         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35682         Reported by <erobles@sensacd.com.mx>.
35683
35684 2009-09-17  Eric Blake  <ebb9@byu.net>
35685
35686         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35687         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35688         slashes when checking if last component is missing.
35689         * tests/test-canonicalize.c (main): Test this.
35690
35691         canonicalize, canonicalize-lgpl: honor // if distinct from /
35692         * modules/canonicalize (Files): Add double-slash-root.m4.
35693         * modules/canonicalize-lgpl (Files): Likewise.
35694         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35695         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35696         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35697         fallback definition.
35698         (canonicalize_filename_mode): Use it to protect //.
35699         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35700         (__realpath): Likewise.
35701         * tests/test-canonicalize.c (main): Test this.
35702         * tests/test-canonicalize-lgpl.c (main): Likewise.
35703         * modules/canonicalize-tests (Depends-on): Add same-inode.
35704         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35705
35706         canonicalize-lgpl: fix glibc bug with trailing slash
35707         * m4/canonicalize-lgpl.m4: Move contents...
35708         * m4/canonicalize.m4: ...here.
35709         (gl_CANONICALIZE_LGPL): Factor realpath check...
35710         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35711         glibc 2.3.5 bug, fixed 2005-04-27.
35712         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35713         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35714         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35715         * modules/canonicalize-lgpl (Files): Manage file rename.
35716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35717         * modules/stdlib (Makefile.am): Substitute witness.
35718         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35719         is needed.
35720         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35721         replacement is required.
35722         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35723         * doc/glibc-functions/canonicalize_file_name.texi
35724         (canonicalize_file_name): Document this.
35725         * doc/posix-functions/realpath.texi (realpath): Likewise.
35726
35727         canonicalize-lgpl: reject non-directory with trailing slash
35728         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35729         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35730         catches failures in glibc 2.3.5.
35731         * tests/test-canonicalize.c (main): Likewise.
35732
35733         canonicalize-lgpl: use native realpath if it works
35734         * lib/canonicalize-lgpl.c (realpath): Guard with
35735         FUNC_REALPATH_WORKS.
35736         * lib/stdlib.in.h (realpath): Make declaration optional based on
35737         HAVE_REALPATH.
35738         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35739         native realpath works.
35740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35741         * modules/stdlib (Makefile.am): Substitute witness.
35742
35743         canonicalize, canonicalize-lgpl: use <stdlib.h>
35744         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35745         (Include): Mention <stdlib.h>.
35746         (configure.ac): Mention functions we provide.
35747         * modules/canonicalize (configure.ac): Likewise.
35748         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35749         realpath if canonicalize_file_name is missing.
35750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35751         * modules/stdlib (Makefile.am): Substitute witnesses.
35752         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35753         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35754         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35755         * NEWS: Document this.
35756         * doc/glibc-functions/canonicalize_file_name.texi
35757         (canonicalize_file_name): Likewise.
35758         * doc/posix-functions/realpath.texi (realpath): Likewise.
35759         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35760
35761         test-canonicalize: consolidate into single C program
35762         * tests/test-canonicalize.sh: Delete; move setup into...
35763         * tests/test-canonicalize.c (main): ...the program, making it
35764         easier to run in debugger.  Add some tests.
35765         * modules/canonicalize-tests (Files): Remove unused file.
35766         (Depends-on): Add progname.
35767         (configure.ac, Makefile.am): Simplify.
35768
35769         test-canonicalize-lgpl: consolidate into single C program
35770         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35771         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35772         easier to run in debugger.  Add some tests.
35773         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35774         (configure.ac, Makefile.am): Simplify.
35775
35776         canonicalize: avoid resolvepath
35777         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35778         unnecessary checks.
35779         * lib/canonicalize.c (includes): Simplify.
35780         (canonicalize_file_name): Drop resolvepath implementation.
35781         * modules/canonicalize (Depends-on): Drop filenamecat.
35782
35783         canonicalize: don't lose errno
35784         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35785         over calls to free.
35786
35787         canonicalize: simplify errno handling
35788         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35789         assignment.
35790
35791         canonicalize, canonicalize-lgpl: update module dependencies
35792         * modules/canonicalize (Depends-on): Add extensions, lstat,
35793         pathmax, stdlib.
35794         (Files): Drop pathmax.h.
35795         (configure.ac): Adjust macro name.
35796         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35797         lstat, stdlib, sys_stat.
35798         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35799         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35800         extensions.
35801         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35802         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35803         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35804         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35805         declaration, if available.
35806         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35807         we can rely on the readlink module.
35808         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35809         (includes): Use <unistd.h> unconditionally.
35810
35811 2009-09-17  Eric Blake  <ebb9@byu.net>
35812
35813         maint: make Include sections of modules consistent
35814         * modules/alloca: Use only header name; no need to list #include.
35815         * modules/alloca-opt: Likewise.
35816         * modules/arpa_inet: Likewise.
35817         * modules/canon-host: Likewise.
35818         * modules/configmake: Likewise.
35819         * modules/dirent: Likewise.
35820         * modules/eealloc: Likewise.
35821         * modules/environ: Likewise.
35822         * modules/fchdir: Likewise.
35823         * modules/fcntl: Likewise.
35824         * modules/fcntl-h: Likewise.
35825         * modules/gethrxtime: Likewise.
35826         * modules/gettime: Likewise.
35827         * modules/ignore-value: Likewise.
35828         * modules/inet_ntop: Likewise.
35829         * modules/inet_pton: Likewise.
35830         * modules/inttypes: Likewise.
35831         * modules/isnand-nolibm: Likewise.
35832         * modules/isnanf-nolibm: Likewise.
35833         * modules/mbchar: Likewise.
35834         * modules/mbfile: Likewise.
35835         * modules/mbiter: Likewise.
35836         * modules/mbuiter: Likewise.
35837         * modules/netdb: Likewise.
35838         * modules/netinet_in: Likewise.
35839         * modules/nproc: Likewise.
35840         * modules/pagealign_alloc: Likewise.
35841         * modules/poll: Likewise.
35842         * modules/printf-frexp: Likewise.
35843         * modules/pthread: Likewise.
35844         * modules/putenv: Likewise.
35845         * modules/random_r: Likewise.
35846         * modules/relocatable-prog: Likewise.
35847         * modules/search: Likewise.
35848         * modules/select: Likewise.
35849         * modules/selinux-h: Likewise.
35850         * modules/settime: Likewise.
35851         * modules/signal: Likewise.
35852         * modules/size_max: Likewise.
35853         * modules/socklen: Likewise.
35854         * modules/ssize_t: Likewise.
35855         * modules/stdarg: Likewise.
35856         * modules/stdbool: Likewise.
35857         * modules/stddef: Likewise.
35858         * modules/stdint: Likewise.
35859         * modules/stdio: Likewise.
35860         * modules/stdlib: Likewise.
35861         * modules/string: Likewise.
35862         * modules/strings: Likewise.
35863         * modules/sys_file: Likewise.
35864         * modules/sys_ioctl: Likewise.
35865         * modules/sys_select: Likewise.
35866         * modules/sys_socket: Likewise.
35867         * modules/sys_stat: Likewise.
35868         * modules/sys_time: Likewise.
35869         * modules/sys_times: Likewise.
35870         * modules/sys_utsname: Likewise.
35871         * modules/sys_wait: Likewise.
35872         * modules/sysexits: Likewise.
35873         * modules/time: Likewise.
35874         * modules/times: Likewise.
35875         * modules/tmpfile: Likewise.
35876         * modules/trim: Likewise.
35877         * modules/unistd: Likewise.
35878         * modules/wchar: Likewise.
35879         * modules/wctype: Likewise.
35880
35881 2009-09-17  Bruno Haible  <bruno@clisp.org>
35882
35883         Make getdate.y compile on QNX and NetBSD 5 / i386.
35884         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35885         TIME_T_FITS_IN_LONG_INT.
35886         * lib/getdate.y (long_time_t): New type.
35887         (relative_time): Change type of 'seconds' field to long_time_t.
35888         (get_date): Update types of local variables. Check against overflow
35889         during conversion from long_time_t to time_t.
35890         Reported by Matt Kraai <kraai@ftbfs.org>
35891         and Hasso Tepper <hasso@netbsd.org>.
35892
35893 2009-09-17  Bruno Haible  <bruno@clisp.org>
35894
35895         * modules/COPYING: Update copyright years.
35896         * modules/README: Likeiwse.
35897         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35898         Reported by Ian Beckwith <ianb@erislabs.net>.
35899
35900 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35901
35902         * users.txt: Update references for gnuit package.
35903
35904 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35905
35906         * m4/getdelim.m4: Fix typo in copyright line.
35907
35908 2009-09-17  Bruno Haible  <bruno@clisp.org>
35909
35910         * lib/atoll.c: Use the standard header with GPL copyright.
35911         * lib/argz.in.h: Likewise.
35912         * lib/glob.c: Likewise.
35913         * lib/glob-libc.h: Likewise.
35914         * lib/random_r.c: Likewise.
35915         * lib/siglist.h: Likewise.
35916         * lib/strsignal.c: Likewise.
35917         Reported by Ian Beckwith <ianb@erislabs.net>.
35918
35919 2009-09-17  Eric Blake  <ebb9@byu.net>
35920
35921         rmdir: ensure correct dependency order
35922         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35923
35924 2009-09-17  Bruno Haible  <bruno@clisp.org>
35925
35926         Disable assertion that fails on NetBSD 5 / i386.
35927         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35928         Reported by Sam Steingold <sds@gnu.org>
35929         and Hasso Tepper <hasso@netbsd.org>.
35930
35931 2009-09-16  Eric Blake  <ebb9@byu.net>
35932
35933         unlinkdir: port to mingw
35934         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35935         on which no one can unlink a directory.
35936
35937         stdlib: sort witness names
35938         * modules/stdlib (Makefile.am): Sort replacements.
35939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35940         * lib/stdlib.in.h: Likewise.
35941
35942         parse-duration-tests: avoid link failure
35943         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35944         LIBINTL.
35945         Reported by Tom G. Christensen.
35946
35947         openat-tests: ensure unlinkat behaves like rmdir
35948         * tests/test-rmdir.c (main): Factor guts...
35949         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35950         * modules/rmdir-tests (Files): Ship new file.
35951         * modules/openat-tests: New test.
35952         * tests/test-unlinkat.c: Likewise.
35953
35954         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35955         * modules/rmdir-errno (Status, Notice): Now obsolete.
35956
35957         rmdir: work around cygwin 1.5.x and mingw bugs
35958         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35959         * lib/rmdir.c (rmdir): Work around it.
35960         * modules/rmdir (Status, Notice): No longer obsolete.
35961         (Files): Add dos.m4.
35962         (Depends-on): Add unistd.
35963         (configure.ac): Set witnesses.
35964         (License): Relax to LGPLv2+.
35965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35966         * modules/unistd (Makefile.am): Substitute witnesses.
35967         * lib/unistd.in.h (rmdir): Declare replacement.
35968         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35969         * modules/rmdir-tests: New tests.
35970         * tests/test-rmdir.c: Likewise.
35971
35972 2009-09-15  Eric Blake  <ebb9@byu.net>
35973
35974         fchdir: improve use of replacement functions
35975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35977         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35978         REPLACE_CLOSEDIR.
35979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35980         * modules/sys_stat (Makefile.am): Substitute correct witness.
35981         * modules/dirent (Makefile.am): Likewise.
35982         * modules/unistd (Makefile.am): Likewise.
35983         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35984         * lib/unistd.in.h (dup): Likewise.
35985         * lib/sys_stat.in.h (fstat): Likewise.
35986
35987         maint: ignore gnulib-tool temp files
35988         * .gitignore: Ignore files created during gnulib-tool --test.
35989
35990 2009-09-13  Jim Meyering  <meyering@redhat.com>
35991
35992         posixtm: don't reject a time that specify "60" as the number of seconds
35993         * lib/posixtm.c (posixtime): The code to reject invalid dates
35994         would also reject a time specified with the .60 suffix.
35995         But POSIX allows that, in order to accommodate leap seconds.
35996         So don't reject it.
35997         (main): Adjust tests accordingly.
35998         * modules/posixtm (Depends-on): Add stpcpy.
35999
36000 2009-09-11  Jim Meyering  <meyering@redhat.com>
36001
36002         announce-gen: include [$release_type] in emitted Subject:
36003         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36004         e.g., [stable] in the emitted Subject: line.
36005
36006 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36007
36008         Remove obsolete macros from several modules.
36009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36010         obsolete Autoconf macros with their modern counterparts.
36011         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36012         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36014         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36015         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36016         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36017         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36018         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36019         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36020         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36021         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36022         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36023         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36024         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36025         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36026         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36027         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36028         * m4/time_r.m4 (gl_TIME_R): Likewise.
36029         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36030         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36031         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36032
36033         Fix copyright header in build-aux scripts.
36034         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36035         recommendation.
36036         * build-aux/ncftpput-ftp: Likewise.
36037         * build-aux/update-copyright: Likewise.
36038
36039 2009-09-09  Eric Blake  <ebb9@byu.net>
36040
36041         test-link: allow Linux choice of errno
36042         * tests/test-link.c (main): Relax test for alternate error.
36043
36044         strndup: fix improper m4 caching
36045         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36046         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36047         (gl_PREREQ_STRNDUP): Delete.
36048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36049         * modules/string (Makefile.am): Substitute it.
36050         * lib/string.in.h (strndup): Modernize prototype.
36051
36052         getcwd: port to mingw
36053         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36054         different from the POSIX assumptions made throughout the getcwd
36055         module; fortunately, the mingw getcwd does not need replacement.
36056         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36057         * modules/getcwd-tests: New test.
36058         * tests/test-getcwd.c: Likewise.
36059
36060         link: fix platform bugs
36061         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36062         * lib/link.c (link): Work around them.  Fix related mingw bug.
36063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36064         * modules/unistd (Makefile.am): Substitute it.
36065         * lib/unistd.in.h (link): Declare replacement.
36066         * doc/posix-functions/link.texi (link): Document this.
36067         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36068
36069         test-link: consolidate into single C program, test more cases
36070         * tests/test-link.sh: Delete.
36071         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36072         at least Cygwin and Solaris.
36073         * modules/link-tests (Files): Remove unused file.
36074         (Depends-on): Add errno, sys_stat.
36075         (Makefile.am): Simplify.
36076
36077 2009-09-08  Bruno Haible  <bruno@clisp.org>
36078
36079         Work around towlower, towupper bug on mingw.
36080         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36081         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36082         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36083         * doc/posix-functions/towupper.texi: Likewise.
36084         Reported by Eric Blake.
36085
36086 2009-09-08  Jim Meyering  <meyering@redhat.com>
36087
36088         build: don't try to run autoheader if we don't use it
36089         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36090         is not used in configure.ac.
36091
36092 2009-09-08  Eric Blake  <ebb9@byu.net>
36093
36094         euidaccess: fix compilation error
36095         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36096
36097         rawmemchr: relax license
36098         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36099         okay.
36100         Reported by Jim Meyering.
36101
36102         mkfifoat: new module
36103         * modules/mkfifoat: New file.
36104         * lib/mkfifoat.c: Likewise.
36105         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36107         * modules/sys_stat (Makefile.am): Use them.
36108         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36109         * MODULES.html.sh (File system functions): Mention module.
36110         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36111         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36112         * modules/mkfifoat-tests: New test.
36113         * tests/test-mkfifoat.c: Likewise.
36114
36115         strchrnul: relax license
36116         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36117         okay.
36118         Reported by Jim Meyering.
36119
36120 2009-09-08  Eric Blake  <ebb9@byu.net>
36121
36122         fstatat: fix compilation on Solaris
36123         * lib/fstatat.c (includes): Add fcntl.h.
36124         Reported by Pádraig Brady.
36125
36126 2009-09-07  Eric Blake  <ebb9@byu.net>
36127
36128         rename: modernize replacement
36129         * modules/rename (Depends-on): Add stdio.
36130         (configure.ac): Declare witness.
36131         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36132         stdio take care of replacement.
36133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36134         * modules/stdio (Makefile.am): Substitute them.
36135         * lib/stdio.in.h (rename): Declare replacement.
36136         * lib/rename.c (includes): Allow cross-compilation to non-windows
36137         machines.
36138         * doc/posix-functions/rename.texi (rename): Improve
36139         documentation.
36140
36141         stdio: sort witness names
36142         * modules/stdio (Makefile.am): Sort replacements.
36143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36144         * lib/stdio.in.h: Likewise.
36145
36146         getcwd: minor cleanups
36147         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36148         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36149
36150         openat: provide more convenience names
36151         * modules/faccessat (configure.ac): Add C witness.
36152         * lib/unistd.in.h (readlinkat): Fix typo.
36153         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36154         convenience wrappers.
36155         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36156         wrappers in syntax checks.
36157
36158 2009-09-06  Eric Blake  <ebb9@byu.net>
36159
36160         doc: fix comments in recent patches
36161         * lib/faccessat.c: Mention correct function.
36162         * lib/fchmodat.c: Likewise.
36163         * lib/fchownat.c: Likewise.
36164         * lib/symlinkat.c: Likewise.
36165         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36166         constants.
36167
36168         faccessat, symlinkat: continue cleanup of previous patch
36169         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36170         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36171         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36173         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36174         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36175         set.
36176
36177 2009-09-06  Bruno Haible  <bruno@clisp.org>
36178
36179         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36180         (fstatat): Declare if GNULIB_FSTATAT is set.
36181         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36182         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36183         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36184         * modules/fcntl-h (Files): Remove m4/openat.m4.
36185         * modules/sys_stat (Files): Remove m4/openat.m4.
36186         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36187         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36188         * modules/unistd (Files): Remove m4/openat.m4.
36189         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36190         GNULIB_OPENAT.
36191         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36192         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36193         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36194         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36195         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36196         gl_OPENAT_DEFAULTS.
36197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36198         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36199         Don't require gl_OPENAT_DEFAULTS.
36200         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36201         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36202         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36203         (gl_OPENAT_DEFAULTS): Remove macro.
36204
36205 2009-09-06  Bruno Haible  <bruno@clisp.org>
36206
36207         * modules/openat (configure.ac): Remove unneeded witness.
36208
36209 2009-09-06  Bruno Haible  <bruno@clisp.org>
36210
36211         Set errno to ENOSYS when a function is entirely unsupported.
36212         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36213         EOPNOTSUPP.
36214         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36215         * modules/chown (Depends-on): Remove errno.
36216
36217 2009-09-06  Bruno Haible  <bruno@clisp.org>
36218
36219         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36220
36221 2009-09-06  Bruno Haible  <bruno@clisp.org>
36222
36223         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36224
36225 2009-09-06  Ben Pfaff  <blp@gnu.org>
36226             Bruno Haible  <bruno@clisp.org>
36227
36228         Work around a glibc bug in strtok_r.
36229         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36230         Undefine if UNDEFINE_STRTOK_R is set.
36231         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36233         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36234         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36235         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36236         UNDEFINE_STRTOK_R.
36237         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36238
36239 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36240
36241         exclude: minor fix
36242         * lib/exclude.c: Include wctype.h
36243
36244 2009-09-06  Akim Demaille  <demaille@gostai.com>
36245
36246         bootstrap: improve error message
36247         * build-aux/bootstrap (find_tool): Upon failure, report the list
36248         of candidates.
36249         Honor the initial value of the envvar.
36250
36251 2009-09-05  Eric Blake  <ebb9@byu.net>
36252
36253         symlinkat: new module
36254         * modules/symlinkat: New file.
36255         * lib/symlinkat.c: Likewise.
36256         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36258         * modules/unistd (Makefile.am): Use them.
36259         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36260         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36261         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36262         * MODULES.html.sh (File system functions): Mention module.
36263         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36264         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36265         * modules/symlinkat-tests: New test.
36266         * tests/test-symlinkat.c: Likewise.
36267
36268         test-openat-safer: add more checks
36269         * tests/test-openat-safer.c (main): Check more code paths.
36270
36271 2009-09-05  Jim Meyering  <meyering@redhat.com>
36272
36273         syntax-check: detect unnecessary inclusion of openat.h
36274         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36275
36276 2009-09-05  Bruno Haible  <bruno@clisp.org>
36277
36278         Support towlower, towupper.
36279         * doc/posix-functions/towlower.texi: Mention module wctype.
36280         * doc/posix-functions/towupper.texi: Likewise.
36281         * lib/wctype.in.h (towlower, towupper): New functions.
36282         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36283         (ASSERT): New macro.
36284         (e): New variable.
36285         (main): Test also towlower, towupper. Test WEOF argument.
36286         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36287
36288 2009-09-05  Bruno Haible  <bruno@clisp.org>
36289
36290         Fix conversion behaviour when the input is invalid.
36291         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36292         mark occurring in first pass of indirect conversion.
36293         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36294         input.
36295         Found by clang's static analyzer.
36296
36297 2009-09-05  Bruno Haible  <bruno@clisp.org>
36298
36299         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36300         where direct conversion is possible.
36301
36302 2009-09-04  Eric Blake  <ebb9@byu.net>
36303
36304         openat: fail with ENOENT on empty name
36305         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36306         buffer.
36307
36308         link-follow: fix logic bug in prior patch
36309         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36310         reversed sense of yes and no in prior patch.  Avoid confusing
36311         compilation failure with desired semantics.
36312
36313         link-follow: accomodate mingw and cross-compilation
36314         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36315         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36316         cross-compilation results to -1, to make linkat easier to
36317         implement when cross-compiling.  Trivially support mingw.
36318         * modules/link-follow (configure.ac): Call new name.
36319         * NEWS: Mention this.
36320
36321 2009-09-03  Eric Blake  <ebb9@byu.net>
36322
36323         faccessat: compile replacement
36324         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36325         needed.
36326
36327         fts: fix compilation error
36328         * lib/fts.c (includes): Re-add "openat.h", for
36329         openat_needs_fchdir.
36330
36331         faccessat: new module
36332         * modules/faccessat: New file.
36333         * lib/faccessat.c: Likewise.
36334         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36336         * modules/unistd (Makefile.am): Use it.
36337         * lib/unistd.in.h (faccessat): Declare it.
36338         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36339         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36340         * MODULES.html.sh (File system functions): Mention it.
36341         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36342         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36343
36344         euidaccess: prefer POSIX over non-standard implementation
36345         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36346         * lib/euidaccess.c (euidaccess): Use it if available.
36347
36348         openat: make template easier to use
36349         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36350         AT_FUNC_F2 to be undefined.
36351         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36352         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36353         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36354         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36355         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36356         Likewise.
36357         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36358         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36359         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36360         Likewise.
36361
36362         openat: declare in POSIX headers
36363         * NEWS: Mention this.
36364         * modules/openat (configure.ac): Declare witnesses.
36365         (Depends-on): Add fcntl-h, sys_stat, unistd.
36366         (Include): Mention correct headers.
36367         * modules/fcntl-h (Depends-on): Add link-warning.
36368         (Files): Add openat.m4.
36369         (Makefile.am): Substitute witnesses.
36370         * modules/sys_stat (Files, Makefile.am): Likewise.
36371         * modules/unistd (Files, Makefile.am): Likewise.
36372         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36373         (gl_OPENAT_DEFAULTS): New macro.
36374         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36377         (SYS_STAT_H): Remove unused variable.
36378         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36379         * lib/fcntl--.h (includes): Remove unneeded header.
36380         * lib/openat-safer.c (includes): Likewise.
36381         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36382         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36383         appropriate headers.
36384         (__OPENAT_PREFIX): Delete.
36385         * lib/fcntl.in.h (openat): Provide declaration.
36386         (AT_FDCWD): Fix Solaris bug.
36387         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36388         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36389         * lib/fchmodat.c (includes):  Adjust to find declaration.
36390         * lib/fchownat.c (includes): Likewise.
36391         * lib/mkdirat.c (includes): Likewise.
36392         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36393         still visible.
36394
36395 2009-09-02  Eric Blake  <ebb9@byu.net>
36396
36397         errno: use consistently
36398         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36399         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36400         * lib/canonicalize.c (ELOOP): Likewise.
36401         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36402         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36403         * lib/lchown.c (EOPNOTSUPP): Likewise.
36404         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36405         * lib/savewd.c (ESTALE): Likewise.
36406         * lib/settime.c (ENOSYS): Likewise.
36407         * lib/utimens.c (ENOSYS): Likewise.
36408         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36409         * lib/chdir-safer.c (ELOOP): Likewise.
36410         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36411         * modules/c-stack (Depends-on): Add errno.
36412         * modules/canonicalize (Depends-on): Likewise.
36413         * modules/chdir-safer (Depends-on): Likewise.
36414         * modules/fdopendir (Depends-on): Likewise.
36415         * modules/inet_ntop (Depends-on): Likewise.
36416         * modules/inet_pton (Depends-on): Likewise.
36417         * modules/lchown (Depends-on): Likewise.
36418         * modules/openat (Depends-on): Likewise.
36419         * modules/savewd (Depends-on): Likewise.
36420         * modules/settime (Depends-on): Likewise.
36421         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36422
36423         fts: avoid leaking fds
36424         * modules/fts (Depends-on): Add cloexec.
36425         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36426         flag.
36427
36428         fts: make directory fds more robust
36429         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36430         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36431
36432         backupfile, chdir-long, fts, savedir: make safer
36433         * lib/backupfile.c (includes): Use "dirent--.h", since
36434         numbered_backup can write to stderr during readdir.
36435         * lib/savedir.c (includes): Likewise.
36436         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36437         emulation can write to stderr on failure.
36438         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36439         * lib/getcwd.c: Document why opendir_safer is unused.
36440         * lib/glob.c: Likewise.
36441         * lib/scandir.c: Likewise.
36442         * lib/openat-proc.c: Likewise, for open_safer.
36443         * modules/backupfile (Depends-on): Add dirent-safer.
36444         * modules/savedir (Depends-on): Likewise.
36445         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36446         * modules/chdir-long (Depends-on): Add openat-safer.
36447
36448         openat-safer: new module
36449         * modules/openat-safer: New file.
36450         * lib/openat-safer.c: Likewise.
36451         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36452         * lib/fcntl-safer.h (openat_safer): Declare.
36453         * lib/fcntl--.h (openat): Override.
36454         * MODULES.html.sh (File descriptor based I/O): Mention it.
36455         * lib/openat.h: Add double-inclusion guards.
36456         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36457         "fcntl--.h", so we can implement openat.
36458         * modules/openat-safer-tests: New test.
36459         * tests/test-openat-safer.c: New file.
36460
36461         dirent-safer: new module
36462         * modules/dirent-safer: New file.
36463         * lib/dirent--.h: Likewise.
36464         * lib/dirent-safer.h: Likewise.
36465         * lib/opendir-safer.c: Likewise.
36466         * m4/dirent-safer.m4: Likewise.
36467         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36468         * modules/dirent-safer-tests: New test.
36469         * tests/test-dirent-safer.c: New file.
36470         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36471
36472         fdopendir: optimize on mingw
36473         * lib/unistd.in.h (_gl_directory_name): New prototype.
36474         * lib/fchdir.c (_gl_directory_name): Implement it.
36475         (fchdir): Use it to simplify implementation.
36476         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36477         fchdir, when available, to avoid calling [f]chdir().
36478
36479         fdopendir: split into its own module
36480         * lib/openat.c (fdopendir): Move...
36481         * lib/fdopendir.c: ...into new file.
36482         * modules/fdopendir: New module.
36483         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36484         * modules/openat (Depends-on): Add fdopendir.
36485         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36486         fdopendir here.
36487         * modules/savedir (Depends-on): Only need fdopendir, not full
36488         openat.
36489         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36490         * lib/openat.h (fdopendir): Drop prototype.
36491         * lib/dirent.in.h (fdopendir): Provide prototype.
36492         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36493         * modules/dirent (Makefile.am): Substitute them.
36494         * MODULES.html.sh (File system functions): Mention it.
36495         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36496         * modules/fdopendir-tests: New file.
36497         * tests/test-fdopendir.c: Likewise.
36498
36499         fchdir: use more consistent macro convention
36500         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36501         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36502         REPLACE_FCHDIR, rather than relying on config.h macros.
36503         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36504         inside a single make-time REPLACE_FCHDIR block, rather than using
36505         the config.h FCHDIR_REPLACEMENT.
36506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36507         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36508         Manage fstat replacement.
36509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36510         REPLACE_FCHDIR.
36511         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36512         (Makefile.am): Substitute REPLACE_FCHDIR.
36513         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36514         FCHDIR_REPLACEMENT.
36515         * lib/dup-safer.c (dup_safer): Likewise.
36516         * lib/dup2.c (rpl_dup2): Likewise.
36517         * lib/dup3.c (rpl_dup3): Likewise.
36518         * lib/open.c (rpl_open): Likewise.
36519
36520         fchdir: simplify error handling, and support dup3
36521         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36522         stdbool, malloc-posix, realloc-posix.
36523         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36524         (ensure_dirs_slot): Return false on allocation failure.
36525         (rpl_dup2): Delete.
36526         (_gl_register_dup): New function.
36527         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36528         (_gl_register_fd): Close fd on allocation failure.
36529         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36530         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36531         prototype.
36532         (rpl_dup2_fchdir): Delete prototype.
36533         * lib/open.c (open): Update caller.
36534         * lib/dup2.c (dup2): Track fchdir metadata.
36535         * lib/dup3.c (dup3): Likewise.
36536         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36538
36539 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36540
36541         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36542         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36543         don't pass arguments to AC_OUTPUT.
36544
36545 2009-09-02  Bruno Haible  <bruno@clisp.org>
36546
36547         * modules/mkdtemp (License): Relicense under LGPLv2+.
36548         Reported by Paolo Bonzini.
36549
36550 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36551
36552         Replace uses of obsolete autoconf macros in Jim's modules.
36553         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36554         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36555         can evoke a warning from autoconf when run with -Wobsolete
36556         enabled.  They were declared obsolete for good reasons (see
36557         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36558         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36559         should not continue using the deprecated macros.
36560         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36561         obsolete Autoconf macros with modern counterparts.
36562         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36563         * m4/dos.m4 (gl_AC_DOS): Likewise.
36564         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36565         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36566         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36567         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36568         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36569         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36570         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36571         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36572         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36573         Likewise.
36574         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36575         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36576         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36577         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36578         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36579         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36580
36581 2009-09-01  Eric Blake  <ebb9@byu.net>
36582
36583         fchdir: fix off-by-one bug in previous patch
36584         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36585         (_gl_unregister_fd): Delete useless if.
36586
36587 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36588
36589         maint.mk: sort the list of syntax-check rules
36590         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36591         easier to get a sense of progress when the rules are run sequentially
36592         and take a long time.
36593
36594 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36595
36596         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36597         * modules/netinet_in: Likewise.
36598         * modules/sys_file: Likewise.
36599         * modules/sys_ioctl: Likewise.
36600         * modules/sys_select: Likewise.
36601         * modules/sys_socket: Likewise.
36602         * modules/sys_stat: Likewise.
36603         * modules/sys_time: Likewise.
36604         * modules/sys_times: Likewise.
36605         * modules/sys_utsname: Likewise.
36606         * modules/sys_wait: Likewise.
36607
36608 2009-09-01  Jim Meyering  <meyering@redhat.com>
36609
36610         fts: help ensure that return values are not ignored
36611         * lib/fts_.h (__GNUC_PREREQ): Define.
36612         (__attribute_warn_unused_result__): Define.
36613         (fts_children, fts_close, fts_open, fts_read): Declare with
36614         __attribute_warn_unused_result__.
36615
36616         fts: fts_close now fails also when closing a dir file descriptor fails
36617         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36618         and propagate to caller, along with errno.
36619
36620         announce-gen: correct formatting in --help output
36621         * build-aux/announce-gen (usage): Move the one-line description in
36622         --help output "up", to where it belongs, just after Usage:.
36623
36624 2009-08-31  Eric Blake  <ebb9@byu.net>
36625
36626         fchdir: port to mingw
36627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36628         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36629         opened, then use a substitute.
36630         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36631         replacement.
36632         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36633         (_gl_register_fd): No need to check stat if open already filters
36634         all directories.
36635         (fchdir): Fix error condition to match POSIX.
36636         * modules/fchdir (Depends-on): Add sys_stat.
36637         * doc/posix-functions/open.texi (open): Document the limitation.
36638         * modules/fchdir-tests: New file.
36639         * tests/test-fchdir.c: Likewise.
36640
36641         canonicalize: allow cross-testing from cygwin to mingw
36642         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36643         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36644         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36645         Likewise.
36646         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36647         target does not support symlinks.
36648         * tests/test-canonicalize-lgpl.sh: Likewise.
36649
36650         chown: avoid compilation warning on mingw
36651         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36652         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36653         mingw.
36654         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36655         * modules/chown (Depends-on): Add errno.
36656
36657 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36658
36659         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36660         command.
36661
36662 2009-08-31  Jim Meyering  <meyering@redhat.com>
36663
36664         canonicalize: remove useless initialization
36665         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36666         initialization of local, "end".
36667
36668 2009-08-30  Bruno Haible  <bruno@clisp.org>
36669
36670         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36671         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36672         ENOSYS.
36673
36674 2009-08-30  Bruno Haible  <bruno@clisp.org>
36675
36676         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36677         /usr/xpg4/bin/tr when it exists.
36678         * tests/test-pipe-filter-gi1.sh: Likewise.
36679
36680 2009-08-30  Bruno Haible  <bruno@clisp.org>
36681
36682         Work around deficient /usr/bin/id program on Solaris.
36683         * tests/test-file-has-acl.sh (ID): New variable.
36684         * tests/test-set-mode-acl.sh (ID): Likewise.
36685         * tests/test-copy-acl.sh (ID): Likewise.
36686         * tests/test-copy-file.sh (ID): Likewise.
36687
36688 2009-08-30  Bruno Haible  <bruno@clisp.org>
36689
36690         New module 'xstriconveh'.
36691         * lib/xstriconveh.h: New file.
36692         * lib/xstriconveh.c: New file.
36693         * modules/xstriconveh: New file.
36694
36695 2009-08-30  Bruno Haible  <bruno@clisp.org>
36696
36697         Make it easier to use mem_cd_iconveh.
36698         * lib/striconveh.h (iconveh_t): New type.
36699         (iconveh_open, iconveh_close): New declarations.
36700         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36701         with a single 'const iconveh_t *' argument.
36702         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36703         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36704         with a single 'const iconveh_t *' argument.
36705         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36706         * tests/test-striconveh.c (main): Update.
36707         * NEWS: Mention the change.
36708
36709 2009-08-30  Bruno Haible  <bruno@clisp.org>
36710
36711         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36712         problem.
36713
36714 2009-08-30  Bruno Haible  <bruno@clisp.org>
36715
36716         Work around iconv_open problem on Solaris.
36717         * lib/iconv_open-solaris.gperf: New file.
36718         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36719         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36720         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36721         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36722         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36723         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36724
36725 2009-08-29  Jim Meyering  <meyering@redhat.com>
36726
36727         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36728         * top/maint.mk (cvs-check): Remove target; it was just an alias
36729         to the better-named vc-diff-check.
36730         (maintainer-distcheck): Remove rule.  It was used only from
36731         the (alpha/beta/major) target, and all of its commands but one
36732         were coreutils-specific.
36733         (vc-dist): Remove rule.
36734         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36735         Run vc-diff-check, not vc-dist.
36736         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36737
36738 2009-08-27  Bruno Haible  <bruno@clisp.org>
36739
36740         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36741         of 0.
36742
36743 2009-08-27  Bruno Haible  <bruno@clisp.org>
36744
36745         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36746         compilers.
36747         * doc/func.texi: Document the SunPRO C bug.
36748
36749 2009-08-27  Bruno Haible  <bruno@clisp.org>
36750
36751         Fix link error on Solaris.
36752         * tests/test-parse-duration.c (xstrdup): Remove function.
36753
36754 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36755
36756         ignore-value: handle pointer types, too
36757         * lib/ignore-value.h (__attribute__): Remove definition.
36758         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36759         of a more concise and more-often effective "(void) i" statement.
36760         (ignore_ptr): New function to suppress warnings from functions that
36761         return pointers, and to make it explicit that one function doesn't
36762         handle all cases.
36763
36764 2009-08-25  Bruno Haible  <bruno@clisp.org>
36765
36766         dup2: work around a Linux bug.
36767         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36768         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36769         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36770         Reported by Simon Josefsson.
36771
36772 2009-08-25  Jim Meyering  <meyering@redhat.com>
36773
36774         libguestfs uses gnulib
36775         * users.txt: Add libguestfs.
36776
36777 2009-08-24  Eric Blake  <ebb9@byu.net>
36778
36779         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36780         * lib/pipe2.c (includes): Add binary-io.h.
36781         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36782
36783 2009-08-24  Bruno Haible  <bruno@clisp.org>
36784
36785         Tolerate declared but missing accept4 syscall.
36786         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36787         available.
36788         * lib/sys_socket.in.h (accept4): If the function is already present,
36789         override it.
36790         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36791         * modules/accept4 (Makefile.am): Compile accept4.c always.
36792         Reported by Paolo Bonzini and Eric Blake.
36793
36794 2009-08-23  Bruno Haible  <bruno@clisp.org>
36795
36796         New module 'accept4'.
36797         * lib/sys_socket.in.h (accept4): New declaration.
36798         * lib/accept4.c: New file.
36799         * m4/accept4.m4: New file.
36800         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36801         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36802         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36803         HAVE_ACCEPT4.
36804         * modules/accept4: New file.
36805         * doc/glibc-functions/accept4.texi: Mention the new module.
36806
36807 2009-08-24  Jim Meyering  <meyering@redhat.com>
36808
36809         progname: also set global program_invocation_name, when possible
36810         Before this change, a libtool-enabled program that calls glibc's
36811         error function would report the program name as
36812         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36813         * modules/progname (configure.ac): Check for a declaration of
36814         program_invocation_name.
36815         * lib/progname.c:  Include <errno.h>.
36816         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36817         Set program_invocation_name.
36818
36819 2009-08-23  Bruno Haible  <bruno@clisp.org>
36820
36821         * lib/dup3.c: Include <string.h>.
36822
36823 2009-08-23  Bruno Haible  <bruno@clisp.org>
36824
36825         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36826         * lib/pipe2.c (pipe2): Likewise.
36827         Suggested by Eric Blake.
36828
36829 2009-08-23  Bruno Haible  <bruno@clisp.org>
36830
36831         Tolerate declared but missing dup3 syscall.
36832         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36833         * lib/unistd.in.h (dup3): If the function is already present,
36834         override it.
36835         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36836         * modules/dup3 (Makefile.am): Compile dup3.c always.
36837         Reported by Paolo Bonzini.
36838
36839 2009-08-23  Bruno Haible  <bruno@clisp.org>
36840
36841         Tolerate declared but missing pipe2 syscall.
36842         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36843         available.
36844         * lib/unistd.in.h (pipe2): If the function is already present,
36845         override it.
36846         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36847         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36848         Reported by Paolo Bonzini.
36849
36850 2009-08-23  Bruno Haible  <bruno@clisp.org>
36851
36852         * lib/pipe2.c (pipe2): Move #ifs inside function.
36853
36854 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36855
36856         quotearg: document limitations of quote_these_too
36857         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36858         those limitations are created.
36859         * lib/quotearg.h (set_char_quoting): Document that digits and
36860         letters that are special after backslash are not permitted.
36861         (quotearg_char): Cross-reference set_char_quoting documentation.
36862
36863 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36864
36865         quotearg: implement custom_quoting_style
36866         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36867         right_quote fields.
36868         (set_custom_quoting): New public function.
36869         (quotearg_buffer_restyled): Add left_quote and right_quote
36870         arguments, handle them very much like locale quoting, and update
36871         all uses.
36872         (quotearg_n_custom): New public function.
36873         (quotearg_n_custom_mem): New public function.
36874         (quotearg_custom): New public function.
36875         (quotearg_custom_mem): New public function.
36876         * lib/quotearg.h: Prototype and document new public functions.
36877         (enum quoting_style): For escape_quoting_style and
36878         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36879         ignored even though they're otherwise like c_quoting_style.
36880         Add custom_quoting_style member and document with comparison to
36881         clocale_quoting_style.
36882         * tests/test-quotearg.c (custom_quotes): New array.
36883         (custom_results): New array.
36884         (main): Extend to test custom quoting.
36885
36886 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36887
36888         quotearg: fix right quote escaping when it's in quote_these_too
36889         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36890         quote, be sure to prepend only one backslash.
36891         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36892         (main): Test it.
36893
36894 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36895
36896         quotearg-tests: test escaping of embedded locale quotes
36897         * tests/test-quotearg.c (struct result_strings): Add member for
36898         new input.
36899         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36900         (inputs): Add new input.
36901         (results_g): Add expected results.
36902         (flag_results): Likewise.
36903         (locale_results): Likewise.
36904         (compare_strings): Check those.
36905
36906 2009-08-23  Bruno Haible  <bruno@clisp.org>
36907
36908         Tests for module 'dup3'.
36909         * modules/dup3-tests: New file.
36910         * tests/test-dup3.c: New file.
36911
36912         New module 'dup3'.
36913         * lib/unistd.in.h (dup3): New declaration.
36914         * lib/dup3.c: New file.
36915         * m4/dup3.m4: New file.
36916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36917         HAVE_DUP3.
36918         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36919         * modules/dup3: New file.
36920         * doc/glibc-functions/dup3.texi: Mention the new module.
36921
36922 2009-08-23  Bruno Haible  <bruno@clisp.org>
36923
36924         Tweak the dup2 test.
36925         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36926         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36927         the test file is still empty. Fix argument order of lseek.
36928
36929 2009-08-23  Bruno Haible  <bruno@clisp.org>
36930
36931         Avoid test link errors when the modules getopt-gnu, gettext are used.
36932         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36934
36935 2009-08-23  Bruno Haible  <bruno@clisp.org>
36936
36937         Fix getdtablesize() on mingw.
36938         * lib/getdtablesize.c (getdtablesize): Implement differently.
36939         * lib/unistd.in.h (getdtablesize): Improve comment.
36940
36941 2009-08-23  Bruno Haible  <bruno@clisp.org>
36942
36943         New module 'mkostemp'.
36944         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36945         * lib/stdlib.in.h (mksotemp): New declaration.
36946         * lib/mkostemp.c: New file, from glibc with modifications.
36947         * lib/tempname.h (GT_FILE): Remove outdated comment.
36948         (gen_tempname): Add flags argument.
36949         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36950         (__GT_FILE): Map to 1.
36951         (small_open, large_open): Remove macros.
36952         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36953         * lib/mkstemp.c (mkstemp): Update.
36954         * lib/mkdtemp.c (mkdtemp): Likewise.
36955         * m4/mkostemp.m4: New file.
36956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36957         HAVE_MKOSTEMP.
36958         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36959         HAVE_MKOSTEMP.
36960         * modules/mkostemp: New file, based on modules/mkstemp.
36961         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36962         * NEWS: Mention the change.
36963
36964 2009-08-23  Bruno Haible  <bruno@clisp.org>
36965
36966         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36967         Reported by Eric Blake.
36968
36969 2009-08-23  Bruno Haible  <bruno@clisp.org>
36970
36971         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36972         Reported by Eric Blake.
36973
36974 2009-08-23  Bruno Haible  <bruno@clisp.org>
36975
36976         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36977         * modules/pipe2 (Depends-on): Likewise.
36978
36979 2009-08-23  Eric Blake  <ebb9@byu.net>
36980
36981         fcntl-h: add O_TTY_INIT support
36982         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36983         * tests/test-fcntl-h.c (o): Test it.
36984         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36985
36986         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36987         * modules/fcntl: Move <fcntl.h> header replacement...
36988         * modules/fcntl-h: ...to new name, so as not to collide with
36989         like-named function.
36990         * tests/test-fcntl.c: Rename...
36991         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36992         * modules/fcntl-tests: Rename...
36993         * modules/fcntl-h-tests: ...to this.  Update test file name.
36994         * modules/chdir-long (Depends-on): Update clients.
36995         * modules/chdir-safer (Depends-on): Likewise.
36996         * modules/fcntl-safer (Depends-on): Likewise.
36997         * modules/fts (Depends-on): Likewise.
36998         * modules/mkancesdirs (Depends-on): Likewise.
36999         * modules/mkdir-p (Depends-on): Likewise.
37000         * modules/open (Depends-on): Likewise.
37001         * modules/savewd (Depends-on): Likewise.
37002         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37003         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37004
37005 2009-08-22  Bruno Haible  <bruno@clisp.org>
37006
37007         * modules/binary-io (License): Relicense under LGPL.
37008         * modules/pipe2 (License): Likewise.
37009
37010 2009-08-22  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37013         return value.
37014         * lib/pipe-filter-gi.c (filter_init): Likewise.
37015         Reported by Eric Blake.
37016
37017 2009-08-22  Bruno Haible  <bruno@clisp.org>
37018
37019         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37020         * modules/pipe (Depends-on): Add pipe2.
37021
37022 2009-08-22  Bruno Haible  <bruno@clisp.org>
37023
37024         Tests for module 'pipe2'.
37025         * modules/pipe2-tests: New file.
37026         * tests/test-pipe2.c: New file.
37027
37028         New module 'pipe2'.
37029         * lib/unistd.in.h (pipe2): New declaration.
37030         * lib/pipe2.c: New file.
37031         * m4/pipe2.m4: New file.
37032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37033         HAVE_PIPE2.
37034         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37035         * modules/pipe2: New file.
37036         * doc/glibc-functions/pipe2.texi: Mention the new module.
37037
37038 2009-08-22  Bruno Haible  <bruno@clisp.org>
37039
37040         Reference some new glibc functions.
37041         * doc/glibc-functions/accept4.texi: New file.
37042         * doc/glibc-functions/dup3.texi: New file.
37043         * doc/glibc-functions/mkostemp.texi: New file.
37044         * doc/glibc-functions/pipe2.texi: New file.
37045         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37046         (Glibc sys/socket.h): Refer to accept4.
37047         (Glibc unistd.h): Refer to dup3, pipe2.
37048         Reported by Eric Blake.
37049
37050 2009-08-22  Jim Meyering  <meyering@redhat.com>
37051             Bruno Haible  <bruno@clisp.org>
37052
37053         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37054         This makes it so packages using automake-1.11's silent-rules option
37055         can print e.g., a single "GEN    configmake.h" line, rather than
37056         the 30+ statements that perform the job.  If you want to see the
37057         actual commands, you can still run "make V=1".
37058         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37059         so that make output is abbreviated when those variables are defined
37060         appropriately.
37061         * modules/argz: Likewise.
37062         * modules/arpa_inet: Likewise.
37063         * modules/byteswap: Likewise.
37064         * modules/configmake: Likewise.
37065         * modules/dirent: Likewise.
37066         * modules/errno: Likewise.
37067         * modules/fcntl: Likewise.
37068         * modules/float: Likewise.
37069         * modules/fnmatch: Likewise.
37070         * modules/getopt-posix: Likewise.
37071         * modules/glob: Likewise.
37072         * modules/iconv_open: Likewise.
37073         * modules/inttypes: Likewise.
37074         * modules/localcharset: Likewise.
37075         * modules/locale: Likewise.
37076         * modules/math: Likewise.
37077         * modules/netdb: Likewise.
37078         * modules/netinet_in: Likewise.
37079         * modules/poll: Likewise.
37080         * modules/posix_spawnp-tests: Likewise.
37081         * modules/sched: Likewise.
37082         * modules/search: Likewise.
37083         * modules/selinux-h: Likewise.
37084         * modules/signal: Likewise.
37085         * modules/spawn: Likewise.
37086         * modules/stdarg: Likewise.
37087         * modules/stdbool: Likewise.
37088         * modules/stddef: Likewise.
37089         * modules/stdint: Likewise.
37090         * modules/stdio: Likewise.
37091         * modules/stdlib: Likewise.
37092         * modules/string: Likewise.
37093         * modules/strings: Likewise.
37094         * modules/sys_file: Likewise.
37095         * modules/sys_ioctl: Likewise.
37096         * modules/sys_select: Likewise.
37097         * modules/sys_socket: Likewise.
37098         * modules/sys_stat: Likewise.
37099         * modules/sys_time: Likewise.
37100         * modules/sys_times: Likewise.
37101         * modules/sys_utsname: Likewise.
37102         * modules/sys_wait: Likewise.
37103         * modules/sysexits: Likewise.
37104         * modules/time: Likewise.
37105         * modules/unistd: Likewise.
37106         * modules/wchar: Likewise.
37107         * modules/wctype: Likewise.
37108
37109 2009-08-22  Jim Meyering  <meyering@redhat.com>
37110
37111         announce-gen: detect write failure
37112         * build-aux/announce-gen: Add Coda at end.
37113         Remove equivalent-but-more-verbose block at top.
37114
37115 2009-08-19  Akim Demaille  <demaille@gostai.com>
37116
37117         bootstrap: --help to stdout.
37118         * bootstrap (usage): Don't send --help to stderr.
37119         Use a here doc instead of a long string.
37120
37121 2009-08-21  Eric Blake  <ebb9@byu.net>
37122
37123         test-popen-safer: split from test-popen
37124         * tests/test-popen.c (main): Move...
37125         * tests/test-popen.h: ...into new file.
37126         * tests/test-popen-safer2.c: New file.
37127         * modules/popen-tests (Files): Add test-popen.h.
37128         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37129         Suggested by Bruno Haible.
37130
37131         test-fcntl-safer: split from test-open
37132         * tests/test-open.c (main): Move...
37133         * tests/test-open.h: ...into new file.
37134         * tests/test-fcntl-safer.c: New file.
37135         * modules/open-tests (Files): Add test-open.h.
37136         * modules/fcntl-safer-tests: New file.
37137         Suggested by Bruno Haible.
37138
37139         test-fopen-safer: split from test-fopen
37140         * tests/test-fopen.c (main): Move...
37141         * tests/test-fopen.h: ...into new file.
37142         * tests/test-fopen-safer.c: New file.
37143         * modules/fopen-tests (Files): Add test-fopen.h.
37144         * modules/fopen-safer-tests: New file.
37145         Suggested by Bruno Haible.
37146
37147 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37148
37149         popen-safer: test O_CLOEXEC at run-time.
37150         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37151
37152 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37153
37154         fcntl: move more flags to the header
37155         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37156         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37157         * lib/fcntl.in.h: Do both things here.
37158
37159 2009-08-21  Jim Meyering  <meyering@redhat.com>
37160
37161         consistently remove $@-t before redirecting to it
37162         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37163         * modules/alloca-opt: Likewise.
37164         * modules/byteswap: Likewise.
37165         * modules/fnmatch: Likewise.
37166         * modules/getopt-posix: Likewise.
37167         * modules/glob: Likewise.
37168         * modules/poll: Likewise.
37169         * modules/posix_spawnp-tests: Likewise.
37170         * modules/sys_socket: Likewise.
37171         * modules/sysexits: Likewise.
37172
37173 2009-08-21  Eric Blake  <ebb9@byu.net>
37174
37175         popen: simplify access to original popen
37176         * lib/popen.c (rpl_popen): No need to worry about popen being a
37177         macro.
37178         Reported by Bruno Haible.
37179
37180 2009-08-20  Eric Blake  <ebb9@byu.net>
37181
37182         build: avoid some compiler warnings
37183         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37184         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37185         type.
37186         (new_exclude_segment, excluded_file_pattern_p)
37187         (excluded_file_name_p): Reduce scope.
37188         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37189         old-style declaration.
37190
37191 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37192
37193         * tests/test-exclude1.sh: Handle Windows EOL.
37194         * tests/test-exclude2.sh: Likewise.
37195         * tests/test-exclude3.sh: Likewise.
37196         * tests/test-exclude4.sh: Likewise.
37197         * tests/test-exclude5.sh: Likewise.
37198         * tests/test-exclude6.sh: Likewise.
37199         * tests/test-exclude7.sh: Likewise.
37200
37201 2009-08-19  Akim Demaille  <demaille@gostai.com>
37202
37203         bootstrap: find sha1sum when named gsha1sum.
37204         * bootstrap (find_tool): New.
37205         ($SHA1SUM): New.
37206         Use it.
37207
37208 2009-08-20  Jim Meyering  <meyering@redhat.com>
37209
37210         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37211         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37212         expression that converts "." in a file name to "\." in the resulting
37213         regexp.  Start with a dummy statement, so that prior shell variable
37214         definitions are expanded portably.  Reported by Simon Josefsson.
37215
37216 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37217
37218         Fix polling for writeability of a screen buffer.
37219         * lib/poll.c: Distinguish input and screen buffers for the
37220         Win32 implementation.
37221         * lib/select.c: Likewise.
37222
37223 2009-08-19  Eric Blake  <ebb9@byu.net>
37224
37225         popen-safer: prevent popen from clobbering std descriptors
37226         * modules/popen-safer: New file.
37227         * lib/popen-safer.c: Likewise.
37228         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37229         * lib/stdio--.h (popen): Provide override.
37230         * lib/stdio-safer.h (popen_safer): Provide declaration.
37231         * tests/test-popen.c (includes): Partially test this.
37232         * modules/popen-safer-tests: New file, for more tests.
37233         * tests/test-popen-safer.c: Likewise.
37234         * MODULES.html.sh (file stream based Input/Output): Mention it.
37235
37236         tests: test some of the *-safer modules
37237         * modules/fopen-safer (Depends-on): Add fopen.
37238         * modules/fcntl-safer (Depends-on): Add fcntl.
37239         * modules/stdlib-safer (Depends-on): Add stdlib.
37240         (configure.ac): Set indicator.
37241         * modules/unistd-safer (configure.ac): Likewise.
37242         * modules/tmpfile-safer (configure.ac): Likewise.
37243         (Depends-on): Add tmpfile.
37244         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37245         active.
37246         * tests/test-fopen.c (includes): Test safer versions when they are
37247         in use.
37248         * tests/test-open.c (includes): Likewise.
37249
37250         popen: fix cygwin 1.5 bug when stdin closed
37251         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37252         * modules/popen: New file.
37253         * modules/popen-tests: Likewise.
37254         * tests/test-popen.c: Likewise.
37255         * m4/popen.m4: Likewise.
37256         * lib/popen.c: Likewise.
37257         * lib/stdio.in.h (popen): New declaration.
37258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37259         * modules/stdio (Makefile.am): Likewise.
37260         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37261
37262 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37263
37264         maint.mk: give full control over update-copyright exclusions
37265         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37266         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37267         (update-copyright): Don't force inclusion of top-level
37268         ChangeLog.  Don't force exclusion of all COPYING files, but make
37269         them the default exclusion instead.
37270
37271 2009-08-16  Bruno Haible  <bruno@clisp.org>
37272
37273         Fix test failures on Solaris 10.
37274         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37275         tests when Solaris iconv() is used.
37276         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37277         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37278         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37279         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37280         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37281
37282 2009-08-16  Bruno Haible  <bruno@clisp.org>
37283
37284         Fix test failures on Solaris 10.
37285         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37286         'tr' program and pass it as first argument.
37287         * tests/test-pipe-filter-gi1.sh: Likewise.
37288         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37289         program as first argument.
37290         * tests/test-pipe-filter-gi1.c (main): Likewise.
37291
37292 2009-08-16  Eric Blake  <ebb9@byu.net>
37293
37294         fpurge: fix previous commits
37295         * modules/fpurge (Makefile.am): Make replacement conditional,
37296         partially reverting 2007-04-29 change; missed in previous
37297         attempt.
37298         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37299         is missing.
37300
37301 2009-08-16  Bruno Haible  <bruno@clisp.org>
37302
37303         Clarify fpurge's effect on the file position.
37304         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37305         * tests/test-fpurge.c (main): Make a second pass for checking the file
37306         position.
37307
37308 2009-08-16  Bruno Haible  <bruno@clisp.org>
37309
37310         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37311         declaration of fpurge is missing.
37312         * tests/test-fpurge.c (main): Check that the file has not more contents
37313         than expected. Close the file before removing it.
37314
37315 2009-08-15  Eric Blake  <ebb9@byu.net>
37316
37317         fpurge: don't wrap working cygwin implementation
37318         * lib/fpurge.c (fpurge): Fix comment typo.
37319         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37320         1.7 to avoid replacement.
37321         * tests/test-fpurge.c (main): Enhance test.
37322
37323 2009-08-15  Eric Blake  <ebb9@byu.net>
37324         and Jim Meyering  <meyering@redhat.com>
37325
37326         test-update-copyright: skip if perl is insufficient
37327         * tests/test-update-copyright.sh: Failure to run maintainer tool
37328         should not cause testsuite failure on cygwin 1.5.
37329
37330 2009-08-14  Eric Blake  <ebb9@byu.net>
37331
37332         doc: mention more functions added in cygwin 1.7.0
37333         * doc/posix-headers/limits.texi (limits.h): Update for recent
37334         cygwin additions.
37335         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37336         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37337         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37338         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37339         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37340
37341 2009-08-14  Eric Blake  <ebb9@byu.net>
37342
37343         maint.mk: simplify update-copyright rule
37344         * top/maint.mk (update-copyright-local): Delete, and document how
37345         to do it in cfg.mk instead.
37346         (update-copyright-exclude-regexp): Delete, and document how to do
37347         it in .x-update-copyright instead.
37348         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37349         exclude ChangeLog.
37350
37351 2009-08-14  Bruno Haible  <bruno@clisp.org>
37352
37353         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37354
37355 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37356
37357         maint.mk: support update-copyright-env
37358         * top/maint.mk (update-copyright-env): Define place-holder.
37359         (update-copyright): Expand $(update-copyright-env) before
37360         invoking update-copyright.
37361
37362 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37363
37364         update-copyright: implement forced reformatting
37365         * build-aux/update-copyright: Implement and document
37366         UPDATE_COPYRIGHT_FORCE.
37367         * tests/test-update-copyright.sh: Test it.
37368
37369 2009-08-14  Eric Blake  <ebb9@byu.net>
37370         and Bruno Haible  <bruno@clisp.org>
37371
37372         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37373         * tests/test-locale.c: Revert previous patch related to NULL.
37374         * tests/test-stdio.c: Likewise.
37375         * tests/test-stdlib.c: Likewise.
37376         * tests/test-string.c: Likewise.
37377         * tests/test-unistd.c: Likewise.
37378         * modules/time-tests (Depends-on): Add verify.
37379         * modules/wchar-tests (Depends-on): Likewise.
37380         * tests/test-time.c: Test for NULL compliance.
37381         * tests/test-wchar.c: Likewise.
37382         * modules/locale (Depends-on): Add stddef.
37383         * modules/stdio (Depends-on): Likewise.
37384         * modules/stdlib (Depends-on): Likewise.
37385         * modules/string (Depends-on): Likewise.
37386         * modules/time (Depends-on): Likewise.
37387         * modules/unistd (Depends-on): Likewise.
37388         * modules/wchar (Depends-on): Likewise.
37389         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37390         * lib/stdlib.in.h (includes): Likewise.
37391         * lib/string.in.h (includes): Likewise.
37392         * lib/time.in.h (includes): Likewise.
37393         * lib/unistd.in.h (includes): Likewise.
37394         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37395         replaced.
37396         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37397         * m4/stddef_h.m4: New file.
37398         * modules/stddef: Likewise.
37399         * lib/stddef.in.h: Likewise.
37400         * modules/stddef-tests: Likewise.
37401         * tests/test-stddef.c: Likewise.
37402         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37403         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37404         * doc/posix-headers/locale.texi (locale.h): Likewise.
37405         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37406         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37407         * doc/posix-headers/string.texi (string.h): Likewise.
37408         * doc/posix-headers/time.texi (time.h): Likewise.
37409         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37410         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37411
37412 2009-08-14  Eric Blake  <ebb9@byu.net>
37413
37414         doc: improve git diff of texinfo files
37415         * .gitattributes: Add rule for *.texi files, with hint on how to
37416         use it.
37417         Copied from m4, and based on a report by Bruno Haible.
37418
37419 2009-08-14  Bruno Haible  <bruno@clisp.org>
37420
37421         Disable multithread support by default on Cygwin 1.5.x for real.
37422         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37423
37424 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37425
37426         update-copyright: much ado about intervals
37427         * build-aux/update-copyright: Implement and document
37428         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37429         of copyright year intervals.
37430         Also, document UPDATE_COPYRIGHT_YEAR.
37431         * tests/test-update-copyright.sh: Test it.
37432
37433         update-copyright: convert 2-digit to 4-digit years
37434         * build-aux/update-copyright: Implement and document.
37435         * tests/test-update-copyright.sh: Update.
37436
37437 2009-08-14  Jim Meyering  <meyering@redhat.com>
37438
37439         test-exclude: avoid coreutils "make check" failure
37440         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37441         just as in test-argmatch.c.
37442
37443 2009-08-13  Eric Blake  <ebb9@byu.net>
37444
37445         test-dup2: fix bad assumption
37446         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37447         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37448
37449         test-version-etc: fix CRLF portability issue
37450         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37451         recognize \r.
37452         * tests/test-argp-version-etc-1.sh: Likewise.
37453
37454         getopt: update client modules
37455         * modules/argp (Depends-on): Use getopt-gnu.
37456         * modules/git-merge-changelog (Depends-on): Likewise.
37457         * modules/long-options (Depends-on): Likewise.
37458         * modules/xstrtol (Depends-on): Likewise.
37459
37460 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37461
37462         * tests/test-version-etc.sh: Don't fail on different
37463         project/version.  Don't fail on CRLF differences.  Rewrite to use
37464         multiple -e instead of multiple sed forks, suggested by Eric Blake
37465         <ebb9@byu.net>.
37466         * tests/test-argp-version-etc-1.sh: Likewise.
37467
37468 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37469
37470         * tests/test-version-etc.sh: Don't fail on different
37471         project/version.
37472
37473 2009-08-12  Bruno Haible  <bruno@clisp.org>
37474
37475         Tests for modules 'getopt-posix', 'getopt-gnu'.
37476         * modules/getopt-posix-tests: New file.
37477         * tests/test-getopt.c: New file.
37478         * tests/test-getopt.h: New file.
37479         * tests/test-getopt_long.h: New file.
37480
37481         New modules 'getopt-posix', 'getopt-gnu'.
37482         * modules/getopt-gnu: New file, renamed from modules/getopt.
37483         * modules/getopt-posix: New file.
37484         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37485         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37486         (gl_GETOPT): Remove macro.
37487         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37488         Disable the test against BSD systems that declare optreset. Test
37489         against mingw bug. Test against lack of support of optional arguments
37490         on many platforms.
37491         * doc/glibc-headers/getopt.texi: Update module name and list of
37492         relevant platforms.
37493         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37494         'getopt-gnu' and more portability problems.
37495         * NEWS: Mention the changes.
37496
37497 2009-08-12  Bruno Haible  <bruno@clisp.org>
37498
37499         Ensure that optarg etc. get declared by <unistd.h>.
37500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37501         AC_USE_SYSTEM_EXTENSIONS.
37502         * modules/getopt (Depends-on): Add 'extensions'.
37503
37504 2009-08-12  Bruno Haible  <bruno@clisp.org>
37505
37506         Avoid test link errors.
37507         * modules/pipe-filter-ii-tests (Makefile.am): Define
37508         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37509         * modules/pipe-filter-gi-tests (Makefile.am): Define
37510         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37512
37513 2009-08-12  Bruno Haible  <bruno@clisp.org>
37514
37515         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37516         gl_GETOPT_SUBSTITUTE before.
37517         (gl_GETOPT): Use it.
37518         * m4/argp.m4 (gl_ARGP): Update.
37519         Reported by Sergey Poznyakoff.
37520
37521         * m4/getopt.m4: Reorder macros.
37522         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37523         (gl_GETOPT_SUBSTITUTE): Remove macro.
37524
37525 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37526
37527         Minor improvement in gitlog-to-changelog
37528
37529         * build-aux/gitlog-to-changelog: New option `--format' makes
37530         output format string configurable.
37531
37532 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37533
37534         Optimize exclude: use hash tables for non-wildcard patterns.
37535
37536         * lib/exclude.c: Include hash.h and mbuiter.h
37537         (struct exclude_pattern, exclude_segment): New data types.
37538         (struct exclude): Rewrite.
37539         (fnmatch_pattern_has_wildcards): New function.
37540         (new_exclude_segment, free_exclude_segment): New functions.
37541         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37542         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37543         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37544         * modules/exclude: Depend on hash and mbuiter.
37545
37546         * modules/exclude-tests: New file.
37547         * tests/test-exclude.c: New file.
37548         * tests/test-exclude1.sh: New file.
37549         * tests/test-exclude2.sh: New file.
37550         * tests/test-exclude3.sh: New file.
37551         * tests/test-exclude4.sh: New file.
37552         * tests/test-exclude5.sh: New file.
37553         * tests/test-exclude6.sh: New file.
37554         * tests/test-exclude7.sh: New file.
37555
37556 2009-08-12  Bruno Haible  <bruno@clisp.org>
37557
37558         Ensure that getopt() gets declared by <unistd.h>.
37559         * lib/unistd.in.h: Conditionally include getopt.h.
37560         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37561         Set GNULIB_UNISTD_H_GETOPT.
37562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37563         GNULIB_UNISTD_H_GETOPT.
37564         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37565
37566 2009-08-12  Bruno Haible  <bruno@clisp.org>
37567
37568         Clarify logic.
37569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37570         gl_replace_getopt instead of GETOPT_H.
37571
37572 2009-08-12  Bruno Haible  <bruno@clisp.org>
37573
37574         * m4/getopt.m4: Add comments.
37575
37576 2009-08-12  Bruno Haible  <bruno@clisp.org>
37577
37578         Disable multithread support by default on Cygwin 1.5.x.
37579         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37580         set gl_use_threads=no if not specified otherwise.
37581
37582 2009-08-11  Bruno Haible  <bruno@clisp.org>
37583
37584         Avoid compilation error on NetBSD 5.0.
37585         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37586         * tests/test-stdio.c: Likewise.
37587         * tests/test-stdlib.c: Likewise.
37588         * tests/test-string.c: Likewise.
37589         * tests/test-unistd.c: Likewise.
37590         Reported by Greg Troxel <gdt@ir.bbn.com>
37591         at <https://savannah.gnu.org/support/?106973>.
37592
37593 2009-08-11  Bruno Haible  <bruno@clisp.org>
37594
37595         * modules/dup2-tests (Depends-on): Remove close.
37596
37597         Undo 2009-07-19 commit.
37598         * modules/acl-tests (Depends-on): Remove close.
37599         * modules/binary-io-tests (Depends-on): Likewise.
37600         * modules/closein-tests (Depends-on): Likewise.
37601         * modules/flock-tests (Depends-on): Likewise.
37602         * modules/fsync-tests (Depends-on): Likewise.
37603         * modules/lseek-tests (Depends-on): Likewise.
37604         * modules/pipe-tests (Depends-on): Likewise.
37605         * modules/posix_spawn-tests (Depends-on): Likewise.
37606         * modules/posix_spawnp-tests (Depends-on): Likewise.
37607         * modules/stat-time-tests (Depends-on): Likewise.
37608         * modules/yesno-tests (Depends-on): Likewise.
37609
37610 2009-08-10  Bruno Haible  <bruno@clisp.org>
37611
37612         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37613
37614 2009-08-10  Bruno Haible  <bruno@clisp.org>
37615
37616         Fix a gcc warning.
37617         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37618
37619 2009-08-10  Bruno Haible  <bruno@clisp.org>
37620
37621         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37622         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37623         not only the first time.
37624         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37625         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37626         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37627         is 1, not only the the first time.
37628
37629 2009-08-10  Bruno Haible  <bruno@clisp.org>
37630
37631         Make it possible to use module 'gethostname' without module 'close'.
37632         * lib/unistd.in.h (close): Evoke a link error only if
37633         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37635         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37636         * modules/unistd (Makefile.am): Substitute
37637         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37638         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37639         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37640         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37641         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37642         * modules/sys_ioctl (Makefile.am): Substitute
37643         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37644         * modules/socket (configure.ac): On native Windows, set
37645         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37646         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37647         Reported by Sam Steingold <sds@gnu.org>.
37648
37649 2009-08-10  Bruno Haible  <bruno@clisp.org>
37650
37651         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37652         * modules/ioctl (configure.ac): Likewise.
37653
37654 2009-08-10  Bruno Haible  <bruno@clisp.org>
37655
37656         Avoid collision between gnulib wrapper and libintl wrapper.
37657         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37658         already defined in intl/printf.c.
37659         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37660         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37661
37662 2009-08-09  Bruno Haible  <bruno@clisp.org>
37663
37664         Make <sys/select.h> really self-contained, also on Solaris 10.
37665         * lib/sys_select.in.h: Include <string.h>.
37666         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37667         Solaris 10 problem.
37668         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37669         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37670         Reported by Jim Meyering.
37671
37672 2009-08-09  Bruno Haible  <bruno@clisp.org>
37673
37674         Avoid warnings from 'aclocal' that are due to a use of macro name
37675         AM_XGETTEXT_OPTION that is not defined in automake.
37676         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37677         automake.
37678         * modules/error (configure.ac): Likewise.
37679         * modules/propername (configure.ac): Likewise.
37680         * modules/vasprintf (configure.ac): Likewise.
37681         * modules/verror (configure.ac): Likewise.
37682         * modules/xprintf (configure.ac): Likewise.
37683         * modules/xvasprintf (configure.ac): Likewise.
37684
37685 2009-08-08  Bruno Haible  <bruno@clisp.org>
37686
37687         Avoid compilation error in C++ mode.
37688         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37689         Reported by Sam Steingold <sds@gnu.org>.
37690
37691 2009-08-08  Bruno Haible  <bruno@clisp.org>
37692
37693         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37694         for the various Unix platforms.
37695         * doc/posix-headers/limits.texi: Update platforms list regarding
37696         HOST_NAME_MAX.
37697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37698
37699 2009-08-07  Jim Meyering  <meyering@redhat.com>
37700
37701         selinux-at: fix typo in a comment
37702         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37703         Spotted by Paolo Bonzini.
37704
37705         selinux-at: remove redundant m4 code, add documentation
37706         * modules/selinux-at (configure.ac): Remove redundant code.
37707         LIB_SELINUX is already set via the dependent module, selinux-h.
37708         (Include): Add quotes around selinux-at.h.
37709         * lib/selinux-at.h: Add documentation.
37710         Reported by Bruno Haible in
37711         http://marc.info/?l=gnulib-bug&m=124958988300749
37712
37713 2009-08-07  Bruno Haible  <bruno@clisp.org>
37714
37715         Avoid link error on MacOS X 10.3 and 10.4.
37716         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37717         on non-ELF systems.
37718         * lib/argp-pv.c (argp_program_version): Likewise.
37719         Reported by Simon Josefsson.
37720
37721 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37722
37723         * tests/test-version-etc.sh: Use $EXEEXT.
37724
37725 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37726
37727         update-copyright: update documentation to point to maint.mk
37728         * build-aux/update-copyright: Here.
37729
37730 2009-08-06  Jim Meyering  <meyering@redhat.com>
37731
37732         maint.mk: support update-copyright-local
37733         * top/maint.mk (update-copyright-local): Define place-holder.
37734         (update-copyright): Depend on $(update-copyright-local).
37735
37736 2009-08-06  Jim Meyering  <meyering@redhat.com>
37737
37738         selinux-at: new module
37739         Initially written for coreutils, this module will soon be
37740         used by findutils, too.
37741         * MODULES.html.sh [Misc]: Add selinux-at.
37742         * lib/selinux-at.h: New file, from coreutils.
37743         * lib/selinux-at.c: Likewise.
37744         * modules/selinux-at: Likewise.
37745         (License): Change from LGPL to GPL, since it depends
37746         on the GPL'd openat module.
37747
37748         doc: update README
37749         * README: Remove references to cogito.
37750         Remove cvs-repo-updating instructions from 2007.
37751         Don't imply that CVS is better if you have limited disk space.
37752
37753 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37754
37755         update-copyright: support C-style comments
37756         * build-aux/update-copyright: Implement and document.
37757         * tests/test-update-copyright.sh: Test.
37758
37759 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37760
37761         update-copyright: support omitted "(C)"
37762         * build-aux/update-copyright: Implement and document.  Also,
37763         allow variable whitespace before "(C)".
37764         * tests/test-update-copyright.sh: Test.
37765
37766 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37767
37768         update-copyright: don't trip on non-FSF copyright statements
37769         * build-aux/update-copyright: Fix so that the first correctly
37770         formatted FSF copyright statement is recognized no matter what
37771         appears before it.  Update documentation.
37772         * tests/test-update-copyright.sh: Test that.
37773
37774 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37775
37776         update-copyright: clean up code a little
37777         * build-aux/update-copyright: Append "_re" to the name of any
37778         variable holding a regular expression.
37779         Replace "old" and "new" with "stmt" in variable names.
37780         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37781         handled correctly.
37782         Format code more consistently.
37783
37784 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37785
37786         update-copyright-tests: improve portability
37787         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37788         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37789
37790 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37791
37792         update-copyright: support @copyright{} and &copy;
37793         * build-aux/update-copyright: Implement and document.
37794         * tests/test-update-copyright.sh: Test.
37795
37796 2009-08-04  Jim Meyering  <meyering@redhat.com>
37797
37798         update-copyright-tests: correctly test EOL=\r\n handling
37799         * tests/test-update-copyright.sh: Put \r at the end of some lines
37800         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37801
37802         maint.mk: make update-copyright exclusion list more configurable
37803         * top/maint.mk (update-copyright): Default to excluding COPYING,
37804         but allow an override, in case someone does want to update that file.
37805
37806         maint.mk: don't update copyright date in COPYING
37807         * top/maint.mk (update-copyright): Exclude COPYING.
37808
37809         maint.mk: add a copyright-updating rule
37810         * top/maint.mk (update-copyright): New rule.
37811         Derived from coreutils/Makefile.am.
37812
37813         update-copyright: rename some variables
37814         * build-aux/update-copyright: Rename a few variables for clarity.
37815         Tweak syntax.  List Joel E. Denny as coauthor.
37816
37817 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37818
37819         update-copyright: fix bug for 2-digit last year and add tests
37820         * build-aux/update-copyright: Fix bug.
37821         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37822         specified.
37823         * modules/update-copyright-tests: New
37824         * tests/test-update-copyright.sh: New.
37825
37826 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37827
37828         update-copyright: handle leading tabs in line prefix
37829         * build-aux/update-copyright: Count leading tabs as 8 spaces
37830         when computing margin.  This helps with the formatting of
37831         ChangeLogs, for example.
37832         Fix documentation a little.
37833
37834 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37835
37836         update-copyright: support EOL=\r\n
37837         * build-aux/update-copyright: Implement that.
37838
37839 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37840
37841         update-copyright: automatically format copyright statements
37842         * build-aux/update-copyright: Implement that.
37843         Also, be a little more predictable and safer by always failing
37844         when the full copyright format is not perfectly recognized as an
37845         unbroken whole.  Discussed at
37846         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37847         Rewrite documentation.
37848
37849 2009-08-03  Bruno Haible  <bruno@clisp.org>
37850
37851         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37852
37853 2009-08-02  Bruno Haible  <bruno@clisp.org>
37854
37855         Tests for module 'uname'.
37856         * modules/uname-tests: New file.
37857         * tests/test-uname.c: New file.
37858
37859         New module 'uname'.
37860         * lib/uname.c: New file.
37861         * m4/uname.m4: New file.
37862         * modules/uname: New file.
37863         * doc/posix-functions/uname.texi: Mention the new module.
37864
37865 2009-08-02  Bruno Haible  <bruno@clisp.org>
37866
37867         Tests for module 'sys_utsname'.
37868         * modules/sys_utsname-tests: New file.
37869         * tests/test-sys_utsname.c: New file.
37870
37871         New module 'sys_utsname'.
37872         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37873         * m4/sys_utsname_h.m4: New file.
37874         * modules/sys_utsname: New file.
37875         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37876
37877 2009-08-02  Bruno Haible  <bruno@clisp.org>
37878
37879         Implicitly initialize the sockets library.
37880         * lib/gethostname.c: Include sockets.h.
37881         (rpl_gethostname): Invoke gl_sockets_startup.
37882         * lib/socket.c: Include sockets.h.
37883         (rpl_socket): Invoke gl_sockets_startup.
37884         * modules/gethostname (Depends-on): Add sockets.
37885         * modules/socket (Depends-on): Likewise.
37886         * tests/test-poll.c: Don't include sockets.h.
37887         (main): Don't invoke gl_sockets_startup.
37888         * tests/test-select.c: Don't include sockets.h.
37889         (main): Don't invoke gl_sockets_startup.
37890
37891 2009-08-02  Bruno Haible  <bruno@clisp.org>
37892
37893         Allow multiple calls to gl_sockets_startup.
37894         * lib/sockets.c (initialized_sockets_version): New variable.
37895         (gl_sockets_startup): Do nothing if already called for this or a higher
37896         version.
37897         (gl_sockets_cleanup): Reset initialized_sockets_version.
37898
37899 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37900
37901         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37902         different project/version.
37903
37904 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37905             Bruno Haible  <bruno@clisp.org>
37906
37907         Tests for module 'pipe-filter-gi'.
37908         * modules/pipe-filter-gi-tests: New file.
37909         * tests/test-pipe-filter-gi1.sh: New file.
37910         * tests/test-pipe-filter-gi1.c: New file.
37911         * tests/test-pipe-filter-gi2.sh: New file.
37912         * tests/test-pipe-filter-gi2-main.c: New file.
37913         * tests/test-pipe-filter-gi2-child.c: New file.
37914
37915         New module 'pipe-filter-gi'.
37916         * lib/pipe-filter-gi.c: New file.
37917         * modules/pipe-filter-gi: New file.
37918
37919 2009-08-02  Bruno Haible  <bruno@clisp.org>
37920             Paolo Bonzini  <bonzini@gnu.org>
37921
37922         Tests for module 'pipe-filter-ii'.
37923         * modules/pipe-filter-ii-tests: New file.
37924         * tests/test-pipe-filter-ii1.sh: New file.
37925         * tests/test-pipe-filter-ii1.c: New file.
37926         * tests/test-pipe-filter-ii2.sh: New file.
37927         * tests/test-pipe-filter-ii2-main.c: New file.
37928         * tests/test-pipe-filter-ii2-child.c: New file.
37929
37930         New module 'pipe-filter-ii'.
37931         * lib/pipe-filter.h: New file.
37932         * lib/pipe-filter-ii.c: New file.
37933         * lib/pipe-filter-aux.h: New file.
37934         * modules/pipe-filter-ii: New file.
37935
37936 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37937
37938         * lib/gc-libgcrypt.c: Change copyright to FSF.
37939         * lib/gc-gnulib.c: Likewise.
37940
37941 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37942
37943         * lib/gethostname.c: Include limits.h.
37944
37945 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37946             Bruno Haible  <bruno@clisp.org>
37947
37948         Ensure HOST_NAME_MAX as part of the gethostname module.
37949         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37950         define also HOST_NAME_MAX.
37951         * tests/test-gethostname.c: Include <limits.h>.
37952         (main): Check also HOST_NAME_MAX.
37953         * doc/posix-headers/limits.texi: Document the mingw problem.
37954
37955 2009-08-02  Bruno Haible  <bruno@clisp.org>
37956
37957         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37958         Add comments.
37959
37960 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37961
37962         * lib/gethostname.c: Add Windows wrapper.
37963         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37964         * modules/gethostname: Depend on sys_socket & errno, for also
37965         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37966         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37967
37968 2009-07-31  Jim Meyering  <meyering@redhat.com>
37969
37970         getloadavg: fix symbol name in comment
37971         * lib/getloadavg.c: Correct a typo I introduced when adding
37972         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37973         Matt Kraai spotted the problem.
37974
37975 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37976
37977         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37978         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37979         code also if ! defined N_NAME_POINTER.
37980         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37981         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37982         but the n_name member is a 12-byte array.
37983
37984 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37985
37986         update-copyright: generalize comment handling
37987         * build-aux/update-copyright: Handle copyright statements
37988         within more comment styles.
37989         Document usage.
37990         Report any file with an external copyright holder or parse failure.
37991
37992 2009-07-29  Jim Meyering  <meyering@redhat.com>
37993
37994         mktime: correct setting of REPLACE_MKTIME
37995         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37996
37997         update-copyright: new module
37998         * modules/update-copyright: New file.
37999         * build-aux/update-copyright: New file.
38000         * MODULES.html.sh (maint+release support): Add update-copyright.
38001
38002 2009-07-27  Bruno Haible  <bruno@clisp.org>
38003
38004         Fix compilation error when <ctime> is used and mktime is replaced.
38005         * lib/time.in.h (mktime): New declaration.
38006         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38007         REPLACE_MKTIME instead of defining mktime in config.h.
38008         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38009         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38010         Reported by Ross McFarland <rwmcfa1@neces.com>.
38011
38012 2009-07-27  Bruno Haible  <bruno@clisp.org>
38013
38014         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38015         Reported by Matt Kraai <mkraai@beckman.com>.
38016
38017 2009-07-25  Jim Meyering  <meyering@redhat.com>
38018
38019         maint.mk: avoid warnings about missing files
38020         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38021         diagnostic when .prev-version does not exist.
38022         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38023         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38024         nonexistent cfg.mk.
38025         Suggestions from Simon Josefsson.
38026
38027 2009-07-25  Bruno Haible  <bruno@clisp.org>
38028
38029         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38030         defined as macros. Needed on QNX 6.4.1.
38031         Reported by Matt Kraai <mkraai@beckman.com>.
38032
38033 2009-07-23  Jim Meyering  <meyering@redhat.com>
38034
38035         maint.mk: invoke "make dist" with a working value of XZ_OPT
38036         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38037
38038 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38039
38040         Make fseeko.c compile on QNX.
38041         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38042
38043 2009-07-22  Peter Simons  <simons@cryp.to>
38044
38045         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38046         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38047         * lib/md4.h: Likewise.
38048         * lib/md5.h: Likewise.
38049         * lib/sha1.h: Likewise.
38050         * lib/sha256.h: Likewise.
38051         * lib/sha512.h: Likewise.
38052
38053         tests-sha1: don't assign literal string to 'char *' variable
38054         * tests/test-sha1.c (main): Declare locals with "const" to match
38055         attributes of the right hand side.
38056
38057 2009-07-21  Eric Blake  <ebb9@byu.net>
38058
38059         dup2: fix more mingw problems
38060         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38061         fd to itself.
38062         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38063         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38064         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38065         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38066         care of mingw bugs.
38067
38068 2009-07-21  Jim Meyering  <meyering@redhat.com>
38069
38070         vc-list-files: avoid failure when /bin/sh is dash
38071         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38072         On some Debian based systems, /bin/sh is a symlink to dash, and running
38073         this command would omit the "/" following each 'tests' prefix:
38074           dash -x build-aux/vc-list-files -C . tests
38075         That is because bash and dash work differently:
38076           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38077           bash ok
38078           dash odd
38079
38080 2009-07-21  Eric Blake  <ebb9@byu.net>
38081
38082         dup2-tests: test previous patch
38083         * modules/dup2-tests: New file.
38084         * tests/test-dup2.c: Likewise.
38085         * tests/test-open.c (main): Avoid unspecified behavior.
38086         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38087         test.
38088
38089         dup2: work around mingw and cygwin 1.5 bug
38090         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38092         * modules/unistd (Makefile.am): Substitute it.
38093         * lib/unistd.in.h (dup2): Declare the replacement.
38094         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38095         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38096         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38097         * modules/execute (Depends-on): Add dup2.
38098         * modules/fseterr (Depends-on): Likewise.
38099         * modules/pipe (Depends-on): Likewise.
38100         * modules/posix_spawn-internal (Depends-on): Likewise.
38101
38102 2009-07-21  Bruno Haible  <bruno@clisp.org>
38103
38104         * modules/.gitattributes: New file.
38105
38106 2009-07-20  Bruno Haible  <bruno@clisp.org>
38107
38108         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38109         (main): Use it.
38110
38111 2009-07-20  Eric Blake  <ebb9@byu.net>
38112
38113         test-pipe: make a bit more robust.
38114         * tests/test-pipe.c (myerr): Allow error messages regardless of
38115         what we do to stderr.
38116         (test_pipe): Rearrange to avoid deadlock.
38117         (child_main): Try a larger read, to ensure we avoided deadlock.
38118         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38119         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38120         if misused.
38121
38122 2009-07-19  Jim Meyering  <meyering@redhat.com>
38123
38124         fts: avoid false-positive cycle-detection
38125         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38126         for each new command line argument.
38127
38128 2009-07-19  Bruno Haible  <bruno@clisp.org>
38129
38130         Fix build error on mingw with the modules sys_select and unistd.
38131         * modules/acl-tests (Depends-on): Add close.
38132         * modules/binary-io-tests (Depends-on): Likewise.
38133         * modules/closein-tests (Depends-on): Likewise.
38134         * modules/flock-tests (Depends-on): Likewise.
38135         * modules/fsync-tests (Depends-on): Likewise.
38136         * modules/lseek-tests (Depends-on): Likewise.
38137         * modules/pipe-tests (Depends-on): Likewise.
38138         * modules/posix_spawn-tests (Depends-on): Likewise.
38139         * modules/posix_spawnp-tests (Depends-on): Likewise.
38140         * modules/stat-time-tests (Depends-on): Likewise.
38141         * modules/yesno-tests (Depends-on): Likewise.
38142
38143 2009-07-19  Bruno Haible  <bruno@clisp.org>
38144
38145         Unify conditionals.
38146         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38147         macros, not at the compiler macros.
38148         * lib/pipe.c: Likewise.
38149         * lib/execute.c: Likewise.
38150         * lib/spawni.c: Likewise.
38151
38152 2009-07-19  Bruno Haible  <bruno@clisp.org>
38153
38154         Fix handling of closed stdin/stdout/stderr on mingw.
38155         * lib/w32spawn.h: Include unistd.h.
38156         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38157         file descriptor with O_NOINHERIT flag.
38158         (fd_safer_noinherit): New function, based on fd-safer.c.
38159         (dup_safer_noinherit): New function, based on dup-safer.c.
38160         (undup_safer_noinherit): New function.
38161         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38162         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38163         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38164         instead of fd_safer.
38165         * tests/test-pipe.c: Include <windows.h>.
38166         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38167         result.
38168
38169         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38170         from main.
38171         (test_pipe): Pass an extra argument for disambiguation.
38172         (main): Invoke parent_main or child_main.
38173
38174         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38175         consistently.
38176
38177 2009-07-18  Eric Blake  <ebb9@byu.net>
38178
38179         test-pipe: fix mingw build
38180         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38181
38182 2009-07-18  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/pipe-tests (Makefile.am): Fix typo.
38185
38186 2009-07-18  Eric Blake  <ebb9@byu.net>
38187
38188         error: fix mingw build
38189         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38190         Reported by Bruno Haible.
38191
38192         error: avoid undefined use of stdout
38193         * lib/error.c (error, error_at_line): Check that fd 1 is open
38194         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38195         is handling faults and the close_stdout module wants to report the
38196         detection of closed stdout as an error.
38197
38198 2009-07-17  Eric Blake  <ebb9@byu.net>
38199
38200         pipe: be robust in face of closed fds
38201         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38202         should cause child to misbehave.
38203         * modules/pipe-tests: New module.
38204         * tests/test-pipe.c: New file.
38205         * tests/test-pipe.sh: New file.
38206         Reported by Akim Demaille.
38207
38208 2009-07-14  Bruno Haible  <bruno@clisp.org>
38209
38210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38211         Reported by anonymous kc.
38212
38213 2009-07-07  Jim Meyering  <meyering@redhat.com>
38214
38215         maint.mk: don't look for translatable strings in *.m4 or *.mk
38216         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38217         when searching for translatable strings.
38218
38219 2009-07-05  Jim Meyering  <meyering@redhat.com>
38220
38221         remove superfluous parentheses in STREQ definition
38222         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38223         * lib/getugroups.c (STREQ): Likewise.
38224         * lib/fnmatch.c (STREQ): Likewise.
38225         Spotted by Bruno Haible.
38226
38227 2009-07-04  Jim Meyering  <meyering@redhat.com>
38228
38229         argv-iter: new module
38230         * MODULES.html.sh: Add argv-iter.
38231         * lib/argv-iter.c, lib/argv-iter.h: New files.
38232         * modules/argv-iter: New file.
38233         * modules/argv-iter-tests: New file.
38234         * tests/test-argv-iter.c: Test it.
38235
38236 2009-07-04  Bruno Haible  <bruno@clisp.org>
38237
38238         Fix assertion.
38239         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38240         contains more exact copies of a given entry than file2, leave the extra
38241         copies unpaired rather than aborting.
38242         Reported by Eric Blake.
38243
38244 2009-07-02  Bruno Haible  <bruno@clisp.org>
38245
38246         Speedup git-merge-changelog for git cherry-pick.
38247         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38248         (entries_mapping_get): New function, extracted from compute_mapping.
38249         (entries_mapping_reverse_get): New function.
38250         (compute_mapping): Add a 'full' argument. Return the result in a
38251         'struct entries_mapping'.
38252         (main): Update. Access the mappings through entries_mapping_get.
38253         Reported by Eric Blake.
38254
38255 2009-07-02  Bruno Haible  <bruno@clisp.org>
38256
38257         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38258         best_i.
38259
38260 2009-07-02  Bruno Haible  <bruno@clisp.org>
38261
38262         Speed up approximate search for matching ChangeLog entries.
38263         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38264         argument. Call fstrcmp_bounded instead of fstrcmp.
38265         (compute_mapping, try_split_merged_entry, main): Update callers.
38266
38267 2009-07-02  Bruno Haible  <bruno@clisp.org>
38268
38269         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38270
38271 2009-06-30  Bruno Haible  <bruno@clisp.org>
38272
38273         Reduce the number of uc_is_cased calls.
38274         * lib/unicase.h (casing_suffix_context_t): Add
38275         'first_char_except_ignorable' field.
38276         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38277         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38278         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38279         Update initializer.
38280         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38281         case-ignorable characters.
38282         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38283         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38284         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38285         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38286         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38287
38288 2009-06-30  Bruno Haible  <bruno@clisp.org>
38289
38290         Tests for module 'unicase/ignorable'.
38291         * modules/unicase/ignorable-tests: New file.
38292         * tests/unicase/test-ignorable.c: New file, generated by
38293         gen-uni-tables.
38294
38295         Tests for module 'unicase/cased'.
38296         * modules/unicase/cased-tests: New file.
38297         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38298         * tests/unicase/test-predicate-part1.h: New file, derived from
38299         tests/unictype/test-predicate-part1.h.
38300         * tests/unicase/test-predicate-part2.h: New file, same as
38301         tests/unictype/test-predicate-part2.h.
38302
38303         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38304         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38305         (output_casing_properties): New function.
38306         (main): Call it.
38307         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38308         * lib/unicase/cased.c: Include unictype/bitmap.h.
38309         (uc_is_cased): Define through a bitmap lookup.
38310         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38311         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38312         (uc_is_case_ignorable): Define through a bitmap lookup.
38313         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38314         lib/unictype/bitmap.h.
38315         (Depends-on): Add inline. Clean up.
38316         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38317         lib/unictype/bitmap.h.
38318         (Depends-on): Add inline. Clean up.
38319         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38320         recognition.
38321         * tests/unicase/test-u16-tolower.c (main): Likewise.
38322         * tests/unicase/test-u32-tolower.c (main): Likewise.
38323
38324 2009-06-30  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38327         * lib/unicase/u16-casemap.c: Likewise.
38328         * lib/unicase/u32-casemap.c: Likewise.
38329
38330 2009-06-29  Bruno Haible  <bruno@clisp.org>
38331
38332         Define u32_casefold as a wrapper around u32_ct_casefold.
38333         * lib/unicase/u32-casefold.c: Update.
38334         * modules/unicase/u32-casefold (Depends-on): Add
38335         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38336         unicase/empty-suffix-context. Clean up.
38337
38338         Define u16_casefold as a wrapper around u16_ct_casefold.
38339         * lib/unicase/u16-casefold.c: Update.
38340         * modules/unicase/u16-casefold (Depends-on): Add
38341         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38342         unicase/empty-suffix-context. Clean up.
38343
38344         Define u8_casefold as a wrapper around u8_ct_casefold.
38345         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38346         * lib/unicase/u8-casefold.c: Update.
38347         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38348         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38349
38350         Define u32_totitle as a wrapper around u32_ct_totitle.
38351         * lib/unicase/u32-totitle.c: Update.
38352         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38353         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38354
38355         Define u16_totitle as a wrapper around u16_ct_totitle.
38356         * lib/unicase/u16-totitle.c: Update.
38357         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38358         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38359
38360         Define u8_totitle as a wrapper around u8_ct_totitle.
38361         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38362         functions.
38363         (FUNC): Delegate to U_CT_TOTITLE.
38364         * lib/unicase/u8-totitle.c: Update.
38365         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38366         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38367
38368         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38369         invocation.
38370         * modules/unicase/u32-tolower (Depends-on): Add
38371         unicase/empty-prefix-context, unicase/empty-suffix-context.
38372
38373         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38374         invocation.
38375         * modules/unicase/u16-tolower (Depends-on): Add
38376         unicase/empty-prefix-context, unicase/empty-suffix-context.
38377
38378         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38379         * modules/unicase/u8-tolower (Depends-on): Add
38380         unicase/empty-prefix-context, unicase/empty-suffix-context.
38381
38382         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38383         invocation.
38384         * modules/unicase/u32-toupper (Depends-on): Add
38385         unicase/empty-prefix-context, unicase/empty-suffix-context.
38386
38387         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38388         invocation.
38389         * modules/unicase/u16-toupper (Depends-on): Add
38390         unicase/empty-prefix-context, unicase/empty-suffix-context.
38391
38392         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38393         * modules/unicase/u8-toupper (Depends-on): Add
38394         unicase/empty-prefix-context, unicase/empty-suffix-context.
38395
38396         New module 'unicase/u32-ct-casefold'.
38397         * lib/unicase/u32-ct-casefold.c: New file.
38398         * modules/unicase/u32-ct-casefold: New file.
38399
38400         New module 'unicase/u16-ct-casefold'.
38401         * lib/unicase/u16-ct-casefold.c: New file.
38402         * modules/unicase/u16-ct-casefold: New file.
38403
38404         New module 'unicase/u8-ct-casefold'.
38405         * lib/unicase/u8-ct-casefold.c: New file.
38406         * lib/unicase/u-ct-casefold.h: New file, derived from
38407         lib/unicase/u-casefold.h.
38408         * modules/unicase/u8-ct-casefold: New file.
38409
38410         New module 'unicase/u32-ct-totitle'.
38411         * lib/unicase/u32-ct-totitle.c: New file.
38412         * modules/unicase/u32-ct-totitle: New file.
38413
38414         New module 'unicase/u16-ct-totitle'.
38415         * lib/unicase/u16-ct-totitle.c: New file.
38416         * modules/unicase/u16-ct-totitle: New file.
38417
38418         New module 'unicase/u8-ct-totitle'.
38419         * lib/unicase/u8-ct-totitle.c: New file.
38420         * lib/unicase/u-ct-totitle.h: New file, derived from
38421         lib/unicase/u-totitle.h.
38422         * modules/unicase/u8-ct-totitle: New file.
38423
38424         New module 'unicase/u32-ct-tolower'.
38425         * lib/unicase/u32-ct-tolower.c: New file.
38426         * modules/unicase/u32-ct-tolower: New file.
38427
38428         New module 'unicase/u16-ct-tolower'.
38429         * lib/unicase/u16-ct-tolower.c: New file.
38430         * modules/unicase/u16-ct-tolower: New file.
38431
38432         New module 'unicase/u8-ct-tolower'.
38433         * lib/unicase/u8-ct-tolower.c: New file.
38434         * modules/unicase/u8-ct-tolower: New file.
38435
38436         New module 'unicase/u32-ct-toupper'.
38437         * lib/unicase/u32-ct-toupper.c: New file.
38438         * modules/unicase/u32-ct-toupper: New file.
38439
38440         New module 'unicase/u16-ct-toupper'.
38441         * lib/unicase/u16-ct-toupper.c: New file.
38442         * modules/unicase/u16-ct-toupper: New file.
38443
38444         New module 'unicase/u8-ct-toupper'.
38445         * lib/unicase/u8-ct-toupper.c: New file.
38446         * modules/unicase/u8-ct-toupper: New file.
38447
38448         Add context arguments to u*_casemap functions.
38449         * lib/unicase/unicasemap.h: Include unicase.h.
38450         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38451         suffix_context arguments.
38452         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38453         functions.
38454         (FUNC): Add prefix_context and suffix_context arguments. Use
38455         uc_is_cased and uc_is_case_ignorable.
38456         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38457         * lib/unicase/u16-casemap.c: Likewise.
38458         * lib/unicase/u32-casemap.c: Likewise.
38459         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38460         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38461         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38462         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38463         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38464         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38465
38466         New module 'unicase/u32-suffix-context'.
38467         * lib/unicase/u32-suffix-context.c: New file.
38468         * modules/unicase/u32-suffix-context: New file.
38469
38470         New module 'unicase/u16-suffix-context'.
38471         * lib/unicase/u16-suffix-context.c: New file.
38472         * modules/unicase/u16-suffix-context: New file.
38473
38474         New module 'unicase/u8-suffix-context'.
38475         * lib/unicase/u8-suffix-context.c: New file.
38476         * lib/unicase/u-suffix-context.h: New file.
38477         * modules/unicase/u8-suffix-context: New file.
38478
38479         New module 'unicase/empty-suffix-context'.
38480         * lib/unicase/empty-suffix-context.c: New file.
38481         * modules/unicase/empty-suffix-context: New file.
38482
38483         New module 'unicase/u32-prefix-context'.
38484         * lib/unicase/u32-prefix-context.c: New file.
38485         * modules/unicase/u32-prefix-context: New file.
38486
38487         New module 'unicase/u16-prefix-context'.
38488         * lib/unicase/u16-prefix-context.c: New file.
38489         * modules/unicase/u16-prefix-context: New file.
38490
38491         New module 'unicase/u8-prefix-context'.
38492         * lib/unicase/u8-prefix-context.c: New file.
38493         * lib/unicase/u-prefix-context.h: New file.
38494         * lib/unicase/context.h: New file.
38495         * modules/unicase/u8-prefix-context: New file.
38496
38497         New module 'unicase/empty-prefix-context'.
38498         * lib/unicase/empty-prefix-context.c: New file.
38499         * modules/unicase/empty-prefix-context: New file.
38500
38501         New module 'unicase/ignorable'.
38502         * lib/unicase/ignorable.c: New file.
38503         * modules/unicase/ignorable: New file.
38504
38505         New module 'unicase/cased'.
38506         * lib/unicase/caseprop.h: New file.
38507         * lib/unicase/cased.c: New file.
38508         * modules/unicase/cased: New file.
38509
38510         New functions for case mapping of substrings.
38511         * lib/unicase.h (casing_prefix_context_t): New type.
38512         (unicase_empty_prefix_context): New variable.
38513         (u8_casing_prefix_context, u16_casing_prefix_context,
38514         u32_casing_prefix_context, u8_casing_prefixes_context,
38515         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38516         declarations.
38517         (casing_suffix_context_t): New type.
38518         (unicase_empty_suffix_context): New variable.
38519         (u8_casing_suffix_context, u16_casing_suffix_context,
38520         u32_casing_suffix_context, u8_casing_suffixes_context,
38521         u16_casing_suffixes_context, u32_casing_suffixes_context,
38522         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38523         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38524         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38525         declarations.
38526
38527 2009-06-28  Jim Meyering  <meyering@redhat.com>
38528
38529         boostrap: indent only with spaces
38530         * build-aux/bootstrap: Indent only with spaces, never TABs.
38531
38532         bootstrap: split long lines
38533         * build-aux/bootstrap: Keep line length < 80.
38534
38535         bootstrap: sync from coreutils
38536         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38537         just as autoreconf does.  Verify a list of prerequisite
38538         package-name,version-number pairs if defined in bootstrap.conf.
38539         Refer to README-prereq, if prerequisites are not satisfied.
38540
38541 2009-06-27  Eric Blake  <ebb9@byu.net>
38542
38543         tests: add test for bogus NULL definition
38544         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38545         * tests/test-stdlib.c: Likewise.
38546         * tests/test-string.c: Likewise.
38547         * tests/test-locale.c: Likewise.
38548         * tests/test-unistd.c: Likewise.
38549         * modules/stdio-tests (Depends-on): Add verify.
38550         * modules/stdlib-tests (Depends-on): Likewise.
38551         * modules/string-tests (Depends-on): Likewise.
38552         * modules/locale-tests (Depends-on): Likewise.
38553         * modules/unistd-tests (Depends-on): Likewise.
38554
38555 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38556
38557         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38558         self-explaining comment.
38559         * m4/selinux-selinux-h: Update serial.
38560         (gl_LIBSELINUX): New macro, adding a warning for missing development
38561         packages to code extracted from...
38562         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38563         Add warning for missing development packages here, too.
38564
38565 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38566
38567         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38568
38569 2009-06-25  Eric Blake  <ebb9@byu.net>
38570
38571         version-etc: fix regression
38572         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38573         gcc.
38574         (version_etc): Use it, to catch bugs with trailing NULL.
38575         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38576         (version_etc_va): Fix logic bug.
38577         * modules/version-etc-tests: Add test.
38578         * tests/test-version-etc.c: New file.
38579         * tests/test-version-etc.sh: Likewise.
38580
38581 2009-06-25  Sam Steingold  <sds@gnu.org>
38582
38583         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38584         mbtowc declaration.
38585
38586 2009-06-25  Eric Blake  <ebb9@byu.net>
38587
38588         fpurge: migrate into <stdio.h>
38589         * lib/fpurge.h: Delete...
38590         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38591         * lib/fpurge.c (fpurge): Change declaring header.
38592         * modules/fpurge (Files): Drop deleted file.
38593         (Depends-on): Add stdio.
38594         (configure.ac): Set witness.
38595         * modules/stdio (Makefile.am): Support fpurge macros.
38596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38597         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38598         * lib/fflush.c: Update client.
38599         * tests/test-fpurge.c: Likewise.
38600         * NEWS: Mention the change.
38601
38602 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38603
38604         * lib/argp-version-etc.c (program_authors): Add const
38605         qualifier.
38606         * lib/version-etc.c: Fix typos in the comments.
38607         * modules/argp-version-etc: Depends on version-etc.
38608
38609 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38610
38611         argp-version-etc: new module.
38612
38613         * lib/argp-version-etc.c: New file.
38614         * lib/argp-version-etc.h: New file.
38615         * modules/argp-version-etc: New file.
38616         * modules/argp-version-etc-tests: New file.
38617         * tests/test-argp-version-etc.c: New test.
38618         * tests/test-argp-version-etc-1.sh: New test.
38619
38620 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38621
38622         Provide additional interfaces and documentation for version-etc
38623         module.
38624
38625         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38626         interfaces.
38627         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38628         prototypes.
38629
38630 2009-06-24  Bruno Haible  <bruno@clisp.org>
38631
38632         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38633         HAVE_LIB${NAME} macro.
38634         Reported by Sam Steingold <sds@gnu.org>.
38635
38636 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38637
38638         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38639         needed.
38640
38641 2009-06-21  Bruno Haible  <bruno@clisp.org>
38642
38643         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38644         work.
38645         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38646         together with LIB${NAME}, LTLIB${NAME}.
38647         Reported by Sam Steingold <sds@gnu.org>.
38648
38649 2009-06-20  Jim Meyering  <meyering@redhat.com>
38650
38651         tests: make sc_require_test_exit_idiom more generic
38652         * top/maint.mk (Exit_witness_file): New overridable variable.
38653         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38654         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38655
38656 2009-06-19  Jim Meyering  <meyering@redhat.com>
38657
38658         hash: reverse order of src/dst parameters in an internal interface
38659         * lib/hash.c (transfer_entries): Reverse order of parameters to
38660         put DST before SRC.  Adjust callers.
38661
38662         tests: test-hash: avoid wholesale duplication
38663         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38664         Instead, use a loop and add a single conditional.
38665
38666         tests: test-hash: allow seed selection via a command line argument
38667         * tests/test-hash.c (get_seed): New function.
38668         (main): Use it.
38669
38670 2009-06-19  Eric Blake  <ebb9@byu.net>
38671
38672         hash: avoid memory leak on allocation failure
38673         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38674         failure.  Factor repeated algorithm...
38675         (transfer_entries): ...into new helper routine.
38676         (hash_delete): React to hash_rehash return value.
38677
38678         hash: reduce memory pressure in hash_rehash no-op case
38679         * lib/hash.c (next_prime): Avoid overflow.
38680         (hash_initialize): Factor bucket size computation...
38681         (compute_bucket_size): ...into new helper function.
38682         (hash_rehash): Use new function and open coding to reduce memory
38683         pressure, and avoid a memory leak in USE_OBSTACK code.
38684         Reported by Jim Meyering.
38685
38686 2009-06-18  Eric Blake  <ebb9@byu.net>
38687
38688         hash: make rotation more obvious
38689         * modules/hash (Depends-on): Add bitrotate and stdint.
38690         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38691         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38692         (SIZE_MAX): Rely on headers for definition.
38693         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38694         (raw_hasher): Use rotr_sz.
38695         Suggested by Jim Meyering.
38696
38697         hash: fix memory leak in last patch
38698         * lib/hash.c (hash_rehash): Avoid memory leak.
38699
38700         hash: avoid no-op rehashing
38701         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38702
38703         hash: provide default callback functions
38704         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38705         (hash_initialize): Use them as defaults.
38706         * tests/test-hash.c (main): Test this.
38707
38708         hash: minor optimization
38709         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38710         when possible.
38711         (hash_initialize): Document this promise.
38712         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38713         * tests/test-hash.c (hash_compare_strings): Test this.
38714
38715 2009-06-18  Bruno Haible  <bruno@clisp.org>
38716
38717         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38718         going to be replaced anyway.
38719
38720 2009-06-18  Bruno Haible  <bruno@clisp.org>
38721
38722         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38723         in one place.
38724         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38725         be replaced anyway.
38726
38727 2009-06-18  Eric Blake  <ebb9@byu.net>
38728
38729         hash: check for resize before insertion
38730         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38731         threshold before insertion, so that a pathological hash_rehash
38732         that fills every bucket can still trigger another rehash.
38733
38734 2009-06-18  Jim Meyering  <meyering@redhat.com>
38735
38736         hash-tests: add a loop around the small tests
38737         * tests/test-hash.c (main): Repeat small tests with selected
38738         small initial table sizes.
38739
38740 2009-06-17  Eric Blake  <ebb9@byu.net>
38741
38742         hash: minor cleanups
38743         * lib/hash.h (hash_entry): Make opaque, by moving...
38744         * lib/hash.c (hash_entry): ...here.
38745         (hash_insert): Clarify restrictions on what can be inserted.
38746         (hash_get_next): Clarify when it is safe to remove an element
38747         during traversal.
38748         (check_tuning): Skip verification when tuning is known safe.
38749         (hash_initialize): Clarify restrictions on tuning.
38750
38751 2009-06-17  Jim Meyering  <jim@meyering.net>
38752         and Eric Blake  <ebb9@byu.net>
38753
38754         hash-tests: new module
38755         * modules/hash-tests: New file.
38756         * tests/test-hash.c: New file.
38757
38758 2009-06-17  Eric Blake  <ebb9@byu.net>
38759
38760         strstr-simple: document new module
38761         * MODULES.html.sh: Document new module.
38762
38763         strstr, strcasestr: replace on platforms with broken memchr
38764         * modules/strstr: Split into...
38765         * modules/strstr-simple: ...new module that does not care about
38766         performance, but does care about glibc bug.
38767         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38768         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38769         if platform memchr is broken, per Debian bug 521737.
38770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38771         memchr.
38772         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38773         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38774         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38775         * modules/mountlist (Depends-on): Add strstr-simple.
38776         * modules/gen-uni-tables (Depends-on): Likewise.
38777         * modules/argz (Depends-on): Add strstr.
38778
38779 2009-06-17  Bruno Haible  <bruno@clisp.org>
38780
38781         * modules/posix_spawn-internal (Depends-on): Add errno.
38782
38783 2009-06-17  Bruno Haible  <bruno@clisp.org>
38784
38785         Define missing ESTALE on Interix 3.5.
38786         * lib/errno.in.h (ESTALE): Assign a value if missing.
38787         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38788         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38789         missing.
38790         * doc/posix-headers/errno.texi: Mention the Interix bug.
38791         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38792
38793 2009-06-15  Eric Blake  <ebb9@byu.net>
38794
38795         memchr, memchr2: add valgrind exception
38796         * lib/memchr.valgrind: New file.
38797         * lib/memchr2.valgrind: New file.
38798         * modules/memchr (Files): Distribute valgrind file.
38799         * modules/memchr2 (Files): Likewise.
38800
38801         docs: memchr is no longer obsolete
38802         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38803         * lib/string.in.h (memchr): Simplify logic.
38804
38805 2009-06-14  Jim Meyering  <meyering@redhat.com>
38806
38807         link-follow: fix the "checking..." message to not mention trailing slash
38808         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38809         never considered trailing slashes.
38810
38811 2009-06-14  Bruno Haible  <bruno@clisp.org>
38812
38813         * m4/memchr.m4: Mention also the bug on IA-64.
38814         * doc/posix-functions/memchr.texi: Likewise.
38815
38816 2009-06-12  Eric Blake  <ebb9@byu.net>
38817
38818         memchr: detect broken x86_64 and alpha implementations
38819         * modules/memchr-tests (Depends-on): Move mmap detection...
38820         * modules/memchr (Depends-on): ...here.
38821         (configure.ac): Set indicator.
38822         * lib/string.in.h (memchr): Declare replacement.
38823         * modules/string (Makefile.am): Trigger replacement.
38824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38825         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38826         bugs.
38827         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38828         * modules/getpagesize (License): Relax license.
38829
38830 2009-06-11  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/idpriv.h: Add more references.
38833
38834 2009-06-08  Bruno Haible  <bruno@clisp.org>
38835
38836         Tests for module 'idpriv-droptemp'.
38837         * modules/idpriv-droptemp-tests: New file.
38838         * tests/test-idpriv-droptemp.sh: New file.
38839         * tests/test-idpriv-droptemp.su.sh: New file.
38840         * tests/test-idpriv-droptemp.c: New file.
38841
38842         New module 'idpriv-droptemp'.
38843         * lib/idpriv-droptemp.c: New file.
38844         * modules/idpriv-droptemp: New file.
38845
38846 2009-06-08  Bruno Haible  <bruno@clisp.org>
38847
38848         Tests for module 'idpriv-drop'.
38849         * modules/idpriv-drop-tests: New file.
38850         * tests/test-idpriv-drop.sh: New file.
38851         * tests/test-idpriv-drop.su.sh: New file.
38852         * tests/test-idpriv-drop.c: New file.
38853
38854         New module 'idpriv-drop'.
38855         * lib/idpriv.h: New file.
38856         * lib-idpriv-drop.c: New file.
38857         * m4/idpriv.m4: New file.
38858         * modules/idpriv-drop: New file.
38859
38860 2009-06-08  Bruno Haible  <bruno@clisp.org>
38861
38862         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38863         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38864         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38865         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38866         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38867         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38868         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38869
38870 2009-06-08  Eric Blake  <ebb9@byu.net>
38871
38872         test-strstr: use memory fence, when possible
38873         * tests/test-strstr.c (main): Use memory fence, in order to be
38874         more likely to trigger Debian bug 521737.
38875         * modules/strstr-tests (Files): Pull in additional files.
38876
38877         memchr: no longer obsolete, for wider field testing
38878         * modules/memchr (Status, Notice): Delete, this module is no
38879         longer obsolete.
38880         * modules/vasnprintf (Depends-on): Add memchr.
38881
38882 2009-06-07  Jim Meyering  <meyering@redhat.com>
38883
38884         hash: declare some functions with the warn_unused_result attribute
38885         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38886
38887 2009-06-07  Bruno Haible  <bruno@clisp.org>
38888
38889         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38890         Reported by Eric Blake.
38891
38892 2009-06-06  Eric Blake  <ebb9@byu.net>
38893
38894         test-alignof: fix typo with long double
38895         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38896         compiler error.
38897
38898 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38899
38900         Escape non-texinfo { and }s.
38901         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38902         markup error.
38903
38904 2009-06-04  Jim Meyering  <meyering@redhat.com>
38905
38906         gitlog-to-changelog: don't infloop on an empty commit log
38907         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38908         Reported by Boris Petersen <transacid@centerim.org>.
38909
38910 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38911
38912         version-etc: extend for packagers
38913         Add three new configure options, intended for packagers:
38914           --with-packager="packager name"
38915           --with-packager-version="packager-specific version"
38916           --with-packager-bug-reports="packager bug reporting"
38917         An example with coreutils:
38918           $ ./configure \
38919             --with-packager=Gentoo \
38920             --with-packager-bug-report=http://bugs.gentoo.org/ \
38921             --with-packager-version="patchset 1.6"
38922           $ ./src/ls --version | head -n2
38923           ls (GNU coreutils) 7.1-dirty
38924           Packaged by Gentoo (patchset 1.6)
38925         Note that the bug reporting info via --help doesn't show up because
38926         coreutils uses its own custom emit_bug_reporting_address() implementation
38927         in src/system.h.  If it didn't, it'd look like:
38928           $ ./src/ls --help | tail -n4
38929           Report bugs to <bug-coreutils@gnu.org>.
38930           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38931           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38932           General help using GNU software: <http://www.gnu.org/gethelp/>.
38933         * lib/version-etc.c: Print new information, if provided.
38934         * m4/version-etc.m4: New file.
38935         * modules/version-etc (Files): Add m4/version-etc.m4.
38936         (configure.ac): Add gl_VERSION_ETC.
38937
38938 2009-05-31  Bruno Haible  <bruno@clisp.org>
38939
38940         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38941         and 'int64_t'.
38942         * modules/alignof-tests (Dependencies): Add stdint.
38943         Reported by Eric Blake.
38944
38945 2009-05-31  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38948         restriction due to compiler bugs.
38949         Reported by Eric Blake.
38950
38951 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38952             Bruno Haible  <bruno@clisp.org>
38953
38954         Fix test-alignof failure.
38955         * lib/alignof.h (alignof_slot): New macro.
38956         (alignof_type): New macro, with the same semantics as the previous
38957         'alignof'.
38958         (alignof): Alias to alignof_slot.
38959         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38960         check that the results are usable as constant expressions.
38961
38962 2009-05-31  Bruno Haible  <bruno@clisp.org>
38963
38964         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38965         * tests/test-memchr.c (main): Check that memchr does not read past the
38966         first occurrence of the byte.
38967         * tests/test-strstr.c (main): Update comment.
38968         Suggested by Eric Blake.
38969
38970 2009-05-30  Bruno Haible  <bruno@clisp.org>
38971
38972         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38973         detail how to use dumpbin.
38974         Reported by David Byron <dbyron@dbyron.com>.
38975
38976 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38977
38978         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38979
38980 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38981
38982         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38983
38984 2009-05-28  Bruno Haible  <bruno@clisp.org>
38985
38986         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38987         build-aux/ files.
38988
38989 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38990
38991         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38992
38993 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38994
38995         * gnulib-tool (sed_transform_main_lib_file)
38996         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38997         regexps.
38998
38999 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39000
39001         * tests/test-strstr.c: Add another self-test.
39002         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39003         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39004
39005 2009-05-23  Bruno Haible  <bruno@clisp.org>
39006
39007         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39008         change.
39009
39010 2009-05-21  Bruno Haible  <bruno@clisp.org>
39011
39012         Simplify use of mode_t varargs.
39013         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39014         uses 'mode_t' or 'int'.
39015         * lib/openat.c (openat): Likewise.
39016         * lib/open-safer.c (open_safer): Likewise.
39017         * m4/mode_t.m4: New file.
39018         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39019         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39020         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39021         * modules/open (Files): Add m4/mode_t.m4.
39022         * modules/openat (Files): Likewise.
39023         * modules/fcntl-safer (Files): Likewise.
39024         Suggested by Eric Blake.
39025
39026 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39027
39028         * doc/glibc-functions/fallocate.texi: New file.
39029         * doc/gnulib.texi: Include it.
39030
39031 2009-05-21  Eric Blake  <ebb9@byu.net>
39032             Bruno Haible  <bruno@clisp.org>
39033
39034         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39035         invocations.
39036         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39037
39038 2009-05-21  Eric Blake  <ebb9@byu.net>
39039             Bruno Haible  <bruno@clisp.org>
39040
39041         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39042         include_next. Fix of 2008-11-20 commit.
39043         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39044         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39045         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39046         NEXT_MATH_H.
39047         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39048         instead of NEXT_MATH_H.
39049
39050 2009-05-21  Bruno Haible  <bruno@clisp.org>
39051
39052         Avoid redefinition warnings for SIZE_MAX.
39053         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39054         Reported by Simon Josefsson.
39055
39056 2009-05-21  Bruno Haible  <bruno@clisp.org>
39057
39058         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39059         AC_CACHE_VAL.
39060
39061 2009-05-20  Bruno Haible  <bruno@clisp.org>
39062
39063         Make zeroptr.h work on mingw.
39064         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39065         mprotect.
39066         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39067         * modules/memchr2-tests (configure.ac): Likewise.
39068         * modules/memcmp-tests (configure.ac): Likewise.
39069         * modules/memmem-tests (configure.ac): Likewise.
39070         * modules/memrchr-tests (configure.ac): Likewise.
39071         Reported by Simon Josefsson.
39072
39073 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39074
39075         * tests/test-glob.c: Include string.h for strcmp prototype.
39076
39077 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39078
39079         * modules/getdelim (Depends-on): Add explicit stdint, although it
39080         was implicitly already pulled in via realloc-posix.
39081         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39082
39083 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39084
39085         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39086         G. Christensen" <tgc@jupiterrise.com>.
39087         * m4/sys_socket_h.m4: Check for sa_family_t.
39088         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39089         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39090         * tests/test-sys_socket.c: Check that sa_family_t works.
39091
39092 2009-05-18  Eric Blake  <ebb9@byu.net>
39093
39094         maint.mk: allow gnulib_dir in VPATH build
39095         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39096
39097 2009-05-15  Jim Meyering  <meyering@redhat.com>
39098
39099         maint.mk: Give gnulib_dir a default definition.
39100         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39101         Thus, most packages no longer need to specify this variable in cfg.mk
39102
39103 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39104
39105         rename.m4: fix typos that would make non-mingw cross-configure fail
39106         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39107
39108 2009-05-13  Eric Blake  <ebb9@byu.net>
39109
39110         mmap-anon: avoid out-of-order autoconf expansion
39111         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39112         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39113         * modules/memchr-tests (Depends-on): Add extensions.
39114         * modules/memchr2-tests (Depends-on): Add extensions.
39115         * modules/memcmp-tests (Depends-on): Add extensions.
39116         * modules/memmem-tests (Depends-on): Add extensions.
39117         * modules/memrchr-tests (Depends-on): Add extensions.
39118
39119 2009-05-13  Bruno Haible  <bruno@clisp.org>
39120
39121         Make some tests ISO C 99 compliant.
39122         * tests/zerosize-ptr.h: New file.
39123         * tests/test-memchr.c: Include zerosize-ptr.h.
39124         (main): Use a zero-size object pointer instead of NULL.
39125         * tests/test-memchr2.c: Include zerosize-ptr.h.
39126         (main): Use a zero-size object pointer instead of NULL.
39127         * tests/test-memcmp.c: Include zerosize-ptr.h.
39128         (main): Use a zero-size object pointer instead of NULL.
39129         * tests/test-memmem.c: Include zerosize-ptr.h.
39130         (main): Use a zero-size object pointer instead of NULL.
39131         * tests/test-memrchr.c: Include zerosize-ptr.h.
39132         (main): Use a zero-size object pointer instead of NULL.
39133         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39134         m4/mmap-anon.m4.
39135         (Depends-on): Add getpagesize.
39136         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39137         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39138         m4/mmap-anon.m4.
39139         (Depends-on): Add getpagesize.
39140         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39141         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39142         m4/mmap-anon.m4.
39143         (Depends-on): Add getpagesize.
39144         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39145         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39146         m4/mmap-anon.m4.
39147         (Depends-on): Add getpagesize.
39148         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39149         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39150         m4/mmap-anon.m4.
39151         (Depends-on): Add getpagesize.
39152         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39153
39154 2009-05-12  Bruno Haible  <bruno@clisp.org>
39155
39156         Tests for module 'alignof'.
39157         * modules/alignof-tests: New file.
39158         * tests/test-alignof.c: New file.
39159
39160 2009-05-12  Bruno Haible  <bruno@clisp.org>
39161
39162         Fix alignof macro.
39163         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39164         vendor compilers that are always correct.
39165
39166 2009-05-12  Bruno Haible  <bruno@clisp.org>
39167
39168         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39169         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39170         not whether its fully works.
39171
39172 2009-05-12  Bruno Haible  <bruno@clisp.org>
39173
39174         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39175
39176 2009-05-12  Jim Meyering  <meyering@redhat.com>
39177
39178         * top/maint.mk: Adjust backslash alignment.
39179
39180 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39181
39182         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39183
39184 2009-05-11  Eric Blake  <ebb9@byu.net>
39185
39186         argp: avoid undefined behavior
39187         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39188         macros.
39189
39190 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39191
39192         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39193         user.name to prevent git commit from complaining.
39194
39195 2009-05-10  Bruno Haible  <bruno@clisp.org>
39196
39197         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39198         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39199         it rewrites every file name only once.
39200         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39201
39202 2009-05-08  Bruno Haible  <bruno@clisp.org>
39203
39204         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39205         instead of 'max'.
39206
39207 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39208
39209         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39210         sockaddr_storage test.
39211
39212 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39213
39214         * modules/sys_socket (Makefile.am): Substitute
39215         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39216         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39217         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39218         * tests/test-sys_socket.c: Check sockaddr_storage.
39219
39220 2009-05-08  Bruno Haible  <bruno@clisp.org>
39221
39222         New module 'alignof'.
39223         * lib/alignof.h: New file.
39224         * modules/alignof: New file.
39225
39226 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39227             Bruno Haible  <bruno@clisp.org>
39228
39229         Fix test-file-has-acl on FreeBSD.
39230         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39231         mask is implicitly added.
39232         * tests/test-file-has-acl.c: Include <signal.h>.
39233         (main): Terminate the test after 5 seconds.
39234         * modules/acl-tests (configure.ac): Check for alarm function.
39235
39236 2009-05-04  Bruno Haible  <bruno@clisp.org>
39237
39238         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39239         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39240         * modules/errno (configure.ac): Drop AC_REQUIRE.
39241         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39242         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39243
39244 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39245
39246         * modules/glob-tests: New module.
39247         * tests/test-glob.c: Add.
39248
39249 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39250
39251         * modules/fnmatch-tests: New module.
39252         * tests/test-fnmatch.c: Add.
39253
39254 2009-05-04  Eric Blake  <ebb9@byu.net>
39255
39256         maint: make the new no-submodule-changes rule VPATH-safe
39257         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39258
39259 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39260             Bruno Haible  <bruno@clisp.org>
39261
39262         acl: Fix infinite loop on FreeBSD.
39263         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39264         of return value from acl_get_entry.
39265         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39266         Likewise.
39267
39268 2009-05-03  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/acl-internal.h (acl_entries): Clarify return value.
39271         * lib/acl_entries.c (acl_entries): Likewise.
39272
39273 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39274
39275         Bug fix in acl module.
39276         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39277
39278 2009-05-03  Bruno Haible  <bruno@clisp.org>
39279
39280         Create gperf-generated file in the source dir, not in the build dir.
39281         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39282         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39283         * modules/unicase/locale-language (unicase/locale-languages.h):
39284         Likewise.
39285         * modules/unicase/special-casing (unicase/special-casing-table.h):
39286         Likewise.
39287         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39288         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39289         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39290         Reported by Ralf Wildenhues.
39291
39292 2009-05-03  Bruno Haible  <bruno@clisp.org>
39293
39294         * modules/fnmatch (Description, configure.ac): Taken from
39295         fnmatch-posix.
39296         * modules/fnmatch-posix: Turn into a symbolic reference to the
39297         'fnmatch' module, and deprecate.
39298         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39299
39300 2009-05-03  Bruno Haible  <bruno@clisp.org>
39301
39302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39303         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39304         Reported by Ralf Wildenhues.
39305
39306 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39307
39308         * m4/fnmatch.m4: Fix fnmatch re-define.
39309
39310 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39311
39312         priv-set: new module and tests; adapt write-any-file
39313         * lib/priv-set.c: New file.
39314         * lib/priv-set.h: New file.
39315         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39316         * lib/write-any-file.c: Simplify by using priv-set module.
39317         * m4/priv-set.m4: New file.
39318         * modules/priv-set: New file.
39319         * modules/unlinkdir: Add dependency on priv-set module.
39320         * modules/write-any-file: Likewise.
39321
39322         Tests for module 'priv-set'.
39323         * modules/priv-set-tests: New file.
39324         * tests/test-priv-set.c: New file.
39325
39326 2009-05-03  Jim Meyering  <meyering@redhat.com>
39327             Bruno Haible  <bruno@clisp.org>
39328
39329         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39330         use the converted UTF-8 variant of the name instead.
39331
39332 2009-05-03  Jim Meyering  <meyering@redhat.com>
39333
39334         tests: tighten some getdate tests
39335         * tests/test-getdate.c (main): Tighten tests: require equality,
39336         not just greater than.  Set TZ envvar to UTC0.
39337
39338 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39339
39340         getdate: correctly interpret "next monday" when run on a Monday
39341         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39342         that e.g., "next tues" (when run on a tuesday) results in a date
39343         that is one week in the future, and not today's date.
39344         I.e., add a week when the wday is the same as the current one.
39345         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39346         and earlier by Martin Bernreuther and Jan Minář.
39347         * tests/test-getdate.c (main): Check that "next DAY" is always in
39348         the future and that "last DAY" is always in the past.
39349
39350 2009-05-02  Jim Meyering  <meyering@redhat.com>
39351
39352         build: ensure that a release build fails when a submodule is unclean
39353         * top/maint.mk (no-submodule-changes): New rule.
39354         (alpha beta major): Depend on it.
39355
39356 2009-05-02  Bruno Haible  <bruno@clisp.org>
39357
39358         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39359         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39360         shell variable gl_fnmatch_required to detect which variant is
39361         requested.
39362         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39363         gl_FUNC_FNMATCH_POSIX.
39364         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39365         exclude fnmatch-posix.
39366
39367 2009-05-02  Bruno Haible  <bruno@clisp.org>
39368
39369         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39370         * modules/mbsrtowcs (License): Change to LGPLv2+.
39371         * modules/strnlen1 (License): Likewise.
39372         Reported by Simon Josefsson.
39373
39374 2009-05-02  Bruno Haible  <bruno@clisp.org>
39375
39376         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39377         "cross".
39378         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39379         gnulib-tool was called with option --source-base=lib.
39380
39381 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39382
39383         Use automake *-local hooks without commands, for extensibility.
39384         * modules/localcharset (Makefile.am): Rename install-exec-local
39385         rule to install-exec-localcharset, and make it a prerequisite of
39386         install-exec-local.  Likewise, rename the uninstall-local rule to
39387         uninstall-localcharset, and make it a prerequisite of the former.
39388
39389 2009-05-01  Bruno Haible  <bruno@clisp.org>
39390
39391         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39392         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39393         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39395         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39396         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39397         m4/locale-zh.m4, m4/codeset.m4.
39398
39399         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39400         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39401         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39402         m4/locale-zh.m4.
39403
39404         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39405         REPLACE_WCRTOMB if mbstate_t must be replaced.
39406         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39407         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39408
39409 2009-05-01  Bruno Haible  <bruno@clisp.org>
39410
39411         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39412         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39413         dngettext, dcngettext, textdomain, bindtextdomain,
39414         bind_textdomain_codeset): Undefine before redefining.
39415
39416 2009-04-30  Bruno Haible  <bruno@clisp.org>
39417
39418         Fix bug introduced on 2009-04-25.
39419         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39420         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39421         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39422         is defined.
39423         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39424         is defined.
39425         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39426         is defined.
39427         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39428
39429 2009-04-28  Bruno Haible  <bruno@clisp.org>
39430
39431         Comment tweaks.
39432         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39433         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39434         * lib/unicase.h (u*_casexfrm): Likewise.
39435         Reported by Paolo Bonzini.
39436
39437 2009-04-28  Bruno Haible  <bruno@clisp.org>
39438
39439         Fix a compilation error.
39440         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39441         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39442         Reported by Jim Meyering.
39443
39444 2009-04-27  Bruno Haible  <bruno@clisp.org>
39445
39446         New module 'libunistring'.
39447         * modules/libunistring: New file.
39448         * m4/libunistring.m4: New file.
39449         * MODULES.html.sh (Unicode string functions): Add it.
39450
39451 2009-04-27  Eric Blake  <ebb9@byu.net>
39452
39453         maint.mk: allow package-specific header to provide <config.h>
39454         * top/maint.mk (sc_require_config_h): New variable.
39455         (sc_require_config_h, sc_require_config_h_first): Use it.
39456
39457 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39458
39459         * top/maint.mk (sc_avoid_if_before_free): Except
39460         useless-if-before-free script.
39461
39462 2009-04-27  Eric Blake  <ebb9@byu.net>
39463
39464         maintainer-makefile: depend on all required helper scripts
39465         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39466         useless-if-before-free.
39467         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39468         version, rather than assuming gnulib checkout is available.
39469         Reported by Simen Josefsson.
39470
39471 2009-04-26  Bruno Haible  <bruno@clisp.org>
39472
39473         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39474         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39475         "../" or "..".
39476
39477 2009-04-26  Bruno Haible  <bruno@clisp.org>
39478
39479         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39480         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39481         AC_LIB_HAVE_LINKFLAGS.
39482
39483 2009-04-26  Bruno Haible  <bruno@clisp.org>
39484
39485         Simplify calling convention of u*_conv_from_encoding.
39486         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39487         u32_conv_from_encoding): Expect a resultbuf argument and return the
39488         result directly as a pointer.
39489         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39490         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39491         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39492         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39493         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39494         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39495         Update.
39496         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39497         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39498         * lib/vasnprintf.c (VASNPRINTF): Update.
39499         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39500         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39501         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39502         * NEWS: Mention the change.
39503
39504 2009-04-26  Bruno Haible  <bruno@clisp.org>
39505
39506         Simplify calling convention of u*_conv_to_encoding.
39507         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39508         u32_conv_to_encoding): Expect a resultbuf argument and return the
39509         result directly as a pointer.
39510         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39511         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39512         freeing scaled_offsets if mem_iconveha failed.
39513         * lib/unicase/u-casexfrm.h (FUNC): Update.
39514         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39515         * lib/vasnprintf.c (VASNPRINTF): Update.
39516         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39517         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39518         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39519         * NEWS: Mention the change.
39520
39521 2009-04-26  Bruno Haible  <bruno@clisp.org>
39522
39523         Avoid test failures on AIX and OSF/1.
39524         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39525         malloc(0).
39526         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39527         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39528         Likewise.
39529         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39530         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39531         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39532         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39533         * doc/posix-functions/malloc.texi: Document the portability problem
39534         related to malloc(0).
39535
39536 2009-04-26  Bruno Haible  <bruno@clisp.org>
39537
39538         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39539         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39540         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39541
39542 2009-04-25  Bruno Haible  <bruno@clisp.org>
39543
39544         Avoid link error when creating a namespace clean library.
39545         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39546         as macro with arguments if already defined as an alias.
39547         * lib/signbitf.c (gl_signbitf): Don't undefine.
39548         * lib/signbitd.c (gl_signbitd): Don't undefine.
39549         * lib/signbitl.c (gl_signbitl): Don't undefine.
39550
39551 2009-04-25  Jim Meyering  <meyering@redhat.com>
39552
39553         vc-list-files: fix another quoting bug
39554         * build-aux/vc-list-files: Avoid sed backslash expansion
39555         of pathological directory names.
39556
39557 2009-04-25  Eric Blake  <ebb9@byu.net>
39558
39559         vc-list-files: fix shell quoting error
39560         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39561         timestamp.
39562
39563 2009-04-25  Jim Meyering  <meyering@redhat.com>
39564
39565         vc-list-files: restore lost functionality with subdir argument
39566         * build-aux/vc-list-files: When given a non-"." sub-directory
39567         argument, substitute the $dir/ prefix back onto each resulting name.
39568         Otherwise, coreutils' root_tests check would fail.
39569
39570 2009-04-24  Eric Blake  <ebb9@byu.net>
39571
39572         vc-list-files: ignore git symlinks
39573         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39574         than ls-files, to ignore git symlinks.
39575
39576         maint.mk: import improvements from m4
39577         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39578         (move_if_change): Delete unused macro.
39579         (news-date-check, vc-diff-check): Support VPATH builds.
39580         (announcement): Likewise.  Split --bootstrap-tools list...
39581         (boostrap-tools): ...into separate list, which can be overridden
39582         in cfg.mk.
39583         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39584         requiring dependency on useless-if-before-free module.
39585         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39586         Support VPATH builds.
39587
39588 2009-04-24  Jim Meyering  <meyering@redhat.com>
39589
39590         maint.mk: remove coreutils-specific rules and variables
39591         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39592         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39593         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39594
39595         maint.mk: remove obsolete rule
39596         * top/maint.mk (rel-check): Remove rule.
39597         (WGET, WGETFLAGS): Remove now-unused variables.
39598
39599 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39600
39601         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39602         consistency.
39603
39604         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39605         '$(PATH_SEPARATOR)' instead of ':'.
39606
39607 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39608
39609         * lib/getopt1.c (main): Use 'const' for static array.
39610
39611 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39612
39613         * top/maint.mk: Sync with coreutils.
39614         * NEWS: Explain incompatibilities.
39615
39616 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39617             Bruno Haible  <bruno@clisp.org>
39618
39619         Fix cross-compilation results.
39620         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39621         statement, as third argument of AC_TRY_RUN.
39622         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39623         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39624         Likewise.
39625         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39626         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39627         Likewise.
39628         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39629         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39630         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39631
39632 2009-04-20  Bruno Haible  <bruno@clisp.org>
39633
39634         Avoid test failure on mingw.
39635         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39636
39637 2009-04-20  Bruno Haible  <bruno@clisp.org>
39638
39639         Avoid compilation error on mingw.
39640         * modules/localename-tests (Depends-on): Add locale.
39641
39642 2009-04-19  Bruno Haible  <bruno@clisp.org>
39643
39644         Support for building a shared library on Windows platforms.
39645         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39646         (main): Test the presence of UNINORM_NFC here.
39647         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39648         (main): Test the presence of UNINORM_NFD here.
39649         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39650         (main): Test the presence of UNINORM_NFKC here.
39651         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39652         (main): Test the presence of UNINORM_NFKD here.
39653
39654 2009-04-19  Bruno Haible  <bruno@clisp.org>
39655
39656         Avoid a compiler warning.
39657         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39658         Change type of variable 'sequence'.
39659
39660 2009-04-19  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/configmake (Makefile.am): When the contents of configmake.h
39663         does not change, arrange to preserve its modification time.
39664
39665 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39666
39667         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39668         gettext domain.
39669
39670 2009-04-16  Jim Meyering  <meyering@redhat.com>
39671
39672         useless-if-before-free: improve conversion code
39673         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39674         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39675
39676 2009-04-14  Bruno Haible  <bruno@clisp.org>
39677
39678         * modules/fcntl (Depends-on): Add extensions.
39679         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39680
39681 2009-04-12  Ben Pfaff  <blp@gnu.org>
39682
39683         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39684         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39685
39686 2009-03-20  Ben Pfaff  <blp@gnu.org>
39687
39688         Make rename replace existing destinations on Windows.
39689         * m4/rename.m4: Add test for Mingw.
39690         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39691         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39692         * doc/posix-functions/rename.texi: Document.
39693
39694 2009-04-10  Bruno Haible  <bruno@clisp.org>
39695
39696         New include file "iconveh.h".
39697         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39698         * lib/striconveh.h: Include it.
39699         (enum iconv_ilseq_handler): Remove definition.
39700         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39701         striconveh.h.
39702         * lib/striconveha.c: Include striconveh.h.
39703         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39704         * modules/striconveh (Files): Add lib/iconveh.h.
39705         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39706         lib/striconveh.h.
39707
39708 2009-04-10  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/uniconv.h: Update comment.
39711
39712 2009-04-10  Bruno Haible  <bruno@clisp.org>
39713
39714         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39715         always.
39716         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39717         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39718         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39719         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39720         "unistring-notinline.h", so that the function gets defined always.
39721         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39722         * lib/unistr/u8-uctomb.c: Likewise.
39723         * lib/unistr/u16-mbtouc.c: Likewise.
39724         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39725         * lib/unistr/u16-uctomb.c: Likewise.
39726         * lib/unistr/u32-mbtouc.c: Likewise.
39727         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39728         * lib/unistr/u32-uctomb.c: Likewise.
39729
39730 2009-04-10  Bruno Haible  <bruno@clisp.org>
39731
39732         Mark 'utime' obsolete.
39733         * modules/utime (Status, Notice): New sections.
39734         Suggested by Jim Meyering.
39735
39736         Fix cross-compile guess for utime test.
39737         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39738         autoconf.
39739         * doc/posix-functions/utime.texi: Give more precisions.
39740         Reported by Jan <ipif@ymail.com>.
39741
39742 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39743
39744         filevercmp: correct today's change
39745         * lib/filevercmp.c: Also handle coreutils' test inputs.
39746         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39747
39748         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39749         for reporting it.
39750         * lib/filevercmp.c: Special handle for "", "." and "..".
39751         * tests/test-filevercmp.c: Enlarge the set suite.
39752
39753 2009-04-07  Jim Meyering  <meyering@redhat.com>
39754
39755         useless-if-before-free: show how to remove braced useless free, too
39756         * build-aux/useless-if-before-free: still only in a comment, though.
39757
39758 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39759
39760         maint.mk: import changes to syntax-check macros from coreutils
39761         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39762         Use them in the relevant macros.
39763
39764 2009-04-06  Bruno Haible  <bruno@clisp.org>
39765
39766         Fix unportable use of bit-fields.
39767         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39768         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39769         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39770
39771 2009-04-06  Bruno Haible  <bruno@clisp.org>
39772
39773         Avoid test failures on AIX and OSF/1.
39774         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39775         that malloc(0) = NULL.
39776         * tests/unicase/test-u8-tolower.c (check): Likewise.
39777         * tests/unicase/test-u8-totitle.c (check): Likewise.
39778         * tests/unicase/test-u8-toupper.c (check): Likewise.
39779         * tests/unicase/test-u16-casefold.c (check): Likewise.
39780         * tests/unicase/test-u16-tolower.c (check): Likewise.
39781         * tests/unicase/test-u16-totitle.c (check): Likewise.
39782         * tests/unicase/test-u16-toupper.c (check): Likewise.
39783         * tests/unicase/test-u32-casefold.c (check): Likewise.
39784         * tests/unicase/test-u32-tolower.c (check): Likewise.
39785         * tests/unicase/test-u32-totitle.c (check): Likewise.
39786         * tests/unicase/test-u32-toupper.c (check): Likewise.
39787         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39788         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39789         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39790         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39791         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39792         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39793         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39794         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39795         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39796         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39797         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39798         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39799
39800 2009-04-05  Bruno Haible  <bruno@clisp.org>
39801
39802         Work around an autoconf limitation.
39803         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39804         comment line if it would be longer than 3 KB.
39805
39806 2009-04-05  Bruno Haible  <bruno@clisp.org>
39807
39808         Avoid test failure with libiconv-1.13.
39809         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39810         of the expected test results.
39811
39812 2009-04-05  Bruno Haible  <bruno@clisp.org>
39813
39814         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39815         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39816         that it should be installed.
39817
39818 2009-04-05  Bruno Haible  <bruno@clisp.org>
39819
39820         * gnulib-tool: New option --copy-file.
39821         (func_usage): Document it.
39822         (func_dest_tmpfilename): Moved out of func_import.
39823         (func_add_file, func_update_file): New functions, extracted from
39824         func_import.
39825         (func_import): Update.
39826
39827 2009-04-05  Karl Berry  <karl@gnu.org>
39828
39829         * README: prominently mention gnulib-tool.
39830         Rearrange sections so getting the code is near the top.
39831
39832 2009-04-05  Bruno Haible  <bruno@clisp.org>
39833
39834         * lib/unicase.h: Mention u*_cmp2.
39835         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39836         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39837         * lib/unicase/ulc-casecmp.c: Likewise.
39838         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39839         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39840         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39841         unistr/u8-cmp.
39842         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39843         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39844         unistr/u16-cmp.
39845         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39846         unistr/u32-cmp.
39847
39848         * lib/uninorm.h: Mention u*_cmp2.
39849         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39850         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39851         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39852         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39853         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39854         unistr/u8-cmp.
39855         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39856         unistr/u16-cmp.
39857         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39858         unistr/u32-cmp.
39859
39860         New module 'unistr/u32-cmp2'.
39861         * lib/unistr/u32-cmp2.c: New file.
39862         * modules/unistr/u32-cmp2: New file.
39863
39864         New module 'unistr/u16-cmp2'.
39865         * lib/unistr/u16-cmp2.c: New file.
39866         * modules/unistr/u16-cmp2: New file.
39867
39868         New module 'unistr/u8-cmp2'.
39869         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39870         * lib/unistr/u8-cmp2.c: New file.
39871         * lib/unistr/u-cmp2.h: New file.
39872         * modules/unistr/u8-cmp2: New file.
39873
39874 2009-04-05  Bruno Haible  <bruno@clisp.org>
39875
39876         * lib/unictype.h (uc_property_is_valid): New macro.
39877         * tests/unictype/test-pr_byname.c (main): Use it.
39878
39879         * lib/unistr.h: Doc fixes.
39880         * lib/uniconv.h: Doc fixes.
39881         * lib/unictype.h: Doc fixes.
39882
39883 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39884
39885         Port coreutils 7.2 to Solaris 8.
39886
39887         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39888         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39889         for Solaris 8.  This is a bit of a hack, as it means it's the
39890         caller's responsibility to add -lnsl if needed, but most likely it
39891         won't be needed since only getaddrinfo uses this and getaddrinfo
39892         isn't needed on Solaris 8.
39893
39894         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39895         problem to Solaris 8 encountered with coreutils 7.2, which
39896         resulted in a message "fnmatch.c:292: warning: passing argument 4
39897         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39898         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39899
39900 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39901
39902         * m4/ld-version-script.m4: Add FIXME comment.
39903
39904 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39905
39906         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39907         SOVERSION variable.
39908
39909 2009-04-02  Bruno Haible  <bruno@clisp.org>
39910
39911         * Makefile (info, html, dvi, pdf): Combine the rules.
39912         Suggested by Jim Meyering.
39913
39914 2009-04-01  Bruno Haible  <bruno@clisp.org>
39915
39916         * Makefile (info, html, dvi, pdf): New targets.
39917         Reported by Reuben Thomas <rrt@sc3d.org>.
39918
39919 2009-04-01  Bruno Haible  <bruno@clisp.org>
39920
39921         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39922         can be put into PATH.
39923         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39924
39925 2009-04-01  Bruno Haible  <bruno@clisp.org>
39926
39927         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39928
39929 2009-04-01  Bruno Haible  <bruno@clisp.org>
39930
39931         Rename module 'visibility'.
39932         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39933         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39934         * doc/gnulib.texi: Update.
39935         * MODULES.html.sh (Misc): Update.
39936         * NEWS: Mention the change.
39937
39938 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39939
39940         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39941         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39942         Eric Blake <ebb9@byu.net> for review.
39943         * MODULES.html.sh: Add lib-msvc-compat.
39944         * doc/gnulib.texi: Link to new section.
39945         * m4/ld-output-def.m4: New file.
39946         * doc/ld-output-def.texi: New file.
39947
39948 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39949
39950         Rename ld-version-script to lib-symbol-versions.  Suggested by
39951         Bruno Haible <bruno@clisp.org>.
39952         * modules/ld-version-script: Renamed to lib-symbol-versions.
39953         * doc/ld-version-script.texi: Fix module name.
39954         * MODULES.html.sh: Add lib-symbol-versions.
39955
39956 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39957
39958         * modules/u64-tests: New file.
39959         * tests/test-u64.c: New file.
39960
39961 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39962
39963         * MODULES.html.sh: Mention u64.
39964         * modules/u64: New module.
39965         * modules/crypto/sha512: Depend on u64 module instead of providing
39966         u64.h.
39967
39968 2009-03-27  Eric Blake  <ebb9@byu.net>
39969
39970         test-strerror: make debugging EAI_SYSTEM easier
39971         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39972         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39973         failure was EAI_SYSTEM.
39974
39975 2009-03-25  Bruno Haible  <bruno@clisp.org>
39976
39977         Fix a problem with --enable-relocatable on Solaris 7.
39978         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39979         since 2008-02-24.
39980
39981 2009-03-25  Eric Blake  <ebb9@byu.net>
39982
39983         test-sockets: avoid gcc warning
39984         * tests/test-sockets.c (main): Silence compiler warning.
39985
39986 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39987
39988         New modules nproc, pthread, contributed by Glen Lenker.
39989
39990         * MODULES.html.sh: Add pthread, nproc.
39991         * lib/nproc.c: New file.
39992         * lib/nproc.h: New file.
39993         * lib/pthread.in.h: New file.
39994         * m4/pthread.m4: New file.
39995         * modules/nproc: New file.
39996         * modules/pthread: New file.
39997
39998 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39999
40000         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40001         New variable.
40002
40003 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40004
40005         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40006         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40007         * tests/test-filevercmp.c: Add tests for backup suffixes.
40008
40009 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40010
40011         * modules/stdlib (Depends-on): Add stdint, needed when defining
40012         struct random_data on, for example, HP-UX 10.20.  Reported by
40013         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40014
40015 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40016
40017         * lib/readline.c (readline): Call fflush on stdout after printing
40018         prompt.
40019
40020 2009-03-20  Bruno Haible  <bruno@clisp.org>
40021
40022         Remove dependency from 'close' module to -lws2_32 on native Windows.
40023         * lib/close-hook.h: New file.
40024         * lib/close-hook.c: New file.
40025         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40026         w32sock.h.
40027         (_gl_close_fd_maybe_socket): Remove function.
40028         (rpl_close): Invoke execute_all_close_hooks instead of
40029         _gl_close_fd_maybe_socket.
40030         * lib/sockets.c: Include close-hook.h, w32sock.h.
40031         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40032         (close_sockets_hook): New variable.
40033         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40034         (gl_sockets_cleanup): Unregister it.
40035         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40036         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40037         * modules/close-hook: New file.
40038         * modules/close (Files): Remove lib/w32sock.h.
40039         (Depends-on): Add close-hook.
40040         (Link): Remove section.
40041         * modules/sockets (Files): Add lib/w32sock.h.
40042         (Depends-on): Add close-hook.
40043         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40044         invocation.
40045         * NEWS: Mention that LIB_CLOSE is gone.
40046
40047 2009-03-23  Eric Blake  <ebb9@byu.net>
40048
40049         signal-tests: test previous patch
40050         * tests/test-signal.c: New file.
40051         * modules/signal-tests: Likewise.
40052
40053         signal.h: always support 'volatile sig_atomic_t'
40054         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40055         (gl_SIGNAL_H_DEFAULTS): Add a default.
40056         * modules/signal (Makefile.am): Substitute if needed.
40057         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40058         users can blindly add volatile.
40059         * doc/posix-headers/signal.texi (signal.h): Document it.
40060         Reported by Matthew Woehlke.
40061
40062 2009-03-23  Jim Meyering  <meyering@redhat.com>
40063
40064         pathmax: PATH_MAX: use pathconf only when available
40065         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40066         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40067         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40068         This avoids a link failure in a PSP cross-compilation environment
40069         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40070
40071         * lib/vasnprintf.c (divide): Fix typo in comment.
40072
40073 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40074
40075         * gnulib-tool (func_filter_filelist): Fix comment.
40076
40077 2009-03-20  Bruno Haible  <bruno@clisp.org>
40078
40079         Make sockets.h self-contained.
40080         * lib/sockets.c: Include sockets.h first.
40081         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40082
40083 2009-03-19  Eric Blake  <ebb9@byu.net>
40084
40085         doc: mention more functions added in cygwin 1.7.0
40086         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40087         addition.
40088         * doc/posix-functions/log2f.texi: Likewise.
40089
40090 2009-03-19  Jim Meyering  <meyering@redhat.com>
40091
40092         fsusage: avoid syntax error due to statement-before-declaration
40093         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40094         after all declarations.  Reported by Matthew Woehlke in
40095         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40096
40097 2009-03-18  Eric Blake  <ebb9@byu.net>
40098
40099         build-aux/compile: sync from automake
40100         * build-aux/compile: New file, from automake.
40101         * config/srclist.txt: Mention build-aux/compile.
40102
40103 2009-03-17  Bruno Haible  <bruno@clisp.org>
40104
40105         * lib/git-merge-changelog.c: Fix typo in comment.
40106         Reported by Reuben Thomas <rrt@sc3d.org>.
40107
40108 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40109
40110         * m4/regex.m4: update and improve help for
40111         --without-included-regex.
40112
40113 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40114
40115         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40116         failure on missing include files.
40117
40118 2009-03-17  Eric Blake  <ebb9@byu.net>
40119
40120         doc: mention more functions added in cygwin 1.7.0
40121         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40122         addition.
40123         * doc/posix-functions/fwscanf.texi: Likewise.
40124         * doc/posix-functions/swprintf.texi: Likewise.
40125         * doc/posix-functions/swscanf.texi: Likewise.
40126         * doc/posix-functions/vfwprintf.texi: Likewise.
40127         * doc/posix-functions/vfwscanf.texi: Likewise.
40128         * doc/posix-functions/vswprintf.texi: Likewise.
40129         * doc/posix-functions/vswscanf.texi: Likewise.
40130         * doc/posix-functions/vwprintf.texi: Likewise.
40131         * doc/posix-functions/vwscanf.texi: Likewise.
40132         * doc/posix-functions/wcscasecmp.texi: Likewise.
40133         * doc/posix-functions/wcsdup.texi: Likewise.
40134         * doc/posix-functions/wcsftime.texi: Likewise.
40135         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40136         * doc/posix-functions/wprintf.texi: Likewise.
40137         * doc/posix-functions/wscanf.texi: Likewise.
40138         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40139
40140 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40141
40142         maint.mk: really add $(AM_MAKEFLAGS)
40143         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40144         was inadvertently omitted in the last commit.
40145         Spotted by Bruno Haible.
40146
40147         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40148         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40149         $(AM_MAKEFLAGS)' rather than plain `make'.
40150
40151         gnulib-tool: execute $MAKE not make
40152         * gnulib-tool: Default $MAKE to 'make'.
40153         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40154         than make.  Initialize $MAKE in the do-autobuild script.
40155
40156         gnulib-tool: use $MAKE not make in generated files
40157         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40158         make, in generated files.  Initialize $MAKE in the do-autobuild
40159         script.
40160
40161         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40162
40163         GNUmakefile: disable parallelism only for multiple, recursive targets
40164         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40165         additions in the Makefile.
40166         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40167         by Automake.
40168         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40169         are listed on the command line and at least one of them is
40170         listed in $(ALL_RECURSIVE_TARGETS).
40171
40172 2009-03-14  Bruno Haible  <bruno@clisp.org>
40173
40174         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40175         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40176         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40177         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40178         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40179         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40180         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40181         unistr/u8-uctomb.
40182         * modules/unistr/u8-strchr (Depends-on): Likewise.
40183         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40184         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40185         unistr/u16-uctomb.
40186         * modules/unistr/u16-strchr (Depends-on): Likewise.
40187         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40188
40189 2009-03-12  Bruno Haible  <bruno@clisp.org>
40190
40191         Work around select() bug on Interix 3.5.
40192         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40193         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40194         * m4/select.m4: New file.
40195         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40196         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40197         * modules/select (Files): Add m4/select.m4.
40198         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40199         * modules/nanosleep (Depends-on): Add select.
40200         * modules/poll (Depends-on): Likewise.
40201         * doc/posix-functions/select.texi: Mention the Interix bug.
40202         Reported by Markus Duft <mduft@gentoo.org>.
40203
40204         * lib/select.c: Renamed from lib/winsock-select.c.
40205         * modules/select (Files): Add lib/select.c, remove
40206         lib/winsock-select.c.
40207         (configure.ac): Update.
40208
40209 2009-03-12  Jim Meyering  <meyering@redhat.com>
40210
40211         avoid gcc warnings about unused macro definitions
40212         * lib/readtokens.c (STREQ): Remove unused definition.
40213         * lib/xmalloc.c (SIZE_MAX): Likewise.
40214         * lib/openat-die.c (N_): Likewise.
40215         * lib/mountlist.c (SIZE_MAX): Remove definition.
40216         Instead, include <stdint.h>.
40217         * lib/readutmp.c: Likewise.
40218         * modules/readutmp (Depends-on): Add stdint.
40219         * modules/mountlist (Depends-on): Add stdint.
40220         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40221
40222 2009-03-10  Bruno Haible  <bruno@clisp.org>
40223
40224         Tests for module 'mbmemcasecoll'.
40225         * modules/mbmemcasecoll-tests: New file.
40226         * tests/test-mbmemcasecoll1.sh: New file.
40227         * tests/test-mbmemcasecoll2.sh: New file.
40228         * tests/test-mbmemcasecoll3.sh: New file.
40229         * tests/test-mbmemcasecoll.c: New file.
40230
40231         New module 'mbmemcasecoll'.
40232         * lib/mbmemcasecoll.h: New file.
40233         * lib/mbmemcasecoll.c: New file.
40234         * modules/mbmemcasecoll: New file.
40235
40236         * tests/test-mbmemcasecmp.h: New file, extracted from
40237         tests/test-mbmemcasecmp.c.
40238         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40239         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40240         (main): Update.
40241         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40242
40243 2009-03-09  Bruno Haible  <bruno@clisp.org>
40244
40245         Tests for module 'mbmemcasecmp'.
40246         * modules/mbmemcasecmp-tests: New file.
40247         * tests/test-mbmemcasecmp1.sh: New file.
40248         * tests/test-mbmemcasecmp2.sh: New file.
40249         * tests/test-mbmemcasecmp3.sh: New file.
40250         * tests/test-mbmemcasecmp.c: New file.
40251
40252         New module 'mbmemcasecmp'.
40253         * lib/mbmemcasecmp.h: New file.
40254         * lib/mbmemcasecmp.c: New file.
40255         * modules/mbmemcasecmp: New file.
40256
40257 2009-03-09  Bruno Haible  <bruno@clisp.org>
40258
40259         Tests for module 'unicase/ulc-casecoll'.
40260         * modules/unicase/ulc-casecoll-tests: New file.
40261         * tests/unicase/test-ulc-casecoll1.sh: New file.
40262         * tests/unicase/test-ulc-casecoll2.sh: New file.
40263         * tests/unicase/test-ulc-casecoll.c: New file.
40264
40265         New module 'unicase/ulc-casecoll'.
40266         * lib/unicase.h (ulc_casecoll): New declaration.
40267         * lib/unicase/ulc-casecoll.c: New file.
40268         * modules/unicase/ulc-casecoll: New file.
40269
40270         New module 'unicase/ulc-casexfrm'.
40271         * lib/unicase.h (ulc_casexfrm): New declaration.
40272         * lib/unicase/ulc-casexfrm.c: New file.
40273         * modules/unicase/ulc-casexfrm: New file.
40274
40275 2009-03-09  Bruno Haible  <bruno@clisp.org>
40276
40277         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40278         invocations.
40279
40280         * m4/mbscasecmp.m4: Remove file.
40281         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40282         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40283
40284         * m4/mbscasestr.m4: Remove file.
40285         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40286         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40287
40288         * m4/mbschr.m4: Remove file.
40289         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40290         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40291
40292         * m4/mbscspn.m4: Remove file.
40293         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40294         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40295
40296         * m4/mbslen.m4: Remove file.
40297         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40298         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40299
40300         * m4/mbsncasecmp.m4: Remove file.
40301         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40302         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40303
40304         * m4/mbsnlen.m4: Remove file.
40305         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40306         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40307
40308         * m4/mbspbrk.m4: Remove file.
40309         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40310         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40311
40312         * m4/mbspcasecmp.m4: Remove file.
40313         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40314         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40315
40316         * m4/mbsrchr.m4: Remove file.
40317         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40318         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40319
40320         * m4/mbssep.m4: Remove file.
40321         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40322         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40323
40324         * m4/mbsspn.m4: Remove file.
40325         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40326         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40327
40328         * m4/mbsstr.m4: Remove file.
40329         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40330         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40331
40332         * m4/mbstok_r.m4: Remove file.
40333         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40334         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40335
40336         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40337
40338         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40339         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40340
40341         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40342
40343 2009-03-08  Bruno Haible  <bruno@clisp.org>
40344
40345         Tests for module 'unicase/ulc-casecmp'.
40346         * modules/unicase/ulc-casecmp-tests: New file.
40347         * tests/unicase/test-ulc-casecmp1.sh: New file.
40348         * tests/unicase/test-ulc-casecmp2.sh: New file.
40349         * tests/unicase/test-ulc-casecmp.c: New file.
40350
40351         New module 'unicase/ulc-casecmp'.
40352         * lib/unicase.h (ulc_casecmp): New declaration.
40353         * lib/unicase/ulc-casecmp.c: New file.
40354         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40355         'const SRC_UNIT *'.
40356         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40357         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40358         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40359         * modules/unicase/ulc-casecmp: New file.
40360
40361         Tests for module 'unicase/u32-is-cased'.
40362         * modules/unicase/u32-is-cased-tests: New file.
40363         * tests/unicase/test-u32-is-cased.c: New file.
40364
40365         Tests for module 'unicase/u16-is-cased'.
40366         * modules/unicase/u16-is-cased-tests: New file.
40367         * tests/unicase/test-u16-is-cased.c: New file.
40368
40369         Tests for module 'unicase/u8-is-cased'.
40370         * modules/unicase/u8-is-cased-tests: New file.
40371         * tests/unicase/test-u8-is-cased.c: New file.
40372         * tests/unicase/test-is-cased.h: New file.
40373
40374         New module 'unicase/u32-is-cased'.
40375         * lib/unicase/u32-is-cased.c: New file.
40376         * modules/unicase/u32-is-cased: New file.
40377
40378         New module 'unicase/u16-is-cased'.
40379         * lib/unicase/u16-is-cased.c: New file.
40380         * modules/unicase/u16-is-cased: New file.
40381
40382         New module 'unicase/u8-is-cased'.
40383         * lib/unicase/u8-is-cased.c: New file.
40384         * lib/unicase/u-is-cased.h: New file.
40385         * modules/unicase/u8-is-cased: New file.
40386
40387         Tests for module 'unicase/u32-is-casefolded'.
40388         * modules/unicase/u32-is-casefolded-tests: New file.
40389         * tests/unicase/test-u32-is-casefolded.c: New file.
40390
40391         Tests for module 'unicase/u16-is-casefolded'.
40392         * modules/unicase/u16-is-casefolded-tests: New file.
40393         * tests/unicase/test-u16-is-casefolded.c: New file.
40394
40395         Tests for module 'unicase/u8-is-casefolded'.
40396         * modules/unicase/u8-is-casefolded-tests: New file.
40397         * tests/unicase/test-u8-is-casefolded.c: New file.
40398         * tests/unicase/test-is-casefolded.h: New file.
40399
40400         New module 'unicase/u32-is-casefolded'.
40401         * lib/unicase/u32-is-casefolded.c: New file.
40402         * modules/unicase/u32-is-casefolded: New file.
40403
40404         New module 'unicase/u16-is-casefolded'.
40405         * lib/unicase/u16-is-casefolded.c: New file.
40406         * modules/unicase/u16-is-casefolded: New file.
40407
40408         New module 'unicase/u8-is-casefolded'.
40409         * lib/unicase/u8-is-casefolded.c: New file.
40410         * modules/unicase/u8-is-casefolded: New file.
40411
40412         Tests for module 'unicase/u32-is-titlecase'.
40413         * modules/unicase/u32-is-titlecase-tests: New file.
40414         * tests/unicase/test-u32-is-titlecase.c: New file.
40415
40416         Tests for module 'unicase/u16-is-titlecase'.
40417         * modules/unicase/u16-is-titlecase-tests: New file.
40418         * tests/unicase/test-u16-is-titlecase.c: New file.
40419
40420         Tests for module 'unicase/u8-is-titlecase'.
40421         * modules/unicase/u8-is-titlecase-tests: New file.
40422         * tests/unicase/test-u8-is-titlecase.c: New file.
40423         * tests/unicase/test-is-titlecase.h: New file.
40424
40425         New module 'unicase/u32-is-titlecase'.
40426         * lib/unicase/u32-is-titlecase.c: New file.
40427         * modules/unicase/u32-is-titlecase: New file.
40428
40429         New module 'unicase/u16-is-titlecase'.
40430         * lib/unicase/u16-is-titlecase.c: New file.
40431         * modules/unicase/u16-is-titlecase: New file.
40432
40433         New module 'unicase/u8-is-titlecase'.
40434         * lib/unicase/u8-is-titlecase.c: New file.
40435         * modules/unicase/u8-is-titlecase: New file.
40436
40437         Tests for module 'unicase/u32-is-lowercase'.
40438         * modules/unicase/u32-is-lowercase-tests: New file.
40439         * tests/unicase/test-u32-is-lowercase.c: New file.
40440
40441         Tests for module 'unicase/u16-is-lowercase'.
40442         * modules/unicase/u16-is-lowercase-tests: New file.
40443         * tests/unicase/test-u16-is-lowercase.c: New file.
40444
40445         Tests for module 'unicase/u8-is-lowercase'.
40446         * modules/unicase/u8-is-lowercase-tests: New file.
40447         * tests/unicase/test-u8-is-lowercase.c: New file.
40448         * tests/unicase/test-is-lowercase.h: New file.
40449
40450         New module 'unicase/u32-is-lowercase'.
40451         * lib/unicase/u32-is-lowercase.c: New file.
40452         * modules/unicase/u32-is-lowercase: New file.
40453
40454         New module 'unicase/u16-is-lowercase'.
40455         * lib/unicase/u16-is-lowercase.c: New file.
40456         * modules/unicase/u16-is-lowercase: New file.
40457
40458         New module 'unicase/u8-is-lowercase'.
40459         * lib/unicase/u8-is-lowercase.c: New file.
40460         * modules/unicase/u8-is-lowercase: New file.
40461
40462         Tests for module 'unicase/u32-is-uppercase'.
40463         * modules/unicase/u32-is-uppercase-tests: New file.
40464         * tests/unicase/test-u32-is-uppercase.c: New file.
40465
40466         Tests for module 'unicase/u16-is-uppercase'.
40467         * modules/unicase/u16-is-uppercase-tests: New file.
40468         * tests/unicase/test-u16-is-uppercase.c: New file.
40469
40470         Tests for module 'unicase/u8-is-uppercase'.
40471         * modules/unicase/u8-is-uppercase-tests: New file.
40472         * tests/unicase/test-u8-is-uppercase.c: New file.
40473         * tests/unicase/test-is-uppercase.h: New file.
40474
40475         New module 'unicase/u32-is-uppercase'.
40476         * lib/unicase/u32-is-uppercase.c: New file.
40477         * modules/unicase/u32-is-uppercase: New file.
40478
40479         New module 'unicase/u16-is-uppercase'.
40480         * lib/unicase/u16-is-uppercase.c: New file.
40481         * modules/unicase/u16-is-uppercase: New file.
40482
40483         New module 'unicase/u8-is-uppercase'.
40484         * lib/unicase/u8-is-uppercase.c: New file.
40485         * modules/unicase/u8-is-uppercase: New file.
40486
40487         New module 'unicase/u32-is-invariant'.
40488         * lib/unicase/u32-is-invariant.c: New file.
40489         * modules/unicase/u32-is-invariant: New file.
40490
40491         New module 'unicase/u16-is-invariant'.
40492         * lib/unicase/u16-is-invariant.c: New file.
40493         * modules/unicase/u16-is-invariant: New file.
40494
40495         New module 'unicase/u8-is-invariant'.
40496         * lib/unicase/u8-is-invariant.c: New file.
40497         * lib/unicase/invariant.h: New file.
40498         * lib/unicase/u-is-invariant.h: New file.
40499         * modules/unicase/u8-is-invariant: New file.
40500
40501         Tests for module 'unicase/u32-casecoll'.
40502         * modules/unicase/u32-casecoll-tests: New file.
40503         * tests/unicase/test-u32-casecoll.c: New file.
40504
40505         Tests for module 'unicase/u16-casecoll'.
40506         * modules/unicase/u16-casecoll-tests: New file.
40507         * tests/unicase/test-u16-casecoll.c: New file.
40508
40509         Tests for module 'unicase/u8-casecoll'.
40510         * modules/unicase/u8-casecoll-tests: New file.
40511         * tests/unicase/test-u8-casecoll.c: New file.
40512
40513         New module 'unicase/u32-casecoll'.
40514         * lib/unicase/u32-casecoll.c: New file.
40515         * modules/unicase/u32-casecoll: New file.
40516
40517         New module 'unicase/u16-casecoll'.
40518         * lib/unicase/u16-casecoll.c: New file.
40519         * modules/unicase/u16-casecoll: New file.
40520
40521         New module 'unicase/u8-casecoll'.
40522         * lib/unicase/u8-casecoll.c: New file.
40523         * lib/unicase/u-casecoll.h: New file.
40524         * modules/unicase/u8-casecoll: New file.
40525
40526         New module 'unicase/u32-casexfrm'.
40527         * lib/unicase/u32-casexfrm.c: New file.
40528         * modules/unicase/u32-casexfrm: New file.
40529
40530         New module 'unicase/u16-casexfrm'.
40531         * lib/unicase/u16-casexfrm.c: New file.
40532         * modules/unicase/u16-casexfrm: New file.
40533
40534         New module 'unicase/u8-casexfrm'.
40535         * lib/unicase/u8-casexfrm.c: New file.
40536         * lib/unicase/u-casexfrm.h: New file.
40537         * modules/unicase/u8-casexfrm: New file.
40538
40539         Tests for module 'unicase/u32-casecmp'.
40540         * modules/unicase/u32-casecmp-tests: New file.
40541         * tests/unicase/test-u32-casecmp.c: New file.
40542
40543         Tests for module 'unicase/u16-casecmp'.
40544         * modules/unicase/u16-casecmp-tests: New file.
40545         * tests/unicase/test-u16-casecmp.c: New file.
40546
40547         Tests for module 'unicase/u8-casecmp'.
40548         * modules/unicase/u8-casecmp-tests: New file.
40549         * tests/unicase/test-u8-casecmp.c: New file.
40550         * tests/unicase/test-casecmp.h: New file.
40551
40552         New module 'unicase/u32-casecmp'.
40553         * lib/unicase/u32-casecmp.c: New file.
40554         * modules/unicase/u32-casecmp: New file.
40555
40556         New module 'unicase/u16-casecmp'.
40557         * lib/unicase/u16-casecmp.c: New file.
40558         * modules/unicase/u16-casecmp: New file.
40559
40560         New module 'unicase/u8-casecmp'.
40561         * lib/unicase/u8-casecmp.c: New file.
40562         * lib/unicase/u-casecmp.h: New file.
40563         * modules/unicase/u8-casecmp: New file.
40564
40565         Tests for module 'unicase/u32-casefold'.
40566         * modules/unicase/u32-casefold-tests: New file.
40567         * tests/unicase/test-u32-casefold.c: New file.
40568
40569         Tests for module 'unicase/u16-casefold'.
40570         * modules/unicase/u16-casefold-tests: New file.
40571         * tests/unicase/test-u16-casefold.c: New file.
40572
40573         Tests for module 'unicase/u8-casefold'.
40574         * modules/unicase/u8-casefold-tests: New file.
40575         * tests/unicase/test-u8-casefold.c: New file.
40576
40577         New module 'unicase/u32-casefold'.
40578         * lib/unicase/u32-casefold.c: New file.
40579         * modules/unicase/u32-casefold: New file.
40580
40581         New module 'unicase/u16-casefold'.
40582         * lib/unicase/u16-casefold.c: New file.
40583         * modules/unicase/u16-casefold: New file.
40584
40585         New module 'unicase/u8-casefold'.
40586         * lib/unicase/u8-casefold.c: New file.
40587         * lib/unicase/u-casefold.h: New file.
40588         * modules/unicase/u8-casefold: New file.
40589
40590         New module 'unicase/tocasefold'.
40591         * lib/unicase/casefold.h: New file.
40592         * lib/unicase/tocasefold.c: New file.
40593         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40594         * modules/unicase/tocasefold: New file.
40595
40596         Tests for module 'unicase/u32-totitle'.
40597         * modules/unicase/u32-totitle-tests: New file.
40598         * tests/unicase/test-u32-totitle.c: New file.
40599
40600         Tests for module 'unicase/u16-totitle'.
40601         * modules/unicase/u16-totitle-tests: New file.
40602         * tests/unicase/test-u16-totitle.c: New file.
40603
40604         Tests for module 'unicase/u8-totitle'.
40605         * modules/unicase/u8-totitle-tests: New file.
40606         * tests/unicase/test-u8-totitle.c: New file.
40607
40608         New module 'unicase/u32-totitle'.
40609         * lib/unicase/u32-totitle.c: New file.
40610         * modules/unicase/u32-totitle: New file.
40611
40612         New module 'unicase/u16-totitle'.
40613         * lib/unicase/u16-totitle.c: New file.
40614         * modules/unicase/u16-totitle: New file.
40615
40616         New module 'unicase/u8-totitle'.
40617         * lib/unicase/u8-totitle.c: New file.
40618         * lib/unicase/u-totitle.h: New file.
40619         * modules/unicase/u8-totitle: New file.
40620
40621         Tests for module 'unicase/u32-tolower'.
40622         * modules/unicase/u32-tolower-tests: New file.
40623         * tests/unicase/test-u32-tolower.c: New file.
40624
40625         Tests for module 'unicase/u16-tolower'.
40626         * modules/unicase/u16-tolower-tests: New file.
40627         * tests/unicase/test-u16-tolower.c: New file.
40628
40629         Tests for module 'unicase/u8-tolower'.
40630         * modules/unicase/u8-tolower-tests: New file.
40631         * tests/unicase/test-u8-tolower.c: New file.
40632
40633         New module 'unicase/u32-tolower'.
40634         * lib/unicase/u32-tolower.c: New file.
40635         * modules/unicase/u32-tolower: New file.
40636
40637         New module 'unicase/u16-tolower'.
40638         * lib/unicase/u16-tolower.c: New file.
40639         * modules/unicase/u16-tolower: New file.
40640
40641         New module 'unicase/u8-tolower'.
40642         * lib/unicase/u8-tolower.c: New file.
40643         * modules/unicase/u8-tolower: New file.
40644
40645         Tests for module 'unicase/u32-toupper'.
40646         * modules/unicase/u32-toupper-tests: New file.
40647         * tests/unicase/test-u32-toupper.c: New file.
40648
40649         Tests for module 'unicase/u16-toupper'.
40650         * modules/unicase/u16-toupper-tests: New file.
40651         * tests/unicase/test-u16-toupper.c: New file.
40652
40653         Tests for module 'unicase/u8-toupper'.
40654         * modules/unicase/u8-toupper-tests: New file.
40655         * tests/unicase/test-u8-toupper.c: New file.
40656
40657         New module 'unicase/u32-toupper'.
40658         * lib/unicase/u32-toupper.c: New file.
40659         * modules/unicase/u32-toupper: New file.
40660
40661         New module 'unicase/u16-toupper'.
40662         * lib/unicase/u16-toupper.c: New file.
40663         * modules/unicase/u16-toupper: New file.
40664
40665         New module 'unicase/u8-toupper'.
40666         * lib/unicase/u8-toupper.c: New file.
40667         * modules/unicase/u8-toupper: New file.
40668
40669         New module 'unicase/u32-casemap'.
40670         * lib/unicase/u32-casemap.c: New file.
40671         * modules/unicase/u32-casemap: New file.
40672
40673         New module 'unicase/u16-casemap'.
40674         * lib/unicase/u16-casemap.c: New file.
40675         * modules/unicase/u16-casemap: New file.
40676
40677         New module 'unicase/u8-casemap'.
40678         * lib/unicase/unicasemap.h: New file.
40679         * lib/unicase/u8-casemap.c: New file.
40680         * lib/unicase/u-casemap.h: New file.
40681         * modules/unicase/u8-casemap: New file.
40682
40683         New module 'unicase/special-casing'.
40684         * lib/unicase/special-casing.h: New file.
40685         * lib/unicase/special-casing.c: New file.
40686         * lib/unicase/special-casing-table.gperf: New file, generated by
40687         gen-uni-tables.c.
40688         * modules/unicase/special-casing: New file.
40689
40690         Tests for module 'unicase/locale-language'.
40691         * modules/unicase/locale-language-tests: New file.
40692         * tests/unicase/test-locale-language.sh: New file.
40693         * tests/unicase/test-locale-language.c: New file.
40694
40695         New module 'unicase/locale-language'.
40696         * lib/unicase/locale-language.c: New file.
40697         * lib/unicase/locale-languages.gperf: New file.
40698         * modules/unicase/locale-language: New file.
40699
40700         Generate more tables for case conversion and case folding.
40701         * lib/gen-uni-tables.c (SCC_*): New enum items.
40702         (struct special_casing_rule): New type.
40703         (casing_rules, num_casing_rules, allocated_casing_rules): New
40704         variables.
40705         (add_casing_rule, fill_casing_rules): New functions.
40706         (struct casefold_rule): New type.
40707         (casefolding_rules, num_casefolding_rules,
40708         allocated_casefolding_rules): New variables.
40709         (fill_casefolding_rules): New function.
40710         (unicode_casefold): New variable.
40711         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40712         sort_casing_rules, output_casing_rules): New functions.
40713         (main): Accept to more arguments: SpecialCasing.txt and
40714         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40715         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40716         Output mapping for casefolding.
40717
40718         * lib/unicase.h: Include stdbool.h, uninorm.h.
40719         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40720         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40721         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40722         arguments.
40723         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40724         resultp arguments.
40725         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40726         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40727         resultp arguments.
40728         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40729         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40730         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40731         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40732         declarations.
40733         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40734
40735 2009-03-08  Bruno Haible  <bruno@clisp.org>
40736
40737         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40738         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40739         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40740         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40741
40742 2009-03-07  Bruno Haible  <bruno@clisp.org>
40743
40744         Adjust u*_normcmp, u*_normcoll API.
40745         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40746         u16_normcoll, u32_normcoll): Change failure conventions.
40747         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40748         errno and return -1.
40749         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40750
40751 2009-03-07  Bruno Haible  <bruno@clisp.org>
40752
40753         Tests for module 'uninorm/u32-normcoll'.
40754         * modules/uninorm/u32-normcoll-tests: New file.
40755         * tests/uninorm/test-u32-normcoll.c: New file.
40756
40757         Tests for module 'uninorm/u16-normcoll'.
40758         * modules/uninorm/u16-normcoll-tests: New file.
40759         * tests/uninorm/test-u16-normcoll.c: New file.
40760
40761         Tests for module 'uninorm/u8-normcoll'.
40762         * modules/uninorm/u8-normcoll-tests: New file.
40763         * tests/uninorm/test-u8-normcoll.c: New file.
40764
40765 2009-03-07  Bruno Haible  <bruno@clisp.org>
40766
40767         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40768         tests/uninorm/test-u32-normcmp.c.
40769         * tests/uninorm/test-u32-normcmp.c: Include it.
40770         (test_nonascii): New function, extracted from main. Add some more
40771         tests.
40772         (main): Invoke test_ascii and test_nonascii.
40773         * modules/uninorm/u32-normcmp-tests (Files): Add
40774         tests/uninorm/test-u32-normcmp.h.
40775         (Depends-on): Remove uninorm/u32-normcmp.
40776
40777         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40778         tests/uninorm/test-u16-normcmp.c.
40779         * tests/uninorm/test-u16-normcmp.c: Include it.
40780         (test_nonascii): New function, extracted from main. Add some more
40781         tests.
40782         (main): Invoke test_ascii and test_nonascii.
40783         * modules/uninorm/u16-normcmp-tests (Files): Add
40784         tests/uninorm/test-u16-normcmp.h.
40785         (Depends-on): Remove uninorm/u16-normcmp.
40786
40787         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40788         tests/uninorm/test-u8-normcmp.c.
40789         * tests/uninorm/test-u8-normcmp.c: Include it.
40790         (test_nonascii): New function, extracted from main. Add some more
40791         tests.
40792         (main): Invoke test_ascii and test_nonascii.
40793         * modules/uninorm/u8-normcmp-tests (Files): Add
40794         tests/uninorm/test-u8-normcmp.h.
40795         (Depends-on): Remove uninorm/u8-normcmp.
40796
40797 2009-03-07  Bruno Haible  <bruno@clisp.org>
40798
40799         New module 'uninorm/u32-normcoll'.
40800         * lib/uninorm/u32-normcoll.c: New file.
40801         * modules/uninorm/u32-normcoll: New file.
40802
40803         New module 'uninorm/u16-normcoll'.
40804         * lib/uninorm/u16-normcoll.c: New file.
40805         * modules/uninorm/u16-normcoll: New file.
40806
40807         New module 'uninorm/u8-normcoll'.
40808         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40809         declarations.
40810         * lib/uninorm/u8-normcoll.c: New file.
40811         * lib/uninorm/u-normcoll.h: New file.
40812         * modules/uninorm/u8-normcoll: New file.
40813
40814         New module 'uninorm/u32-normxfrm'.
40815         * lib/uninorm/u32-normxfrm.c: New file.
40816         * modules/uninorm/u32-normxfrm: New file.
40817
40818         New module 'uninorm/u16-normxfrm'.
40819         * lib/uninorm/u16-normxfrm.c: New file.
40820         * modules/uninorm/u16-normxfrm: New file.
40821
40822         New module 'uninorm/u8-normxfrm'.
40823         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40824         declarations.
40825         * lib/uninorm/u8-normxfrm.c: New file.
40826         * lib/uninorm/u-normxfrm.h: New file.
40827         * modules/uninorm/u8-normxfrm: New file.
40828
40829 2009-03-07  Bruno Haible  <bruno@clisp.org>
40830
40831         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40832         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40833         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40834
40835 2009-03-07  Bruno Haible  <bruno@clisp.org>
40836
40837         New module 'memxfrm'.
40838         * lib/memxfrm.h: New file.
40839         * lib/memxfrm.c: New file.
40840         * modules/memxfrm: New file.
40841
40842 2009-03-07  Bruno Haible  <bruno@clisp.org>
40843
40844         New module 'memcmp2'.
40845         * lib/memcmp2.h: New file.
40846         * lib/memcmp2.c: New file.
40847         * modules/memcmp2: New file.
40848
40849 2009-03-07  Bruno Haible  <bruno@clisp.org>
40850
40851         Tests for module 'uninorm/decomposing-form'.
40852         * modules/uninorm/decomposing-form-tests: New file.
40853         * tests/uninorm/test-decomposing-form.c: New file.
40854
40855         New module 'uninorm/decomposing-form'.
40856         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40857         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40858         Add 'decomposing_variant' field.
40859         * lib/uninorm/decomposing-form.c: New file.
40860         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40861         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40862         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40863         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40864         * modules/uninorm/decomposing-form: New file.
40865         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40866         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40867
40868 2009-03-07  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40871         strings.
40872
40873 2009-03-06  Bruno Haible  <bruno@clisp.org>
40874
40875         Tests for module 'uninorm/u32-normcmp'.
40876         * tests/uninorm/test-u32-normcmp.c: New file.
40877         * modules/uninorm/u32-normcmp-tests: New file.
40878
40879         Tests for module 'uninorm/u16-normcmp'.
40880         * tests/uninorm/test-u16-normcmp.c: New file.
40881         * modules/uninorm/u16-normcmp-tests: New file.
40882
40883         Tests for module 'uninorm/u8-normcmp'.
40884         * tests/uninorm/test-u8-normcmp.c: New file.
40885         * modules/uninorm/u8-normcmp-tests: New file.
40886
40887         New module 'uninorm/u32-normcmp'.
40888         * lib/uninorm/u32-normcmp.c: New file.
40889         * modules/uninorm/u32-normcmp: New file.
40890
40891         New module 'uninorm/u16-normcmp'.
40892         * lib/uninorm/u16-normcmp.c: New file.
40893         * modules/uninorm/u16-normcmp: New file.
40894
40895         New module 'uninorm/u8-normcmp'.
40896         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40897         declarations.
40898         * lib/uninorm/u8-normcmp.c: New file.
40899         * lib/uninorm/u-normcmp.h: New file.
40900         * modules/uninorm/u8-normcmp: New file.
40901
40902 2009-03-06  Bruno Haible  <bruno@clisp.org>
40903
40904         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40905         Reported by Eric Blake.
40906
40907 2009-03-06  Eric Blake  <ebb9@byu.net>
40908             Bruno Haible  <bruno@clisp.org>
40909
40910         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40911         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40912         condition.
40913         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40914         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40915         condition.
40916         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40917
40918 2009-03-06  Eric Blake  <ebb9@byu.net>
40919
40920         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40921         to avoid compiler warnings.
40922         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40923
40924 2009-03-05  Bruno Haible  <bruno@clisp.org>
40925
40926         * tests/test-ftell.c (main): Disable test beyond end of file on
40927         FreeMiNT.
40928         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40929
40930 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40931
40932         * lib/filevercmp.c: Move hidden files up in ordering.
40933         * tests/test-filevercmp.c: Add tests for hidden files.
40934
40935 2009-03-04  Bruno Haible  <bruno@clisp.org>
40936
40937         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40938         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40939         AM_CFLAGS.
40940         Reported by Simon Josefsson.
40941
40942 2009-03-03  Bruno Haible  <bruno@clisp.org>
40943
40944         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40945         Reported by Simon Josefsson.
40946
40947         * doc/ld-version-script.texi: Update node reference.
40948
40949 2009-03-03  Bruno Haible  <bruno@clisp.org>
40950
40951         * modules/visibility (License): Change to 'unlimited'.
40952         Suggested by Simon Josefsson.
40953
40954 2009-03-03  Jim Meyering  <meyering@redhat.com>
40955
40956         unlinkdir: cannot_unlink_dir may modify process state
40957         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40958         it's neither thread-safe nor appropriate for use in a library.
40959
40960 2009-03-03  Eric Blake  <ebb9@byu.net>
40961
40962         test-closein: silence test under Darwin
40963         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40964         care if it dies from EPIPE or EBADF.
40965
40966 2009-03-03  Bruno Haible  <bruno@clisp.org>
40967
40968         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40969         earlier.
40970         * doc/visibility.texi: Fix @node and @section.
40971
40972 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40973
40974         * doc/gnulib.texi: Link to sections for ld version script and
40975         visibility.
40976         * doc/visibility.texi: Add @node and @section.
40977         * modules/ld-version-script: New module.
40978         * m4/ld-version-script.m4: New file.
40979         * doc/ld-version-script.texi: New file.
40980
40981 2009-03-02  David Lutterkort  <lutter@redhat.com>
40982
40983         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40985
40986 2009-03-02  Bruno Haible  <bruno@clisp.org>
40987
40988         * doc/visibility.texi: Mention libtool's -export-symbols option.
40989
40990 2009-03-02  Jim Meyering  <meyering@redhat.com>
40991
40992         announce-gen: new option: --no-print-checksums
40993         * build-aux/announce-gen (usage): Describe it.
40994         (print_checksums): Print a newline here, not in the [*] footnote.
40995         (main): Honor it.
40996
40997 2009-03-01  Bruno Haible  <bruno@clisp.org>
40998
40999         Use socklen_t in the native Windows replacements prototypes.
41000         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41001         instead of 'int'.
41002         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41003         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41004         * modules/getsockopt (Depends-on): Add socklen.
41005         * modules/setsockopt (Depends-on): Add socklen.
41006
41007 2009-03-01  Bruno Haible  <bruno@clisp.org>
41008
41009         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41010         least 4.2.
41011
41012 2009-03-01  Eric Blake  <ebb9@byu.net>
41013             Bruno Haible  <bruno@clisp.org>
41014
41015         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41016         error messages.
41017         * lib/wait-process.c (wait_subprocess): Omit error message about
41018         deadly signal sent to the child of termsigp != NULL.
41019
41020 2009-03-01  Eric Blake  <ebb9@byu.net>
41021
41022         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41023
41024 2009-03-01  Bruno Haible  <bruno@clisp.org>
41025
41026         Avoid a gcc warning.
41027         * tests/test-sched.c (b): Make global.
41028         Reported by Eric Blake.
41029
41030 2009-01-19  Martin Lambers  <marlam@marlam.de>
41031
41032         Provide POSIX semantics for socket timeout options on W32.
41033         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41034         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41035         * modules/setsockopt: Depend on sys_time module for struct timeval.
41036         * modules/getsockopt: Depend on sys_time module for struct timeval.
41037
41038 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41039
41040         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41041         __USE_GNU, for consistency with netdb.in.h.
41042         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41043
41044 2009-03-01  Bruno Haible  <bruno@clisp.org>
41045
41046         More support for FreeMiNT.
41047         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41048         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41049
41050 2009-03-01  Bruno Haible  <bruno@clisp.org>
41051
41052         More support for FreeMiNT.
41053         * lib/fpurge.c (fpurge): Correct last commit.
41054         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41055
41056 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41057
41058         Fix unportable awk script in vc-list-files.
41059         * build-aux/vc-list-files: In the replacement awk script, use
41060         substr with a second argument of 1, not zero.
41061         Report by Simon Josefsson.
41062
41063 2009-02-28  Bruno Haible  <bruno@clisp.org>
41064
41065         More support for FreeMiNT.
41066         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41067         to FreeMiNT today.
41068         * lib/fwriting.c (fwriting): Likewise.
41069         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41070
41071 2009-02-28  Bruno Haible  <bruno@clisp.org>
41072
41073         * tests/test-freadseek.c (main): Disable test beyond end of file on
41074         FreeMiNT.
41075         * tests/test-ftello.c (main): Likewise.
41076         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41077
41078 2009-02-28  Bruno Haible  <bruno@clisp.org>
41079
41080         Add tentative support for FreeMiNT.
41081         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41082         * lib/fpurge.c (fpurge): Likewise.
41083         * lib/freadable.c (freadable): Likewise.
41084         * lib/freading.c (freading): Likewise.
41085         * lib/freadptr.c (freadptr): Likewise.
41086         * lib/freadseek.c (freadptrinc): Likewise.
41087         * lib/fseeko.c (rpl_fseeko): Likewise.
41088         * lib/fseterr.c (fseterr): Likewise.
41089         * lib/fwritable.c (fwritable): Likewise.
41090         * lib/fwriting.c (fwriting): Likewise.
41091         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41092         Hourihane.
41093         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41094
41095 2009-02-28  Bruno Haible  <bruno@clisp.org>
41096
41097         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41098         SIGCHLD.
41099         Reported by Jim Meyering.
41100
41101 2009-02-28  Bruno Haible  <bruno@clisp.org>
41102
41103         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41104         Mention the results of these tests on various platforms.
41105         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41106         order.
41107         * doc/posix-functions/printf.texi: Likewise.
41108         * doc/posix-functions/snprintf.texi: Likewise.
41109         * doc/posix-functions/sprintf.texi: Likewise.
41110         * doc/posix-functions/vfprintf.texi: Likewise.
41111         * doc/posix-functions/vprintf.texi: Likewise.
41112         * doc/posix-functions/vsnprintf.texi: Likewise.
41113         * doc/posix-functions/vsprintf.texi: Likewise.
41114         * doc/glibc-functions/obstack_printf.texi: Likewise.
41115         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41116
41117 2009-02-28  Bruno Haible  <bruno@clisp.org>
41118
41119         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41120         Reported by Loïc Minier <lool@dooz.org>.
41121
41122 2009-02-27  Bruno Haible  <bruno@clisp.org>
41123
41124         * gnulib-tool (func_import): Make the sed expression used to create the
41125         sed script for updating the .gitignore file POSIX compliant.
41126         Reported by Eric Blake.
41127
41128 2009-02-27  Bruno Haible  <bruno@clisp.org>
41129
41130         * gnulib-tool (sed): Don't alias as "sed --posix".
41131         Reported by Eric Blake.
41132
41133 2009-02-27  Bruno Haible  <bruno@clisp.org>
41134
41135         Avoid test link errors.
41136         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41137         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41138         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41139         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41141
41142 2009-02-27  Bruno Haible  <bruno@clisp.org>
41143
41144         Avoid spurious "(cached)" in configure output.
41145         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41146         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41147         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41148         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41149         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41150         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41151         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41152         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41153         Reported by Eric Blake.
41154
41155 2009-02-27  Eric Blake  <ebb9@byu.net>
41156
41157         printf: fix regression in previous patch
41158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41159
41160 2009-02-27  Bruno Haible  <bruno@clisp.org>
41161
41162         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41163         value.
41164         * lib/stdint.in.h: Likewise.
41165         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41166
41167 2009-02-27  Eric Blake  <ebb9@byu.net>
41168
41169         doc: mention more functions added in cygwin 1.7.0
41170         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41171         addition.
41172         * doc/posix-functions/open_wmemstream.texi: Likewise.
41173         * doc/posix-functions/wcsnlen.texi: Likewise.
41174         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41175         * doc/posix-functions/wcstod.texi: Likewise.
41176         * doc/posix-functions/wcstof.texi: Likewise.
41177         * doc/posix-functions/wcstoimax.texi: Likewise.
41178         * doc/posix-functions/wcstok.texi: Likewise.
41179         * doc/posix-functions/wcstoumax.texi: Likewise.
41180
41181         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41183         * doc/posix-functions/fprintf.texi: Update.
41184         * doc/posix-functions/printf.texi: Update.
41185         * doc/posix-functions/snprintf.texi: Update.
41186         * doc/posix-functions/sprintf.texi: Update.
41187         * doc/posix-functions/vfprintf.texi: Update.
41188         * doc/posix-functions/vprintf.texi: Update.
41189         * doc/posix-functions/vsnprintf.texi: Update.
41190         * doc/posix-functions/vsprintf.texi: Update.
41191         * doc/glibc-functions/obstack_printf.texi: Update.
41192         * doc/glibc-functions/obstack_vprintf.texi: Update.
41193
41194 2009-02-26  Eric Blake  <ebb9@byu.net>
41195
41196         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41197         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41198         compilation bug by using runtime conversion.
41199         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41200         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41201         * modules/ceill-tests (Files): Use nan.h.
41202         * modules/floorl-tests (Files): Likewise.
41203         * modules/frexpl-tests (Files): Likewise.
41204         * modules/isnanl-tests (Files): Likewise.
41205         * modules/ldexpl-tests (Files): Likewise.
41206         * modules/roundl-tests (Files): Likewise.
41207         * modules/truncl-tests (Files): Likewise.
41208         * tests/test-ceill.c (main): Use a working NaN.
41209         * tests/test-floorl.c (main): Likewise.
41210         * tests/test-frexpl.c (main): Likewise.
41211         * tests/test-isnan.c (test_long_double): Likewise.
41212         * tests/test-isnanl.h (main): Likewise.
41213         * tests/test-ldexpl.h (main): Likewise.
41214         * tests/test-roundl.h (main): Likewise.
41215         * tests/test-truncl.h (main): Likewise.
41216         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41217
41218 2009-02-26  Eric Blake  <ebb9@byu.net>
41219             Bruno Haible  <bruno@clisp.org>
41220
41221         Work around a *printf bug with %ls on Solaris.
41222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41223         precision is specified, sprintf stops converting the wide string
41224         argument when the number of bytes that have been produced by this
41225         conversion equals or exceeds the precision.
41226         * doc/posix-functions/fprintf.texi: Update.
41227         * doc/posix-functions/printf.texi: Update.
41228         * doc/posix-functions/snprintf.texi: Update.
41229         * doc/posix-functions/sprintf.texi: Update.
41230         * doc/posix-functions/vfprintf.texi: Update.
41231         * doc/posix-functions/vprintf.texi: Update.
41232         * doc/posix-functions/vsnprintf.texi: Update.
41233         * doc/posix-functions/vsprintf.texi: Update.
41234         * doc/glibc-functions/obstack_printf.texi: Update.
41235         * doc/glibc-functions/obstack_vprintf.texi: Update.
41236
41237 2009-02-26  Eric Blake  <ebb9@byu.net>
41238
41239         stdlib: favor compiler check of random.h
41240         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41241         to avoid an ObjC random.h installed by Swarm.
41242
41243 2009-02-26  Bruno Haible  <bruno@clisp.org>
41244
41245         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41246         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41247         Reported by Gary V. Vaughan <gary@gnu.org>.
41248
41249 2009-02-26  Bruno Haible  <bruno@clisp.org>
41250
41251         Fix *printf behaviour regarding the %ls directive.
41252         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41253         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41254         NEED_PRINTF_DIRECTIVE_LS.
41255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41256         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41257         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41258         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41259         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41260         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41261         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41266         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41270         * doc/posix-functions/fprintf.texi: Update.
41271         * doc/posix-functions/printf.texi: Update.
41272         * doc/posix-functions/snprintf.texi: Update.
41273         * doc/posix-functions/sprintf.texi: Update.
41274         * doc/posix-functions/vfprintf.texi: Update.
41275         * doc/posix-functions/vprintf.texi: Update.
41276         * doc/posix-functions/vsnprintf.texi: Update.
41277         * doc/posix-functions/vsprintf.texi: Update.
41278         * doc/glibc-functions/obstack_printf.texi: Update.
41279         * doc/glibc-functions/obstack_vprintf.texi: Update.
41280         Reported by Eric Blake.
41281
41282 2009-02-25  Bruno Haible  <bruno@clisp.org>
41283
41284         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41285         with known value.
41286         Reported by Gary V. Vaughan <gary@gnu.org>.
41287
41288 2009-02-25  Bruno Haible  <bruno@clisp.org>
41289
41290         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41291         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41292         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41293         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41294         Reported by Gary V. Vaughan <gary@gnu.org>.
41295
41296 2009-02-25  Bruno Haible  <bruno@clisp.org>
41297
41298         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41299         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41300         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41301         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41302         Reported by Gary V. Vaughan <gary@gnu.org>.
41303
41304 2009-02-25  Eric Blake  <ebb9@byu.net>
41305
41306         tests: skip fseek/ftell tests if ungetc is broken
41307         * m4/ungetc.m4: New file.
41308         * modules/fseek-tests: Split test, so ungetc dependency is
41309         separate from rest of test.
41310         * modules/fseeko-tests: Likewise.
41311         * modules/ftell-tests: Likewise.
41312         * modules/ftello-tests: Likewise.
41313         * tests/test-fseek.c (main): Isolate ungetc dependency.
41314         * tests/test-fseeko.c (main): Likewise.
41315         * tests/test-ftell.c (main): Likewise.
41316         * tests/test-ftello.c (main): Likewise.
41317         * tests/test-fseek2.sh: New file.
41318         * tests/test-fseeko2.sh: Likewise.
41319         * tests/test-ftell2.sh: Likewise.
41320         * tests/test-ftello2.sh: Likewise.
41321
41322 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41323
41324         test-getaddrinfo: fix usage of skip return code 77
41325         * tests/test-gettaddrinfo.c: Return skip code 77 only
41326         for first occurance of skip (4x77 is not 77)
41327
41328 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41329
41330         strtod: avoid C99 decl-after-statement
41331         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41332
41333 2009-02-24  Eric Blake  <ebb9@byu.net>
41334
41335         strtod: detect HP-UX 11.31 bug
41336         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41337         Reported by Gary V. Vaughan.
41338
41339 2009-02-23  Bruno Haible  <bruno@clisp.org>
41340
41341         Fix invalid read past end of memory block.
41342         * lib/vasnprintf.c (DCHAR_SET): Define.
41343         (local_wcslen): Define only when needed.
41344         (local_strnlen, local_wcsnlen): New functions.
41345         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41346         directives that involve a conversion ourselves.
41347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41348         wcsnlen, mbrtowc, wcrtomb.
41349         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41350         * tests/test-vasprintf-posix.c (test_function): Likewise.
41351         * tests/test-snprintf-posix.h (test_function): Likewise.
41352         * tests/test-sprintf-posix.h (test_function): Likewise.
41353         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41354
41355 2009-02-22  Bruno Haible  <bruno@clisp.org>
41356
41357         Implement new clarified decomposition of Hangul syllables.
41358         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41359         of type LTV, return only a pairwise decomposition.
41360         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41361         Likewise.
41362         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41363         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41364         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41365
41366 2009-02-22  Bruno Haible  <bruno@clisp.org>
41367
41368         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41369         zero-length results and shrink excess allocated memory.
41370         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41371         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41372         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41373         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41374         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41375         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41376         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41377         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41378         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41379         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41380         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41381         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41382
41383 2009-02-21  Bruno Haible  <bruno@clisp.org>
41384
41385         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41386         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41387         spaces after a period. Put a space between a macro name and its
41388         argument list. Trivial rewordings.
41389         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41390         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41391         (main): Return 0 explicitly.
41392
41393 2009-02-21  Bruno Haible  <bruno@clisp.org>
41394
41395         Tests for module 'uninorm/filter'.
41396         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41397         * modules/uninorm/filter-tests: New file.
41398
41399         New module 'uninorm/filter'.
41400         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41401         uninorm_filter_flush, uninorm_filter_free): New declarations.
41402         * lib/uninorm/uninorm-filter.c: New file.
41403         * modules/uninorm/filter: New file.
41404
41405 2009-02-21  Bruno Haible  <bruno@clisp.org>
41406
41407         Tests for module 'uninorm/nfkc'.
41408         * tests/uninorm/test-nfkc.c: New file.
41409         * tests/uninorm/test-u8-nfkc.c: New file.
41410         * tests/uninorm/test-u16-nfkc.c: New file.
41411         * tests/uninorm/test-u32-nfkc.c: New file.
41412         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41413         * tests/uninorm/test-u32-nfkc-big.c: New file.
41414         * modules/uninorm/nfkc-tests: New file.
41415
41416         New module 'uninorm/nfkc'.
41417         * lib/uninorm/nfkc.c: New file.
41418         * modules/uninorm/nfkc: New file.
41419
41420         Tests for module 'uninorm/nfkd'.
41421         * tests/uninorm/test-nfkd.c: New file.
41422         * tests/uninorm/test-u8-nfkd.c: New file.
41423         * tests/uninorm/test-u16-nfkd.c: New file.
41424         * tests/uninorm/test-u32-nfkd.c: New file.
41425         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41426         * tests/uninorm/test-u32-nfkd-big.c: New file.
41427         * modules/uninorm/nfkd-tests: New file.
41428
41429         New module 'uninorm/nfkd'.
41430         * lib/uninorm/nfkd.c: New file.
41431         * modules/uninorm/nfkd: New file.
41432
41433         Tests for module 'uninorm/nfc'.
41434         * tests/uninorm/test-nfc.c: New file.
41435         * tests/uninorm/test-u8-nfc.c: New file.
41436         * tests/uninorm/test-u16-nfc.c: New file.
41437         * tests/uninorm/test-u32-nfc.c: New file.
41438         * tests/uninorm/test-u32-nfc-big.sh: New file.
41439         * tests/uninorm/test-u32-nfc-big.c: New file.
41440         * modules/uninorm/nfc-tests: New file.
41441
41442         New module 'uninorm/nfc'.
41443         * lib/uninorm/nfc.c: New file.
41444         * modules/uninorm/nfc: New file.
41445
41446         Tests for module 'uninorm/nfd'.
41447         * tests/uninorm/test-nfd.c: New file.
41448         * tests/uninorm/test-u8-nfd.c: New file.
41449         * tests/uninorm/test-u16-nfd.c: New file.
41450         * tests/uninorm/test-u32-nfd.c: New file.
41451         * tests/uninorm/test-u32-nfd-big.sh: New file.
41452         * tests/uninorm/test-u32-nfd-big.c: New file.
41453         * tests/uninorm/test-u32-normalize-big.h: New file.
41454         * tests/uninorm/test-u32-normalize-big.c: New file.
41455         * tests/uninorm/NormalizationTest.txt: New file, created from
41456         Unicode 5.1.0 NormalizationTest.txt.
41457         * modules/uninorm/nfd-tests: New file.
41458
41459         New module 'uninorm/nfd'.
41460         * lib/uninorm/nfd.c: New file.
41461         * modules/uninorm/nfd: New file.
41462
41463         New module 'uninorm/u32-normalize'.
41464         * lib/uninorm/u32-normalize.c: New file.
41465         * modules/uninorm/u32-normalize: New file.
41466
41467         New module 'uninorm/u16-normalize'.
41468         * lib/uninorm/u16-normalize.c: New file.
41469         * modules/uninorm/u16-normalize: New file.
41470
41471         New module 'uninorm/u8-normalize'.
41472         * lib/uninorm/u8-normalize.c: New file.
41473         * lib/uninorm/normalize-internal.h: New file.
41474         * lib/uninorm/u-normalize-internal.h: New file.
41475         * modules/uninorm/u8-normalize: New file.
41476
41477         New module 'uninorm/decompose-internal'.
41478         * lib/uninorm/decompose-internal.c: New file.
41479         * modules/uninorm/decompose-internal: New file.
41480
41481         Tests for module 'uninorm/composition'.
41482         * tests/uninorm/test-composition.c: New file.
41483         * modules/uninorm/composition-tests: New file.
41484
41485         New module 'uninorm/composition'.
41486         * lib/uninorm/composition.c: New file.
41487         * lib/uninorm/composition-table.gperf: New file, generated by
41488         gen-uni-tables.
41489         * modules/uninorm/composition: New file.
41490
41491         Tests for module 'uninorm/compat-decomposition'.
41492         * tests/uninorm/test-compat-decomposition.c: New file.
41493         * modules/uninorm/compat-decomposition-tests: New file.
41494
41495         New module 'uninorm/compat-decomposition'.
41496         * lib/uninorm/decompose-internal.h: New file.
41497         * lib/uninorm/compat-decomposition.c: New file.
41498         * modules/uninorm/compat-decomposition: New file.
41499
41500         Tests for module 'uninorm/canonical-decomposition'.
41501         * tests/uninorm/test-canonical-decomposition.c: New file.
41502         * modules/uninorm/canonical-decomposition-tests: New file.
41503
41504         New module 'uninorm/canonical-decomposition'.
41505         * lib/uninorm/canonical-decomposition.c: New file.
41506         * modules/uninorm/canonical-decomposition: New file.
41507
41508         Tests for module 'uninorm/decomposition'.
41509         * tests/uninorm/test-decomposition.c: New file.
41510         * modules/uninorm/decomposition-tests: New file.
41511
41512         New module 'uninorm/decomposition'.
41513         * lib/uninorm/decomposition.c: New file.
41514         * modules/uninorm/decomposition: New file.
41515
41516         New module 'uninorm/decomposition-table'.
41517         * lib/uninorm/decomposition-table.h: New file.
41518         * lib/uninorm/decomposition-table.c: New file.
41519         * lib/uninorm/decomposition-table1.h: New file, generated by
41520         gen-uni-tables.
41521         * lib/uninorm/decomposition-table2.h: New file, generated by
41522         gen-uni-tables.
41523         * modules/uninorm/decomposition-table: New file.
41524
41525         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41526         (UC_DECOMP_*): New enumeration items.
41527         (get_decomposition): New function.
41528         (struct decomp_table): New type.
41529         (output_decomposition, output_decomposition_tables): New functions.
41530         (unicode_composition_exclusions): New variable.
41531         (fill_composition_exclusions, debug_output_composition_tables): New
41532         functions.
41533         (main): Accept one more argument. Invoke fill_composition_exclusions.
41534         Output decomposition and composition tables.
41535
41536         New module 'uninorm/base'.
41537         * lib/uninorm.h: New file.
41538         * lib/unictype.h: Update comment.
41539         * modules/uninorm/base: New file.
41540
41541 2009-02-21  David Lutterkort  <lutter@redhat.com>
41542
41543         Tests for module 'safe-alloc'.
41544         * tests/test-safe-alloc.c: New file.
41545         * modules/safe-alloc-tests: New file.
41546
41547         New module 'safe-alloc'.
41548         * lib/safe-alloc.h: New file.
41549         * lib/safe-alloc.c: New file.
41550         * m4/safe-alloc.m4: New file.
41551         * modules/safe-alloc: New file.
41552         * doc/safe-alloc.texi: New file.
41553         * doc/gnulib.texi: Include it.
41554         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41555         safe-alloc.
41556
41557 2009-02-18  Bruno Haible  <bruno@clisp.org>
41558
41559         Fix link error on non-glibc systems.
41560         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41561         variable.
41562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41563
41564 2009-02-18  Jim Meyering  <meyering@redhat.com>
41565
41566         fts: avoid used-uninitialized error due to recent change
41567         * lib/fts.c (fts_read): Guard uses of the new member,
41568         parent->fts_n_dirs_remaining, since it's not relevant for
41569         the parent of a directory specified on the command-line.
41570
41571 2009-02-17  James Youngman  <jay@gnu.org>
41572             Bruno Haible  <bruno@clisp.org>
41573
41574         * m4/include_next.m4: Reformulate comment.
41575
41576 2009-02-16  Jim Meyering  <meyering@redhat.com>
41577
41578         fts: add #if guards so that the fts_lgpl module still builds
41579         * lib/fts.c: Guard just-added hash-table-using parts with
41580         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41581         Reported by Simon Josefsson.
41582
41583 2009-02-15  Bruno Haible  <bruno@clisp.org>
41584
41585         * modules/array-mergesort-tests: New file.
41586         * tests/test-array-mergesort.c: New file.
41587
41588         New module 'array-mergesort'.
41589         * modules/array-mergesort: New file.
41590         * lib/array-mergesort.h: New file.
41591
41592 2009-02-15  Bruno Haible  <bruno@clisp.org>
41593
41594         Fix 2009-02-07 commit.
41595         * lib/gen-uni-tables.c (output_predicate, output_category,
41596         output_combclass, output_bidi_category, output_decimal_digit,
41597         output_digit, output_numeric, output_mirror, output_scripts,
41598         output_ident_category, output_simple_mapping): Fix format directives.
41599         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41600
41601 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41602
41603         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41604         fixes are available from IBM.
41605
41606 2009-02-13  Jim Meyering  <meyering@redhat.com>
41607
41608         fts: arrange not to stat non-directories in more cases
41609         This makes GNU find (when it doesn't need to stat each file)
41610         *much* more efficient at traversing reiserfs file systems.
41611         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41612         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41613         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41614         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41615         (leaf_optimization_applies): New function.
41616         (LCO_hash, LCO_compare): New helper functions.
41617         (link_count_optimize_ok): New function.
41618         (fts_stat): Initialize new member (if dir).
41619         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41620         we've just stat'ed a directory.  Skip the stat call when possible.
41621         ---
41622         Note this AFS-related exchange:
41623         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41624         and note find's pioctl call in find/fstype.c.
41625         But that is necessary only if you want to enable the
41626         optimization for AFS, and for now, I don't.
41627
41628         fts: move a function definition "up" (no semantic change)
41629         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41630         "up" to precede upcoming use of a related function.
41631
41632 2009-02-11  Jim Meyering  <meyering@redhat.com>
41633
41634         fts: correct internal computation of nlinks (optimization-related)
41635         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41636         whether the current entry is a directory, so don't test it.
41637
41638 2009-02-10  Bruno Haible  <bruno@clisp.org>
41639
41640         Tests for module 'uniwbrk/ulc-wordbreaks'.
41641         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41642         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41643         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41644
41645         Tests for module 'uniwbrk/u32-wordbreaks'.
41646         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41647         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41648
41649         Tests for module 'uniwbrk/u16-wordbreaks'.
41650         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41651         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41652
41653         Tests for module 'uniwbrk/u8-wordbreaks'.
41654         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41655         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41656
41657 2009-02-10  Bruno Haible  <bruno@clisp.org>
41658
41659         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41660         property.
41661         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41662         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41663         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41664
41665 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41666
41667         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41668         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41669
41670 2009-02-10  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41673         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41674         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41675         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41676         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41677         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41678
41679 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41680
41681         * lib/sockets.h (gl_fd_to_handle): New function.
41682
41683         * tests/test-sockets.c: Call gl_fd_to_handle.
41684
41685 2009-02-09  Bruno Haible  <bruno@clisp.org>
41686
41687         * doc/havelib.texi: Document the conventions on bi-arch systems.
41688
41689 2009-02-08  Bruno Haible  <bruno@clisp.org>
41690
41691         Document the AC_LIB_LINKFLAGS macro.
41692         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41693         * doc/gnulib.texi: Include it.
41694
41695 2009-02-08  Bruno Haible  <bruno@clisp.org>
41696
41697         Fix wrong order of sections, compared to TOC.
41698         * doc/gnulib.texi: Include relocatable-maint.texi after the
41699         "Regular expressions" node, not before.
41700
41701 2009-02-08  Bruno Haible  <bruno@clisp.org>
41702
41703         Tests for module 'unicase/totitle'.
41704         * modules/unicase/totitle-tests: New file.
41705
41706         Tests for module 'unicase/tolower'.
41707         * modules/unicase/tolower-tests: New file.
41708
41709         Tests for module 'unicase/toupper'.
41710         * modules/unicase/toupper-tests: New file.
41711         * tests/unicase/test-mapping-part1.h: New file.
41712         * tests/unicase/test-mapping-part2.h: New file.
41713
41714         New module 'unicase/totitle'.
41715         * modules/unicase/totitle: New file.
41716         * lib/unicase/totitle.c: New file.
41717
41718         New module 'unicase/tolower'.
41719         * modules/unicase/tolower: New file.
41720         * lib/unicase/tolower.c: New file.
41721
41722         New module 'unicase/toupper'.
41723         * modules/unicase/toupper: New file.
41724         * lib/unicase/toupper.c: New file.
41725         * lib/unicase/simple-mapping.h: New file.
41726
41727         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41728         (mapping_table): New structure.
41729         (output_simple_mapping): New function.
41730         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41731         * modules/gen-uni-tables (Description): Update.
41732         * lib/unicase/toupper.h: New file, automatically generated by
41733         gen-uni-tables.
41734         * lib/unicase/tolower.h: New file, automatically generated by
41735         gen-uni-tables.
41736         * lib/unicase/totitle.h: New file, automatically generated by
41737         gen-uni-tables.
41738         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41739         gen-uni-tables.
41740         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41741         gen-uni-tables.
41742         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41743         gen-uni-tables.
41744
41745         New module 'unicase/base'.
41746         * modules/unicase/base: New file.
41747         * lib/unicase.h: New file.
41748
41749 2009-02-08  Bruno Haible  <bruno@clisp.org>
41750
41751         New module 'uniwbrk/ulc-wordbreaks'.
41752         * modules/uniwbrk/ulc-wordbreaks: New file.
41753         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41754
41755         New module 'uniwbrk/u32-wordbreaks'.
41756         * modules/uniwbrk/u32-wordbreaks: New file.
41757         * lib/uniwbrk/u32-wordbreaks.c: New file.
41758
41759         New module 'uniwbrk/u16-wordbreaks'.
41760         * modules/uniwbrk/u16-wordbreaks: New file.
41761         * lib/uniwbrk/u16-wordbreaks.c: New file.
41762
41763         New module 'uniwbrk/u8-wordbreaks'.
41764         * modules/uniwbrk/u8-wordbreaks: New file.
41765         * lib/uniwbrk/u8-wordbreaks.c: New file.
41766         * lib/uniwbrk/u-wordbreaks.h: New file.
41767
41768         New module 'uniwbrk/table'.
41769         * modules/uniwbrk/table: New file.
41770         * lib/uniwbrk/wbrktable.h: New file.
41771         * lib/uniwbrk/wbrktable.c: New file.
41772
41773         New module 'uniwbrk/wordbreak-property'.
41774         * modules/uniwbrk/wordbreak-property: New file.
41775         * lib/uniwbrk/wordbreak-property.c: New file.
41776
41777         * lib/gen-uni-tables.c (WBP_*): New enum items.
41778         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41779         (unicode_org_wbp): New variable.
41780         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41781         New functions.
41782         (wbp_table): New structure.
41783         (output_wbp, output_wbrk_tables): New functions.
41784         (main): Accept additional argument. Invoke fill_org_wbp,
41785         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41786         output_wbrk_tables.
41787         * modules/gen-uni-tables (Description): Update.
41788         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41789         gen-uni-tables.
41790
41791         New module 'uniwbrk/base'.
41792         * modules/uniwbrk/base: New file.
41793         * lib/uniwbrk.h: New file.
41794
41795 2009-02-08  Bruno Haible  <bruno@clisp.org>
41796
41797         Update to Unicode 5.1.0.
41798         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41799         U+2185..U+2188.
41800         (is_property_default_ignorable_code_point): Don't include characters
41801         of category Cc or Cs and not-a-characters.
41802         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41803         U+0D79, U+109E, U+109F, U+A60C.
41804         * lib/unictype/bidi_of.h: Regenerated.
41805         * lib/unictype/blocks.h: Regenerated.
41806         * lib/unictype/categ_C.h: Regenerated.
41807         * lib/unictype/categ_Cf.h: Regenerated.
41808         * lib/unictype/categ_Cn.h: Regenerated.
41809         * lib/unictype/categ_L.h: Regenerated.
41810         * lib/unictype/categ_Ll.h: Regenerated.
41811         * lib/unictype/categ_Lm.h: Regenerated.
41812         * lib/unictype/categ_Lo.h: Regenerated.
41813         * lib/unictype/categ_Lu.h: Regenerated.
41814         * lib/unictype/categ_M.h: Regenerated.
41815         * lib/unictype/categ_Mc.h: Regenerated.
41816         * lib/unictype/categ_Me.h: Regenerated.
41817         * lib/unictype/categ_Mn.h: Regenerated.
41818         * lib/unictype/categ_N.h: Regenerated.
41819         * lib/unictype/categ_Nd.h: Regenerated.
41820         * lib/unictype/categ_Nl.h: Regenerated.
41821         * lib/unictype/categ_No.h: Regenerated.
41822         * lib/unictype/categ_P.h: Regenerated.
41823         * lib/unictype/categ_Pd.h: Regenerated.
41824         * lib/unictype/categ_Pe.h: Regenerated.
41825         * lib/unictype/categ_Pf.h: Regenerated.
41826         * lib/unictype/categ_Pi.h: Regenerated.
41827         * lib/unictype/categ_Po.h: Regenerated.
41828         * lib/unictype/categ_Ps.h: Regenerated.
41829         * lib/unictype/categ_S.h: Regenerated.
41830         * lib/unictype/categ_Sk.h: Regenerated.
41831         * lib/unictype/categ_Sm.h: Regenerated.
41832         * lib/unictype/categ_So.h: Regenerated.
41833         * lib/unictype/categ_of.h: Regenerated.
41834         * lib/unictype/combining.h: Regenerated.
41835         * lib/unictype/ctype_alnum.h: Regenerated.
41836         * lib/unictype/ctype_alpha.h: Regenerated.
41837         * lib/unictype/ctype_graph.h: Regenerated.
41838         * lib/unictype/ctype_lower.h: Regenerated.
41839         * lib/unictype/ctype_print.h: Regenerated.
41840         * lib/unictype/ctype_punct.h: Regenerated.
41841         * lib/unictype/ctype_upper.h: Regenerated.
41842         * lib/unictype/decdigit.h: Regenerated.
41843         * lib/unictype/digit.h: Regenerated.
41844         * lib/unictype/mirror.h: Regenerated.
41845         * lib/unictype/numeric.h: Regenerated.
41846         * lib/unictype/pr_alphabetic.h: Regenerated.
41847         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41848         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41849         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41850         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41851         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41852         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41853         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41854         * lib/unictype/pr_combining.h: Regenerated.
41855         * lib/unictype/pr_dash.h: Regenerated.
41856         * lib/unictype/pr_decimal_digit.h: Regenerated.
41857         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41858         * lib/unictype/pr_deprecated.h: Regenerated.
41859         * lib/unictype/pr_diacritic.h: Regenerated.
41860         * lib/unictype/pr_extender.h: Regenerated.
41861         * lib/unictype/pr_format_control.h: Regenerated.
41862         * lib/unictype/pr_grapheme_base.h: Regenerated.
41863         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41864         * lib/unictype/pr_grapheme_link.h: Regenerated.
41865         * lib/unictype/pr_id_continue.h: Regenerated.
41866         * lib/unictype/pr_id_start.h: Regenerated.
41867         * lib/unictype/pr_ideographic.h: Regenerated.
41868         * lib/unictype/pr_ignorable_control.h: Regenerated.
41869         * lib/unictype/pr_lowercase.h: Regenerated.
41870         * lib/unictype/pr_math.h: Regenerated.
41871         * lib/unictype/pr_numeric.h: Regenerated.
41872         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41873         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41874         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41875         * lib/unictype/pr_other_id_continue.h: Regenerated.
41876         * lib/unictype/pr_other_lowercase.h: Regenerated.
41877         * lib/unictype/pr_other_math.h: Regenerated.
41878         * lib/unictype/pr_punctuation.h: Regenerated.
41879         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41880         * lib/unictype/pr_soft_dotted.h: Regenerated.
41881         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41882         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41883         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41884         * lib/unictype/pr_uppercase.h: Regenerated.
41885         * lib/unictype/pr_xid_continue.h: Regenerated.
41886         * lib/unictype/pr_xid_start.h: Regenerated.
41887         * lib/unictype/pr_zero_width.h: Regenerated.
41888         * lib/unictype/scripts.h: Regenerated.
41889         * lib/unictype/scripts_byname.gperf: Regenerated.
41890         * lib/unictype/sy_java_ident.h: Regenerated.
41891         * lib/unilbrk/lbrkprop1.h: Regenerated.
41892         * lib/unilbrk/lbrkprop2.h: Regenerated.
41893         * tests/unictype/test-categ_C.c: Regenerated.
41894         * tests/unictype/test-categ_Cf.c: Regenerated.
41895         * tests/unictype/test-categ_Cn.c: Regenerated.
41896         * tests/unictype/test-categ_L.c: Regenerated.
41897         * tests/unictype/test-categ_Ll.c: Regenerated.
41898         * tests/unictype/test-categ_Lm.c: Regenerated.
41899         * tests/unictype/test-categ_Lo.c: Regenerated.
41900         * tests/unictype/test-categ_Lu.c: Regenerated.
41901         * tests/unictype/test-categ_M.c: Regenerated.
41902         * tests/unictype/test-categ_Mc.c: Regenerated.
41903         * tests/unictype/test-categ_Me.c: Regenerated.
41904         * tests/unictype/test-categ_Mn.c: Regenerated.
41905         * tests/unictype/test-categ_N.c: Regenerated.
41906         * tests/unictype/test-categ_Nd.c: Regenerated.
41907         * tests/unictype/test-categ_Nl.c: Regenerated.
41908         * tests/unictype/test-categ_No.c: Regenerated.
41909         * tests/unictype/test-categ_P.c: Regenerated.
41910         * tests/unictype/test-categ_Pd.c: Regenerated.
41911         * tests/unictype/test-categ_Pe.c: Regenerated.
41912         * tests/unictype/test-categ_Pf.c: Regenerated.
41913         * tests/unictype/test-categ_Pi.c: Regenerated.
41914         * tests/unictype/test-categ_Po.c: Regenerated.
41915         * tests/unictype/test-categ_Ps.c: Regenerated.
41916         * tests/unictype/test-categ_S.c: Regenerated.
41917         * tests/unictype/test-categ_Sk.c: Regenerated.
41918         * tests/unictype/test-categ_Sm.c: Regenerated.
41919         * tests/unictype/test-categ_So.c: Regenerated.
41920         * tests/unictype/test-ctype_alnum.c: Regenerated.
41921         * tests/unictype/test-ctype_alpha.c: Regenerated.
41922         * tests/unictype/test-ctype_graph.c: Regenerated.
41923         * tests/unictype/test-ctype_lower.c: Regenerated.
41924         * tests/unictype/test-ctype_print.c: Regenerated.
41925         * tests/unictype/test-ctype_punct.c: Regenerated.
41926         * tests/unictype/test-ctype_upper.c: Regenerated.
41927         * tests/unictype/test-decdigit.h: Regenerated.
41928         * tests/unictype/test-digit.h: Regenerated.
41929         * tests/unictype/test-numeric.h: Regenerated.
41930         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41931         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41932         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41933         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41934         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41935         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41936         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41937         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41938         * tests/unictype/test-pr_combining.c: Regenerated.
41939         * tests/unictype/test-pr_dash.c: Regenerated.
41940         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41941         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41942         * tests/unictype/test-pr_deprecated.c: Regenerated.
41943         * tests/unictype/test-pr_diacritic.c: Regenerated.
41944         * tests/unictype/test-pr_extender.c: Regenerated.
41945         * tests/unictype/test-pr_format_control.c: Regenerated.
41946         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41947         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41948         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41949         * tests/unictype/test-pr_id_continue.c: Regenerated.
41950         * tests/unictype/test-pr_id_start.c: Regenerated.
41951         * tests/unictype/test-pr_ideographic.c: Regenerated.
41952         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41953         * tests/unictype/test-pr_lowercase.c: Regenerated.
41954         * tests/unictype/test-pr_math.c: Regenerated.
41955         * tests/unictype/test-pr_numeric.c: Regenerated.
41956         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41957         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41958         Regenerated.
41959         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41960         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41961         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41962         * tests/unictype/test-pr_other_math.c: Regenerated.
41963         * tests/unictype/test-pr_punctuation.c: Regenerated.
41964         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41965         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41966         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41967         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41968         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41969         * tests/unictype/test-pr_uppercase.c: Regenerated.
41970         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41971         * tests/unictype/test-pr_xid_start.c: Regenerated.
41972         * tests/unictype/test-pr_zero_width.c: Regenerated.
41973
41974         Update to Unicode 5.1.0.
41975         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41976         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41977         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41978         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41979         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41980         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41981         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41982         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41983         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41984         (nonspacing_table_ind): Update.
41985         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41986
41987         Update to Unicode 5.1.0.
41988         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41989         code transform.
41990         * lib/uniname/uniname.c (unicode_character_name,
41991         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41992         * lib/uniname/uninames.h: Regenerated.
41993         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41994
41995 2009-02-07  Bruno Haible  <bruno@clisp.org>
41996
41997         Merge gen-ctype and gen-lbrk into a single program.
41998         * lib/gen-uni-tables.c: New file, incorporating
41999         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42000         Add directory prefixes to the names of the generated files.
42001         * lib/unictype/gen-ctype.c: Remove file.
42002         * lib/unilbrk/gen-lbrk.c: Remove file.
42003         * modules/gen-uni-tables: New file.
42004         * modules/unictype/gen-ctype: Remove file.
42005         * modules/unilbrk/gen-lbrk: Remove file.
42006
42007 2009-02-07  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42010
42011         New module 'unistr/u32-strcoll'.
42012         * modules/unistr/u32-strcoll: New file.
42013         * lib/unistr/u32-strcoll.c: New file.
42014
42015         New module 'unistr/u16-strcoll'.
42016         * modules/unistr/u16-strcoll: New file.
42017         * lib/unistr/u16-strcoll.c: New file.
42018
42019         New module 'unistr/u8-strcoll'.
42020         * modules/unistr/u8-strcoll: New file.
42021         * lib/unistr/u8-strcoll.c: New file.
42022         * lib/unistr/u-strcoll.h: New file.
42023
42024 2009-02-07  Bruno Haible  <bruno@clisp.org>
42025
42026         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42027         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42028         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42029         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42030         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42031         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42032
42033 2009-02-07  Bruno Haible  <bruno@clisp.org>
42034
42035         Make 64-bit clean.
42036         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42037         output_combclass, output_bidi_category, output_decimal_digit,
42038         output_digit, output_numeric, output_mirror, output_scripts,
42039         output_ident_category): Use proper width specifier in format strings.
42040
42041 2009-02-07  Bruno Haible  <bruno@clisp.org>
42042
42043         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42044         failure behaviour.
42045
42046 2009-02-07  Jim Meyering  <meyering@redhat.com>
42047
42048         regex: avoid compilation failure with upcoming gcc-4.4
42049         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42050         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42051         "... error: integer overflow in preprocessor expression".
42052
42053 2009-02-05  Ben Pfaff  <blp@gnu.org>
42054
42055         Fix link errors on Windows when close module is used.
42056         * modules/close: Add $(LIB_CLOSE) to Link section.
42057         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42058         $(LIB_CLOSE) on Windows.
42059
42060 2009-02-05  Jim Meyering  <meyering@redhat.com>
42061
42062         still avoid unused-parameter warnings, but do it cleanly
42063         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42064         (get_fs_usage): Cast to void instead.
42065         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42066         (dev_from_mount_options, read_file_system_list): Cast to void.
42067         Prompted by Bruno Haible.
42068
42069 2009-02-04  Jim Meyering  <meyering@redhat.com>
42070
42071         fsusage.c: correct copyright year
42072         * lib/fsusage.c: Reflect year in which the change is pushed into
42073
42074         avoid misc. warnings
42075         * lib/fsusage.c (UNUSED_PARAM): Define.
42076         (get_fs_usage): Mark parameter "disk" as unused.
42077         * lib/getugroups.c (getgrent): Use "void" in prototype.
42078         * lib/mountlist.c: Mark unused parameters.
42079         (read_file_system_list): Declare a local with "const".
42080         * lib/nanosleep.c (getnow): Declare static.
42081         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42082
42083         dirfd: set errno upon failure
42084         * lib/dirfd.c: Include <errno.h>.
42085         Set errno to ENOTSUP when returning -1.
42086         * modules/dirfd (Depends-on): Add errno.
42087         Suggested by John Kodis <kodis@comcast.net>.
42088
42089 2009-02-01  Bruno Haible  <bruno@clisp.org>
42090
42091         Don't assume sizeof (long) >= sizeof (void *).
42092         * lib/memcmp.c: Include stdint.h.
42093         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42094         srcp2 to 'const byte *'.
42095         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42096         types to uintptr_t.
42097         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42098         * modules/memcmp (Depends-on): Add stdint.
42099         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42100
42101 2009-01-30  Eric Blake  <ebb9@byu.net>
42102
42103         fix more require-before-expand issues
42104         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42105         expand, AC_PROG_AWK.
42106         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42107
42108 2009-01-28  Eric Blake  <ebb9@byu.net>
42109
42110         version-etc: use consistent URL formatting
42111         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42112         Improve formatting.  Use fputs for string without %.
42113
42114 2009-01-28  Jim Meyering  <meyering@redhat.com>
42115
42116         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42117         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42118         "underquoted definition of NAME" from autoconf-2.59.
42119
42120 2009-01-28  Bruno Haible  <bruno@clisp.org>
42121
42122         * doc/gnulib.texi: Add "Obsolete modules" to index.
42123
42124 2009-01-28  Jim Meyering  <meyering@redhat.com>
42125
42126         useless-if-before-free: recognize more variants
42127         * build-aux/useless-if-before-free: Also recognize e.g.,
42128         if (NULL != p) free (p);
42129
42130 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42131
42132         test-getaddrinfo: skip (don't fail) this test when there's no network
42133         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42134         on the presumption that it means you lack network access.
42135
42136 2009-01-26  Jim Meyering  <meyering@redhat.com>
42137
42138         fflush: avoid warnings on modern systems
42139         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42140         pos and result, into scopes where they're used.
42141
42142 2009-01-26  Eric Blake  <ebb9@byu.net>
42143
42144         Silence warning reintroduced by recent extensions patch.
42145         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42146         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42147         autoconf.
42148
42149         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42150         * m4/00gnulib.m4: New file.
42151         * gnulib-tool (func_get_filelist): Always use it.
42152         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42153         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42154
42155 2009-01-25  Bruno Haible  <bruno@clisp.org>
42156
42157         Make test-quotearg work on MacOS X and AIX.
42158         * tests/test-quotearg.sh: New file.
42159         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42160         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42161         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42162         include <libintl.h>.
42163         (fake_locale): Remove variable.
42164         (gettext, dgettext, dcgettext): Remove functions.
42165         (main): Instead of setting a fake locale, set a real locale. Call
42166         textdomain and bindtextdomain.
42167         * modules/quotearg-tests (Files): Add the new files.
42168         (Depends-on): Add gettext, setenv, unsetenv.
42169         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42170         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42171         Augment TESTS_ENVIRONMENT.
42172
42173 2009-01-25  Bruno Haible  <bruno@clisp.org>
42174
42175         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42176         fr_FR.ISO8859-1 locale on MacOS X.
42177         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42178         ja_JP.eucJP locale on MacOS X.
42179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42180         zh_CN.GB18030 locale on MacOS X.
42181
42182 2009-01-25  Bruno Haible  <bruno@clisp.org>
42183
42184         Avoid link errors on MacOS X 10.3.
42185         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42186         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42187
42188 2009-01-25  Bruno Haible  <bruno@clisp.org>
42189
42190         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42191         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42192         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42193         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42194         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42195         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42196         posix_spawnattr_init, posix_spawnattr_setsigmask,
42197         posix_spawnattr_setflags, posix_spawnattr_destroy.
42198
42199         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42200         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42201         * modules/execute (Files): Remove m4/posix_spawn.m4.
42202         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42203         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42204         posix_spawnattr_init, posix_spawnattr_setsigmask,
42205         posix_spawnattr_setflags, posix_spawnattr_destroy.
42206
42207 2009-01-25  Bruno Haible  <bruno@clisp.org>
42208
42209         * lib/glthread/threadlib.c: Include <stdlib.h>.
42210
42211 2009-01-25  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/glthread/threadlib.c (dummy): New declaration.
42214
42215 2009-01-25  Bruno Haible  <bruno@clisp.org>
42216
42217         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42218         multibyte characters also for the GB18030 encoding. Don't crash when
42219         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42220
42221 2009-01-25  Bruno Haible  <bruno@clisp.org>
42222
42223         Avoid redefining 'struct random_data' on OSF/1 5.1.
42224         * lib/stdlib.in.h: Include <random.h> if it exists.
42225         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42226         HAVE_RANDOM_H. Include <random.h> when testing whether
42227         'struct random_data' exists.
42228         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42229
42230 2009-01-25  Bruno Haible  <bruno@clisp.org>
42231
42232         Don't install charset.alias on MacOS X >= 10.3.
42233         * lib/localcharset.c (DARWIN7): New macro.
42234         (get_charset_aliases): Hardcode the result for Darwin7.
42235         * modules/localcharset (install-exec-local): Don't install
42236         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42237
42238 2009-01-25  Bruno Haible  <bruno@clisp.org>
42239
42240         Don't install charset.alias on mingw and Cygwin.
42241         * modules/localcharset (install-exec-local): Don't install
42242         charset.alias on mingw and Cygwin, if the file does not yet exist.
42243         The result for these platforms is hardcoded in localcharset.c.
42244
42245 2009-01-25  Bruno Haible  <bruno@clisp.org>
42246
42247         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42249         before requiring AC_USE_SYSTEM_EXTENSIONS.
42250
42251 2009-01-25  Jim Meyering  <meyering@redhat.com>
42252
42253         c-strtod: avoid warnings
42254         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42255         "assignment discards qualifiers from pointer target type" warnings.
42256
42257 2009-01-24  Bruno Haible  <bruno@clisp.org>
42258
42259         Add support for non-UTF-8 locales on MacOS X.
42260         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42261         canonical encodings. For Darwin 7 and newer, don't map traditional
42262         encodings to UTF-8.
42263         Reported by Vincent Lefevre <vincent@vinc17.org>
42264         at <http://savannah.gnu.org/bugs/?25235>.
42265
42266 2009-01-24  Bruno Haible  <bruno@clisp.org>
42267
42268         * doc/gnulib.texi (Obsolete modules): New section.
42269         Reported by Mike Frysinger <vapier@gentoo.org>.
42270
42271 2009-01-24  Bruno Haible  <bruno@clisp.org>
42272
42273         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42274         (%.dvi): New rule.
42275
42276 2009-01-24  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42279         Reported by Eric Blake.
42280
42281 2009-01-24  Bruno Haible  <bruno@clisp.org>
42282
42283         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42284         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42285         Reported by Gary V. Vaughan <gary@gnu.org>.
42286
42287 2009-01-24  Bruno Haible  <bruno@clisp.org>
42288
42289         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42290
42291 2009-01-23  Bruno Haible  <bruno@clisp.org>
42292
42293         Make c-strtod, c-strtold usable in libraries.
42294         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42295         (C_STRTOD): Call strdup instead of xstrdup.
42296         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42297         * modules/c-strtold (Depends-on): Likewise.
42298         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42299         * NEWS: Mention the change.
42300         Reported by Michael Gold <mgold@ncf.ca>.
42301
42302 2009-01-23  Jim Meyering  <meyering@redhat.com>
42303
42304         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42305         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42306         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42307
42308 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42309
42310         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42311         GNU CoreUtils.
42312         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42313         * modules/version-etc (Description): Update.
42314
42315 2009-01-22  Bruno Haible  <bruno@clisp.org>
42316
42317         Cache the C locale object.
42318         * lib/c-strtod.c (c_locale_cache): New variable.
42319         (c_locale): New function.
42320         (C_STRTOD): Use it, and don't call freelocale.
42321         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42322         Suggested by Paolo Bonzini.
42323
42324 2009-01-21  Bruno Haible  <bruno@clisp.org>
42325
42326         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42327         conditions other than overflow.
42328
42329 2009-01-21  Bruno Haible  <bruno@clisp.org>
42330
42331         * lib/c-strtod.c: Include errno.h.
42332         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42333         value from STRTOD_L and STRTOD.
42334
42335 2009-01-21  Bruno Haible  <bruno@clisp.org>
42336         and Jim Meyering  <meyering@redhat.com>
42337
42338         nanosleep: skip configure test (fail it) for apple universal builds
42339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42340         universal builds, assume that nanosleep does not work.
42341         * modules/nanosleep (Depends-on): Add multiarch.
42342
42343         mktime: skip configure test (fail it) for apple universal builds
42344         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42345         universal builds, assume that mktime does not work.
42346         * modules/mktime (Depends-on): Add multiarch.
42347
42348 2009-01-21  Eric Blake  <ebb9@byu.net>
42349
42350         multiarch: avoid expand-before-require warning
42351         * modules/multiarch (configure.ac): Require, rather than expand,
42352         gl_MULTIARCH.
42353         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42354         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42355         enforce that all clients require it.  Partial reversion of
42356         2008-12-29 patch.
42357
42358         error: avoid expand-before-require warning
42359         * modules/errno (configure.ac): Require, rather than expand,
42360         gl_HEADER_ERRNO_H.
42361         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42362         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42363         enforce that all clients require it.
42364
42365         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42366         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42367         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42368         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42369
42370 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42371
42372         Revert:
42373         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42374
42375         regex: do not depend on obsolete modules.
42376         * modules/regex: Remove memcmp and memmove.
42377
42378 2009-01-20  Bruno Haible  <bruno@clisp.org>
42379
42380         Make the 'link' module link on Windows NT 4.
42381         * lib/link.c (_WIN32_WINNT): Don't define.
42382         (CreateHardLinkFuncType): New type.
42383         (CreateHardLinkFunc, initialized): New variables.
42384         (initialize): New function.
42385         (link): Invoke CreateHardLink indirectly through the function pointer.
42386
42387 2009-01-20  Bruno Haible  <bruno@clisp.org>
42388
42389         Fix compilation failure on mingw.
42390         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42391
42392 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42393
42394         * doc/c-strtod.texi: Mention a couple of restrictions.
42395
42396 2009-01-20  Jim Meyering  <meyering@redhat.com>
42397
42398         gettimeofday: move more declarations out of functions
42399         * lib/gettimeofday.c: Move extern declarations of tzset and
42400         gmtime out of containing functions.  Prompted by Bruno Haible.
42401
42402 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42403
42404         regex: do not depend on obsolete modules.
42405         * modules/regex: Remove memcmp and memmove.
42406
42407 2009-01-19  Bruno Haible  <bruno@clisp.org>
42408
42409         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42410         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42411         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42412         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42413         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42414
42415 2009-01-19  Bruno Haible  <bruno@clisp.org>
42416
42417         * tests/test-link.c: Include <errno.h>.
42418         (main): Exit with code 77 when a hard link cannot be created due to
42419         the file system.
42420         * tests/test-link.sh: Skip test when a hard link cannot be created due
42421         to the file system.
42422         Suggested by Eric Blake.
42423
42424 2009-01-19  Martin Lambers  <marlam@marlam.de>
42425
42426         * modules/link-tests: New file.
42427         * tests/test-link.sh: New file.
42428         * tests/test-link.c: New file.
42429
42430 2009-01-19  Eric Blake  <ebb9@byu.net>
42431
42432         doc: mention another function added in cygwin 1.7.0
42433         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42434         Another new function in cygwin 1.7.
42435
42436 2009-01-19  Bruno Haible  <bruno@clisp.org>
42437
42438         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42439         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42440         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42441         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42442         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42443         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42444         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42445         * m4/md4.m4 (gl_MD4): Likewise.
42446         * m4/md5.m4 (gl_MD5): Likewise.
42447         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42448         * m4/sha1.m4 (gl_SHA1): Likewise.
42449         * m4/sha256.m4 (gl_SHA256): Likewise.
42450         * m4/sha512.m4 (gl_SHA512): Likewise.
42451
42452 2009-01-19  Bruno Haible  <bruno@clisp.org>
42453
42454         * modules/uniname/uniname-tests (Depends-on): Add progname.
42455         * tests/uniname/test-uninames.c: Include progname.h.
42456         (main): Call set_program_name.
42457
42458         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42459         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42460         (main): Call set_program_name.
42461
42462         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42463         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42464         (main): Call set_program_name.
42465
42466         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42467         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42468         (main): Call set_program_name.
42469
42470         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42471         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42472         (main): Call set_program_name.
42473
42474         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42475         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42476         (main): Call set_program_name.
42477
42478         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42479         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42480         (main): Call set_program_name.
42481
42482         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42483         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42484         (main): Call set_program_name.
42485
42486         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42487         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42488         (main): Call set_program_name.
42489
42490 2009-01-19  Eric Blake  <ebb9@byu.net>
42491
42492         test-unistd: test previous patch
42493         * tests/test-unistd.c: Test *_FILENO macros.
42494
42495         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42496         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42497         Guarantee a definition.
42498         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42499         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42500         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42501         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42502         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42503         Likewise.
42504         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42505         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42506         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42507         Likewise.
42508         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42509         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42510         (STDERR_FILENO): Likewise.
42511         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42512         (STDERR_FILENO): Likewise.
42513         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42514         (STDERR_FILENO): Likewise.
42515         Reported by Elbert Pol.
42516
42517 2009-01-19  Eric Blake  <ebb9@byu.net>
42518
42519         doc: mention more functions added in cygwin 1.7.0
42520         * doc/posix-functions/abort.texi (abort): Update wording related
42521         to cygwin.
42522         * doc/posix-functions/daylight.texi (daylight): Likewise.
42523         * doc/posix-functions/optarg.texi (optarg): Likewise.
42524         * doc/posix-functions/optarg.texi (opterr): Likewise.
42525         * doc/posix-functions/optarg.texi (optind): Likewise.
42526         * doc/posix-functions/optarg.texi (optopt): Likewise.
42527         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42528         worked in 1.5.x, and was withdrawn in 1.7.
42529         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42530         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42531         cygwin versions.
42532         * doc/posix-functions/perror.texi (perror): Likewise.
42533         * doc/posix-functions/printf.texi (printf): Likewise.
42534         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42535         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42536         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42537         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42538         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42539         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42540         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42541         Likewise.
42542         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42543         Likewise.
42544         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42545         this function.
42546         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42547         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42548         Likewise.
42549         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42550         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42551         * doc/posix-functions/confstr.texi (confstr): Likewise.
42552         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42553         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42554         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42555         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42556         * doc/posix-functions/fputws.texi (fputws): Likewise.
42557         * doc/posix-functions/fwide.texi (fwide): Likewise.
42558         * doc/posix-functions/getwc.texi (getwc): Likewise.
42559         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42560         * doc/posix-functions/putwc.texi (putwc): Likewise.
42561         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42562         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42563         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42564         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42565         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42566         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42567         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42568         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42569         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42570         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42571         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42572
42573 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42574
42575         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42576         * lib/ioctl.c: Include <sys/ioctl.h>.
42577
42578 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42579
42580         * modules/getdate-tests (Depends-on): Add progname.
42581         * tests/test-getdate.c: Use progname module, to avoid link errors
42582         on non-glibc systems.
42583
42584 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42585
42586         * modules/filenamecat-tests (Depends-on): Add progname.
42587         * modules/fstrcmp-tests (Depends-on): Likewise.
42588
42589         * tests/test-filenamecat.c: Use progname module, to avoid link
42590         errors on non-glibc systems.
42591         * tests/test-fstrcmp.c: Likewise.
42592
42593 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42594
42595         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42596         * lib/gettimeofday.c: Move extern declaration out of function.
42597
42598 2009-01-18  Bruno Haible  <bruno@clisp.org>
42599
42600         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42601         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42602         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42603
42604 2009-01-18  Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/strftime.c (MEMPCPY): Remove unused macro.
42607         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42608
42609 2009-01-18  Martin Lambers  <marlam@marlam.de>
42610
42611         New module 'link'.
42612         * lib/unistd.in.h (link): New declaration.
42613         * lib/link.c: New file.
42614         * m4/link.m4: New file.
42615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42616         HAVE_LINK.
42617         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42618         * modules/link: New file.
42619         * doc/posix-functions/link.texi: Mention the new module.
42620
42621 2009-01-18  Bruno Haible  <bruno@clisp.org>
42622
42623         * tests/test-avltree_list.c (main): Call set_program_name.
42624         * tests/test-avltree_oset.c (main): Likewise.
42625         * tests/test-obstack-printf.c: Include progname.h.
42626         (main): Call set_program_name.
42627         * tests/test-quotearg.c: Include progname.h.
42628         (main): Call set_program_name.
42629         * tests/test-xmemdup0.c: Include progname.h.
42630         (main): Call set_program_name.
42631
42632 2009-01-18  Bruno Haible  <bruno@clisp.org>
42633
42634         New module 'alphasort'.
42635         * lib/dirent.in.h (alphasort): New declaration.
42636         * lib/alphasort.c: New file, from glibc with modifications.
42637         * m4/alphasort.m4: New file.
42638         * modules/alphasort: New file.
42639         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42640         HAVE_ALPHASORT.
42641         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42642         HAVE_ALPHASORT.
42643         * doc/posix-functions/alphasort.texi: Mention the new module and the
42644         portability problems.
42645
42646 2009-01-18  Bruno Haible  <bruno@clisp.org>
42647
42648         New module 'scandir'.
42649         * lib/dirent.in.h (scandir): New declaration.
42650         * lib/scandir.c: New file, from glibc with modifications.
42651         * m4/scandir.m4: New file.
42652         * modules/scandir: New file.
42653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42654         HAVE_SCANDIR.
42655         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42656         HAVE_SCANDIR.
42657         * doc/posix-functions/scandir.texi: Mention the new module and the
42658         portability problems.
42659
42660 2009-01-17  Bruno Haible  <bruno@clisp.org>
42661
42662         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42663         Update documentation.
42664         (func_remove_suffix): Escape all dots in the suffix. Update
42665         documentation.
42666         (func_filter_filelist): Update documentation.
42667         Reported by Ralf Wildenhues.
42668
42669 2009-01-17  Bruno Haible  <bruno@clisp.org>
42670
42671         * modules/dprintf-posix-tests: New file.
42672         * tests/test-dprintf-posix.sh: New file.
42673         * tests/test-dprintf-posix.c: New file.
42674
42675         New modules 'dprintf', 'dprintf-posix'.
42676         * lib/stdio.in.h (dprintf): New declaration.
42677         * lib/dprintf.c: New file.
42678         * m4/dprintf.m4: New file.
42679         * m4/dprintf-posix.m4: New file.
42680         * modules/dprintf: New file.
42681         * modules/dprintf-posix: New file.
42682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42683         HAVE_DPRINTF, REPLACE_DPRINTF.
42684         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42685         HAVE_DPRINTF, REPLACE_DPRINTF.
42686         * doc/posix-functions/dprintf.texi: Mention the new modules.
42687
42688 2009-01-17  Bruno Haible  <bruno@clisp.org>
42689
42690         * modules/vdprintf-posix-tests: New file.
42691         * tests/test-vdprintf-posix.sh: New file.
42692         * tests/test-vdprintf-posix.c: New file.
42693
42694         New modules 'vdprintf', 'vdprintf-posix'.
42695         * lib/stdio.in.h (vdprintf): New declaration.
42696         * lib/vdprintf.c: New file.
42697         * m4/vdprintf.m4: New file.
42698         * m4/vdprintf-posix.m4: New file.
42699         * modules/vdprintf: New file.
42700         * modules/vdprintf-posix: New file.
42701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42702         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42703         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42704         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42705         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42706
42707 2009-01-17  Bruno Haible  <bruno@clisp.org>
42708
42709         Fix replacement of fopen on mingw.
42710         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42711         mingw.
42712
42713 2009-01-17  Bruno Haible  <bruno@clisp.org>
42714
42715         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42716         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42717
42718 2009-01-17  Bruno Haible  <bruno@clisp.org>
42719
42720         Avoid test-fflush2.sh failure on mingw.
42721         * tests/test-fflush2.c: Include binary-io.h.
42722         (main): Put standard input into binary mode.
42723         * modules/fflush-tests (Depends-on): Add binary-io.
42724
42725 2009-01-17  Bruno Haible  <bruno@clisp.org>
42726
42727         * lib/wchar.in.h: In another particular situation, include only the
42728         system's <wchar.h> file.
42729         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42730         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42731         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42732
42733 2009-01-17  Bruno Haible  <bruno@clisp.org>
42734
42735         Support for stripping executables in --enable-relocatable.
42736         * build-aux/install-reloc: Expect one more argument, or an environment
42737         variable RELOC_STRIP_PROG. If set, strip the destination program and
42738         its wrapper.
42739         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42740         RELOC_STRIP_PROG.
42741         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42742         to set RELOCATABLE_STRIP.
42743         * NEWS: Mention the new Makefile requirement.
42744
42745 2009-01-17  Bruno Haible  <bruno@clisp.org>
42746
42747         * build-aux/install-reloc: Remove debugging information left over by
42748         C compiler on MacOS X.
42749
42750 2009-01-17  Bruno Haible  <bruno@clisp.org>
42751
42752         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42753         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42754         _NSGetExecutablePath.
42755
42756 2009-01-16  Jim Meyering  <meyering@redhat.com>
42757
42758         strerror: avoid warnings about discarding "const"
42759         * lib/strerror.c (rpl_strerror): Instead of returning a const
42760         string from each and every "case", use a variable, and add a single
42761         cast after the switch.
42762
42763 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42764
42765         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42766
42767 2009-01-16  Bruno Haible  <bruno@clisp.org>
42768
42769         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42770         array initializer syntax that also works in C++ mode.
42771         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42772
42773 2009-01-16  Jim Meyering  <meyering@redhat.com>
42774
42775         poll: suppress a warning
42776         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42777         to ignore "...unsigned expression < 0 is always false" warnings.
42778
42779 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42780
42781         poll: remove declarations of unused variables
42782         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42783         sockbuf and optlen.
42784
42785 2009-01-15  Bruno Haible  <bruno@clisp.org>
42786
42787         Make fflush-after-ungetc POSIX compliant on BSD systems.
42788         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42789         (clear_ungetc_buffer): Implement also for other systems.
42790         (rpl_fflush): On glibc systems, invoke
42791         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42792         clear_ungetc_buffer after fetching the stream's position, not before.
42793
42794 2009-01-15  Bruno Haible  <bruno@clisp.org>
42795
42796         Make fflush-after-ungetc POSIX compliant on glibc systems.
42797         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42798         after ungetc.
42799         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42800         (rpl_fflush): On glibc systems, simply call the system's fflush
42801         function after clearing the ungetc buffer.
42802         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42803         Instead, lseek only to the end of file, then use the system's fseeko
42804         for the rest. On glibc systems, reset the EOF indicator bit.
42805
42806 2009-01-15  Jim Meyering  <meyering@redhat.com>
42807
42808         openmp.m4: revert quote-adding change, for portability to older autoconf
42809         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42810         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42811         Simon Josefsson noticed the problem when using autoconf-2.61.
42812
42813 2009-01-15  Bruno Haible  <bruno@clisp.org>
42814
42815         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42816         * tests/test-fflush2.c (ASSERT): Always fail.
42817         (main): Add two tests for fflush() after ungetc(), taking into account
42818         the Austin Group's clarification.
42819         Suggested by Eric Blake.
42820
42821 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42822
42823         mktime.m4: remove K&R-style function prototypes
42824         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42825         for the Sun C++ compiler.
42826
42827 2009-01-14  Bruno Haible  <bruno@clisp.org>
42828
42829         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42830         while including <wchar.h>.
42831         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42832         the system's <wchar.h> file.
42833         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42834
42835 2009-01-14  Bruno Haible  <bruno@clisp.org>
42836
42837         * m4/csharp.m4: Don't mention gettext on the serial number line.
42838         * m4/csharpexec.m4: Likewise.
42839         * m4/eaccess.m4: Likewise.
42840         * m4/javaexec.m4: Likewise.
42841         * m4/sig_atomic_t.m4: Likewise.
42842         * m4/tmpdir.m4: Likewise.
42843         * m4/intldir.m4: Bump gettext version.
42844         * m4/lib-ld.m4: Likewise.
42845
42846 2009-01-14  Bruno Haible  <bruno@clisp.org>
42847
42848         * lib/progname.c (set_program_name): Add more comments.
42849         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42850
42851 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42852
42853         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42854         were sys/stat.h does not define it.
42855
42856 2009-01-14  Jim Meyering  <meyering@redhat.com>
42857
42858         many *.m4 files: improve m4 quoting
42859         99% of this change was performed by running the following commands:
42860         git ls-files | grep '\.m4$' | xargs perl -pi \
42861           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42862           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42863           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42864           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42865         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42866         The remainder were to add Copyright dates, increment serial numbers,
42867         undo some changes in comments, exclude m4/intl.m4, and add quotes
42868         around the "1" in ",1" where the unusual spacing prohibited the
42869         above regexps from doing the job.  For more details, see
42870         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42871         * m4/acl.m4: Modified.
42872         * m4/afs.m4: Likewise.
42873         * m4/alloca.m4: Likewise.
42874         * m4/argp.m4: Likewise.
42875         * m4/argz.m4: Likewise.
42876         * m4/atexit.m4: Likewise.
42877         * m4/bison-i18n.m4: Likewise.
42878         * m4/bison.m4: Likewise.
42879         * m4/byteswap.m4: Likewise.
42880         * m4/c-stack.m4: Likewise.
42881         * m4/c-strtod.m4: Likewise.
42882         * m4/calloc.m4: Likewise.
42883         * m4/canonicalize-lgpl.m4: Likewise.
42884         * m4/chown.m4: Likewise.
42885         * m4/clock_time.m4: Likewise.
42886         * m4/codeset.m4: Likewise.
42887         * m4/copy-file.m4: Likewise.
42888         * m4/csharp.m4: Likewise.
42889         * m4/csharpcomp.m4: Likewise.
42890         * m4/csharpexec.m4: Likewise.
42891         * m4/d-ino.m4: Likewise.
42892         * m4/d-type.m4: Likewise.
42893         * m4/dirfd.m4: Likewise.
42894         * m4/double-slash-root.m4: Likewise.
42895         * m4/eaccess.m4: Likewise.
42896         * m4/eealloc.m4: Likewise.
42897         * m4/environ.m4: Likewise.
42898         * m4/errno_h.m4: Likewise.
42899         * m4/euidaccess.m4: Likewise.
42900         * m4/execute.m4: Likewise.
42901         * m4/fatal-signal.m4: Likewise.
42902         * m4/fchdir.m4: Likewise.
42903         * m4/fcntl_h.m4: Likewise.
42904         * m4/fileblocks.m4: Likewise.
42905         * m4/filenamecat.m4: Likewise.
42906         * m4/findprog.m4: Likewise.
42907         * m4/flexmember.m4: Likewise.
42908         * m4/fnmatch.m4: Likewise.
42909         * m4/fopen.m4: Likewise.
42910         * m4/fpending.m4: Likewise.
42911         * m4/fprintf-posix.m4: Likewise.
42912         * m4/free.m4: Likewise.
42913         * m4/frexp.m4: Likewise.
42914         * m4/frexpl.m4: Likewise.
42915         * m4/fsusage.m4: Likewise.
42916         * m4/ftruncate.m4: Likewise.
42917         * m4/gc-camellia.m4: Likewise.
42918         * m4/gc-random.m4: Likewise.
42919         * m4/gc.m4: Likewise.
42920         * m4/getaddrinfo.m4: Likewise.
42921         * m4/getcwd-abort-bug.m4: Likewise.
42922         * m4/getcwd-path-max.m4: Likewise.
42923         * m4/getdate.m4: Likewise.
42924         * m4/getdomainname.m4: Likewise.
42925         * m4/getgroups.m4: Likewise.
42926         * m4/gethostname.m4: Likewise.
42927         * m4/gethrxtime.m4: Likewise.
42928         * m4/getline.m4: Likewise.
42929         * m4/getloadavg.m4: Likewise.
42930         * m4/getndelim2.m4: Likewise.
42931         * m4/getpass.m4: Likewise.
42932         * m4/gettext.m4: Likewise.
42933         * m4/gettime.m4: Likewise.
42934         * m4/gettimeofday.m4: Likewise.
42935         * m4/gnulib-common.m4: Likewise.
42936         * m4/group-member.m4: Likewise.
42937         * m4/host-os.m4: Likewise.
42938         * m4/iconv.m4: Likewise.
42939         * m4/iconv_open.m4: Likewise.
42940         * m4/inet_ntop.m4: Likewise.
42941         * m4/inet_pton.m4: Likewise.
42942         * m4/inline.m4: Likewise.
42943         * m4/intldir.m4: Likewise.
42944         * m4/intlmacosx.m4: Likewise.
42945         * m4/intmax.m4: Likewise.
42946         * m4/intmax_t.m4: Likewise.
42947         * m4/inttypes.m4: Likewise.
42948         * m4/inttypes_h.m4: Likewise.
42949         * m4/inttypes-pri.m4: Likewise.
42950         * m4/isapipe.m4: Likewise.
42951         * m4/isnand.m4: Likewise.
42952         * m4/isnanf.m4: Likewise.
42953         * m4/isnanl.m4: Likewise.
42954         * m4/javacomp.m4: Likewise.
42955         * m4/javaexec.m4: Likewise.
42956         * m4/jm-winsz1.m4: Likewise.
42957         * m4/jm-winsz2.m4: Likewise.
42958         * m4/lchown.m4: Likewise.
42959         * m4/lcmessage.m4: Likewise.
42960         * m4/ldexpl.m4: Likewise.
42961         * m4/lib-ld.m4: Likewise.
42962         * m4/lib-link.m4: Likewise.
42963         * m4/libsigsegv.m4: Likewise.
42964         * m4/link-follow.m4: Likewise.
42965         * m4/localcharset.m4: Likewise.
42966         * m4/locale-fr.m4: Likewise.
42967         * m4/locale-ja.m4: Likewise.
42968         * m4/locale-tr.m4: Likewise.
42969         * m4/locale-zh.m4: Likewise.
42970         * m4/lock.m4: Likewise.
42971         * m4/longlong.m4: Likewise.
42972         * m4/ls-mntd-fs.m4: Likewise.
42973         * m4/lstat.m4: Likewise.
42974         * m4/malloc.m4: Likewise.
42975         * m4/mathl.m4: Likewise.
42976         * m4/mbrtowc.m4: Likewise.
42977         * m4/mbstate_t.m4: Likewise.
42978         * m4/mbswidth.m4: Likewise.
42979         * m4/memchr.m4: Likewise.
42980         * m4/memcmp.m4: Likewise.
42981         * m4/memcpy.m4: Likewise.
42982         * m4/memmem.m4: Likewise.
42983         * m4/memmove.m4: Likewise.
42984         * m4/mempcpy.m4: Likewise.
42985         * m4/memrchr.m4: Likewise.
42986         * m4/memset.m4: Likewise.
42987         * m4/minmax.m4: Likewise.
42988         * m4/mkdir-slash.m4: Likewise.
42989         * m4/mkdtemp.m4: Likewise.
42990         * m4/mktime.m4: Likewise.
42991         * m4/mmap-anon.m4: Likewise.
42992         * m4/mountlist.m4: Likewise.
42993         * m4/nanosleep.m4: Likewise.
42994         * m4/nls.m4: Likewise.
42995         * m4/nocrash.m4: Likewise.
42996         * m4/open.m4: Likewise.
42997         * m4/openat.m4: Likewise.
42998         * m4/openmp.m4: Likewise.
42999         * m4/pathmax.m4: Likewise.
43000         * m4/perl.m4: Likewise.
43001         * m4/physmem.m4: Likewise.
43002         * m4/pipe.m4: Likewise.
43003         * m4/po.m4: Likewise.
43004         * m4/poll.m4: Likewise.
43005         * m4/posixtm.m4: Likewise.
43006         * m4/posixver.m4: Likewise.
43007         * m4/printf-frexp.m4: Likewise.
43008         * m4/printf-frexpl.m4: Likewise.
43009         * m4/printf-posix.m4: Likewise.
43010         * m4/printf-posix-rpl.m4: Likewise.
43011         * m4/printf.m4: Likewise.
43012         * m4/progtest.m4: Likewise.
43013         * m4/putenv.m4: Likewise.
43014         * m4/readline.m4: Likewise.
43015         * m4/readlink.m4: Likewise.
43016         * m4/readutmp.m4: Likewise.
43017         * m4/realloc.m4: Likewise.
43018         * m4/regex.m4: Likewise.
43019         * m4/relocatable.m4: Likewise.
43020         * m4/relocatable-lib.m4: Likewise.
43021         * m4/rename-dest-slash.m4: Likewise.
43022         * m4/rename.m4: Likewise.
43023         * m4/rmdir-errno.m4: Likewise.
43024         * m4/rmdir.m4: Likewise.
43025         * m4/roundf.m4: Likewise.
43026         * m4/roundl.m4: Likewise.
43027         * m4/rpmatch.m4: Likewise.
43028         * m4/save-cwd.m4: Likewise.
43029         * m4/selinux-selinux-h.m4: Likewise.
43030         * m4/setenv.m4: Likewise.
43031         * m4/settime.m4: Likewise.
43032         * m4/sig2str.m4: Likewise.
43033         * m4/sig_atomic_t.m4: Likewise.
43034         * m4/signalblocking.m4: Likewise.
43035         * m4/signbit.m4: Likewise.
43036         * m4/sigpipe.m4: Likewise.
43037         * m4/sockets.m4: Likewise.
43038         * m4/sockpfaf.m4: Likewise.
43039         * m4/st_dm_mode.m4: Likewise.
43040         * m4/stat-time.m4: Likewise.
43041         * m4/stdbool.m4: Likewise.
43042         * m4/stdint.m4: Likewise.
43043         * m4/stdint_h.m4: Likewise.
43044         * m4/stpcpy.m4: Likewise.
43045         * m4/stpncpy.m4: Likewise.
43046         * m4/strcase.m4: Likewise.
43047         * m4/strchrnul.m4: Likewise.
43048         * m4/strcspn.m4: Likewise.
43049         * m4/strdup.m4: Likewise.
43050         * m4/strftime.m4: Likewise.
43051         * m4/strndup.m4: Likewise.
43052         * m4/strnlen.m4: Likewise.
43053         * m4/strpbrk.m4: Likewise.
43054         * m4/strptime.m4: Likewise.
43055         * m4/strsep.m4: Likewise.
43056         * m4/strtod.m4: Likewise.
43057         * m4/strtoimax.m4: Likewise.
43058         * m4/strtok_r.m4: Likewise.
43059         * m4/strtol.m4: Likewise.
43060         * m4/strtoll.m4: Likewise.
43061         * m4/strtoul.m4: Likewise.
43062         * m4/strtoull.m4: Likewise.
43063         * m4/strtoumax.m4: Likewise.
43064         * m4/strverscmp.m4: Likewise.
43065         * m4/threadlib.m4: Likewise.
43066         * m4/timegm.m4: Likewise.
43067         * m4/tm_gmtoff.m4: Likewise.
43068         * m4/tmpdir.m4: Likewise.
43069         * m4/tmpfile.m4: Likewise.
43070         * m4/tzset.m4: Likewise.
43071         * m4/uintmax_t.m4: Likewise.
43072         * m4/unlinkdir.m4: Likewise.
43073         * m4/unlocked-io.m4: Likewise.
43074         * m4/uptime.m4: Likewise.
43075         * m4/userspec.m4: Likewise.
43076         * m4/utimbuf.m4: Likewise.
43077         * m4/utime.m4: Likewise.
43078         * m4/utimes-null.m4: Likewise.
43079         * m4/utimes.m4: Likewise.
43080         * m4/vararrays.m4: Likewise.
43081         * m4/vasnprintf.m4: Likewise.
43082         * m4/vfprintf-posix.m4: Likewise.
43083         * m4/vprintf-posix.m4: Likewise.
43084         * m4/wait-process.m4: Likewise.
43085         * m4/wchar_t.m4: Likewise.
43086         * m4/wint_t.m4: Likewise.
43087         * m4/write-any-file.m4: Likewise.
43088         * m4/yield.m4: Likewise.
43089
43090 2009-01-13  Bruno Haible  <bruno@clisp.org>
43091
43092         Avoid test-copy-file.sh failures when ACL support insufficient.
43093         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43094         TESTS_ENVIRONMENT.
43095         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43096         Reported by Jim Meyering.
43097
43098 2009-01-13  Bruno Haible  <bruno@clisp.org>
43099
43100         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43101         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43102         * modules/unistdio/u8-printf-parse (Files): Likewise.
43103         * modules/unistdio/u32-printf-parse (Files): Likewise.
43104         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43105
43106 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43107
43108         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43109         and m4/inttypes_h.m4 too.
43110
43111 2009-01-12  Eric Blake  <ebb9@byu.net>
43112
43113         tests: IRIX 6.2 cc can't compile -0.0 into .data
43114         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43115         rather than at compile-time.
43116         * tests/test-floorl.c (minus_zero): Likewise.
43117         * tests/test-frexpl.c (minus_zero): Likewise.
43118         * tests/test-isnan.c (minus_zerol): Likewise.
43119         * tests/test-isnanl.h (minus_zero): Likewise.
43120         * tests/test-ldexpl.c (minus_zero): Likewise.
43121         * tests/test-roundl.c (minus_zero): Likewise.
43122         * tests/test-signbit.c (minus_zerol): Likewise.
43123         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43124         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43125         * tests/test-truncl.c (minus_zero): Likewise.
43126         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43127         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43128         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43129
43130 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43131
43132         regex: fix glibc bug 9697
43133         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43134         handling.
43135
43136 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43137
43138         regex: fix glibc bug 697
43139         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43140         being NULL also if there are no backreferences.
43141
43142 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43143
43144         regex: merge glibc changes
43145         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43146         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43147         re_string_skip_chars, re_string_reconstruct): Likewise.
43148         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43149
43150 2009-01-07  Jim Meyering  <meyering@redhat.com>
43151
43152         poll: filter through cppi
43153         * lib/poll.c: Indent cpp directives to reflect nesting.
43154
43155 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43156
43157         poll: don't return uninitialized
43158         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43159
43160 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43161
43162         avoid compile failure on AIX 6.1
43163         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43164         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43165
43166 2009-01-04  Jim Meyering  <meyering@redhat.com>
43167
43168         remove duplicate inclusion of <stdio.h>
43169         * tests/test-fprintf-posix.c: Likewise.
43170         * tests/test-printf-posix.c: Likewise.
43171         * tests/test-snprintf-posix.c: Likewise.
43172         * tests/test-sprintf-posix.c: Likewise.
43173         * tests/test-vasprintf-posix.c: Likewise.
43174         * tests/test-vfprintf-posix.c: Likewise.
43175         * tests/test-vprintf-posix.c: Likewise.
43176         * tests/test-vsnprintf-posix.c: Likewise.
43177         * tests/test-vsprintf-posix.c: Likewise.
43178
43179 2009-01-03  Jim Meyering  <meyering@redhat.com>
43180
43181         gnulib-tool: fix sed-based filtering
43182         * gnulib-tool (func_filter_filelist): Remove extra backslash
43183         in sed_fff_filter definition.
43184
43185 2009-01-02  Jim Meyering  <meyering@redhat.com>
43186
43187         strftime: avoid compilation failure on Solaris 2.6
43188         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43189         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43190         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43191         be available.  Reported by Tom G. Christensen.  Details in
43192         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43193
43194 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43195             Bruno Haible  <bruno@clisp.org>
43196
43197         Speed up gnulib-tool by doing more string processing through shell
43198         built-ins.
43199         * gnulib-tool (fast_func_append): New variable.
43200         (func_remove_prefix, func_remove_suffix): New functions.
43201         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43202         (func_filter_filelist): New function.
43203         (func_get_dependencies): Use func_remove_suffix instead of sed.
43204         (func_get_automake_snippet): Use func_filter_filelist instead of a
43205         subshell and sed invocation.
43206
43207 2009-01-01  Bruno Haible  <bruno@clisp.org>
43208
43209         Fix a security bug.
43210         * gnulib-tool (func_import, import, update): Don't allow the characters
43211         '"', '$', '`', '\' in macro arguments that become part of commands that
43212         are evaluated.
43213
43214 2009-01-01  Bruno Haible  <bruno@clisp.org>
43215
43216         * gnulib-tool (func_reset_sigpipe): Add more comments.
43217
43218 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43219
43220         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43221         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43222         already know the answer.
43223
43224 2009-01-01  Jim Meyering  <meyering@redhat.com>
43225
43226         * lib/version-etc.c (version_etc_va): Update copyright year.
43227
43228 2008-12-30  Bruno Haible  <bruno@clisp.org>
43229
43230         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43231         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43232         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43233
43234 2008-12-29  Eric Blake  <ebb9@byu.net>
43235
43236         multiarch: avoid autoconf AC_REQUIRE bug
43237         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43238         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43239         2.63 and older.
43240         Reported by Bruno Haible, and analyzed in
43241         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43242
43243 2008-12-29  Bruno Haible  <bruno@clisp.org>
43244
43245         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43246         files in subdirectories correctly.
43247         Reported by Ralf Wildenhues.
43248
43249 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43250
43251         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43252         rather than 'join FILE -', for Solaris join.
43253
43254 2008-12-29  Bruno Haible  <bruno@clisp.org>
43255
43256         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43257         quoting.
43258         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43259         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43260         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43261         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43262         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43263         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43264         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43265         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43266         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43267         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43268         * m4/nls.m4 (AM_NLS): Likewise.
43269         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43270         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43271         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43272         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43273         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43274         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43275         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43276         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43277         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43278         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43279         * m4/xsize.m4 (gl_XSIZE): Likewise.
43280         Suggested by Jim Meyering.
43281
43282 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43283
43284         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43285         * lib/parse-duration.c: use a switch instead of cascading if's.
43286
43287 2008-12-29  Eric Blake  <ebb9@byu.net>
43288
43289         wchar.h: supply WEOF on Irix 5.3
43290         * lib/wchar.in.h (wint_t): Also supply WEOF.
43291         * lib/wctype.in.h (wint_t): Likewise.
43292         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43293         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43294         Reported by Tom G. Christensen.
43295
43296 2008-12-26  Bruno Haible  <bruno@clisp.org>
43297
43298         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43299         i486, i586, i686.
43300
43301 2008-12-26  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43304
43305 2008-12-26  Bruno Haible  <bruno@clisp.org>
43306
43307         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43308         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43309         not __STDC_CONSTANT_MACROS.
43310         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43311
43312 2008-12-25  Bruno Haible  <bruno@clisp.org>
43313
43314         Add support for universal builds to vasnprintf.
43315         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43316         universal builds, guess no.
43317         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43318         * modules/vasprintf-posix (Depends-on): Likewise.
43319         * modules/fprintf-posix (Depends-on): Likewise.
43320         * modules/vfprintf-posix (Depends-on): Likewise.
43321         * modules/snprintf-posix (Depends-on): Likewise.
43322         * modules/vsnprintf-posix (Depends-on): Likewise.
43323         * modules/sprintf-posix (Depends-on): Likewise.
43324         * modules/vsprintf-posix (Depends-on): Likewise.
43325         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43326         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43327         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43328         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43329         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43330         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43331         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43332
43333         Add support for universal builds to <inttypes.h>.
43334         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43335         _SCNu64_PREFIX): In Apple
43336         universal builds, define directly, using _LP64.
43337         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43338         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43339         * modules/inttypes (Depends-on): Add multiarch.
43340         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43341
43342         Add support for universal builds to <stdint.h>.
43343         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43344         universal builds, define directly, using _LP64.
43345         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43346         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43347         and size_t.
43348         * modules/stdint (Depends-on): Add multiarch.
43349         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43350
43351         New module 'multiarch'.
43352         * modules/multiarch: New file.
43353         * m4/multiarch.m4: New file.
43354
43355 2008-12-25  Bruno Haible  <bruno@clisp.org>
43356
43357         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43358
43359 2008-12-25  Bruno Haible  <bruno@clisp.org>
43360
43361         * modules/btowc (License): Relicense under LGPLv2+.
43362         * modules/mbsinit (License): Likewise.
43363         * modules/mbrtowc (License): Likewise.
43364         * modules/wcrtomb (License): Likewise.
43365         * modules/streq (License): Likewise.
43366         Reported by David Lutterkort <lutter@redhat.com>.
43367
43368 2008-12-23  Bruno Haible  <bruno@clisp.org>
43369
43370         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43371
43372 2008-12-23  Bruno Haible  <bruno@clisp.org>
43373
43374         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43375         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43376         GETADDRINFO_LIB, not in LIBS.
43377         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43378         * modules/canon-host (Link): Likewise.
43379         * NEWS: Mention the change.
43380         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43381         GETADDRINFO_LIB.
43382
43383 2008-12-22  Bruno Haible  <bruno@clisp.org>
43384
43385         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43386         * doc/posix-functions/iswalpha_l.texi: Likewise.
43387         * doc/posix-functions/iswblank_l.texi: Likewise.
43388         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43389         * doc/posix-functions/iswctype_l.texi: Likewise.
43390         * doc/posix-functions/iswdigit_l.texi: Likewise.
43391         * doc/posix-functions/iswgraph_l.texi: Likewise.
43392         * doc/posix-functions/iswlower_l.texi: Likewise.
43393         * doc/posix-functions/iswprint_l.texi: Likewise.
43394         * doc/posix-functions/iswpunct_l.texi: Likewise.
43395         * doc/posix-functions/iswspace_l.texi: Likewise.
43396         * doc/posix-functions/iswupper_l.texi: Likewise.
43397         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43398         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43399         * doc/posix-functions/open_wmemstream.texi: Likewise.
43400         * doc/posix-functions/swscanf.texi: Likewise.
43401         * doc/posix-functions/towctrans_l.texi: Likewise.
43402         * doc/posix-functions/towlower.texi: Likewise.
43403         * doc/posix-functions/towlower_l.texi: Likewise.
43404         * doc/posix-functions/towupper.texi: Likewise.
43405         * doc/posix-functions/towupper_l.texi: Likewise.
43406         * doc/posix-functions/vfwprintf.texi: Likewise.
43407         * doc/posix-functions/vfwscanf.texi: Likewise.
43408         * doc/posix-functions/vswscanf.texi: Likewise.
43409         * doc/posix-functions/vwprintf.texi: Likewise.
43410         * doc/posix-functions/vwscanf.texi: Likewise.
43411         * doc/posix-functions/wcpcpy.texi: Likewise.
43412         * doc/posix-functions/wcpncpy.texi: Likewise.
43413         * doc/posix-functions/wcscasecmp.texi: Likewise.
43414         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43415         * doc/posix-functions/wcscoll_l.texi: Likewise.
43416         * doc/posix-functions/wcsdup.texi: Likewise.
43417         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43418         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43419         * doc/posix-functions/wcsnlen.texi: Likewise.
43420         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43421         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43422         * doc/posix-functions/wctrans_l.texi: Likewise.
43423         * doc/posix-functions/wctype_l.texi: Likewise.
43424         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43425         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43426         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43427         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43428         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43429         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43430         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43431         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43432         * doc/glibc-functions/wcschrnul.texi: Likewise.
43433         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43434         * doc/glibc-functions/wcstod_l.texi: Likewise.
43435         * doc/glibc-functions/wcstof_l.texi: Likewise.
43436         * doc/glibc-functions/wcstol_l.texi: Likewise.
43437         * doc/glibc-functions/wcstold_l.texi: Likewise.
43438         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43439         * doc/glibc-functions/wcstoq.texi: Likewise.
43440         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43441         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43442         * doc/glibc-functions/wcstouq.texi: Likewise.
43443         * doc/glibc-functions/wmempcpy.texi: Likewise.
43444
43445 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43446             Eric Blake  <ebb9@byu.net>
43447             Paolo Bonzini  <bonzini@gnu.org>
43448             Bruno Haible  <bruno@clisp.org>
43449
43450         Make c-stack work on Haiku.
43451         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43452         (c_stack_action): Use SA_ONSTACK flag.
43453
43454 2008-12-22  Bruno Haible  <bruno@clisp.org>
43455
43456         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43457
43458 2008-12-22  Bruno Haible  <bruno@clisp.org>
43459
43460         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43461         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43462         being overridden.
43463         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43464         New macros.
43465         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43466         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43467         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43468         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43469
43470 2008-12-22  Bruno Haible  <bruno@clisp.org>
43471
43472         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43473         from test code.
43474
43475 2008-12-22  Eric Blake  <ebb9@byu.net>
43476
43477         Avoid gcc warnings on cygwin.
43478         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43479         Avoid unused variable.
43480         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43481         Likewise.
43482
43483 2008-12-22  Bruno Haible  <bruno@clisp.org>
43484
43485         Remove HAVE_MBRTOWC conditionals.
43486         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43487         (mbscasecmp): Assume mbrtowc function.
43488         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43489         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43490         * lib/mbschr.c: Include mbuiter.h unconditionally.
43491         (mbschr): Assume mbrtowc function.
43492         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43493         (mbscspn): Assume mbrtowc function.
43494         * lib/mbslen.c: Include mbuiter.h unconditionally.
43495         (mbslen): Assume mbrtowc function.
43496         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43497         (mbsncasecmp): Assume mbrtowc function.
43498         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43499         (mbsnlen): Assume mbrtowc function.
43500         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43501         (mbspbrk): Assume mbrtowc function.
43502         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43503         (mbspcasecmp): Assume mbrtowc function.
43504         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43505         (mbsrchr): Assume mbrtowc function.
43506         * lib/mbssep.c: Include mbuiter.h unconditionally.
43507         (mbssep): Assume mbrtowc function.
43508         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43509         (mbsspn): Assume mbrtowc function.
43510         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43511         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43512         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43513         (mbstok_r): Assume mbrtowc function.
43514         * lib/propername.c: Include mbuiter.h unconditionally.
43515         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43516         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43517         (trim2): Assume mbrtowc function.
43518         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43519         (mbsnwidth): Assume mbrtowc function.
43520         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43521         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43522         fallback definitions.
43523         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43524
43525 2008-12-22  Bruno Haible  <bruno@clisp.org>
43526
43527         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43528
43529 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43530
43531         * modules/regex: Request emulations for the mb*/wc* functions we need.
43532         * m4/regex.m4: Don't look for those functions here.
43533         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43534
43535 2008-12-22  Bruno Haible  <bruno@clisp.org>
43536
43537         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43538
43539 2008-12-21  Bruno Haible  <bruno@clisp.org>
43540
43541         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43542         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43543         (Include): Remove conditionalization.
43544         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43545         (Include): Remove conditionalization.
43546         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43547         (Include): Remove conditionalization.
43548         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43549         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43550         * NEWS: Mention the change.
43551         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43552         via Sergey Poznyakoff <gray@gnu.org.ua>.
43553
43554 2008-12-21  Bruno Haible  <bruno@clisp.org>
43555
43556         * MODULES.html.sh (Extended multibyte and wide character utilities
43557         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43558         wcrtomb, wcsrtombs.
43559         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43560         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43561         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43562         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43563
43564 2008-12-21  Bruno Haible  <bruno@clisp.org>
43565
43566         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43567
43568 2008-12-21  Bruno Haible  <bruno@clisp.org>
43569
43570         * modules/wcsnrtombs-tests: New file.
43571         * tests/test-wcsnrtombs1.sh: New file.
43572         * tests/test-wcsnrtombs2.sh: New file.
43573         * tests/test-wcsnrtombs3.sh: New file.
43574         * tests/test-wcsnrtombs4.sh: New file.
43575         * tests/test-wcsnrtombs.c: New file.
43576
43577         New module 'wcsnrtombs'.
43578         * lib/wchar.in.h (wcsnrtombs): New declaration.
43579         * lib/wcsnrtombs.c: New file.
43580         * lib/wcsrtombs-state.c: New file.
43581         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43582         (internal_state): Remove variable.
43583         * m4/wcsnrtombs.m4: New file.
43584         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43585         compilation units.
43586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43587         HAVE_WCSNRTOMBS.
43588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43589         HAVE_WCSNRTOMBS.
43590         * modules/wcsnrtombs: New file.
43591         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43592         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43593
43594 2008-12-21  Bruno Haible  <bruno@clisp.org>
43595
43596         * modules/wcsrtombs-tests: New file.
43597         * tests/test-wcsrtombs1.sh: New file.
43598         * tests/test-wcsrtombs2.sh: New file.
43599         * tests/test-wcsrtombs3.sh: New file.
43600         * tests/test-wcsrtombs4.sh: New file.
43601         * tests/test-wcsrtombs.c: New file.
43602
43603         New module 'wcsrtombs'.
43604         * lib/wchar.in.h (wcsrtombs): New declaration.
43605         * lib/wcsrtombs.c: New file.
43606         * m4/wcsrtombs.m4: New file.
43607         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43608         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43610         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43611         * modules/wcsrtombs: New file.
43612         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43613         bugs.
43614
43615 2008-12-21  Bruno Haible  <bruno@clisp.org>
43616
43617         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43618         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43619         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43620         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43621         if not correct.
43622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43623         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43624         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43625         m4/locale-zh.m4, m4/codeset.m4.
43626         * doc/posix-functions/wcrtomb.texi: Document the bug.
43627
43628 2008-12-21  Bruno Haible  <bruno@clisp.org>
43629
43630         Work around a btowc() bug on IRIX 6.5.
43631         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43632         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43633         REPLACE_WTOBC if not.
43634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43635         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43636         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43637
43638 2008-12-21  Bruno Haible  <bruno@clisp.org>
43639
43640         * modules/wcrtomb-tests: New file.
43641         * tests/test-wcrtomb.sh: New file.
43642         * tests/test-wcrtomb.c: New file.
43643
43644         New module 'wcrtomb'.
43645         * lib/wchar.in.h (wcrtomb): New declaration.
43646         * lib/wcrtomb.c: New file.
43647         * m4/wcrtomb.m4: New file.
43648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43649         HAVE_WCRTOMB.
43650         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43651         HAVE_WCRTOMB.
43652         * modules/wcrtomb: New file.
43653         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43654
43655 2008-12-21  Bruno Haible  <bruno@clisp.org>
43656
43657         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43658         * modules/mbsrtowcs (Files): Likewise.
43659         * modules/wctob (Files): Likewise.
43660         * modules/c-strcase-tests (Files): Likewise.
43661         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43662         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43663         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43664         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43665         * modules/vasnprintf-posix-tests (Files): Likewise.
43666
43667 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43668
43669         gitlog-to-changelog: pass all command-line arguments to git-log
43670         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43671         it is sometimes convenient to filter the commits in various ways.
43672         gitlog-to-changelog only allows --since to specify a start date,
43673         but git-log itself supports many other filtering mechanisms.
43674         At the moment, I want to filter by branch name.  Rather than
43675         adding a --branch option to gitlog-to-changelog, it seems more
43676         flexible to simply pass all options directly to git-log and let
43677         git do the work.  Notice that this effectively makes --since a
43678         redundant option for gitlog-to-changelog, but removing it would
43679         require current usage to change since calls would then require
43680         an additional '--'.
43681
43682 2008-12-21  Bruno Haible  <bruno@clisp.org>
43683
43684         * modules/mbsnrtowcs-tests: New file.
43685         * tests/test-mbsnrtowcs1.sh: New file.
43686         * tests/test-mbsnrtowcs2.sh: New file.
43687         * tests/test-mbsnrtowcs3.sh: New file.
43688         * tests/test-mbsnrtowcs4.sh: New file.
43689         * tests/test-mbsnrtowcs.c: New file.
43690
43691         New module 'mbsnrtowcs'.
43692         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43693         * lib/mbsnrtowcs.c: New file.
43694         * lib/mbsrtowcs-state.c: New file.
43695         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43696         (internal_state): Remove variable.
43697         * m4/mbsnrtowcs.m4: New file.
43698         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43699         compilation units.
43700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43701         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43702         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43703         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43704         * modules/mbsnrtowcs: New file.
43705         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43706         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43707         portability problem.
43708
43709 2008-12-21  Bruno Haible  <bruno@clisp.org>
43710
43711         Work around mbsrtowcs bug.
43712         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43713         (gl_FUNC_MBSRTOWCS): Invoke it.
43714         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43715         m4/locale-zh.m4.
43716         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43717
43718 2008-12-21  Bruno Haible  <bruno@clisp.org>
43719
43720         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43721
43722 2008-12-21  Bruno Haible  <bruno@clisp.org>
43723
43724         Update doc for AIX.
43725         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43726         16-bit wchar_t type.
43727         * doc/posix-functions/btowc.texi: Likewise.
43728         * doc/posix-functions/fgetwc.texi: Likewise.
43729         * doc/posix-functions/fgetws.texi: Likewise.
43730         * doc/posix-functions/fputwc.texi: Likewise.
43731         * doc/posix-functions/fputws.texi: Likewise.
43732         * doc/posix-functions/fwide.texi: Likewise.
43733         * doc/posix-functions/fwprintf.texi: Likewise.
43734         * doc/posix-functions/fwscanf.texi: Likewise.
43735         * doc/posix-functions/getwchar.texi: Likewise.
43736         * doc/posix-functions/getwc.texi: Likewise.
43737         * doc/posix-functions/iswalnum.texi: Likewise.
43738         * doc/posix-functions/iswalpha.texi: Likewise.
43739         * doc/posix-functions/iswblank.texi: Likewise.
43740         * doc/posix-functions/iswcntrl.texi: Likewise.
43741         * doc/posix-functions/iswctype.texi: Likewise.
43742         * doc/posix-functions/iswdigit.texi: Likewise.
43743         * doc/posix-functions/iswgraph.texi: Likewise.
43744         * doc/posix-functions/iswlower.texi: Likewise.
43745         * doc/posix-functions/iswprint.texi: Likewise.
43746         * doc/posix-functions/iswpunct.texi: Likewise.
43747         * doc/posix-functions/iswspace.texi: Likewise.
43748         * doc/posix-functions/iswupper.texi: Likewise.
43749         * doc/posix-functions/iswxdigit.texi: Likewise.
43750         * doc/posix-functions/mbrtowc.texi: Likewise.
43751         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43752         * doc/posix-functions/mbstowcs.texi: Likewise.
43753         * doc/posix-functions/mbtowc.texi: Likewise.
43754         * doc/posix-functions/putwchar.texi: Likewise.
43755         * doc/posix-functions/putwc.texi: Likewise.
43756         * doc/posix-functions/swprintf.texi: Likewise.
43757         * doc/posix-functions/tolower.texi: Likewise.
43758         * doc/posix-functions/toupper.texi: Likewise.
43759         * doc/posix-functions/towctrans.texi: Likewise.
43760         * doc/posix-functions/ungetwc.texi: Likewise.
43761         * doc/posix-functions/vswprintf.texi: Likewise.
43762         * doc/posix-functions/wcrtomb.texi: Likewise.
43763         * doc/posix-functions/wcscat.texi: Likewise.
43764         * doc/posix-functions/wcschr.texi: Likewise.
43765         * doc/posix-functions/wcscmp.texi: Likewise.
43766         * doc/posix-functions/wcscoll.texi: Likewise.
43767         * doc/posix-functions/wcscpy.texi: Likewise.
43768         * doc/posix-functions/wcscspn.texi: Likewise.
43769         * doc/posix-functions/wcsftime.texi: Likewise.
43770         * doc/posix-functions/wcslen.texi: Likewise.
43771         * doc/posix-functions/wcsncat.texi: Likewise.
43772         * doc/posix-functions/wcsncmp.texi: Likewise.
43773         * doc/posix-functions/wcsncpy.texi: Likewise.
43774         * doc/posix-functions/wcspbrk.texi: Likewise.
43775         * doc/posix-functions/wcsrchr.texi: Likewise.
43776         * doc/posix-functions/wcsrtombs.texi: Likewise.
43777         * doc/posix-functions/wcsspn.texi: Likewise.
43778         * doc/posix-functions/wcsstr.texi: Likewise.
43779         * doc/posix-functions/wcstod.texi: Likewise.
43780         * doc/posix-functions/wcstof.texi: Likewise.
43781         * doc/posix-functions/wcstoimax.texi: Likewise.
43782         * doc/posix-functions/wcstok.texi: Likewise.
43783         * doc/posix-functions/wcstold.texi: Likewise.
43784         * doc/posix-functions/wcstoll.texi: Likewise.
43785         * doc/posix-functions/wcstol.texi: Likewise.
43786         * doc/posix-functions/wcstombs.texi: Likewise.
43787         * doc/posix-functions/wcstoull.texi: Likewise.
43788         * doc/posix-functions/wcstoul.texi: Likewise.
43789         * doc/posix-functions/wcstoumax.texi: Likewise.
43790         * doc/posix-functions/wcswidth.texi: Likewise.
43791         * doc/posix-functions/wcsxfrm.texi: Likewise.
43792         * doc/posix-functions/wctob.texi: Likewise.
43793         * doc/posix-functions/wctomb.texi: Likewise.
43794         * doc/posix-functions/wctrans.texi: Likewise.
43795         * doc/posix-functions/wctype.texi: Likewise.
43796         * doc/posix-functions/wcwidth.texi: Likewise.
43797         * doc/posix-functions/wmemchr.texi: Likewise.
43798         * doc/posix-functions/wmemcmp.texi: Likewise.
43799         * doc/posix-functions/wmemcpy.texi: Likewise.
43800         * doc/posix-functions/wmemmove.texi: Likewise.
43801         * doc/posix-functions/wmemset.texi: Likewise.
43802         * doc/posix-functions/wprintf.texi: Likewise.
43803         * doc/posix-functions/wscanf.texi: Likewise.
43804
43805 2008-12-21  Bruno Haible  <bruno@clisp.org>
43806
43807         Update doc for HP-UX 11.11.
43808         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43809         in HP-UX version 11.00, not in all versions of HP-UX 11.
43810         * doc/posix-functions/fwide.texi: Likewise.
43811         * doc/posix-functions/fwprintf.texi: Likewise.
43812         * doc/posix-functions/fwscanf.texi: Likewise.
43813         * doc/posix-functions/inet_ntop.texi: Likewise.
43814         * doc/posix-functions/inet_pton.texi: Likewise.
43815         * doc/posix-functions/mbrlen.texi: Likewise.
43816         * doc/posix-functions/mbrtowc.texi: Likewise.
43817         * doc/posix-functions/mbsinit.texi: Likewise.
43818         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43819         * doc/posix-functions/swprintf.texi: Likewise.
43820         * doc/posix-functions/swscanf.texi: Likewise.
43821         * doc/posix-functions/towctrans.texi: Likewise.
43822         * doc/posix-functions/vfwprintf.texi: Likewise.
43823         * doc/posix-functions/vswprintf.texi: Likewise.
43824         * doc/posix-functions/vwprintf.texi: Likewise.
43825         * doc/posix-functions/wcrtomb.texi: Likewise.
43826         * doc/posix-functions/wcsrtombs.texi: Likewise.
43827         * doc/posix-functions/wcsstr.texi: Likewise.
43828         * doc/posix-functions/wctob.texi: Likewise.
43829         * doc/posix-functions/wctrans.texi: Likewise.
43830         * doc/posix-functions/wmemchr.texi: Likewise.
43831         * doc/posix-functions/wmemcmp.texi: Likewise.
43832         * doc/posix-functions/wmemcpy.texi: Likewise.
43833         * doc/posix-functions/wmemmove.texi: Likewise.
43834         * doc/posix-functions/wmemset.texi: Likewise.
43835         * doc/posix-functions/wprintf.texi: Likewise.
43836         * doc/posix-functions/wscanf.texi: Likewise.
43837
43838 2008-12-21  Bruno Haible  <bruno@clisp.org>
43839
43840         Work around a portability problem.
43841         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43842         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43843
43844 2008-12-20  Bruno Haible  <bruno@clisp.org>
43845
43846         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43847         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43848         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43850         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43851
43852         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43853         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43854         set.
43855         (GNULIB_defined_mbstate_t): New macro.
43856         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43857         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43858         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43859         reuses the system's mbrtowc function but works around the bugs.
43860         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43861         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43862         macros.
43863         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43864         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43865         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43866         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43867         REPLACE_MBSINIT if mbsinit needs to be overridden.
43868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43869         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43870         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43871         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43872         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43873         m4/locale-zh.m4.
43874         (Depends): Add mbsinit.
43875         * modules/mbsinit (Depends): Add mbrtowc.
43876         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43877
43878 2008-12-20  Bruno Haible  <bruno@clisp.org>
43879
43880         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43881         so that there are no conversion errors on AIX.
43882         * tests/test-mbsrtowcs.c (main): LIkewise.
43883
43884 2008-12-20  Bruno Haible  <bruno@clisp.org>
43885
43886         Work around wctob bug on Solaris <= 9.
43887         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43888         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43890         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43891         * modules/wctob (Files): Add m4/locale-fr.m4.
43892         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43893
43894 2008-12-20  Bruno Haible  <bruno@clisp.org>
43895
43896         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43897         /dev/null.
43898         * tests/test-select-in.sh: Likewise.
43899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43900
43901 2008-12-20  Bruno Haible  <bruno@clisp.org>
43902
43903         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43904         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43905         Cygwin 1.5.x.
43906
43907 2008-12-20  Bruno Haible  <bruno@clisp.org>
43908
43909         Ensure mbstate_t is defined on HP-UX 11.11.
43910         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43911         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43912         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43913         AC_USE_SYSTEM_EXTENSIONS.
43914         * modules/fnmatch (Depends-on): Add extensions.
43915         * modules/mbrlen (Depends-on): Likewise.
43916         * modules/mbrtowc (Depends-on): Likewise.
43917         * modules/mbsinit (Depends-on): Likewise.
43918         * modules/mbsrtowcs (Depends-on): Likewise.
43919         * modules/mbswidth (Depends-on): Likewise.
43920         * modules/quotearg (Depends-on): Likewise.
43921         * modules/strftime (Depends-on): Likewise.
43922
43923 2008-12-20  Bruno Haible  <bruno@clisp.org>
43924
43925         Ensure wctob is declared on IRIX 6.5.
43926         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43927         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43928         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43930         of HAVE_WCTOB.
43931         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43932         HAVE_WCTOB.
43933         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43934
43935 2008-12-19  Bruno Haible  <bruno@clisp.org>
43936
43937         * modules/mbsrtowcs-tests: New file.
43938         * tests/test-mbsrtowcs1.sh: New file.
43939         * tests/test-mbsrtowcs2.sh: New file.
43940         * tests/test-mbsrtowcs3.sh: New file.
43941         * tests/test-mbsrtowcs4.sh: New file.
43942         * tests/test-mbsrtowcs.c: New file.
43943
43944         New module 'mbsrtowcs'.
43945         * lib/wchar.in.h (mbsrtowcs): New declaration.
43946         * lib/mbsrtowcs.c: New file.
43947         * m4/mbsrtowcs.m4: New file.
43948         * modules/mbsrtowcs: New file.
43949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43950         HAVE_MBSRTOWCS.
43951         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43952         HAVE_MBSRTOWCS.
43953         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43954
43955 2008-12-19  Bruno Haible  <bruno@clisp.org>
43956
43957         New module 'mbrlen'.
43958         * lib/wchar.in.h (mbrlen): New declaration.
43959         * lib/mbrlen.c: New file.
43960         * m4/mbrlen.m4: New file.
43961         * modules/mbrlen: New file.
43962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43963         HAVE_MBRLEN.
43964         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43965         HAVE_MBRLEN.
43966         * doc/posix-functions/mbrlen.texi: Document the new module.
43967
43968 2008-12-19  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43971         * modules/mbrtowc (Depends-on): Add verify.
43972         Suggested by Paul Eggert.
43973
43974 2008-12-18  Bruno Haible  <bruno@clisp.org>
43975
43976         * modules/mbsinit-tests: New file.
43977         * tests/test-mbsinit.sh: New file.
43978         * tests/test-mbsinit.c: New file.
43979
43980 2008-12-18  Bruno Haible  <bruno@clisp.org>
43981
43982         * modules/mbrtowc-tests: New file.
43983         * tests/test-mbrtowc1.sh: New file.
43984         * tests/test-mbrtowc2.sh: New file.
43985         * tests/test-mbrtowc3.sh: New file.
43986         * tests/test-mbrtowc4.sh: New file.
43987         * tests/test-mbrtowc.c: New file.
43988
43989         New module 'mbrtowc'.
43990         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43991         mbsinit and mbrtowc.
43992         (mbrtowc): New declaration.
43993         * lib/mbrtowc.c: New file.
43994         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43995         * modules/mbrtowc: New file.
43996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43997         HAVE_MBRTOWC.
43998         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43999         HAVE_MBRTOWC.
44000         * doc/posix-functions/mbrtowc.texi: Document the new module.
44001
44002 2008-12-18  Bruno Haible  <bruno@clisp.org>
44003
44004         New module 'wctob'.
44005         * lib/wchar.in.h (wctob): New declaration.
44006         * lib/wctob.c: New file.
44007         * m4/wctob.m4: New file.
44008         * modules/wctob: New file.
44009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44010         HAVE_WCTOB.
44011         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44012         * doc/posix-functions/wctob.texi: Document the new module.
44013
44014 2008-12-18  Bruno Haible  <bruno@clisp.org>
44015
44016         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44017         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44018
44019 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44020
44021         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44022         G. Christensen" <tgc@jupiterrise.com>.
44023
44024         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44025         G. Christensen" <tgc@jupiterrise.com>.
44026
44027         * lib/flock.c: Need to include string.h.  Reported by "Tom
44028         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44029         <ebb9@byu.net>.
44030
44031 2008-12-18  Bruno Haible  <bruno@clisp.org>
44032
44033         * m4/locale-ja.m4: New file, from GNU gettext.
44034
44035 2008-12-17  Bruno Haible  <bruno@clisp.org>
44036
44037         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44038         Suggested by Eric Blake.
44039
44040 2008-12-17  Bruno Haible  <bruno@clisp.org>
44041
44042         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44043
44044 2008-12-17  Bruno Haible  <bruno@clisp.org>
44045
44046         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44047         * modules/mbsinit (Depends-on): Add verify.
44048         Suggested by Paul Eggert.
44049
44050 2008-12-17  Bruno Haible  <bruno@clisp.org>
44051
44052         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44053         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44054         gl_FUNC_MBRTOWC.
44055         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44056         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44057         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44058         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44059         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44060         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44061         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44062         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44063         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44064         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44065         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44066         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44067         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44068         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44069         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44070         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44071         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44072         * modules/trim (configure.ac): Likewise.
44073
44074 2008-12-17  Bruno Haible  <bruno@clisp.org>
44075
44076         * modules/btowc-tests: New file.
44077         * tests/test-btowc1.sh: New file.
44078         * tests/test-btowc2.sh: New file.
44079         * tests/test-btowc.c: New file.
44080
44081         New module 'btowc'.
44082         * lib/wchar.in.h (btowc): New declaration.
44083         * lib/btowc.c: New file.
44084         * m4/btowc.m4: New file.
44085         * modules/btowc: New file.
44086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44087         HAVE_BTOWC.
44088         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44089         * doc/posix-functions/btowc.texi: Document the new module.
44090
44091 2008-12-17  Bruno Haible  <bruno@clisp.org>
44092
44093         New module 'mbsinit'.
44094         * lib/wchar.in.h (mbsinit): New declaration.
44095         * lib/mbsinit.c: New file.
44096         * m4/mbsinit.m4: New file.
44097         * modules/mbsinit: New file.
44098         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44099         HAVE_MBSINIT.
44100         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44101         HAVE_MBSINIT.
44102         * doc/posix-functions/mbsinit.texi: Document the new module.
44103
44104 2008-12-16  Bruno Haible  <bruno@clisp.org>
44105
44106         * lib/unistd.in.h: Add comment.
44107         * tests/test-environ.c: Don't include <stdlib.h>.
44108
44109 2008-12-16  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/parse-duration.h (parse_duration): Document return value
44112         convention.
44113         * lib/parse-duration.c: Include specification header first. Add
44114         comments.
44115         (_): Remove macro.
44116         (parse_year_month_day, parse_hour_minute_second): Move side effects
44117         outside of strchr call.
44118         (parse_non_iso8601): Move side effects outside of isspace call.
44119         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44120         call.
44121
44122 2008-12-16  Bruno Haible  <bruno@clisp.org>
44123
44124         * tests/test-parse-duration.sh: Produce no output when the test
44125         succeeds.
44126
44127 2008-12-16  Bruno Haible  <bruno@clisp.org>
44128
44129         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44130         expressions.
44131
44132 2008-12-15  Bruno Haible  <bruno@clisp.org>
44133
44134         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44135         * doc/glibc-functions/flistxattr.texi: Likewise.
44136         * doc/glibc-functions/fopencookie.texi: Likewise.
44137         * doc/glibc-functions/fremovexattr.texi: Likewise.
44138         * doc/glibc-functions/fsetxattr.texi: Likewise.
44139         * doc/glibc-functions/getxattr.texi: Likewise.
44140         * doc/glibc-functions/lgetxattr.texi: Likewise.
44141         * doc/glibc-functions/listxattr.texi: Likewise.
44142         * doc/glibc-functions/llistxattr.texi: Likewise.
44143         * doc/glibc-functions/lremovexattr.texi: Likewise.
44144         * doc/glibc-functions/lsetxattr.texi: Likewise.
44145         * doc/glibc-functions/removexattr.texi: Likewise.
44146         * doc/glibc-functions/setxattr.texi: Likewise.
44147         * doc/posix-functions/open_memstream.texi: Likewise.
44148
44149 2008-12-15  Eric Blake  <ebb9@byu.net>
44150
44151         Update doc for cygwin 1.7.
44152         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44153         functions.
44154         * doc/posix-functions/fchmodat.texi: Likewise.
44155         * doc/posix-functions/fchownat.texi: Likewise.
44156         * doc/posix-functions/fdopendir.texi: Likewise.
44157         * doc/posix-functions/fmemopen.texi: Likewise.
44158         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44159         * doc/posix-functions/fstatat.texi: Likewise.
44160         * doc/posix-functions/futimens.texi: Likewise.
44161         * doc/posix-functions/gai_strerror.texi: Likewise.
44162         * doc/posix-functions/getaddrinfo.texi: Likewise.
44163         * doc/posix-functions/getnameinfo.texi: Likewise.
44164         * doc/posix-functions/if_freenameindex.texi: Likewise.
44165         * doc/posix-functions/if_indextoname.texi: Likewise.
44166         * doc/posix-functions/if_nameindex.texi: Likewise.
44167         * doc/posix-functions/if_nametoindex.texi: Likewise.
44168         * doc/posix-functions/insque.texi: Likewise.
44169         * doc/posix-functions/linkat.texi: Likewise.
44170         * doc/posix-functions/llrint.texi: Likewise.
44171         * doc/posix-functions/llrintf.texi: Likewise.
44172         * doc/posix-functions/llrintl.texi: Likewise.
44173         * doc/posix-functions/lockf.texi: Likewise.
44174         * doc/posix-functions/lrintl.texi: Likewise.
44175         * doc/posix-functions/mkdirat.texi: Likewise.
44176         * doc/posix-functions/mkfifoat.texi: Likewise.
44177         * doc/posix-functions/mknodat.texi: Likewise.
44178         * doc/posix-functions/mq_close.texi: Likewise.
44179         * doc/posix-functions/mq_getattr.texi: Likewise.
44180         * doc/posix-functions/mq_notify.texi: Likewise.
44181         * doc/posix-functions/mq_open.texi: Likewise.
44182         * doc/posix-functions/mq_receive.texi: Likewise.
44183         * doc/posix-functions/mq_send.texi: Likewise.
44184         * doc/posix-functions/mq_setattr.texi: Likewise.
44185         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44186         * doc/posix-functions/mq_timedsend.texi: Likewise.
44187         * doc/posix-functions/mq_unlink.texi: Likewise.
44188         * doc/posix-functions/open_memstream.texi: Likewise.
44189         * doc/posix-functions/openat.texi: Likewise.
44190         * doc/posix-functions/posix_fadvise.texi: Likewise.
44191         * doc/posix-functions/posix_fallocate.texi: Likewise.
44192         * doc/posix-functions/posix_madvise.texi: Likewise.
44193         * doc/posix-functions/posix_memalign.texi: Likewise.
44194         * doc/posix-functions/posix_openpt.texi: Likewise.
44195         * doc/posix-functions/readlinkat.texi: Likewise.
44196         * doc/posix-functions/remque.texi: Likewise.
44197         * doc/posix-functions/renameat.texi: Likewise.
44198         * doc/posix-functions/rintl.texi: Likewise.
44199         * doc/posix-functions/sem_unlink.texi: Likewise.
44200         * doc/posix-functions/shm_open.texi: Likewise.
44201         * doc/posix-functions/shm_unlink.texi: Likewise.
44202         * doc/posix-functions/signgam.texi: Likewise.
44203         * doc/posix-functions/sigset.texi: Likewise.
44204         * doc/posix-functions/stpcpy.texi: Likewise.
44205         * doc/posix-functions/stpncpy.texi: Likewise.
44206         * doc/posix-functions/strerror.texi: Likewise.
44207         * doc/posix-functions/strtod.texi: Likewise.
44208         * doc/posix-functions/symlinkat.texi: Likewise.
44209         * doc/posix-functions/unlinkat.texi: Likewise.
44210         * doc/posix-functions/utimensat.texi: Likewise.
44211         * doc/glibc-functions/bindresvport.texi: Likewise.
44212         * doc/glibc-functions/dn_expand.texi: Likewise.
44213         * doc/glibc-functions/exp10.texi: Likewise.
44214         * doc/glibc-functions/exp10f.texi: Likewise.
44215         * doc/glibc-functions/fgetxattr.texi: Likewise.
44216         * doc/glibc-functions/flistxattr.texi: Likewise.
44217         * doc/glibc-functions/fopencookie.texi: Likewise.
44218         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44219         * doc/glibc-functions/fremovexattr.texi: Likewise.
44220         * doc/glibc-functions/fsetxattr.texi: Likewise.
44221         * doc/glibc-functions/getifaddrs.texi: Likewise.
44222         * doc/glibc-functions/getxattr.texi: Likewise.
44223         * doc/glibc-functions/lgetxattr.texi: Likewise.
44224         * doc/glibc-functions/listxattr.texi: Likewise.
44225         * doc/glibc-functions/llistxattr.texi: Likewise.
44226         * doc/glibc-functions/lremovexattr.texi: Likewise.
44227         * doc/glibc-functions/lsetxattr.texi: Likewise.
44228         * doc/glibc-functions/pow10.texi: Likewise.
44229         * doc/glibc-functions/pow10f.texi: Likewise.
44230         * doc/glibc-functions/rcmd_af.texi: Likewise.
44231         * doc/glibc-functions/removexattr.texi: Likewise.
44232         * doc/glibc-functions/res_init.texi: Likewise.
44233         * doc/glibc-functions/res_mkquery.texi: Likewise.
44234         * doc/glibc-functions/res_query.texi: Likewise.
44235         * doc/glibc-functions/res_querydomain.texi: Likewise.
44236         * doc/glibc-functions/res_send.texi: Likewise.
44237         * doc/glibc-functions/rresvport_af.texi: Likewise.
44238         * doc/glibc-functions/setxattr.texi: Likewise.
44239         * doc/glibc-functions/strcasestr.texi: Likewise.
44240
44241 2008-12-15  Bruno Haible  <bruno@clisp.org>
44242
44243         Fix compilation error on OSF/1 4.0.
44244         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44245         <sys/time.h>, simply delegate to the system header.
44246         Reported by Daniel Richard G. <oss@teragram.com>.
44247
44248 2008-12-15  Bruno Haible  <bruno@clisp.org>
44249
44250         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44251         * doc/posix-functions/fchmodat.texi: Likewise.
44252         * doc/posix-functions/fchownat.texi: Likewise.
44253         * doc/posix-functions/fdopendir.texi: Likewise.
44254         * doc/posix-functions/fstatat.texi: Likewise.
44255         * doc/posix-functions/mkdirat.texi: Likewise.
44256         * doc/posix-functions/unlinkat.texi: Likewise.
44257
44258 2008-12-14  Bruno Haible  <bruno@clisp.org>
44259
44260         Update doc for POSIX:2008.
44261         * doc/posix-functions/faccessat.texi: New file.
44262         * doc/posix-functions/fchmodat.texi: New file.
44263         * doc/posix-functions/fchownat.texi: New file.
44264         * doc/posix-functions/fdopendir.texi: New file.
44265         * doc/posix-functions/fstatat.texi: New file.
44266         * doc/posix-functions/futimens.texi: New file.
44267         * doc/posix-functions/linkat.texi: New file.
44268         * doc/posix-functions/mkdirat.texi: New file.
44269         * doc/posix-functions/mkfifoat.texi: New file.
44270         * doc/posix-functions/mknodat.texi: New file.
44271         * doc/posix-functions/open_wmemstream.texi: New file.
44272         * doc/posix-functions/openat.texi: New file.
44273         * doc/posix-functions/psiginfo.texi: New file.
44274         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44275         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44276         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44277         * doc/posix-functions/readlinkat.texi: New file.
44278         * doc/posix-functions/renameat.texi: New file.
44279         * doc/posix-functions/strerror_l.texi: New file.
44280         * doc/posix-functions/symlinkat.texi: New file.
44281         * doc/posix-functions/unlinkat.texi: New file.
44282         * doc/posix-functions/utimensat.texi: New file.
44283         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44284
44285 2008-12-14  Bruno Haible  <bruno@clisp.org>
44286
44287         Update doc for POSIX:2008.
44288         * doc/posix-functions/alphasort.texi: Renamed from
44289         doc/glibc-functions/alphasort.texi.
44290         * doc/posix-functions/dirfd.texi: Renamed from
44291         doc/glibc-functions/dirfd.texi.
44292         * doc/posix-functions/dprintf.texi: Renamed from
44293         doc/glibc-functions/dprintf.texi.
44294         * doc/posix-functions/duplocale.texi: Renamed from
44295         doc/glibc-functions/duplocale.texi.
44296         * doc/posix-functions/fexecve.texi: Renamed from
44297         doc/glibc-functions/fexecve.texi.
44298         * doc/posix-functions/fmemopen.texi: Renamed from
44299         doc/glibc-functions/fmemopen.texi.
44300         * doc/posix-functions/freelocale.texi: Renamed from
44301         doc/glibc-functions/freelocale.texi.
44302         * doc/posix-functions/getdate_err.texi: Renamed from
44303         doc/glibc-functions/getdate_err.texi.
44304         * doc/posix-functions/isalnum_l.texi: Renamed from
44305         doc/glibc-functions/isalnum_l.texi.
44306         * doc/posix-functions/isalpha_l.texi: Renamed from
44307         doc/glibc-functions/isalpha_l.texi.
44308         * doc/posix-functions/isblank_l.texi: Renamed from
44309         doc/glibc-functions/isblank_l.texi.
44310         * doc/posix-functions/iscntrl_l.texi: Renamed from
44311         doc/glibc-functions/iscntrl_l.texi.
44312         * doc/posix-functions/isdigit_l.texi: Renamed from
44313         doc/glibc-functions/isdigit_l.texi.
44314         * doc/posix-functions/isgraph_l.texi: Renamed from
44315         doc/glibc-functions/isgraph_l.texi.
44316         * doc/posix-functions/islower_l.texi: Renamed from
44317         doc/glibc-functions/islower_l.texi.
44318         * doc/posix-functions/isprint_l.texi: Renamed from
44319         doc/glibc-functions/isprint_l.texi.
44320         * doc/posix-functions/ispunct_l.texi: Renamed from
44321         doc/glibc-functions/ispunct_l.texi.
44322         * doc/posix-functions/isspace_l.texi: Renamed from
44323         doc/glibc-functions/isspace_l.texi.
44324         * doc/posix-functions/isupper_l.texi: Renamed from
44325         doc/glibc-functions/isupper_l.texi.
44326         * doc/posix-functions/iswalnum_l.texi: Renamed from
44327         doc/glibc-functions/iswalnum_l.texi.
44328         * doc/posix-functions/iswalpha_l.texi: Renamed from
44329         doc/glibc-functions/iswalpha_l.texi.
44330         * doc/posix-functions/iswblank_l.texi: Renamed from
44331         doc/glibc-functions/iswblank_l.texi.
44332         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44333         doc/glibc-functions/iswcntrl_l.texi.
44334         * doc/posix-functions/iswctype_l.texi: Renamed from
44335         doc/glibc-functions/iswctype_l.texi.
44336         * doc/posix-functions/iswdigit_l.texi: Renamed from
44337         doc/glibc-functions/iswdigit_l.texi.
44338         * doc/posix-functions/iswgraph_l.texi: Renamed from
44339         doc/glibc-functions/iswgraph_l.texi.
44340         * doc/posix-functions/iswlower_l.texi: Renamed from
44341         doc/glibc-functions/iswlower_l.texi.
44342         * doc/posix-functions/iswprint_l.texi: Renamed from
44343         doc/glibc-functions/iswprint_l.texi.
44344         * doc/posix-functions/iswpunct_l.texi: Renamed from
44345         doc/glibc-functions/iswpunct_l.texi.
44346         * doc/posix-functions/iswspace_l.texi: Renamed from
44347         doc/glibc-functions/iswspace_l.texi.
44348         * doc/posix-functions/iswupper_l.texi: Renamed from
44349         doc/glibc-functions/iswupper_l.texi.
44350         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44351         doc/glibc-functions/iswxdigit_l.texi.
44352         * doc/posix-functions/isxdigit_l.texi: Renamed from
44353         doc/glibc-functions/isxdigit_l.texi.
44354         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44355         doc/glibc-functions/mbsnrtowcs.texi.
44356         * doc/posix-functions/mkdtemp.texi: Renamed from
44357         doc/glibc-functions/mkdtemp.texi.
44358         * doc/posix-functions/newlocale.texi: Renamed from
44359         doc/glibc-functions/newlocale.texi.
44360         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44361         doc/glibc-functions/nl_langinfo_l.texi.
44362         * doc/posix-functions/open_memstream.texi: Renamed from
44363         doc/glibc-functions/open_memstream.texi.
44364         * doc/posix-functions/opterr.texi: Renamed from
44365         doc/glibc-functions/opterr.texi.
44366         * doc/posix-functions/optind.texi: Renamed from
44367         doc/glibc-functions/optind.texi.
44368         * doc/posix-functions/optopt.texi: Renamed from
44369         doc/glibc-functions/optopt.texi.
44370         * doc/posix-functions/psignal.texi: Renamed from
44371         doc/glibc-functions/psignal.texi.
44372         * doc/posix-functions/scandir.texi: Renamed from
44373         doc/glibc-functions/scandir.texi.
44374         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44375         doc/glibc-functions/sched_get_priority_min.texi.
44376         * doc/posix-functions/signgam.texi: Renamed from
44377         doc/glibc-functions/signgam.texi.
44378         * doc/posix-functions/stpcpy.texi: Renamed from
44379         doc/glibc-functions/stpcpy.texi.
44380         * doc/posix-functions/stpncpy.texi: Renamed from
44381         doc/glibc-functions/stpncpy.texi.
44382         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44383         doc/glibc-functions/strcasecmp_l.texi.
44384         * doc/posix-functions/strcoll_l.texi: Renamed from
44385         doc/glibc-functions/strcoll_l.texi.
44386         * doc/posix-functions/strfmon_l.texi: Renamed from
44387         doc/glibc-functions/strfmon_l.texi.
44388         * doc/posix-functions/strftime_l.texi: Renamed from
44389         doc/glibc-functions/strftime_l.texi.
44390         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44391         doc/glibc-functions/strncasecmp_l.texi.
44392         * doc/posix-functions/strndup.texi: Renamed from
44393         doc/glibc-functions/strndup.texi.
44394         * doc/posix-functions/strnlen.texi: Renamed from
44395         doc/glibc-functions/strnlen.texi.
44396         * doc/posix-functions/strsignal.texi: Renamed from
44397         doc/glibc-functions/strsignal.texi.
44398         * doc/posix-functions/strxfrm_l.texi: Renamed from
44399         doc/glibc-functions/strxfrm_l.texi.
44400         * doc/posix-functions/timer_gettime.texi: Renamed from
44401         doc/glibc-functions/timer_gettime.texi.
44402         * doc/posix-functions/tolower_l.texi: Renamed from
44403         doc/glibc-functions/tolower_l.texi.
44404         * doc/posix-functions/toupper_l.texi: Renamed from
44405         doc/glibc-functions/toupper_l.texi.
44406         * doc/posix-functions/towctrans_l.texi: Renamed from
44407         doc/glibc-functions/towctrans_l.texi.
44408         * doc/posix-functions/towlower_l.texi: Renamed from
44409         doc/glibc-functions/towlower_l.texi.
44410         * doc/posix-functions/towupper_l.texi: Renamed from
44411         doc/glibc-functions/towupper_l.texi.
44412         * doc/posix-functions/uselocale.texi: Renamed from
44413         doc/glibc-functions/uselocale.texi.
44414         * doc/posix-functions/vdprintf.texi: Renamed from
44415         doc/glibc-functions/vdprintf.texi.
44416         * doc/posix-functions/wcpcpy.texi:
44417         Renamed from doc/glibc-functions/wcpcpy.texi.
44418         * doc/posix-functions/wcpncpy.texi: Renamed from
44419         doc/glibc-functions/wcpncpy.texi.
44420         * doc/posix-functions/wcscasecmp.texi: Renamed from
44421         doc/glibc-functions/wcscasecmp.texi.
44422         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44423         doc/glibc-functions/wcscasecmp_l.texi.
44424         * doc/posix-functions/wcscoll_l.texi: Renamed from
44425         doc/glibc-functions/wcscoll_l.texi.
44426         * doc/posix-functions/wcsdup.texi: Renamed from
44427         doc/glibc-functions/wcsdup.texi.
44428         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44429         doc/glibc-functions/wcsncasecmp.texi.
44430         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44431         doc/glibc-functions/wcsncasecmp_l.texi.
44432         * doc/posix-functions/wcsnlen.texi: Renamed from
44433         doc/glibc-functions/wcsnlen.texi.
44434         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44435         doc/glibc-functions/wcsnrtombs.texi.
44436         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44437         doc/glibc-functions/wcsxfrm_l.texi.
44438         * doc/posix-functions/wctrans_l.texi: Renamed from
44439         doc/glibc-functions/wctrans_l.texi.
44440         * doc/posix-functions/wctype_l.texi: Renamed from
44441         doc/glibc-functions/wctype_l.texi.
44442         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44443         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44444         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44445         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44446         these subsections.
44447         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44448         Remove sections.
44449
44450 2008-12-14  Bruno Haible  <bruno@clisp.org>
44451
44452         Update doc for POSIX:2008.
44453         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44454
44455 2008-12-14  Bruno Haible  <bruno@clisp.org>
44456
44457         Update doc for POSIX:2008.
44458         * doc/pastposix-functions/bcmp.texi: Renamed from
44459         doc/posix-functions/bcmp.texi.
44460         * doc/pastposix-functions/bcopy.texi: Renamed from
44461         doc/posix-functions/bcopy.texi.
44462         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44463         doc/posix-functions/bsd_signal.texi.
44464         * doc/pastposix-functions/bzero.texi: Renamed from
44465         doc/posix-functions/bzero.texi.
44466         * doc/pastposix-functions/ecvt.texi: Renamed from
44467         doc/posix-functions/ecvt.texi.
44468         * doc/pastposix-functions/fcvt.texi: Renamed from
44469         doc/posix-functions/fcvt.texi.
44470         * doc/pastposix-functions/ftime.texi: Renamed from
44471         doc/posix-functions/ftime.texi.
44472         * doc/pastposix-functions/gcvt.texi: Renamed from
44473         doc/posix-functions/gcvt.texi.
44474         * doc/pastposix-functions/getcontext.texi: Renamed from
44475         doc/posix-functions/getcontext.texi.
44476         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44477         doc/posix-functions/gethostbyaddr.texi.
44478         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44479         doc/posix-functions/gethostbyname.texi.
44480         * doc/pastposix-functions/getwd.texi: Renamed from
44481         doc/posix-functions/getwd.texi.
44482         * doc/pastposix-functions/h_errno.texi: Renamed from
44483         doc/posix-functions/h_errno.texi.
44484         * doc/pastposix-functions/index.texi: Renamed from
44485         doc/posix-functions/index.texi.
44486         * doc/pastposix-functions/makecontext.texi: Renamed from
44487         doc/posix-functions/makecontext.texi.
44488         * doc/pastposix-functions/mktemp.texi: Renamed from
44489         doc/posix-functions/mktemp.texi.
44490         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44491         doc/posix-functions/pthread_attr_getstackaddr.texi.
44492         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44493         doc/posix-functions/pthread_attr_setstackaddr.texi.
44494         * doc/pastposix-functions/rindex.texi: Renamed from
44495         doc/posix-functions/rindex.texi.
44496         * doc/pastposix-functions/scalb.texi: Renamed from
44497         doc/posix-functions/scalb.texi.
44498         * doc/pastposix-functions/setcontext.texi: Renamed from
44499         doc/posix-functions/setcontext.texi.
44500         * doc/pastposix-functions/swapcontext.texi: Renamed from
44501         doc/posix-functions/swapcontext.texi.
44502         * doc/pastposix-functions/ualarm.texi: Renamed from
44503         doc/posix-functions/ualarm.texi.
44504         * doc/pastposix-functions/usleep.texi: Renamed from
44505         doc/posix-functions/usleep.texi.
44506         * doc/pastposix-functions/vfork.texi: Renamed from
44507         doc/posix-functions/vfork.texi.
44508         * doc/pastposix-functions/wcswcs.texi: Renamed from
44509         doc/posix-functions/wcswcs.texi.
44510         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44511         (Function Substitutes): Update.
44512
44513 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44514
44515         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44516         m4/strerror.m4.
44517
44518 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44519             Bruno Haible  <bruno@clisp.org>
44520
44521         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44522
44523 2008-12-13  Bruno Haible  <bruno@clisp.org>
44524
44525         * modules/strtoull (Depends-on): Remove unistd.
44526
44527 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44528
44529         * modules/strtoull (Depends-on): Add stdlib.
44530
44531 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44532
44533         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44534
44535 2008-12-10  Jim Meyering  <meyering@redhat.com>
44536
44537         gl_ASSERT: don't say assertions are disabled when they're not
44538         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44539         "checking whether to enable assertions... no", when they are in
44540         fact enabled.  This is solely a bug in the output of configure.
44541         In spite of saying "no", NDEBUG was not defined in that case.
44542         Also, as noted by Eric Blake, leave assertions enabled upon
44543         --enable-assert=INVALID.
44544
44545 2008-12-10  Bruno Haible  <bruno@clisp.org>
44546
44547         Change MODULES.html to refer to POSIX:2008 where possible.
44548         * MODULES.html.sh (POSIX2008_URL): New variable.
44549         (posix_headers): Remove sys/timeb, ucontext.
44550         (posix2001_headers): New variable.
44551         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44552         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44553         index, makecontext, mktemp, pthread_attr_getstackaddr,
44554         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44555         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44556         (posix2001_functions): New variable.
44557         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44558         otherwise.
44559
44560 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44561
44562         add missing include to parse-duration.c
44563         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44564         * modules/parse-duration (Depends-on): Add xalloc.
44565
44566         fix sed script reading maint.mk
44567         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44568         (syntax-check-rules): Use it.
44569
44570 2008-12-09  Bruno Haible  <bruno@clisp.org>
44571
44572         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44573         MacOS X 10.4/PowerPC.
44574         Reported by Simon Josefsson.
44575
44576 2008-12-08  Jim Meyering  <meyering@redhat.com>
44577
44578         work around mingw's lack of some S_IF definitions
44579         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44580         Reported by Simon Josefsson.
44581
44582 2008-12-08  Bruno Haible  <bruno@clisp.org>
44583
44584         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44585         applied to variables. Needed on MacOS X 10.4/PowerPC.
44586         Reported by Simon Josefsson.
44587
44588 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44589         and Eric Blake  <ebb9@byu.net>
44590
44591         assert: honor --enable-assert
44592         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44593         order to honor --enable-assert, rather than treating it as a
44594         synonym for --disable-assert.
44595
44596 2008-12-08  Jim Meyering  <meyering@redhat.com>
44597
44598         * lib/posixtm.c: Remove now-useless declaration of mktime.
44599
44600         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44601
44602 2008-12-07  Bruno Haible  <bruno@clisp.org>
44603
44604         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44605         test_once): Mark functions as static.
44606         * tests/test-tls.c (test_tls): Likewise.
44607
44608 2008-12-07  Bruno Haible  <bruno@clisp.org>
44609
44610         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44611         iconv_register_autodetect.
44612
44613 2008-12-07  Jim Meyering  <meyering@redhat.com>
44614
44615         posixtm.c: avoid a warning
44616         * lib/posixtm.c (posixtime): Don't initialize tm0.
44617         It's no longer needed to placate gcc4's -Wuninitialized,
44618         and the attempt to placate would elicit a new warning.
44619
44620         unicodeio.c: mark unused parameters
44621         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44622         (fallback_failure_callback): Likewise.
44623
44624 2008-12-07  Bruno Haible  <bruno@clisp.org>
44625
44626         * gnulib-tool (func_create_testdir): When building the tests
44627         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44628         Reported by Simon Josefsson.
44629
44630 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44631
44632         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44633
44634 2008-12-06  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44637         Suggested by Eric Blake.
44638
44639 2008-12-06  Bruno Haible  <bruno@clisp.org>
44640
44641         Fix a c-stack test failure on MacOS X.
44642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44643         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44644         handler for SIGBUS as well.
44645         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44646         install a signal handler for SIGBUS as well.
44647         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44648
44649 2008-12-06  Bruno Haible  <bruno@clisp.org>
44650
44651         Advocacy documentation.
44652         * doc/gnulib-intro.texi (Benefits): New section.
44653         * doc/gnulib.texi: Update.
44654
44655 2008-12-06  Bruno Haible  <bruno@clisp.org>
44656
44657         Document the 'manywarnings' module.
44658         * doc/manywarnings.texi: New file.
44659         * doc/gnulib.texi: Include it.
44660
44661 2008-12-05  Eric Blake  <ebb9@byu.net>
44662
44663         tests: silence some gcc warnings
44664         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44665         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44666         type mismatches.
44667
44668 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44669             Bruno Haible  <bruno@clisp.org>
44670
44671         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44672
44673 2008-11-29  Jim Meyering  <meyering@redhat.com>
44674
44675         unicodeio.c: mark unused parameters
44676         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44677         (fallback_failure_callback): Likewise.
44678
44679         fts: fix a thinko
44680         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44681         (set_stat_type): Return S_IF*-valued "type" directly.
44682         Prompted by James Youngman's spotting a related bug.
44683         Confirmed by further testing through find.
44684
44685         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44686         * lib/fts.c (D_TYPE): Define.
44687         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44688         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44689         (s_ifmt_shift_bits): New function.
44690         (set_stat_type): New function.
44691         (fts_build): When not calling fts_stat, call set_stat_type
44692         to propagate dirent.d_type info to fts_read caller.
44693         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44694         fts_statp->st_mode type information may be valid.
44695
44696 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44697
44698         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44699         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44700         <sds@gnu.org>.
44701
44702 2008-11-20  Bruno Haible  <bruno@clisp.org>
44703
44704         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44705         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44706         INCLUDE_NEXT.
44707         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44708         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44709         * modules/math (Makefile.am): Substitute
44710         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44711         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44712
44713 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44714             Bruno Haible  <bruno@clisp.org>
44715
44716         * lib/stdint.in.h: Define all type macros so that their expansion is
44717         a single typedef'ed token. Fixes a compilation failure in Boost which
44718         does "using ::int8_t;".
44719
44720 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44721
44722         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44723         gl_MANYWARN_ALL_GCC.
44724         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44725         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44726         * modules/manywarnings: New file.
44727         * MODULES.html.sh: Mention manywarnings module.
44728
44729 2008-11-18  Bruno Haible  <bruno@clisp.org>
44730
44731         * doc/gnulib-tool.texi (Unit tests): New section.
44732
44733 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44734
44735         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44736         paths like 'lib/po/foo.po'.
44737
44738 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44739
44740         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44741         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44742
44743 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44744
44745         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44746         parameter works.
44747
44748 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44749
44750         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44751
44752 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44753
44754         * modules/parse-duration-tests: New file.
44755         * tests/test-parse-duration.sh: New file.
44756         * tests/test-parse-duration.c: New file.
44757
44758         New module 'parse-duration'.
44759         * lib/parse-duration.h: New file.
44760         * lib/parse-duration.c: New file.
44761         * modules/parse-duration: New file.
44762
44763 2008-11-17  Bruno Haible  <bruno@clisp.org>
44764
44765         * tests/test-select-out.sh: Comment out the first pipe test.
44766         Reported by Simon Josefsson.
44767
44768 2008-11-17  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44772         gl_HOSTENT.
44773
44774 2008-11-17  Bruno Haible  <bruno@clisp.org>
44775
44776         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44777         -lnetwork and -lnet. Needed for Haiku and BeOS.
44778
44779 2008-11-16  Bruno Haible  <bruno@clisp.org>
44780
44781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44782
44783 2008-11-16  Bruno Haible  <bruno@clisp.org>
44784
44785         Avoid test failure on Haiku.
44786         * tests/test-fsync.c: Include <errno.h>.
44787         (main): Don't require that fsync (0) fails.
44788
44789 2008-11-15  Bruno Haible  <bruno@clisp.org>
44790
44791         New module 'hostent'.
44792         * modules/hostent: New file.
44793         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44794
44795 2008-11-15  Bruno Haible  <bruno@clisp.org>
44796
44797         New module 'servent'.
44798         * modules/servent: New file.
44799         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44800
44801 2008-11-15  Bruno Haible  <bruno@clisp.org>
44802
44803         Avoid generating same test program with two different rules.
44804         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44805         test-frexp to test-frexp-nolibm.
44806         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44807         test-frexpl to test-frexpl-nolibm.
44808
44809 2008-11-15  Bruno Haible  <bruno@clisp.org>
44810
44811         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44812         $(FREXPL_LIBM).
44813
44814 2008-11-15  Bruno Haible  <bruno@clisp.org>
44815
44816         * lib/netdb.in.h: Activate the definitions also when the system's
44817         <netdb.h> has 'struct addrinfo'.
44818         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44819         EAI_OVERFLOW or AI_NUMERICSERV.
44820         * doc/posix-headers/netdb.texi: Document the problem.
44821
44822 2008-11-15  Bruno Haible  <bruno@clisp.org>
44823
44824         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44825
44826         Make the 'sched' module work on platforms where <sched.h> exists but
44827         is incomplete (such as Haiku).
44828         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44829         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44830         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44831         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44832         HAVE_STRUCT_SCHED_PARAM.
44833         * modules/sched (Depends-on): Add include_next.
44834         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44835         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44836         * doc/posix-headers/sched.texi: Document the issue.
44837
44838 2008-11-13  Jim Meyering  <meyering@redhat.com>
44839
44840         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44841         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44842         test would fail due to the difference in the Report bugs to ...
44843         line.  The expected address is empty, "<>", while the actual
44844         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44845
44846 2008-11-12  Bruno Haible  <bruno@clisp.org>
44847
44848         lstat: don't compile lstat.c on systems lacking lstat
44849         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44850         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44851         Reported by Daniel P. Berrange via Jim Meyering.
44852
44853 2008-11-12  Jim Meyering  <meyering@redhat.com>
44854
44855         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44856
44857 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44858
44859         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44860         instead.
44861
44862 2008-11-12  Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/unicodeio.c: Include unistr.h.
44865         (utf8_wctomb): Remove function.
44866         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44867
44868 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44869
44870         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44871         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44872         <bruno@clisp.org>.
44873         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44874
44875 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44876
44877         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44878         * doc/gnulib.texi: Add section for warnings.
44879
44880 2008-11-11  Bruno Haible  <bruno@clisp.org>
44881
44882         * lib/sockets.h: Add a comment.
44883
44884 2008-11-11  Karl Berry  <karl@gnu.org>
44885
44886         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44887
44888 2008-11-11  Eric Blake  <ebb9@byu.net>
44889
44890         fdl.texi: avoid git symlinks
44891         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44892
44893 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44894
44895         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44896
44897 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44898
44899         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44900         (gl_WARN_ADD): Substitute $2 if literal.
44901
44902 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44903
44904         * m4/warning.m4: Remove.
44905
44906 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44907
44908         * m4/warnings.m4: Almost complete rewrite. :-)
44909
44910 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44911
44912         * modules/warnings: New module.
44913         * m4/warnings.m4: New file.
44914         * MODULES.html.sh: Mention warnings module.
44915         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44916         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44917
44918 2008-11-10  Eric Blake  <ebb9@byu.net>
44919
44920         fdl.texi: make a symlink to the latest version
44921         * doc/standards.texi: Revert today's earlier change.
44922         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44923         * doc/fdl.texi: ...and replace this with a symlink to the newer
44924         fdl-1.3.texi.
44925
44926 2008-11-10  Bruno Haible  <bruno@clisp.org>
44927
44928         * tests/test-select-fd.c (main): Accept the result file name as fourth
44929         argument.
44930         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44931         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44932
44933 2008-11-10  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44936         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44937         as autoconf-substituted macros.
44938         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44940         gl_NETDB_H_DEFAULTS. Set these variables.
44941         * modules/netdb (Makefile.am): Substitute these variables.
44942
44943 2008-11-10  Eric Blake  <ebb9@byu.net>
44944
44945         standards.texi: include correct file for FDL 1.3
44946         * doc/standards.texi (GNU Free Documentation License): Change
44947         include file to pull in FDL 1.3, not 1.2.
44948
44949         fdl.texi: revert accidental change to license
44950         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44951
44952 2008-11-10  Bruno Haible  <bruno@clisp.org>
44953
44954         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44955         cross-compiling guesses also when the native compile gives no result.
44956
44957 2008-11-10  Bruno Haible  <bruno@clisp.org>
44958
44959         * lib/spawni.c (__spawni): Force variable into the stack.
44960
44961 2008-11-10  Bruno Haible  <bruno@clisp.org>
44962
44963         Add support for Haiku.
44964         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44965         glibc and BeOS, but also on Haiku.
44966         * lib/fpurge.c (fpurge): Likewise.
44967         * lib/freadable.c (freadable): Likewise.
44968         * lib/freadahead.c (freadahead): Likewise.
44969         * lib/freading.c (freading): Likewise.
44970         * lib/freadptr.c (freadptr): Likewise.
44971         * lib/freadseek.c (freadptrinc): Likewise.
44972         * lib/fseeko.c (rpl_fseeko): Likewise.
44973         * lib/fseterr.c (fseterr): Likewise.
44974         * lib/fwritable.c (fwritable): Likewise.
44975         * lib/fwriting.c (fwriting): Likewise.
44976         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44977
44978 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44979
44980         * lib/config.charset: Treat Haiku like BeOS.
44981
44982 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44983
44984         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44985         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44986
44987 2008-11-08  Bruno Haible  <bruno@clisp.org>
44988
44989         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44990         AC_CACHE_CHECK.
44991
44992 2008-11-08  Bruno Haible  <bruno@clisp.org>
44993
44994         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44995
44996 2008-11-08  Bruno Haible  <bruno@clisp.org>
44997
44998         * tests/test-select-fd.c: New file.
44999         * tests/test-select-in.sh: New file.
45000         * tests/test-select-out.sh: New file.
45001         * tests/test-select-stdin.c: New file.
45002         * modules/select-tests (Files): Add the new files.
45003         (Depends-on): Add gettimeofday.
45004         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45005         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45006         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45007
45008 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45009             Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45012
45013 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45014
45015         * build-aux/pmccabe2html: Added support for C++ source files.
45016
45017 2008-11-05  Ben Pfaff  <blp@gnu.org>
45018
45019         Fix lib/close.c build on Windows.
45020         * modules/close (Files): Add lib/w32sock.h.
45021
45022 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45023
45024         Accept Bison's NEWS format.
45025         * build-aux/announce-gen (print_news_deltas): Tweak
45026         $re_prefix.
45027
45028 2008-11-04  Bruno Haible  <bruno@clisp.org>
45029
45030         * modules/random_r (Maintainer): Add glibc.
45031
45032 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45033
45034         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45035         by karl@freefriends.org (Karl Berry).
45036         * doc/alloca.texi: Likewise.
45037         * doc/c-ctype.texi: Likewise.
45038         * doc/c-strcase.texi: Likewise.
45039         * doc/c-strcaseeq.texi: Likewise.
45040         * doc/c-strcasestr.texi: Likewise.
45041         * doc/c-strstr.texi: Likewise.
45042         * doc/c-strtod.texi: Likewise.
45043         * doc/c-strtold.texi: Likewise.
45044         * doc/ctime.texi: Likewise.
45045         * doc/error.texi: Likewise.
45046         * doc/fdl.texi: Likewise.
45047         * doc/gcd.texi: Likewise.
45048         * doc/getdate.texi: Likewise.
45049         * doc/gnulib-intro.texi: Likewise.
45050         * doc/gnulib-tool.texi: Likewise.
45051         * doc/gnulib.texi: Likewise.
45052         * doc/inet_ntoa.texi: Likewise.
45053         * doc/maintain.texi: Likewise.
45054         * doc/make-stds.texi: Likewise.
45055         * doc/quote.texi: Likewise.
45056         * doc/regexprops-generic.texi: Likewise.
45057         * doc/standards.texi: Likewise.
45058         * doc/verify.texi: Likewise.
45059         * doc/visibility.texi: Likewise.
45060         * doc/gnulib.texi (GNU Free Documentation License): Include
45061         fdl-1.3.texi instead of fdl.texi.
45062
45063 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45064
45065         * doc/fdl-1.3.texi: New file, from
45066         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45067         * modules/fdl-1.3: Add.
45068         * MODULES.html.sh: Add fdl-1.3.
45069
45070 2008-11-03  Bruno Haible  <bruno@clisp.org>
45071
45072         Make determination of absolute name of header file work with AIX xlc.
45073         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45074         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45075         preprocessing.
45076         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45077         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45078
45079 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45080
45081         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45082         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45083         <ludo@gnu.org>.
45084
45085 2008-11-02  Bruno Haible  <bruno@clisp.org>
45086
45087         Mark 'strpbrk' obsolete.
45088         * modules/strpbrk (Status, Notice): New sections.
45089         * modules/strtok_r (Depends-on): Add strpbrk.
45090
45091 2008-11-02  Bruno Haible  <bruno@clisp.org>
45092
45093         Mark 'strdup' obsolete.
45094         * modules/strdup (Status, Notice): New sections.
45095         * modules/findprog (Depends-on): Add strdup.
45096         * modules/getaddrinfo (Depends-on): Likewise.
45097         * modules/localename (Depends-on): Likewise.
45098         * modules/relocatable-lib (Depends-on): Likewise.
45099         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45100         * modules/relocatable-prog (Depends-on): Likewise.
45101         * modules/trim (Depends-on): Likewise.
45102         * modules/unictype/gen-ctype (Depends-on): Likewise.
45103         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45104
45105 2008-11-02  Bruno Haible  <bruno@clisp.org>
45106
45107         Mark 'strcspn' obsolete.
45108         * modules/strcspn (Status, Notice): New sections.
45109
45110 2008-11-02  Bruno Haible  <bruno@clisp.org>
45111
45112         Mark 'rmdir' obsolete.
45113         * modules/rmdir (Status, Notice): New sections.
45114         * modules/clean-temp (Depends-on): Add rmdir.
45115         * modules/openat (Depends-on): Likewise.
45116
45117 2008-11-02  Bruno Haible  <bruno@clisp.org>
45118
45119         Mark 'raise' obsolete.
45120         * modules/raise (Status, Notice): New sections.
45121         (Include): Specify <signal.h>.
45122         * modules/stdio (Depends-on): Add raise.
45123         * modules/write (Depends-on): Likewise.
45124
45125 2008-11-02  Bruno Haible  <bruno@clisp.org>
45126
45127         Mark 'memset' obsolete.
45128         * modules/memset (Status, Notice): New sections.
45129
45130 2008-11-02  Bruno Haible  <bruno@clisp.org>
45131
45132         Mark 'memmove' obsolete.
45133         * modules/memmove (Status, Notice): New sections.
45134         * modules/argp (Depends-on): Add memmove.
45135         * modules/argz (Depends-on): Likewise.
45136         * modules/canonicalize (Depends-on): Likewise.
45137         * modules/canonicalize-lgpl (Depends-on): Likewise.
45138         * modules/fts (Depends-on): Likewise.
45139         * modules/getcwd (Depends-on): Likewise.
45140         * modules/human (Depends-on): Likewise.
45141         * modules/regex (Depends-on): Likewise.
45142         * modules/striconveh (Depends-on): Likewise.
45143         * modules/trim (Depends-on): Likewise.
45144         * modules/unistr/u8-move (Depends-on): Likewise.
45145         * modules/unistr/u16-move (Depends-on): Likewise.
45146         * modules/unistr/u32-move (Depends-on): Likewise.
45147
45148 2008-11-02  Bruno Haible  <bruno@clisp.org>
45149
45150         Mark 'memcpy' obsolete.
45151         * modules/memcpy (Status, Notice): New sections.
45152
45153 2008-11-02  Bruno Haible  <bruno@clisp.org>
45154
45155         Mark 'memcmp' obsolete.
45156         * modules/memcmp (Status, Notice): New sections.
45157         * modules/argmatch (Depends-on): Add memchr.
45158         * modules/backupfile (Depends-on): Likewise.
45159         * modules/c-strcasestr (Depends-on): Likewise.
45160         * modules/crypto/des (Depends-on): Likewise.
45161         * modules/csharpcomp (Depends-on): Likewise.
45162         * modules/fnmatch (Depends-on): Likewise.
45163         * modules/git-merge-changelog (Depends-on): Likewise.
45164         * modules/isnand (Depends-on): Likewise.
45165         * modules/isnand-nolibm (Depends-on): Likewise.
45166         * modules/isnanf (Depends-on): Likewise.
45167         * modules/isnanf-nolibm (Depends-on): Likewise.
45168         * modules/isnanl (Depends-on): Likewise.
45169         * modules/isnanl-nolibm (Depends-on): Likewise.
45170         * modules/mbchar (Depends-on): Likewise.
45171         * modules/memcoll (Depends-on): Likewise.
45172         * modules/quotearg (Depends-on): Likewise.
45173         * modules/regex (Depends-on): Likewise.
45174         * modules/relocatable-prog (Depends-on): Likewise.
45175         * modules/same (Depends-on): Likewise.
45176         * modules/signbit (Depends-on): Likewise.
45177         * modules/strcasestr-simple (Depends-on): Likewise.
45178         * modules/unictype/gen-ctype (Depends-on): Likewise.
45179         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45180         * modules/uniname/uniname (Depends-on): Likewise.
45181         * modules/unistr/u8-cmp (Depends-on): Likewise.
45182
45183 2008-11-02  Bruno Haible  <bruno@clisp.org>
45184
45185         Mark 'memchr' obsolete.
45186         * modules/memchr (Status, Notice): New sections.
45187         * modules/argp (Depends-on): Add memchr.
45188         * modules/base64 (Depends-on): Likewise.
45189         * modules/c-strcasestr (Depends-on): Likewise.
45190         * modules/chdir-long (Depends-on): Likewise.
45191         * modules/fnmatch (Depends-on): Likewise.
45192         * modules/getsubopt (Depends-on): Likewise.
45193         * modules/git-merge-changelog (Depends-on): Likewise.
45194         * modules/glob (Depends-on): Likewise.
45195         * modules/strcasestr-simple (Depends-on): Likewise.
45196         * modules/strnlen (Depends-on): Likewise.
45197
45198 2008-11-02  Bruno Haible  <bruno@clisp.org>
45199
45200         Mark 'atexit' obsolete.
45201         * modules/atexit (Status, Notice): New sections.
45202         * modules/chdir-long (Depends-on): Add atexit.
45203         * modules/wait-process (Depends-on): Likewise.
45204
45205 2008-11-02  Bruno Haible  <bruno@clisp.org>
45206
45207         * gnulib-tool: New option --with-obsolete.
45208         (func_usage): Document it.
45209         (func_modules_transitive_closure): Drop obsolete dependencies if
45210         incobsolete is not true.
45211         (func_import): Read and save the incobsolete variable to the cache.
45212
45213 2008-11-02  Bruno Haible  <bruno@clisp.org>
45214
45215         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45216         * gnulib-tool: New option --extract-status.
45217         (func_usage): Document it.
45218         (sed_extract_prog): Recognize it.
45219         (func_get_status): New function.
45220
45221 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45222
45223         * modules/sockets (License): Change from LGPL to LGPLv2+.
45224
45225 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45226
45227         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45228
45229 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45230
45231         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45232         Mention times and sys_times.
45233         * modules/sys_times, modules/sys_times-tests: New modules.
45234         * modules/times, modules/times-tests: Likewise
45235         * m4/sys_times_h.m4: New file.
45236         * lib/sys_times.in.h: Likewise
45237         * lib/times.c: Likewise.
45238         * tests/test-sys_times.c: Likewise.
45239         * tests/test-times.c: Likewise.
45240         * doc/posix-headers/sys_times.texi: Update.
45241         * doc/posix-functions/times.texi: Update.
45242
45243 2008-10-28  Jim Meyering  <meyering@redhat.com>
45244
45245         * modules/tempname (Depends-on): Add lstat.
45246
45247         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45248
45249 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45250
45251         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45252         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45253         using idiom used elsewhere in gnulib.
45254
45255 2008-10-27  Jim Meyering  <meyering@redhat.com>
45256
45257         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45258
45259 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45260
45261         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45262         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45263         programs.
45264         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45265
45266 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45267
45268         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45269
45270 2008-10-27  Bruno Haible  <bruno@clisp.org>
45271
45272         * tests/test-lstat.c: Include <stdio.h>.
45273
45274 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45275
45276         * modules/lstat-tests: New module.
45277         * tests/test-lstat.c: New file.
45278
45279 2008-10-26  Jim Meyering  <meyering@redhat.com>
45280
45281         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45282
45283 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45284             Bruno Haible  <bruno@clisp.org>
45285
45286         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45287         * modules/configmake (Include): Add a note that the include must come
45288         after all system headers.
45289         * lib/javaversion.c: Include configmake.h after all other includes.
45290
45291 2008-10-26  Bruno Haible  <bruno@clisp.org>
45292
45293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45294         HAVE_STRUCT_RANDOM_DATA to 1.
45295         (gl_STDLIB_H): Simplify.
45296
45297 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45298
45299         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45300         substitute HAVE_STRUCT_RANDOM_DATA.
45301         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45302         random_data.
45303         * modules/stdlib (Makefile.am): Substitute
45304         HAVE_STRUCT_RANDOM_DATA.
45305
45306 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45307
45308         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45309         * doc/gnulib-intro.texi (Copyright): Likewise.
45310
45311 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45312
45313         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45314         findings.
45315
45316 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45317             Bruno Haible  <bruno@clisp.org>
45318
45319         * lib/unistd.in.h: Include <winsock2.h>.
45320         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45321         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45322         Provide dummy declarations.
45323         (gethostname): Override.
45324         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45326         gl_PREREQ_SYS_H_WINSOCK2.
45327         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45328         * doc/posix-functions/gethostname.texi: More details.
45329
45330 2008-10-25  Bruno Haible  <bruno@clisp.org>
45331
45332         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45333         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45334         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45335
45336         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45337         here ...
45338         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45339         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45340         gl_UNISTD_H_DEFAULTS.
45341
45342 2008-10-25  Eric Blake  <ebb9@byu.net>
45343
45344         signbit: avoid spurious compiler failure
45345         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45346         declarations inside function.
45347
45348 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45349             Bruno Haible  <bruno@clisp.org>
45350
45351         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45352         * modules/random_r (Depends-on): Add stdint.
45353
45354 2008-10-24  Bruno Haible  <bruno@clisp.org>
45355
45356         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45357         Eggert.
45358         * modules/strerror (License): Likewise.
45359
45360 2008-10-24  Jim Meyering  <meyering@redhat.com>
45361
45362         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45363         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45364
45365 2008-10-24  Eric Blake  <ebb9@byu.net>
45366
45367         getgroups: fix compilation when getgroups is available
45368         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45369         but with <config.h> override of getgroups disabled.
45370
45371 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45372
45373         * doc/gnulib.texi (Header files): Add note about C++ problems.
45374         Explained by Bruno Haible <bruno@clisp.org>.
45375
45376 2008-10-23  Bruno Haible  <bruno@clisp.org>
45377
45378         Define a dummy SA_NODEFER macro on Interix.
45379         * lib/signal.in.h (SA_NODEFER): Define fallback.
45380         Reported by Aleksey Cheusov <cheusov@tut.by> via
45381         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45382
45383 2008-10-23  Bruno Haible  <bruno@clisp.org>
45384
45385         * modules/freadahead (License): Change to LGPLv2+.
45386         Suggested by Simon Josefsson.
45387
45388 2008-10-23  Jim Meyering  <meyering@redhat.com>
45389
45390         random_r: new module
45391         * modules/random_r: New file.
45392         * m4/random_r.m4: New file.
45393         * lib/random_r.c: New file, from glibc.
45394         * modules/random_r-tests: New file.
45395         * tests/test-random_r.c: New file.
45396         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45397          Declare.
45398         (RAND_MAX): Define.
45399         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45400         * modules/stdlib: Substitute them, too.
45401         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45402         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45403         * doc/glibc-functions/random_r.texi: Likewise.
45404         * doc/glibc-functions/setstate_r.texi: Likewise.
45405         * doc/glibc-functions/srandom_r.texi: Likewise.
45406         * config/srclist.txt: Mention it.
45407
45408 2008-10-23  David Lutterkort  <lutter@redhat.com>
45409
45410         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45411         link requirement
45412
45413 2008-10-23  Jim Meyering  <meyering@redhat.com>
45414
45415         selinux-h: mark parameters of stub functions as intentionally unused
45416         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45417         * lib/se-context.in.h: Likewise.
45418
45419 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45420
45421         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45422
45423 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45424
45425         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45426
45427 2008-10-22  Eric Blake  <ebb9@byu.net>
45428
45429         glthread/thread: avoid compiler warning
45430         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45431         Add unreachable abort to silence compiler.
45432
45433 2008-10-22  Eric Blake  <ebb9@byu.net>
45434
45435         netdb: also supply struct addrinfo for cygwin 1.5.x
45436         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45437         older cygwin.
45438         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45439         cygwin.
45440         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45441
45442 2008-10-22  Bruno Haible  <bruno@clisp.org>
45443
45444         * users.txt: Update entry about pspp.
45445
45446 2008-10-21  Bruno Haible  <bruno@clisp.org>
45447
45448         Simplification.
45449         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45450         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45451
45452         Simplification.
45453         * lib/ioctl.c (ioctl): Don't undefine.
45454         * lib/socket.c (socket): Don't undefine.
45455
45456         Remove unused module indicator macros.
45457         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45458         GNULIB_$1 as a C macro.
45459
45460         * doc/posix-functions/close.texi: Undo last change.
45461         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45462         Windows platforms.
45463
45464 2008-10-21  Bruno Haible  <bruno@clisp.org>
45465
45466         Add gethostname() declaration to <unistd.h>.
45467         * lib/unistd.in.h (gethostname): New declaration.
45468         * lib/gethostname.c: Include <unistd.h>.
45469         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45470         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45472         and HAVE_GETHOSTNAME.
45473         * modules/gethostname (Depends-on): Add unistd.
45474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45475         (Include): Specify <unistd.h>.
45476         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45477         HAVE_GETHOSTNAME.
45478         * tests/test-gethostname.c: Include <unistd.h> first.
45479
45480 2008-10-21  Bruno Haible  <bruno@clisp.org>
45481
45482         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45483         * modules/select-tests (Depends-on): Likewise.
45484         Reported by Simon Josefsson.
45485
45486 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45487
45488         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45489         * lib/accept.c: New file, based on winsock.c.
45490         * lib/bind.c: New file, based on winsock.c.
45491         * lib/connect.c: New file, based on winsock.c.
45492         * lib/getpeername.c: New file, based on winsock.c.
45493         * lib/getsockname.c: New file, based on winsock.c.
45494         * lib/getsockopt.c: New file, based on winsock.c.
45495         * lib/ioctl.c: New file, based on winsock.c.
45496         * lib/listen.c: New file, based on winsock.c.
45497         * lib/recv.c: New file, based on winsock.c.
45498         * lib/recvfrom.c: New file, based on winsock.c.
45499         * lib/send.c: New file, based on winsock.c.
45500         * lib/sendto.c: New file, based on winsock.c.
45501         * lib/setsockopt.c: New file, based on winsock.c.
45502         * lib/shutdown.c: New file, based on winsock.c.
45503         * lib/socket.c: New file, based on winsock.c.
45504         * lib/w32sock.h: New file, based on winsock.c.
45505         * lib/winsock.c: Remove file.
45506         * modules/accept: Likewise.
45507         * modules/bind: Likewise.
45508         * modules/connect: Likewise.
45509         * modules/getpeername: Likewise.
45510         * modules/getsockname: Likewise.
45511         * modules/getsockopt: Likewise.
45512         * modules/ioctl: Likewise.
45513         * modules/listen: Likewise.
45514         * modules/recv: Likewise.
45515         * modules/recvfrom: Likewise.
45516         * modules/send: Likewise.
45517         * modules/sendto: Likewise.
45518         * modules/setsockopt: Likewise.
45519         * modules/shutdown: Likewise.
45520         * modules/socket: Use socket.c instead of winsock.c.
45521         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45522         * doc/posix-functions/accept.texi: Doc fix.
45523         * doc/posix-functions/bind.texi: Doc fix.
45524         * doc/posix-functions/close.texi: Doc fix.
45525         * doc/posix-functions/connect.texi: Doc fix.
45526         * doc/posix-functions/getpeername.texi: Doc fix.
45527         * doc/posix-functions/getsockname.texi: Doc fix.
45528         * doc/posix-functions/getsockopt.texi: Doc fix.
45529         * doc/posix-functions/ioctl.texi: Doc fix.
45530         * doc/posix-functions/listen.texi: Doc fix.
45531         * doc/posix-functions/recv.texi: Doc fix.
45532         * doc/posix-functions/recvfrom.texi: Doc fix.
45533         * doc/posix-functions/send.texi: Doc fix.
45534         * doc/posix-functions/sendto.texi: Doc fix.
45535         * doc/posix-functions/setsockopt.texi: Doc fix.
45536         * doc/posix-functions/shutdown.texi: Doc fix.
45537         * doc/posix-functions/socket.texi: Doc fix.
45538
45539 2008-10-20  Bruno Haible  <bruno@clisp.org>
45540
45541         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45542         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45543         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45544         as an alias for SIGABRT.
45545         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45546         (sigaction): Map it to SIGABRT.
45547         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45548
45549 2008-10-20  Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/fts.c: Don't include lstat.h.
45552         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45553
45554         Move the lstat() declaration to <sys/stat.h>.
45555         * lib/lstat.h: Remove file.
45556         * lib/sys_stat.in.h: Add special invocation convention.
45557         (lstat): New declaration.
45558         * lib/lstat.c (orig_lstat): New function.
45559         (rpl_lstat): Use orig_lstat instead of lstat.
45560         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45561         AC_C_INLINE. Set REPLACE_LSTAT.
45562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45563         and REPLACE_LSTAT.
45564         * modules/lstat (Files): Remove lib/lstat.h.
45565         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45566         (Include): Specify <sys/stat.h> instead of lstat.h.
45567         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45568         REPLACE_LSTAT.
45569         * NEWS: Mention the change.
45570
45571 2008-10-20  Bruno Haible  <bruno@clisp.org>
45572
45573         * modules/posix_spawn-tests: New file.
45574         * tests/test-posix_spawn3.c: New file.
45575
45576 2008-10-20  Bruno Haible  <bruno@clisp.org>
45577
45578         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45579         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45580         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45581         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45582         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45583
45584 2008-10-20  Bruno Haible  <bruno@clisp.org>
45585
45586         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45587         of posix_spawn on AIX 5.3.
45588
45589 2008-10-20  Bruno Haible  <bruno@clisp.org>
45590
45591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45592
45593 2008-10-20  Bruno Haible  <bruno@clisp.org>
45594
45595         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45596         of AC_LANG_PROGRAM.
45597
45598 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45599
45600         * lib/netdb.in.h: Don't define GNU specific constants until they
45601         are supported or needed.  Reported by Bruno Haible
45602         <bruno@clisp.org>.
45603
45604 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45605
45606         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45607
45608 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45609
45610         * lib/getaddrinfo.h: Remove file.
45611         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45612         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45613         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45614         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45615         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45616         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45617         * tests/test-getaddrinfo.c: Likewise.
45618         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45619         * NEWS: Mention change.
45620
45621 2008-10-19  Bruno Haible  <bruno@clisp.org>
45622
45623         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45624
45625 2008-10-19  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/wait-process.c: Include simply <sys/wait.h>.
45628         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45629         WIFSTOPPED): Remove fallback definitions.
45630         * modules/wait-process (Depends-on): Add sys_wait.
45631
45632         New module 'sys_wait'.
45633         * modules/sys_wait: New file.
45634         * lib/sys_wait.in.h: New file, partially copied from
45635         lib/wait-process.c.
45636         * m4/sys_wait_h.m4: New file.
45637         * doc/posix-headers/sys_wait.texi: Mention the new module.
45638
45639 2008-10-19  Bruno Haible  <bruno@clisp.org>
45640
45641         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45642
45643 2008-10-19  Bruno Haible  <bruno@clisp.org>
45644
45645         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45646         * lib/wait-process.c (WAIT_T): Remove type.
45647         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45648         (wait_subprocess): Update.
45649
45650 2008-10-19  Bruno Haible  <bruno@clisp.org>
45651
45652         New module 'atoll'.
45653         * modules/atoll: New file.
45654         * lib/stdlib.in.h (atoll): New declaration.
45655         * lib/atoll.c: New file, from glibc with modifications.
45656         * m4/atoll.m4: New file.
45657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45658         HAVE_ATOLL.
45659         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45660         * doc/posix-functions/atoll.texi: Mention the new module.
45661
45662 2008-10-19  Bruno Haible  <bruno@clisp.org>
45663
45664         Add strtoull() declaration to <stdlib.h>.
45665         * lib/stdlib.in.h (strtoull): New declaration.
45666         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45667         Set HAVE_STRTOULL.
45668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45669         HAVE_STRTOULL.
45670         * modules/strtoull (Depends-on): Add stdlib.
45671         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45672         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45673         HAVE_STRTOULL.
45674
45675 2008-10-19  Bruno Haible  <bruno@clisp.org>
45676
45677         Add strtoll() declaration to <stdlib.h>.
45678         * lib/stdlib.in.h (strtoll): New declaration.
45679         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45680         Set HAVE_STRTOLL.
45681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45682         HAVE_STRTOLL.
45683         * modules/strtoll (Depends-on): Add stdlib.
45684         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45685         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45686
45687 2008-10-19  Bruno Haible  <bruno@clisp.org>
45688
45689         * modules/bcopy (Depends-on): Add strings.
45690         (Include): Specify <strings.h>.
45691
45692 2008-10-19  Bruno Haible  <bruno@clisp.org>
45693
45694         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45695
45696 2008-10-19  Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45699         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45700         mingw.
45701
45702 2008-10-19  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/atanl.c: Don't include isnanl.h.
45705         * lib/cosl.c: Likewise.
45706         * lib/ldexpl.c: Likewise.
45707         * lib/logl.c: Likewise.
45708         * lib/sinl.c: Likewise.
45709         * lib/sqrtl.c: Likewise.
45710         * lib/tanl.c: Likewise.
45711
45712         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45713         * lib/isnanf.h: Remove file.
45714         * lib/isnand.h: Remove file.
45715         * lib/isnanl.h: Remove file.
45716         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45717         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45718         macros.
45719         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45720         HAVE_ISNANF, don't define it as a C macro.
45721         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45722         HAVE_ISNAND, don't define it as a C macro.
45723         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45724         HAVE_ISNANL, don't define it as a C macro.
45725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45726         HAVE_ISNAN[FDL].
45727         * modules/isnanf (Files): Remove lib/isnanf.h.
45728         (Depends-on): Add math.
45729         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45730         (Include): Specify <math.h> instead of isnanf.h.
45731         * modules/isnand (Files): Remove lib/isnand.h.
45732         (Depends-on): Add math.
45733         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45734         (Include): Specify <math.h> instead of isnand.h.
45735         * modules/isnanl (Files): Remove lib/isnanl.h.
45736         (Depends-on): Add math.
45737         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45738         (Include): Specify <math.h> instead of isnanl.h.
45739         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45740         HAVE_ISNAN[FDL].
45741         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45742         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45743         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45744         * NEWS: Mention the change.
45745
45746 2008-10-18  Bruno Haible  <bruno@clisp.org>
45747
45748         Add getusershell(), setusershell(), endusershell() declarations to
45749         <unistd.h>.
45750         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45751         declarations.
45752         * lib/getusershell.c: Include unistd.h.
45753         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45754         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45755         HAVE_GETUSERSHELL.
45756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45757         and HAVE_GETUSERSHELL.
45758         * modules/getusershell (Depends-on): Add unistd, extensions.
45759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45760         (Include): Specify <unistd.h>.
45761         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45762         HAVE_GETUSERSHELL.
45763
45764 2008-10-18  Bruno Haible  <bruno@clisp.org>
45765
45766         Add a getloadavg() declaration to <stdlib.h>.
45767         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45768         getloadavg declaration.
45769         (getloadavg): New declaration.
45770         * lib/getloadavg.c: Include <stdlib.h> first.
45771         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45772         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45773         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45775         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45776         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45777         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45778         (Include): Specify <stdlib.h>.
45779         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45780         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45781
45782 2008-10-18  Bruno Haible  <bruno@clisp.org>
45783
45784         * lib/dirchownmod.c: Don't include lchmod.h.
45785
45786         Move the lchmod() declaration to <sys/stat.h>.
45787         * lib/lchmod.h: Remove file.
45788         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45789         (lchmod): New declaration, moved here from lib/lchown.h.
45790         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45791         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45792         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45793         and HAVE_LCHMOD.
45794         * modules/lchmod (Files): Remove lib/lchmod.h.
45795         (Depends-on): Add sys_stat, extensions.
45796         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45797         (Include): Specify <sys/stat.h> instead of lchmod.h.
45798         * modules/sys_stat (Depends-on): Add link-warning.
45799         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45800         definition of GL_LINK_WARNING.
45801         * NEWS: Mention the change.
45802
45803 2008-10-18  Bruno Haible  <bruno@clisp.org>
45804
45805         * lib/fchdir.c: Don't include dirfd.h.
45806         * lib/fts.c: Likewise.
45807         * lib/getcwd.c: Likewise.
45808         * lib/glob.c: Likewise.
45809
45810         Move the dirfd() declaration to <dirent.h>.
45811         * lib/dirfd.h: Remove file.
45812         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45813         (dirfd): New declaration.
45814         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45815         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45816         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45817         HAVE_DECL_DIRFD.
45818         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45819         HAVE_DECL_DIRFD.
45820         * modules/dirfd (Files): Remove lib/dirfd.h.
45821         (Depends-on): Add dirent, extensions.
45822         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45823         (Include): Specify <dirent.h> instead of dirfd.h.
45824         * modules/dirent (Depends-on): Add link-warning.
45825         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45826         definition of GL_LINK_WARNING.
45827         * NEWS: Mention the change.
45828
45829 2008-10-18  Bruno Haible  <bruno@clisp.org>
45830
45831         Move the euidaccess() declaration to <unistd.h>.
45832         * lib/euidaccess.h: Remove file.
45833         * lib/unistd.in.h (euidaccess): New declaration.
45834         * lib/euidaccess.c: Don't include euidaccess.h.
45835         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45836         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45838         and HAVE_EUIDACCESS.
45839         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45840         (Depends-on): Add unistd.
45841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45842         (Include): Specify <unistd.h> instead of euidaccess.h.
45843         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45844         HAVE_EUIDACCESS.
45845         * NEWS: Mention the change.
45846
45847 2008-10-18  Bruno Haible  <bruno@clisp.org>
45848
45849         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45850
45851         Move the getdomainname() declaration to <unistd.h>.
45852         * lib/getdomainname.h: Remove file.
45853         * lib/unistd.in.h (getdomainname): New declaration.
45854         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45855         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45856         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45857         HAVE_GETDOMAINNAME.
45858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45859         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45860         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45861         (Depends-on): Add unistd, extensions.
45862         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45863         (Includes): Specify <unistd.h> instead of getdomainname.h.
45864         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45865         HAVE_GETDOMAINNAME.
45866         * NEWS: Mention the change.
45867
45868 2008-10-18  Bruno Haible  <bruno@clisp.org>
45869
45870         * modules/dirent: New file.
45871         * m4/dirent_h.m4: New file.
45872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45873         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45874         * modules/fchdir (Files): Remove lib/dirent.in.h.
45875         (Depends-on): Add dirent.
45876         (Makefile.am): Move rules to modules/dirent.
45877         * doc/posix-headers/dirent.texi: Mention the new module.
45878
45879 2008-10-18  Bruno Haible  <bruno@clisp.org>
45880
45881         Avoid -Wunused-parameter warnings in public gnulib header files.
45882         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45883         macro.
45884         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45885
45886 2008-10-18  Bruno Haible  <bruno@clisp.org>
45887
45888         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45889         * doc/glibc-functions/error.texi: Mention the module 'error'.
45890         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45891         * doc/glibc-functions/getdomainname.texi: Mention the module
45892         'getdomainname'.
45893         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45894         * doc/glibc-functions/getpagesize.texi: Mention the module
45895         'getpagesize'.
45896         * doc/glibc-functions/getusershell.texi: Mention the module
45897         'getusershell'.
45898         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45899         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45900         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45901         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45902         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45903         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45904         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45905         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45906         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45907         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45908         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45909         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45910         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45911         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45912
45913 2008-10-17  Bruno Haible  <bruno@clisp.org>
45914
45915         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45916         HP-UX and IRIX, use -0.0L.
45917         * tests/test-ceill.c (minus_zero): Likewise.
45918         * tests/test-floorl.c (minus_zero): Likewise.
45919         * tests/test-frexpl.c (minus_zero): Likewise.
45920         * tests/test-isnan.c (minus_zerol): Likewise.
45921         * tests/test-isnanl.h (minus_zero): Likewise.
45922         * tests/test-ldexpl.c (minus_zero): Likewise.
45923         * tests/test-roundl.c (minus_zero): Likewise.
45924         * tests/test-signbit.c (minus_zerol): Likewise.
45925         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45926         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45927         * tests/test-truncl.c (minus_zero): Likewise.
45928         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45929         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45930         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45931         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45932
45933 2008-10-17  Bruno Haible  <bruno@clisp.org>
45934
45935         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45936         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45937         that it gets activated only for gcc >= 3.0.
45938         * lib/dirent.in.h: Likewise.
45939         * lib/errno.in.h: Likewise.
45940         * lib/fcntl.in.h: Likewise.
45941         * lib/float.in.h: Likewise.
45942         * lib/iconv.in.h: Likewise.
45943         * lib/inttypes.in.h: Likewise.
45944         * lib/locale.in.h: Likewise.
45945         * lib/math.in.h: Likewise.
45946         * lib/netdb.in.h: Likewise.
45947         * lib/netinet_in.in.h: Likewise.
45948         * lib/search.in.h: Likewise.
45949         * lib/signal.in.h: Likewise.
45950         * lib/spawn.in.h: Likewise.
45951         * lib/stdarg.in.h: Likewise.
45952         * lib/stdint.in.h: Likewise.
45953         * lib/stdio.in.h: Likewise.
45954         * lib/stdlib.in.h: Likewise.
45955         * lib/string.in.h: Likewise.
45956         * lib/strings.in.h: Likewise.
45957         * lib/sys_file.in.h: Likewise.
45958         * lib/sys_ioctl.in.h: Likewise.
45959         * lib/sys_select.in.h: Likewise.
45960         * lib/sys_socket.in.h: Likewise.
45961         * lib/sys_stat.in.h: Likewise.
45962         * lib/sys_time.in.h: Likewise.
45963         * lib/sysexits.in.h: Likewise.
45964         * lib/time.in.h: Likewise.
45965         * lib/unistd.in.h: Likewise.
45966         * lib/wchar.in.h: Likewise.
45967         * lib/wctype.in.h: Likewise.
45968         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45969
45970 2008-10-17  Jim Meyering  <meyering@redhat.com>
45971
45972         ignore-value: don't depend on inline module
45973         * modules/ignore-value (Depends-on): Remove 'inline'.
45974         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45975         Suggestion from Bruno Haible.
45976
45977 2008-10-17  Bruno Haible  <bruno@clisp.org>
45978
45979         New implementation of condition variables for Win32.
45980         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45981         (gl_linked_waitqueue_t): New type.
45982         (gl_cond_t): Use it.
45983         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45984         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45985         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45986         (glthread_cond_init_func, glthread_cond_wait_func,
45987         glthread_cond_timedwait_func, glthread_cond_signal_func,
45988         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45989         Reimplemented on the basis of gl_linked_waitqueue_t.
45990         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45991         gl_waitqueue_t.
45992         (gl_rwlock_t): Update.
45993         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45994
45995 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45996
45997         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45998         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45999
46000 2008-10-17  Jim Meyering  <meyering@redhat.com>
46001
46002         ignore-value: new module
46003         * modules/ignore-value: New file.
46004         * lib/ignore-value.h: New file.
46005         * MODULES.html.sh (Compiler warning management): New section,
46006         just for this module.  More to come.
46007
46008 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46009
46010         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46011         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46012         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46013
46014 2008-10-16  Jim Meyering  <meyering@redhat.com>
46015
46016         openat-die.c: avoid 'no previous prototype' warning
46017         * lib/openat-die.c: Include "openat.h".
46018         Reported by Reuben Thomas <rrt@sc3d.org>.
46019
46020 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46021
46022         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46023         * lib/netdb.in.h: Fix typo.
46024         Reported by Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/netdb.in.h: Include sys/socket.h for platforms without
46027         netdb.h, to get structures like hostent on MinGW.
46028         * modules/netdb (Depends-on): Add sys_socket.
46029
46030 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46031
46032         * modules/netdb, modules/netdb-tests: New file.
46033         * m4/netdb_h.m4: New file.
46034         * lib/netdb.in.h: Add, currently just an empty file pending
46035         definitions.
46036         * tests/test-netdb.c: New file.
46037         * doc/posix-headers/netdb.texi: Mention that we replace it if
46038         needed.
46039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46040         netdb.
46041
46042 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46043
46044         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46045         with code.
46046
46047 2008-10-13  Bruno Haible  <bruno@clisp.org>
46048
46049         * lib/glthread/cond.c (glthread_cond_wait_func,
46050         glthread_cond_timedwait_func): Add a comment.
46051
46052 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46053
46054         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46055         * tests/test-select.c: Likewise,
46056
46057 2008-10-13  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/glthread/cond.c (glthread_cond_wait_func,
46060         glthread_cond_timedwait_func): Fix variable name.
46061         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46062
46063 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46064
46065         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46066         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46067         struct sockaddr.sa_len.
46068         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46069
46070 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46071
46072         * build-aux/pmccabe2html: Add css and css_url parameters.
46073
46074 2008-10-12  Bruno Haible  <bruno@clisp.org>
46075
46076         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46077         calling aclx_get.
46078         Reported by Rainer Tammer <tammer@tammer.net>.
46079
46080 2008-10-12  Bruno Haible  <bruno@clisp.org>
46081
46082         Use msvcrt aware primitives for creation/termination of Win32 threads.
46083         * lib/glthread/thread.c: Include <process.h>.
46084         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46085         (wrapper_func): Update signature.
46086         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46087
46088 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46089             Bruno Haible  <bruno@clisp.org>
46090
46091         Provide a Win32 implementation of the 'cond' module.
46092         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46093         * lib/glthread/cond.c (glthread_cond_init_func,
46094         glthread_cond_wait_func, glthread_cond_timedwait_func,
46095         glthread_cond_signal_func, glthread_cond_broadcast_func,
46096         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46097         * modules/cond (Dependencies): Add gettimeofday.
46098
46099 2008-10-11  Bruno Haible  <bruno@clisp.org>
46100
46101         Make sleep work on older versions of mingw.
46102         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46103         only whether it exists.
46104         * doc/posix-functions/sleep.texi: Mention the problem with older
46105         versions of mingw.
46106
46107 2008-10-11  Bruno Haible  <bruno@clisp.org>
46108
46109         New module 'shutdown'.
46110         * modules/shutdown: New file.
46111         * lib/sys_socket.in.h (shutdown): New declaration.
46112         * lib/winsock.c (shutdown): New function.
46113         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46114         GNULIB_SHUTDOWN.
46115         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46116         * doc/posix-functions/shutdown.texi: Document the new module.
46117
46118 2008-10-11  Jim Meyering  <meyering@redhat.com>
46119
46120         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46121
46122 2008-10-11  Bruno Haible  <bruno@clisp.org>
46123
46124         New module 'fclose'.
46125         * modules/fclose: New file.
46126         * lib/stdio.in.h (fclose): New declaration.
46127         * lib/fclose.c: New file.
46128         * m4/fclose.m4: New file.
46129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46130         REPLACE_FCLOSE.
46131         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46132         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46133         REPLACE_FCLOSE.
46134         * modules/close (Depends-on): fclose.
46135         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46136
46137 2008-10-11  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46140         set errno and don't call _close.
46141
46142 2008-10-10  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46145         ACL, not afterwards. Fixes test failure on Cygwin.
46146
46147 2008-10-09  Ben Pfaff  <blp@gnu.org>
46148
46149         * build-aux/announce-gen: Fix gnulib version related part of usage
46150         message.  Die with a useful error message if no tarballs are
46151         found.
46152
46153 2008-10-10  Jim Meyering  <meyering@redhat.com>
46154
46155         bootstrap: use git's --depth=N option only if it's supported
46156         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46157         recognize the --depth option.  Reported by Pádraig Brady.
46158
46159 2008-10-09  Bruno Haible  <bruno@clisp.org>
46160
46161         New module 'ioctl'.
46162         * modules/ioctl: New file.
46163         * lib/sys_socket.in.h (ioctl): Remove declaration.
46164         * lib/winsock.c: Include <sys/ioctl.h>.
46165         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46166         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46167         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46168         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46169         * doc/posix-functions/ioctl.texi: Mention the new module.
46170
46171 2008-10-09  Bruno Haible  <bruno@clisp.org>
46172
46173         New module 'sys_ioctl'.
46174         * lib/sys_ioctl.in.h: New file.
46175         * m4/sys_ioctl_h.m4: New file.
46176         * modules/sys_ioctl: New file.
46177         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46178
46179 2008-10-09  Bruno Haible  <bruno@clisp.org>
46180
46181         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46182         * lib/winsock.c: Include <stdarg.h>.
46183         (rpl_ioctl): Change to second argument 'int' and then varargs.
46184
46185 2008-10-09  Bruno Haible  <bruno@clisp.org>
46186
46187         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46188         when the sys_socket module is present and the system has <winsock2.h>.
46189
46190 2008-10-09  Bruno Haible  <bruno@clisp.org>
46191
46192         * doc/posix-functions/close.texi: Mention module 'close' instead of
46193         module 'sys_socket'.
46194
46195 2008-10-09  Bruno Haible  <bruno@clisp.org>
46196
46197         * doc/glibc-headers/sys_ioctl.texi: New file.
46198         * doc/gnulib.texi: Include it.
46199
46200 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46201             Bruno Haible  <bruno@clisp.org>
46202
46203         Combine the two replacements of 'close'.
46204         * lib/sys_socket.in.h (close): Define to a reminder to include
46205         <unistd.h>.
46206         (_gl_close_fd_maybe_socket): New declaration.
46207         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46208         * lib/winsock.c (close): Remove undefinition.
46209         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46210         needed for the gnulib module 'close'.
46211         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46212         define to an error symbol or to a warning, if suitable.
46213         * lib/close.c: Include <sys/socket.h>.
46214         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46215         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46216         UNISTD_H_HAVE_WINSOCK2_H.
46217         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46219         UNISTD_H_HAVE_WINSOCK2_H.
46220         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46221         (configure.ac): Set a module indicator.
46222         (Makefile.am): Substitute GNULIB_CLOSE.
46223         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46224         * modules/poll-tests (Depends-on): Add close.
46225         * modules/select-tests (Depends-on): Likewise.
46226
46227 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46228             Bruno Haible  <bruno@clisp.org>
46229
46230         New module 'close'.
46231         * modules/close: New file.
46232         * lib/unistd.in.h (close): Move declaration out of the
46233         FCHDIR_REPLACEMENT scope.
46234         (_gl_unregister_fd): New declaration.
46235         * lib/close.c: New file.
46236         * lib/fchdir.c (rpl_close): Remove function.
46237         * m4/close.m4: New file.
46238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46239         close.
46240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46241         REPLACE_CLOSE.
46242         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46243         REPLACE_CLOSE.
46244         * modules/fchdir (Depends-on): Add close.
46245
46246 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46247             Bruno Haible  <bruno@clisp.org>
46248
46249         * lib/fcntl.in.h (open): Simplify conditionals.
46250         (_gl_register_fd): New declaration.
46251         * lib/fchdir.c (rpl_open): Remove function.
46252         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46253         also.
46254         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46256         open.
46257
46258 2008-10-09  Jim Meyering  <meyering@redhat.com>
46259
46260         GNUmakefile: use the more name-space-friendly "_version"
46261         * top/GNUmakefile (_dummy): Update.
46262         (_version): Rename from "version".
46263
46264 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46265             Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46268         rpl_close.
46269         (_gl_register_fd): New function, extracted from rpl_open.
46270         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46271         (rpl_open, rpl_opendir): Use _gl_register_fd.
46272
46273 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46274
46275         Fix organization of 'open' replacement.
46276         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46277         (gl_FUNC_OPEN): Use it.
46278         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46279
46280 2008-10-08  Bruno Haible  <bruno@clisp.org>
46281
46282         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46283
46284 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46285
46286         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46287         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46288         listen).
46289
46290 2008-10-08  Eric Blake  <ebb9@byu.net>
46291
46292         GNUmakefile: add 'make version' target
46293         * top/GNUmakefile (_curr-ver): Split version update rules...
46294         (version): ...into a target.
46295
46296 2008-10-07  Bruno Haible  <bruno@clisp.org>
46297
46298         Use a more portable replacement expression for -0.0L.
46299         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46300         instead of -0.0L. Fix m4 quotation.
46301
46302         * tests/test-signbit.c: Include <float.h>.
46303         (minus_zero): New variable.
46304         (test_signbitl): Use minus_zero instead of -zero.
46305         * modules/signbit-tests (Depends-on): Add float.
46306
46307         * tests/test-ceill.c: Include <float.h>.
46308         (zero): Remove variable.
46309         (minus_zero): New variable.
46310         (main): Use minus_zero instead of -zero.
46311         * modules/ceill-tests (Depends-on): Add float.
46312
46313         * tests/test-floorl.c: Include <float.h>.
46314         (zero): Remove variable.
46315         (minus_zero): New variable.
46316         (main): Use minus_zero instead of -zero.
46317         * modules/floorl-tests (Depends-on): Add float.
46318
46319         * tests/test-roundl.c: Include <float.h>.
46320         (zero): Remove variable.
46321         (minus_zero): New variable.
46322         (main): Use minus_zero instead of -zero.
46323         * modules/roundl-tests (Depends-on): Add float.
46324
46325         * tests/test-truncl.c: Include <float.h>.
46326         (zero): Remove variable.
46327         (minus_zero): New variable.
46328         (main): Use minus_zero instead of -zero.
46329         * modules/truncl-tests (Depends-on): Add float.
46330
46331         * tests/test-frexpl.c (zero): Remove variable.
46332         (minus_zero): New variable.
46333         (main): Use minus_zero instead of -zero.
46334         * modules/frexpl-tests (Depends-on): Add float.
46335
46336         * tests/test-isnan.c (zerol): Remove variable.
46337         (minus_zerol): New variable.
46338         (test_long_double): Use minus_zerol instead of -zerol.
46339         * modules/isnan-tests (Depends-on): Add float.
46340
46341         * tests/test-isnanl.h (zero): Remove variable.
46342         (minus_zero): New variable.
46343         (main): Use minus_zero instead of -zero.
46344         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46345         * modules/isnanl-tests (Depends-on): Add float.
46346
46347         * tests/test-ldexpl.c (zero): Remove variable.
46348         (minus_zero): New variable.
46349         (main): Use minus_zero instead of -zero.
46350         * modules/ldexpl-tests (Depends-on): Add float.
46351
46352         * tests/test-snprintf-posix.h (zerol): Remove variable.
46353         (minus_zerol): New variable.
46354         (test_function): Use minus_zerol instead of -zerol.
46355         * modules/snprintf-posix-tests (Depends-on): Add float.
46356         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46357
46358         * tests/test-sprintf-posix.h (zerol): Remove variable.
46359         (minus_zerol): New variable.
46360         (test_function): Use minus_zerol instead of -zerol.
46361         * modules/sprintf-posix-tests (Depends-on): Add float.
46362         * modules/vsprintf-posix-tests (Depends-on): Add float.
46363
46364         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46365         (minus_zerol): New variable.
46366         (test_function): Use minus_zerol instead of -zerol.
46367         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46368
46369         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46370         (minus_zerol): New variable.
46371         (test_function): Use minus_zerol instead of -zerol.
46372         * modules/vasprintf-posix-tests (Depends-on): Add float.
46373
46374 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46375
46376         * MODULES.html.sh (Support for building documentation): Mention
46377         pmccabe2html.  Sort entries.
46378
46379         Add pmccabe2html module, from gnupdf.
46380         * build-aux/pmccabe.css: New file.
46381         * build-aux/pmccabe2html: New file.
46382         * m4/pmccabe2html.m4: New file.
46383         * modules/pmccabe2html: New file.
46384
46385 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46386
46387         flock: new module
46388         * MODULES.html.sh: Add to list of modules.
46389         * lib/flock.c: flock implementation for Windows and Unix systems
46390         which have fcntl.
46391         * doc/glibc-functions/flock.texi: Update documentation.
46392         * lib/sys_file.in.h: <sys/file.h> header file.
46393         * m4/flock.m4: M4 macros.
46394         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46395         * modules/flock: flock module.
46396         * modules/flock-tests: flock tests module.
46397         * modules/sys_file: sys/file.h module.
46398         * tests/test-flock.c: test suite for flock.
46399
46400 2008-10-06  Jim Meyering  <meyering@redhat.com>
46401
46402         bootstrap: check for LT_INIT more portably still ;-)
46403         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46404         Spotted by Bruno Haible.
46405
46406 2008-10-06  Eric Blake  <ebb9@byu.net>
46407
46408         test-signbit: avoid tripping Irix cc bug on -0.0L
46409         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46410         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46411         entire testsuite consistent and avoids an Irix 6.2 bug.
46412
46413 2008-10-05  Bruno Haible  <bruno@clisp.org>
46414             Jim Meyering  <jim@meyering.net>
46415
46416         Add an option for ignoring EPIPE during close_stdout.
46417         * lib/closeout.h: Include <stdbool.h>.
46418         (close_stdout_set_ignore_EPIPE): New declaration.
46419         * lib/closeout.c: Include <stdbool.h>.
46420         (ignore_EPIPE): New variable.
46421         (close_stdout_set_ignore_EPIPE): New function.
46422         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46423         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46424         failure.
46425         * modules/closeout (Depends-on): Add stdbool.
46426
46427 2008-10-05  Bruno Haible  <bruno@clisp.org>
46428
46429         * modules/accept: New file.
46430         * modules/bind: New file.
46431         * modules/connect: New file.
46432         * modules/getpeername: New file.
46433         * modules/getsockname: New file.
46434         * modules/getsockopt: New file.
46435         * modules/listen: New file.
46436         * modules/recv: New file.
46437         * modules/recvfrom: New file.
46438         * modules/send: New file.
46439         * modules/sendto: New file.
46440         * modules/setsockopt: New file.
46441         * modules/socket: New file.
46442         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46443         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46444         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46445         the particular module is requested. Add a link warning when the
46446         particular module is not requested.
46447         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46448         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46449         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46450         the particular module is requested.
46451         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46452         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46453         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46454         * modules/sys_socket (Depends-on): Add link-warning.
46455         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46456         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46457         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46458         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46459         GL_LINK_WARNING.
46460         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46461         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46462         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46463         * doc/posix-functions/getpeername.texi: Mention the new module
46464         'getpeername'.
46465         * doc/posix-functions/getsockname.texi: Mention the new module
46466         'getsockname'.
46467         * doc/posix-functions/getsockopt.texi: Mention the new module
46468         'getsockopt'.
46469         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46470         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46471         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46472         * doc/posix-functions/send.texi: Mention the new module 'send'.
46473         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46474         * doc/posix-functions/setsockopt.texi: Mention the new module
46475         'setsockopt'.
46476         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46477         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46478         listen, connect, accept.
46479         * modules/select-tests (Depends-on): Likewise.
46480
46481 2008-10-05  Bruno Haible  <bruno@clisp.org>
46482
46483         * lib/winsock.c (strerror): Remove unused #undef.
46484         (rpl_close): Remove unused local variable.
46485
46486         * modules/sys_socket (Depends-on); Add errno.
46487
46488 2008-10-05  Bruno Haible  <bruno@clisp.org>
46489
46490         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46491         (select): Add a link warning when the 'select' module is not used.
46492         * modules/sys_select (Depends-on): Add link-warning.
46493         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46494         Suggested by Paolo Bonzini.
46495
46496 2008-10-05  Jim Meyering  <meyering@redhat.com>
46497
46498         bootstrap: check for LT_INIT more portably
46499         * build-aux/bootstrap: Avoid using grep -E, since it's not
46500         portable enough.  Suggestion from Bruno Haible.
46501
46502 2008-10-05  Bruno Haible  <bruno@clisp.org>
46503
46504         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46505         as being fixed by gnulib.
46506
46507 2008-10-05  Bruno Haible  <bruno@clisp.org>
46508
46509         * modules/select-tests: New file, mostly copied from
46510         modules/sys_select-tests.
46511         * tests/test-select.c: New file, mostly copied from
46512         tests/test-sys_select.c.
46513         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46514         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46515         (Makefile.am): Remove test_sys_select_LDADD.
46516
46517         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46518         to an undefined symbol, for an error message.
46519         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46520         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46521         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46522         winsock-select.c here.
46523         * modules/sys_select (Files): Remove lib/winsock-select.c.
46524         (Depends-on): Remove alloca.
46525         (Makefile.am): Substitute GNULIB_SELECT.
46526         * modules/select: New file.
46527         * doc/posix-functions/select.texi: Update.
46528
46529 2008-10-05  Bruno Haible  <bruno@clisp.org>
46530
46531         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46532         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46533         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46534         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46535         getdtablesize.
46536         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46537         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46538
46539 2008-10-05  Bruno Haible  <bruno@clisp.org>
46540
46541         * modules/getdtablesize-tests: New file.
46542         * tests/test-getdtablesize.c: New file.
46543
46544         New module 'getdtablesize'.
46545         * lib/unistd.in.h (getdtablesize): New declaration.
46546         * lib/getdtablesize.c: New file.
46547         * m4/getdtablesize.m4: New file.
46548         * modules/getdtablesize: New file.
46549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46550         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46551         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46552         HAVE_GETDTABLESIZE.
46553         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46554
46555 2008-10-05  Bruno Haible  <bruno@clisp.org>
46556
46557         * modules/sched (Makefile.am): Fix typo.
46558         Reported by Simon Josefsson.
46559
46560 2008-10-05  Jim Meyering  <meyering@redhat.com>
46561
46562         bootstrap: check for LT_INIT, too
46563         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46564         are deprecated.  Suggestion from Ralf Wildenhues.
46565
46566 2008-10-05  Bruno Haible  <bruno@clisp.org>
46567
46568         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46569         overriding them by ours.
46570         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46571
46572 2008-10-05  Jim Meyering  <meyering@redhat.com>
46573
46574         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46575         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46576         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46577
46578 2008-10-04  Bruno Haible  <bruno@clisp.org>
46579
46580         * modules/dup2 (License): Change to LGPLv2+.
46581         * modules/sleep (License): Likewise.
46582         * modules/perror (License): Likewise.
46583         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46584         Blake.
46585         * modules/signal (License): Likewise.
46586         * modules/sigprocmask (License): Likewise.
46587         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46588         Meyering.
46589
46590 2008-10-04  Bruno Haible  <bruno@clisp.org>
46591
46592         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46593         Reported by Rainer Tammer <tammer@tammer.net>.
46594
46595 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46596             Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46599         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46600         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46601
46602 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46603
46604         filevercmp: new module
46605         * lib/filevercmp.h: New function filevercmp comparing version strings.
46606         * lib/filevercmp.c: Implementation of filevercmp function.
46607         * modules/filevercmp: Module metadata.
46608         * tests/test-filevercmp.c: Unit test for new module.
46609         * modules/filevercmp-tests: Unit test metadata.
46610         * MODULES.html.sh: Add filevercmp module.
46611
46612 2008-10-03  Bruno Haible  <bruno@clisp.org>
46613
46614         * lib/c-ctype.h: Add comment.
46615         Reported by Jim Meyering.
46616
46617 2008-10-02  Bruno Haible  <bruno@clisp.org>
46618
46619         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46620
46621 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46622
46623         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46624         name of bootstrap.conf accordingly.
46625
46626 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46627
46628         * build-aux/bootstrap: Install git-merge-changelog configuration
46629         items into .gitconfig if needed.
46630
46631 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46632
46633         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46634         git repository, and initialize/update it accordingly.
46635
46636 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46637
46638         * modules/fsync-tests: New file.
46639         * tests/test-fsync.c: New file.
46640
46641         New module 'fsync'.
46642         * lib/fsync.c: New file.
46643         * m4/fsync.m4: New file.
46644         * modules/fsync: New file.
46645         * lib/unistd.in.h (fsync): New declaration.
46646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46647         GNULIB_FSYNC and HAVE_FSYNC.
46648         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46649         * MODULES.html.sh (posix_functions): Add fsync.
46650         * doc/posix-functions/fsync.texi: Mention the new module.
46651
46652 2008-10-02  Jim Meyering  <meyering@redhat.com>
46653
46654         fts.c: sync with similar code from coreutils' remove.c
46655         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46656         Guard also with "#if defined __linux__", since for now at least,
46657         this code is Linux-kernel-specific.
46658
46659 2008-10-02  Jim Meyering  <meyering@redhat.com>
46660
46661         fts: bug fixes
46662         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46663         Include <sys/vfs.h>, not <sys/statfs.h>.
46664
46665         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46666         Include <sys/vfs.h>, not <sys/statfs.h>.
46667
46668 2008-10-01  Bruno Haible  <bruno@clisp.org>
46669
46670         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46671         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46672         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46673         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46674         * doc/posix-functions/posix_spawnp.texi: Likewise.
46675         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46676         whether posix_spawn actually works.
46677         * m4/pipe.m4 (gl_PIPE): Likewise.
46678         * modules/execute (Files): Add m4/posix_spawn.m4.
46679         * modules/pipe (Files): Add m4/posix_spawn.m4.
46680         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46681
46682 2008-10-01  Jim Meyering  <meyering@redhat.com>
46683
46684         remove trailing spaces
46685         * NEWS: Likewise.
46686         * lib/poll.c (poll): Likewise.
46687         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46688         * lib/winsock.c (rpl_close): Likewise.
46689         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46690         * modules/yield: Likewise.
46691         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46692         * tests/test-sys_select.c (connect_to_socket): Likewise.
46693
46694         fts.c: adjust a new interface to be more generally useful
46695         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46696         (fts_build): Adjust caller.
46697
46698 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46699
46700         * modules/cond-tests: New file.
46701         * tests/test-cond.c: New file.
46702
46703 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46704             Bruno Haible  <bruno@clisp.org>
46705
46706         * modules/cond (Dependencies): Add errno, time.
46707         * lib/glthread/cond.h: Include <time.h>.
46708         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46709         across platforms.
46710
46711 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46712             Bruno Haible  <bruno@clisp.org>
46713
46714         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46715
46716 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46717             Bruno Haible  <bruno@clisp.org>
46718
46719         * modules/tls-tests (Depends-on): Add thread, yield.
46720         (configure.ac): Remove all checks.
46721         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46722         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46723         gl_thread_self): Remove definitions. Include glthread/thread.h and
46724         glthread/yield.h instead.
46725         (test_tls): Pass an additional NULL argument to gl_thread_join.
46726
46727 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46728             Bruno Haible  <bruno@clisp.org>
46729
46730         * modules/lock-tests (Depends-on): Add thread, yield.
46731         (configure.ac): Remove all checks.
46732         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46733         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46734         gl_thread_self): Remove definitions. Include glthread/thread.h and
46735         glthread/yield.h instead.
46736         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46737         additional NULL argument to gl_thread_join.
46738
46739 2008-09-30  Bruno Haible  <bruno@clisp.org>
46740
46741         Fix the Win32 implementation of the 'thread' module.
46742         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46743         pointer type.
46744         (gl_thread_self): Invoke gl_thread_self_func.
46745         (gl_thread_self_func): New declaration.
46746         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46747         (do_init_self_key, init_self_key): New functions.
46748         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46749         Remove some fields.
46750         (running_threads, running_lock): Remove variables.
46751         (get_current_thread_handle): New function.
46752         (gl_thread_self_func, wrapper_func, glthread_create_func,
46753         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46754         simplified.
46755
46756 2008-09-30  Bruno Haible  <bruno@clisp.org>
46757
46758         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46759         files.
46760
46761 2008-09-30  Jim Meyering  <meyering@redhat.com>
46762
46763         fts.m4: correct the test for statfs.f_type
46764         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46765         when checking for statfs.f_type.
46766
46767 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46768
46769         tests: avoid some compiler warnings
46770         * tests/test-memchr.c (main): Pass NULL indirectly.
46771         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46772
46773 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46774
46775         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46776         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46777         exactly specified dayshifts.
46778         (dayshift): New rule.
46779         (rel): Add dayshift.
46780         (relative_time_table) [tomorrow, yesterday, today, now]:
46781         Use tDAY_SHIFT in place of tDAY_UNIT.
46782         * tests/test-getdate.c: Add tests for now-disallowed countable
46783         dayshifts, e.g., "4 yesterday ago".
46784
46785 2008-09-29  Bruno Haible  <bruno@clisp.org>
46786
46787         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46788         * tests/test-posix_spawn1.in.sh: Renamed from
46789         tests/test-posix_spawn.in.sh.
46790         * tests/test-posix_spawn2.c: New file.
46791         * tests/test-posix_spawn2.in.sh: New file.
46792         * modules/posix_spawnp-tests (Files): Update.
46793         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46794
46795 2008-09-29  Bruno Haible  <bruno@clisp.org>
46796
46797         Propagate effects of putenv/setenv/unsetenv to child processes.
46798         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46799         * lib/pipe.c (create_pipe): Likewise.
46800
46801 2008-09-29  Bruno Haible  <bruno@clisp.org>
46802
46803         Enable use of shell scripts as executables in mingw.
46804         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46805         run the program as a shell script.
46806         * lib/pipe.c (create_pipe): Likewise.
46807         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46808         resulting array.
46809
46810 2008-09-29  Eric Blake  <ebb9@byu.net>
46811
46812         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46813
46814 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46815
46816         * doc/posix-functions/accept.texi: Update mingw problems.
46817         * doc/posix-functions/bind.texi: Update mingw problems.
46818         * doc/posix-functions/close.texi: Update mingw problems.
46819         * doc/posix-functions/connect.texi: Update mingw problems.
46820         * doc/posix-functions/getpeername.texi: Update mingw problems.
46821         * doc/posix-functions/getsockname.texi: Update mingw problems.
46822         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46823         * doc/posix-functions/ioctl.texi: Update mingw problems.
46824         * doc/posix-functions/listen.texi: Update mingw problems.
46825         * doc/posix-functions/recv.texi: Update mingw problems.
46826         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46827         * doc/posix-functions/select.texi: Update mingw problems.
46828         * doc/posix-functions/send.texi: Update mingw problems.
46829         * doc/posix-functions/sendto.texi: Update mingw problems.
46830         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46831         * doc/posix-functions/socket.texi: Update mingw problems.
46832
46833 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46834             Bruno Haible  <bruno@clisp.org>
46835
46836         * lib/sys_select.in.h: Include sys/time.h.
46837         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46838         * modules/sys_select: Depend on sys_time.
46839         * tests/test-sys_select.c: Test that sys/select.h defines struct
46840         timeval fully.
46841
46842 2008-09-29  Bruno Haible  <bruno@clisp.org>
46843
46844         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46845         * lib/sys_select.in.h: Likewise.
46846
46847 2008-09-29  Bruno Haible  <bruno@clisp.org>
46848
46849         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46850
46851 2008-09-29  Bruno Haible  <bruno@clisp.org>
46852
46853         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46854         Set LIBSOCKET instead of augmenting LIBS.
46855         * modules/sockets (Link): New section.
46856         * modules/sockets-tests (test_sockets_LDADD): New variable.
46857         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46858         * modules/poll-tests (test_poll_LDADD): New variable.
46859         * NEWS: Document the change.
46860
46861 2008-09-29  Bruno Haible  <bruno@clisp.org>
46862
46863         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46864         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46865         ARPA_INET_H directly.
46866         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46867
46868 2008-09-28  Bruno Haible  <bruno@clisp.org>
46869
46870         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46871         from gl_HEADER_SYS_SOCKET.
46872         (gl_HEADER_SYS_SOCKET): Invoke it.
46873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46874
46875 2008-09-28  Bruno Haible  <bruno@clisp.org>
46876
46877         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46878         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46879         Needed on OSF/1 4.0.
46880
46881 2008-09-28  Bruno Haible  <bruno@clisp.org>
46882
46883         Override open more carefully.
46884         * lib/open.c (orig_open): New function.
46885         (rpl_open): Use orig_open instead of open.
46886         * lib/fcntl.in.h: Add special invocation convention.
46887         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46888         (gl_FUNC_OPEN): Invoke it.
46889
46890         Override freopen more carefully.
46891         * lib/freopen.c (orig_freopen): New function.
46892         (rpl_freopen): Use orig_freopen instead of freopen.
46893         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46894         (gl_FUNC_FREOPEN): Invoke it.
46895
46896         Override fopen more carefully.
46897         * lib/fopen.c (orig_fopen): New function.
46898         (rpl_fopen): Use orig_fopen instead of fopen.
46899         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46900         (gl_FUNC_FOPEN): Invoke it.
46901         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46902
46903 2008-09-28  Bruno Haible  <bruno@clisp.org>
46904
46905         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46906         SIGPIPE.
46907
46908 2008-09-28  Bruno Haible  <bruno@clisp.org>
46909
46910         * tests/test-sigaction.c (handler, main): Disable the check whether
46911         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46912         glibc systems with LinuxThreads.
46913
46914 2008-09-28  Bruno Haible  <bruno@clisp.org>
46915
46916         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46917
46918         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46919         with AIX xlc.
46920         * lib/fcntl.in.h (open): Likewise.
46921         Reported by Rainer Tammer <tammer@tammer.net>.
46922
46923 2008-09-28  Bruno Haible  <bruno@clisp.org>
46924
46925         * modules/posix_spawnp-tests: New file.
46926         * tests/test-posix_spawn.c: New file.
46927         * tests/test-posix_spawn.in.sh: New file.
46928
46929         New module 'posix_spawnp'.
46930         * modules/posix_spawnp: New file.
46931         * lib/spawnp.c: New file, from GNU libc with modifications.
46932         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46933
46934         New module 'posix_spawn'.
46935         * modules/posix_spawn: New file.
46936         * lib/spawn.c: New file, from GNU libc with modifications.
46937         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46938
46939         New module 'posix_spawnattr_destroy'.
46940         * modules/posix_spawnattr_destroy: New file.
46941         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46942         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46943         module.
46944
46945         New module 'posix_spawnattr_setsigmask'.
46946         * modules/posix_spawnattr_setsigmask: New file.
46947         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46948         modifications.
46949         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46950         new module.
46951
46952         New module 'posix_spawnattr_getsigmask'.
46953         * modules/posix_spawnattr_getsigmask: New file.
46954         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46955         modifications.
46956         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46957         new module.
46958
46959         New module 'posix_spawnattr_setsigdefault'.
46960         * modules/posix_spawnattr_setsigdefault: New file.
46961         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46962         modifications.
46963         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46964         new module.
46965
46966         New module 'posix_spawnattr_getsigdefault'.
46967         * modules/posix_spawnattr_getsigdefault: New file.
46968         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46969         modifications.
46970         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46971         new module.
46972
46973         New module 'posix_spawnattr_setschedpolicy'.
46974         * modules/posix_spawnattr_setschedpolicy: New file.
46975         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46976         modifications.
46977         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46978         new module.
46979
46980         New module 'posix_spawnattr_getschedpolicy'.
46981         * modules/posix_spawnattr_getschedpolicy: New file.
46982         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46983         modifications.
46984         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46985         new module.
46986
46987         New module 'posix_spawnattr_setschedparam'.
46988         * modules/posix_spawnattr_setschedparam: New file.
46989         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46990         modifications.
46991         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46992         new module.
46993
46994         New module 'posix_spawnattr_getschedparam'.
46995         * modules/posix_spawnattr_getschedparam: New file.
46996         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46997         modifications.
46998         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46999         new module.
47000
47001         New module 'posix_spawnattr_setpgroup'.
47002         * modules/posix_spawnattr_setpgroup: New file.
47003         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47004         modifications.
47005         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47006         module.
47007
47008         New module 'posix_spawnattr_getpgroup'.
47009         * modules/posix_spawnattr_getpgroup: New file.
47010         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47011         modifications.
47012         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47013         module.
47014
47015         New module 'posix_spawnattr_setflags'.
47016         * modules/posix_spawnattr_setflags: New file.
47017         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47018         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47019         module.
47020
47021         New module 'posix_spawnattr_getflags'.
47022         * modules/posix_spawnattr_getflags: New file.
47023         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47024         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47025         module.
47026
47027         New module 'posix_spawnattr_init'.
47028         * modules/posix_spawnattr_init: New file.
47029         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47030         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47031         module.
47032
47033         New module 'posix_spawn_file_actions_destroy'.
47034         * modules/posix_spawn_file_actions_destroy: New file.
47035         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47036         modifications.
47037         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47038         the new module.
47039
47040         New module 'posix_spawn_file_actions_addopen'.
47041         * modules/posix_spawn_file_actions_addopen: New file.
47042         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47043         modifications.
47044         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47045         the new module.
47046
47047         New module 'posix_spawn_file_actions_adddup2'.
47048         * modules/posix_spawn_file_actions_adddup2: New file.
47049         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47050         modifications.
47051         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47052         the new module.
47053
47054         New module 'posix_spawn_file_actions_addclose'.
47055         * modules/posix_spawn_file_actions_addclose: New file.
47056         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47057         modifications.
47058         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47059         the new module.
47060
47061         New module 'posix_spawn_file_actions_init'.
47062         * modules/posix_spawn_file_actions_init: New file.
47063         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47064         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47065         new module.
47066
47067         New module 'posix_spawn-internal'.
47068         * modules/posix_spawn-internal: New file.
47069         * lib/spawn_int.h: New file, from GNU libc with modifications.
47070         * lib/spawni.c: New file, from GNU libc with modifications.
47071         * m4/posix_spawn.m4: New file.
47072
47073         New module 'spawn'.
47074         * modules/spawn: New file.
47075         * lib/spawn.in.h: New file, from GNU libc with modifications.
47076         * m4/spawn_h.m4: New file.
47077         * doc/posix-headers/spawn.texi: Mention the new module.
47078
47079 2008-09-28  Bruno Haible  <bruno@clisp.org>
47080
47081         * modules/sched-tests: New file.
47082         * tests/test-sched.c: New file.
47083
47084         New module 'sched'.
47085         * modules/sched: New file.
47086         * lib/sched.in.h: New file.
47087         * m4/sched_h.m4: New file.
47088         * doc/posix-headers/sched.texi: Mention the new module.
47089
47090 2008-09-27  Eric Blake  <ebb9@byu.net>
47091
47092         Fix previous patch, and tweak references to $0.
47093         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47094         (func_version, func_gnulib_dir): Don't call this program
47095         gnulib-tool.
47096         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47097         with using $0 in function.
47098         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47099         (func_fatal_error): Reuse the name the user invoked us with.
47100
47101 2008-09-27  Bruno Haible  <bruno@clisp.org>
47102
47103         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47104         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47105         (gl_ICONV_H): Not here.
47106         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47107         instead of assigning ICONV_H directly.
47108
47109         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47111         WCHAR_H directly.
47112
47113 2008-09-27  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47116         * modules/arpa_inet (Depends-on): Add link-warning.
47117         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47118         * modules/unistd (Makefile.am): Likewise.
47119
47120 2008-09-26  Bruno Haible  <bruno@clisp.org>
47121
47122         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47123         variables.
47124         (func_version): Essentially copied from gnulib-tool.
47125         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47126         func_readlink): Copied from gnulib-tool.
47127
47128 2008-09-26  Bruno Haible  <bruno@clisp.org>
47129
47130         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47131         invoking git-version-gen.
47132
47133 2008-09-26  Bruno Haible  <bruno@clisp.org>
47134
47135         * posix-modules: Update to directory names changed on 2008-01-19.
47136         Remove commas in output before splitting into words. No more need to
47137         avoid 'ftruncate' since 2007-02-19.
47138
47139 2008-09-26  Bruno Haible  <bruno@clisp.org>
47140
47141         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47142
47143 2008-09-26  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47146         * modules/fwriteerror (Depends-on): Add errno.
47147
47148 2008-09-26  Bruno Haible  <bruno@clisp.org>
47149
47150         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47151         * tests/test-vc-list-files-cvs.sh: Likewise.
47152
47153 2008-09-26  Bruno Haible  <bruno@clisp.org>
47154
47155         * doc/posix-headers/sys_resource.texi: Reorder items.
47156
47157 2008-09-26  Jim Meyering  <meyering@redhat.com>
47158
47159         fts: tweak inode comparison function
47160         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47161         inode numbers, as documented.
47162
47163         fts: sort dirent entries on inode number before traversing
47164         This avoids a quadratic, seek-related performance penalty when
47165         operating on a directory containing many entries (measurable at 10k;
47166         3.5 hours at 2 million entries with a cold cache) on certain types
47167         of file systems, including ext3 and ext4, but not tmpfs.
47168         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47169         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47170         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47171         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47172         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47173         (fts_build): Set the stat.st_ino member from D_INO.
47174         If it is likely to be useful, sort dirent entries on inode number.
47175
47176         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47177         and the struct statfs.f_type member.
47178         * modules/fts (Depends-on): Add d-ino.
47179
47180 2008-09-26  Bruno Haible  <bruno@clisp.org>
47181
47182         * modules/sigpipe-die (Depends-on): Add sigpipe.
47183
47184         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47185         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47186         and GNULIB_STDIO_H_SIGPIPE are set.
47187         * lib/stdio-write.c: New file.
47188         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47189         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47190         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47191         REPLACE_STDIO_WRITE_FUNCS.
47192         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47193         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47194         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47195         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47196         * modules/stdio (Files): Add lib/stdio-write.c.
47197         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47198         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47199         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47200         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47201         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47202         REPLACE_FPRINTF_POSIX.
47203         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47204         REPLACE_PRINTF_POSIX.
47205         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47206         REPLACE_VFPRINTF_POSIX.
47207         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47208         REPLACE_VPRINTF_POSIX.
47209         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47210         SIGPIPE issue.
47211         * doc/posix-functions/fputc.texi: Likewise.
47212         * doc/posix-functions/fputs.texi: Likewise.
47213         * doc/posix-functions/fwrite.texi: Likewise.
47214         * doc/posix-functions/printf.texi: Likewise.
47215         * doc/posix-functions/putc.texi: Likewise.
47216         * doc/posix-functions/putchar.texi: Likewise.
47217         * doc/posix-functions/puts.texi: Likewise.
47218         * doc/posix-functions/vfprintf.texi: Likewise.
47219         * doc/posix-functions/vprintf.texi: Likewise.
47220
47221         * modules/safe-write (Depends-on): Add write.
47222
47223         * modules/sigpipe-tests: New file.
47224         * tests/test-sigpipe.c: New file.
47225         * tests/test-sigpipe.sh: New file.
47226
47227         * modules/write: New file.
47228         * lib/unistd.in.h: Include <sys/types.h>.
47229         (write): New declaration.
47230         * lib/write.c: New file.
47231         * m4/write.m4: New file.
47232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47233         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47234         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47235         GNULIB_WRITE, REPLACE_WRITE.
47236         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47237         and the SIGPIPE issue.
47238
47239         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47240         (raise): New declaration.
47241         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47242         (ext_signal): New function.
47243         (rpl_raise): New function.
47244         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47245         GNULIB_SIGNAL_H_SIGPIPE.
47246         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47247         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47248
47249         * modules/sigpipe: New file.
47250         * m4/sigpipe.m4: New file.
47251
47252 2008-09-25  Derek Price  <derek@ximbiot.com>
47253             Bruno Haible  <bruno@clisp.org>
47254
47255         * gnulib-tool (func_import): Report all license incompatibilities, not
47256         just the first one.
47257
47258 2008-09-25  Bruno Haible  <bruno@clisp.org>
47259
47260         * gnulib-tool (func_import): When computing the edits, consider not
47261         only the Makefile.ams that exist but also those that will be generated.
47262
47263 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47264
47265         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47266         fixes gnulib-tool --test warning about duplicate dependency.
47267
47268 2008-09-25  Bruno Haible  <bruno@clisp.org>
47269
47270         * gnulib-tool: Don't ask the user to perform edits in the generated
47271         Makefile.ams.
47272         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47273         apply to the Makefile.am being generated.
47274         (func_emit_tests_Makefile_am): Execute edits that apply to the
47275         Makefile.am being generated.
47276         (func_import): Setup list of Makefile.am edits before emitting the
47277         Makefile.ams, not at the end.
47278         (func_create_testdir): Update.
47279         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47280
47281 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47282
47283         * gnulib-tool (func_import): Store the --tests-base option in the
47284         comment in gnulib-cache.m4.
47285
47286 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47287
47288         * NEWS: Document increased portability that sys_select now provides.
47289
47290         * lib/sys_select.in.h: Install select wrapper.
47291         * lib/sys_socket.in.h: Use more descriptive name when there is no
47292         select wrapper.
47293         * lib/winsock-select.c: New.
47294         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47295         Require gl_HEADER_SYS_SOCKET.
47296         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47297         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47298         * tests/test-sys_select.c: Add functional tests.
47299
47300 2008-09-24  Eric Blake  <ebb9@byu.net>
47301
47302         open, fopen: close fd leak in last patch
47303         * lib/open.c (rpl_open): Close fd before returning error.
47304         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47305         * doc/posix-functions/open.texi (open): Document that Irix also
47306         has the bug.
47307         * doc/posix-functions/fopen.texi (fopen): Likewise.
47308         Reported by Paolo Bonzini.
47309
47310 2008-09-24  Bruno Haible  <bruno@clisp.org>
47311
47312         Ensure that a filename ending in a slash cannot be used to access a
47313         non-directory.
47314         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47315         to check whether it's really a directory.
47316         * lib/fopen.c: Include fcntl.h, unistd.h.
47317         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47318         and fdopen().
47319         * modules/fopen (Depends-on): Add unistd.
47320         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47321         * tests/test-fopen.c (main): Likewise.
47322         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47323         * doc/posix-functions/fopen.texi: Likewise.
47324         Reported by Eric Blake.
47325
47326 2008-09-23  Eric Blake  <ebb9@byu.net>
47327
47328         c-stack: avoid compiler optimizations when provoking overflow
47329         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47330         recursion harder to optimize, to ensure a stack overflow occurs.
47331         * tests/test-c-stack.c (recurse): Likewise.
47332         Borrowed from libsigsegv.
47333
47334         c-stack: work around Irix sigaltstack bug
47335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47336         whether sigaltstack uses wrong end of stack_t (copied in part from
47337         libsigsegv).
47338         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47339         Irix bug, without requiring an over-allocation.
47340         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47341         bug.
47342
47343         fopen: document mingw bug on directories
47344         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47345         not allowing a stream visiting a directory, even though reading
47346         from such a stream is not portable.
47347
47348 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47349
47350         * lib/poll.c: Rewrite.
47351         * modules/poll: Depend on alloca.
47352
47353 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47354
47355         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47356         instead define prototypes for a full set of wrappers.  Ensure
47357         that Cygwin does not use the compatibility code, which is only
47358         for MinGW.
47359         * lib/winsock.c: New.
47360         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47361         * modules/sys_socket: Add lib/winsock.c.
47362
47363         * modules/poll-tests: Add errno and perror.
47364         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47365
47366 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47367
47368         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47369
47370 2008-09-23  Bruno Haible  <bruno@clisp.org>
47371
47372         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47373         * doc/glibc-functions/*: Likewise.
47374
47375 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47376
47377         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47378         success.
47379
47380 2008-09-22  Eric Blake  <ebb9@byu.net>
47381             Bruno Haible  <bruno@clisp.org>
47382
47383         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47384         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47385         supply %A but mishandle pseudo-NaN.
47386         Reported by Simon Josefsson.
47387
47388 2008-09-21  Bruno Haible  <bruno@clisp.org>
47389
47390         * tests/test-lock.c (main): Tweak skip message.
47391         * tests/test-tls.c (main): Likewise.
47392
47393 2008-09-21  Bruno Haible  <bruno@clisp.org>
47394
47395         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47396         whether 'struct sigaction' has sa_sigaction here...
47397         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47398         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47399
47400 2008-09-21  Bruno Haible  <bruno@clisp.org>
47401
47402         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47403         section.
47404         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47405         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47406         the new section.
47407         (Support for obsolete systems lacking POSIX:2001): New section.
47408         (String handling <string.h>): Move strdup to the new section.
47409         Suggested by Simon Josefsson and Paolo Bonzini.
47410
47411 2008-09-21  Bruno Haible  <bruno@clisp.org>
47412
47413         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47414         exponents in %e and %g results on 'long double'. Needed for mingw's
47415         improved *printf functions.
47416         * tests/test-vasprintf-posix.c (test_function): Likewise.
47417         * tests/test-snprintf-posix.h (test_function): Likewise.
47418         * tests/test-sprintf-posix.h (test_function): Likewise.
47419         Reported by Eric Blake.
47420
47421 2008-09-21  Bruno Haible  <bruno@clisp.org>
47422
47423         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47424         * tests/test-sprintf-posix.h (test_function): Likewise.
47425
47426 2008-09-21  Bruno Haible  <bruno@clisp.org>
47427
47428         * modules/getpass (Depends-on): Add strdup-posix.
47429
47430         New module 'strdup-posix'.
47431         * modules/strdup-posix: New file.
47432         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47433         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47435         REPLACE_STRDUP.
47436         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47437         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47439         strdup-posix.
47440
47441         * modules/strdup (Depends-on): Remove malloc-posix.
47442
47443 2008-09-20  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47446         Wildenhues.
47447
47448 2008-09-20  Bruno Haible  <bruno@clisp.org>
47449
47450         Ensure that wint_t gets defined on IRIX 5.3.
47451         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47452         * lib/wctype.in.h (wint_t): Likewise.
47453         (__wctype_wint_t): Remove type.
47454         (isw*): Use wint_t instead of __wctype_wint_t.
47455         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47456         * modules/wchar (Files): Add m4/wint_t.m4.
47457         (Makefile.am): Substitute HAVE_WINT_T.
47458         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47459         * tests/test-wctype.c: Check that wint_t is defined.
47460         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47461         * doc/posix-headers/wctype.texi: Likewise.
47462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47463
47464 2008-09-18  Bruno Haible  <bruno@clisp.org>
47465
47466         * gnulib-tool (func_exit): Update comment.
47467
47468 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47469
47470         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47471         assumes strdup exists and does not depend on strdup to return
47472         ENOMEM on out of memory conditions.
47473
47474 2008-09-18  Bruno Haible  <bruno@clisp.org>
47475
47476         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47477         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47478         digits for the exponent.
47479
47480 2008-09-18  Jim Meyering  <meyering@redhat.com>
47481             Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/vasnprintf.c (decimal_point_char): Define also if
47484         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47485
47486 2008-09-16  Bruno Haible  <bruno@clisp.org>
47487         and Eric Blake  <ebb9@byu.net>
47488
47489         vasnprintf: support Irix 5.3
47490         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47491         that mishandle long double infinity.
47492         Reported by Tom G. Christensen.
47493
47494 2008-09-16  Bruno Haible  <bruno@clisp.org>
47495
47496         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47497         Solaris 9.
47498         * doc/glibc-functions/alphasort.texi: Likewise.
47499         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47500
47501 2008-09-16  Jim Meyering  <meyering@redhat.com>
47502
47503         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47504         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47505         a umask modification leak out of a subshell.  Otherwise, the
47506         opensolaris /bin/sh would be accepted and thus cause unwarranted
47507         failures in the coreutils test suite.
47508
47509 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47510
47511         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47512         to succeed.
47513
47514 2008-09-16  Jim Meyering  <meyering@redhat.com>
47515
47516         avoid spurious test failure when library is built without ACL support
47517         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47518         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47519         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47520         * tests/test-copy-acl.sh: Likewise.
47521
47522 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47523
47524         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47525         based on character occurrence counts.
47526
47527 2008-09-15  Eric Blake  <ebb9@byu.net>
47528
47529         tests: avoid some compiler warnings
47530         * tests/test-memchr.c (main): Pass NULL indirectly.
47531         * tests/test-closein.c (main): Avoid unused variable.
47532
47533 2008-09-15  Bruno Haible  <bruno@clisp.org>
47534
47535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47536         are missing on OpenBSD 4.0 individually.
47537         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47538
47539 2008-09-15  Bruno Haible  <bruno@clisp.org>
47540
47541         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47542         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47543         * doc/posix-functions/perror.texi: Likewise.
47544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47545         is missing.
47546         Reported by Eric Blake.
47547
47548         * lib/errno.in.h: Use replacement values >= 2000.
47549         Reported by Eric Blake.
47550
47551 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47552
47553         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47554         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47555         limit.
47556         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47557         compareseq was aborted.
47558
47559 2008-09-14  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47562         yvec_edit_count.
47563         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47564         (fstrcmp_bounded): Simplify result computation accordingly.
47565
47566 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47567
47568         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47569         (fstrcmp): Define in terms of fstrcmp_bounded.
47570         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47571         lower_bound argument.
47572         Return quickly if the result is certainly < lower_bound.
47573         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47574
47575 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47576
47577         * lib/diffseq.h (EARLY_ABORT): New macro.
47578         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47579         evaluates to true.
47580
47581 2008-09-14  Bruno Haible  <bruno@clisp.org>
47582
47583         * modules/perror-tests: New file.
47584         * tests/test-perror.sh: New file.
47585         * tests/test-perror.c: New file.
47586
47587         New module 'perror'.
47588         * lib/stdio.in.h (perror): New declaration.
47589         * lib/perror.c: New file.
47590         * m4/perror.m4: New file.
47591         * modules/perror: New file.
47592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47593         * doc/posix-functions/perror.texi: Mention the perror module.
47594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47595         REPLACE_PERROR.
47596         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47597         REPLACE_PERROR.
47598
47599 2008-09-14  Bruno Haible  <bruno@clisp.org>
47600
47601         * modules/stdio (Makefile.am): Reorder to match the order in
47602         lib/stdio.in.h.
47603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47604
47605 2008-09-13  Bruno Haible  <bruno@clisp.org>
47606
47607         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47608
47609 2008-09-13  Bruno Haible  <bruno@clisp.org>
47610
47611         Extend strerror to cover the added errno values.
47612         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47613         (rpl_strerror): Provide error messages for the added errno values and
47614         for the WSA* values.
47615         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47616         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47617         strerror.
47618         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47619         * modules/strerror (Depends-on): Add errno.
47620         * doc/posix-functions/strerror.texi: Document the change.
47621         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47622         and EOVERFLOW.
47623
47624 2008-09-13  Bruno Haible  <bruno@clisp.org>
47625
47626         * modules/EOVERFLOW: Remove file.
47627         * m4/eoverflow.m4: Remove file.
47628         * modules/EOVERFLOW-tests: Remove file.
47629         * tests/test-EOVERFLOW.c: Remove file.
47630         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47631         * modules/ftell (Depends-on): Likewise.
47632         * modules/getdelim (Depends-on): Likewise.
47633         * modules/getugroups (Depends-on): Likewise.
47634         * modules/poll (Depends-on): Likewise.
47635         * modules/snprintf (Depends-on): Likewise.
47636         * modules/sprintf-posix (Depends-on): Likewise.
47637         * modules/vasnprintf (Depends-on): Likewise.
47638         * modules/vasprintf (Depends-on): Likewise.
47639         * modules/vfprintf-posix (Depends-on): Likewise.
47640         * modules/vsnprintf (Depends-on): Likewise.
47641         * modules/vsprintf-posix (Depends-on): Likewise.
47642         * modules/xvasprintf (Depends-on): Likewise.
47643         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47644         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47645         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47646         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47647         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47648         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47649         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47650         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47651         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47652         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47653         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47654         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47655         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47656         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47657         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47658         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47659         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47660         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47661         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47662         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47663         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47664         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47665         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47666         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47667         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47668         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47669         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47670         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47671         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47672         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47673         * MODULES.html.sh: Remove EOVERFLOW.
47674         * NEWS: Mention the change.
47675
47676 2008-09-13  Bruno Haible  <bruno@clisp.org>
47677
47678         * modules/errno-tests: New file.
47679         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47680
47681         * lib/errno.in.h: New file.
47682         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47683         * modules/errno: New file.
47684         * doc/posix-headers/errno.texi: Update documentation.
47685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47686
47687 2008-09-13  Bruno Haible  <bruno@clisp.org>
47688
47689         * tests/test-poll.c: Use #if for native Windows, rather than testing
47690         __MSVCRT__.
47691
47692 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47693             Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/glob.c: Don't include <pwd.h> on native Windows.
47696         (WINDOWS32): New macro.
47697         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47698
47699 2008-09-13  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47702         (ETIMEDOUT): Remove macro.
47703         (glthread_cond_timedwait_multithreaded): New declaration.
47704         (glthread_cond_timedwait): Use it.
47705         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47706         (glthread_cond_timedwait_multithreaded): New function.
47707
47708 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47709
47710         * modules/poll-tests: Do not check for io.h.
47711         * tests/test-poll.c: Check for __MSVCRT__ instead.
47712
47713 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47714
47715         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47716         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47717         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47718
47719 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47720
47721         * modules/poll-tests: New.
47722         * tests/test-poll.c: New.
47723
47724 2008-09-12  Eric Blake  <ebb9@byu.net>
47725
47726         frexp: test for NetBSD failure on -0.0
47727         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47728         not all, bugs from NetBSD 3.0 have been fixed.
47729         * doc/posix-functions/frexp.texi (frexp): Document bug.
47730         Reported by Thomas Klausner.
47731
47732         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47733         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47734         literal -0.0.
47735         Reported by Jonathan C. Patschke <jp@centtech.com>.
47736
47737 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47738
47739         * lib/glthread/cond.h: Use dummy implementation also if
47740         USE_WIN32_THREADS.
47741
47742 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47743
47744         * modules/fnmatch-posix (License): Change to LGPLv2+.
47745         * modules/fnmatch-gnu (License): Likewise.
47746
47747 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47748
47749         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47750
47751 2008-09-11  Jim Meyering  <meyering@redhat.com>
47752
47753         * users.txt: Add gtk-vnc.
47754
47755 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47756
47757         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47758         rotate amounts.
47759
47760         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47761         required for 16-bit and 8-bit rotates.
47762         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47763         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47764         UINT8_MAX instead of hard-coded constants.
47765         Suggested by Paul Eggert.
47766
47767 2008-09-07  Bruno Haible  <bruno@clisp.org>
47768
47769         * tests/test-striconveh.c (main): Check behaviour when converting from
47770         UTF-7.
47771
47772         Make striconveh work better with stateful encodings.
47773         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47774         that iconv does not increment the inptr when returning -1/EINVAL.
47775
47776 2008-09-07  Bruno Haible  <bruno@clisp.org>
47777
47778         * build-aux/config.rpath: Update according to libtool-2.2.6.
47779         * build-aux/config.libpath: Likewise.
47780
47781 2008-09-06  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47784         * lib/freadptr.c (freadptr): Likewise.
47785         * lib/freadseek.c (freadptrinc): Likewise.
47786         Reported by Simon Josefsson.
47787
47788 2008-09-06  Bruno Haible  <bruno@clisp.org>
47789
47790         * modules/freadptr (License): Change to LGPLv2+.
47791         * modules/freadseek (License): Likewise.
47792         Suggested by Eric Blake.
47793
47794         * modules/memchr2 (License): Change to LGPLv2+.
47795         Approved by Eric Blake.
47796
47797 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47798             Bruno Haible  <bruno@clisp.org>
47799
47800         Make gnulib-tool work with native 'sed' on AIX.
47801         * gnulib-tool (sed_noop): New variable.
47802         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47803         func_add_or_update, func_create_testdir): Use it to initialize sed
47804         script variables.
47805         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47806
47807 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47808             Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47811         also works after #include directives.
47812
47813 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47814
47815         getdate.y: reject an out-of-range timezone value
47816         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47817         the range [-24...+24].  When specified with only one or two digits,
47818         * tests/test-getdate.c: Tests for the fix.
47819         * doc/getdate.texi: Document this change.
47820
47821 2008-09-03  Bruno Haible  <bruno@clisp.org>
47822
47823         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47824
47825 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47826
47827         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47828         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47829         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47830         Blake <ebb9@byu.net>.
47831
47832         * tests/test-bitrotate.c: Add more test vectors.
47833
47834 2008-09-02  Eric Blake  <ebb9@byu.net>
47835
47836         vasnprintf-posix: handle large precision via %.*d
47837         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47838         when handling it ourselves.
47839         * tests/test-vasnprintf-posix.c (test_function): Add test.
47840         * tests/test-snprintf-posix.h (test_function): Likewise.
47841         * tests/test-sprintf-posix.h (test_function): Likewise.
47842         * tests/test-vasprintf-posix.c (test_function): Likewise.
47843         Reported by Alain Guibert.
47844
47845 2008-09-01  Eric Blake  <ebb9@byu.net>
47846
47847         c-stack: make configure-time check more robust
47848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47849         successful sigaction call.
47850         Reported by Tom G. Christensen.
47851
47852 2008-09-01  Bruno Haible  <bruno@clisp.org>
47853
47854         New module 'findprog-lgpl'.
47855         * modules/findprog-lgpl: New file.
47856         * lib/findprog-lgpl.c: New file.
47857         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47858         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47859         to decide whether to use strdup or xstrdup, concatenated_filename or
47860         xconcatenated_filename.
47861
47862 2008-09-01  Bruno Haible  <bruno@clisp.org>
47863
47864         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47865         'xconcat-filename' (GPL).
47866         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47867         (License): Change to LGPLv2+.
47868         * modules/xconcat-filename: New file.
47869         * lib/concat-filename.h (concatenated_filename): Change specification.
47870         (xconcatenated_filename): New declaration.
47871         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47872         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47873         memory situations.
47874         * lib/xconcat-filename.c: New file.
47875         * NEWS: Mention the change.
47876         * lib/findprog.c: Include concat-filename.h, not filename.h.
47877         (find_in_path): Use xconcatenated_filename instead of
47878         concatenated_filename.
47879         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47880         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47881         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47882         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47883         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47884         instead of concatenated_filename.
47885         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47886         (execute_java_class): Use xconcatenated_filename instead of
47887         concatenated_filename.
47888         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47889         * modules/javacomp (Depends-on): Likewise.
47890         * modules/javaexec (Depends-on): Likewise.
47891
47892 2008-09-01  Bruno Haible  <bruno@clisp.org>
47893
47894         Split module 'filename' into 'filename' and 'concat-filename'.
47895         * modules/filename: Keep only lib/filename.h.
47896         (License): Change to LGPLv2+.
47897         * modules/concat-filename: New file, extracted from modules/filename.
47898         * lib/filename.h (concatenated_filename): Remove declaration.
47899         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47900         * lib/concat-filename.c: Include concat-filename.h.
47901         * NEWS: Mention the change.
47902
47903 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47904
47905         * lib/bitrotate.h (rotl8, rotr8): Add.
47906
47907         * modules/bitrotate (configure.ac): Need
47908         AC_REQUIRE([AC_C_INLINE]).
47909         (Description): Mention stdint.h.  Reported by Bruno Haible
47910         <bruno@clisp.org>.
47911
47912         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47913         Paolo Bonzini <bonzini@gnu.org>.
47914
47915 2008-08-31  Bruno Haible  <bruno@clisp.org>
47916
47917         Assume Solaris specific bi-arch conventions on Solaris systems.
47918         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47919         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47920         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47921         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47922         like acl_libdirstem.
47923         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47924         acl_libdirstem.
47925         * NEWS: Mention the change.
47926         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47927
47928 2008-08-31  Jim Meyering  <meyering@redhat.com>
47929
47930         * lib/strftime.h: Add comments describing the two added arguments.
47931
47932         remove duplicate #include directives
47933         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47934         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47935
47936 2008-08-31  Bruno Haible  <bruno@clisp.org>
47937
47938         New module 'sigpipe-die'.
47939         * modules/sigpipe-die: New file.
47940         * lib/sigpipe-die.h: New file.
47941         * lib/sigpipe-die.c: New file.
47942         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47943
47944 2008-08-31  Bruno Haible  <bruno@clisp.org>
47945
47946         Don't override previously installed signal handlers.
47947         * lib/fatal-signal.c (saved_sigactions): New variable.
47948         (uninstall_handlers): Reset the signal to the saved handler, not
47949         to SIG_DFL (except when ignored).
47950         (install_handlers): Save the previous handlers.
47951
47952 2008-08-30  Bruno Haible  <bruno@clisp.org>
47953
47954         * gnulib-tool (func_reset_sigpipe): New function.
47955         (func_get_automake_snippet, func_modules_transitive_closure,
47956         func_import): Invoke it before a join command that reads from stdin,
47957         to avoid "echo: write error: Broken pipe" error messages on stderr.
47958         Reported by Sam Steingold <sds@gnu.org>.
47959
47960 2008-08-30  Bruno Haible  <bruno@clisp.org>
47961
47962         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47963         Code copied from m4/open.m4.
47964         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47965         access and the filename ends in a slash. Code copied from lib/open.c.
47966         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47967         * tests/test-fopen.c (main): Check against bug with trailing slash.
47968
47969 2008-08-29  Bruno Haible  <bruno@clisp.org>
47970
47971         Avoid some "gcc -pedantic" warnings.
47972         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47973         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47974         * lib/dirent.in.h: Likewise.
47975         * lib/fcntl.in.h: Likewise.
47976         * lib/float.in.h: Likewise.
47977         * lib/iconv.in.h: Likewise.
47978         * lib/inttypes.in.h: Likewise.
47979         * lib/locale.in.h: Likewise.
47980         * lib/math.in.h: Likewise.
47981         * lib/netinet_in.in.h: Likewise.
47982         * lib/search.in.h: Likewise.
47983         * lib/signal.in.h: Likewise.
47984         * lib/stdarg.in.h: Likewise.
47985         * lib/stdint.in.h: Likewise.
47986         * lib/stdio.in.h: Likewise.
47987         * lib/stdlib.in.h: Likewise.
47988         * lib/string.in.h: Likewise.
47989         * lib/strings.in.h: Likewise.
47990         * lib/sys_select.in.h: Likewise.
47991         * lib/sys_socket.in.h: Likewise.
47992         * lib/sys_stat.in.h: Likewise.
47993         * lib/sys_time.in.h: Likewise.
47994         * lib/sysexits.in.h: Likewise.
47995         * lib/time.in.h: Likewise.
47996         * lib/unistd.in.h: Likewise.
47997         * lib/wchar.in.h: Likewise.
47998         * lib/wctype.in.h: Likewise.
47999         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48000         * modules/fchdir (Makefile.am): Likewise.
48001         * modules/fcntl (Makefile.am): Likewise.
48002         * modules/float (Makefile.am): Likewise.
48003         * modules/iconv_open (Makefile.am): Likewise.
48004         * modules/inttypes (Makefile.am): Likewise.
48005         * modules/locale (Makefile.am): Likewise.
48006         * modules/math (Makefile.am): Likewise.
48007         * modules/netinet_in (Makefile.am): Likewise.
48008         * modules/search (Makefile.am): Likewise.
48009         * modules/signal (Makefile.am): Likewise.
48010         * modules/stdarg (Makefile.am): Likewise.
48011         * modules/stdint (Makefile.am): Likewise.
48012         * modules/stdio (Makefile.am): Likewise.
48013         * modules/stdlib (Makefile.am): Likewise.
48014         * modules/string (Makefile.am): Likewise.
48015         * modules/strings (Makefile.am): Likewise.
48016         * modules/sys_select (Makefile.am): Likewise.
48017         * modules/sys_socket (Makefile.am): Likewise.
48018         * modules/sys_stat (Makefile.am): Likewise.
48019         * modules/sys_time (Makefile.am): Likewise.
48020         * modules/sysexits (Makefile.am): Likewise.
48021         * modules/time (Makefile.am): Likewise.
48022         * modules/unistd (Makefile.am): Likewise.
48023         * modules/wchar (Makefile.am): Likewise.
48024         * modules/wctype (Makefile.am): Likewise.
48025         Reported by Reuben Thomas <rrt@sc3d.org>.
48026
48027 2008-08-29  Bruno Haible  <bruno@clisp.org>
48028
48029         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48030         any more.
48031
48032 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48033
48034         * MODULES.html.sh (Misc): Add bitrotate.
48035
48036         * modules/bitrotate: New file.
48037
48038         * lib/bitrotate.h: New file.
48039
48040         * modules/bitrotate-tests: New file.
48041
48042         * tests/test-bitrotate.c: New file.
48043
48044         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48045         on the bitrotate module.
48046
48047         * lib/arctwo.c: Use new bitrotate module.
48048
48049 2008-08-29  Jim Meyering  <meyering@redhat.com>
48050
48051         bootstrap: merge changes from coreutils
48052         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48053         of copied files.  Remove a kludge, now that this is fixed.
48054         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48055         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48056         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48057
48058 2008-08-29  Bruno Haible  <bruno@clisp.org>
48059
48060         * MODULES.html.sh: Remove --cvs-urls option.
48061
48062 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48063
48064         maint.mk: adjust to file name change
48065         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48066
48067 2008-08-28  Jim Meyering  <meyering@redhat.com>
48068
48069         * modules/getndelim2 (License): Relicense to LGPLv2+.
48070         Approved by Richard Stallman for the version of 1995, and by
48071         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48072
48073 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48074
48075         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48076         dummy if one is not available.  Do not touch them if
48077         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48078         (getc_maybe_unlocked): New.
48079         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48080
48081 2008-08-26  Eric Blake  <ebb9@byu.net>
48082
48083         doc/INSTALL: resync from autoconf
48084         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48085         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48086         moving...
48087         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48088         * INSTALL: Regenerate.
48089         * INSTALL.ISO: New file.
48090         * INSTALL.UTF-8: Likewise.
48091
48092 2008-08-26  Jim Meyering  <meyering@redhat.com>
48093
48094         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48095         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48096         these definitions conditional, so that they may be overridden, too.
48097
48098 2008-08-26  Bruno Haible  <bruno@clisp.org>
48099
48100         Generate INSTALL file variants with prettier quotes.
48101         * doc/Makefile (INSTALL_PRELUDE): New macro.
48102         (INSTALL): Use it.
48103         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48104
48105 2008-08-26  Bruno Haible  <bruno@clisp.org>
48106
48107         Run makeinfo in an English locale.
48108         * doc/Makefile (MAKEINFO): New variable.
48109
48110 2008-08-26  Bruno Haible  <bruno@clisp.org>
48111
48112         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48113         Suggested by Eric Blake.
48114
48115 2008-08-25  Bruno Haible  <bruno@clisp.org>
48116
48117         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48118
48119 2008-08-25  Eric Blake  <ebb9@byu.net>
48120
48121         c-stack: test that stack overflow can be caught
48122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48123         that platform allows handling stack overflow; at least OS/2 EMX
48124         has sigaltstack, but crashes before transferring control to
48125         handler on stack overflow.
48126         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48127         check for HAVE_STACK_OVERFLOW_HANDLING.
48128         Reported by Elbert Pol.
48129
48130 2008-08-25  Bruno Haible  <bruno@clisp.org>
48131
48132         * doc/posix-functions/strftime.texi: Fix description of strftime
48133         module.
48134
48135 2008-08-24  Bruno Haible  <bruno@clisp.org>
48136
48137         * tests/uniwidth/test-uc_width2.c: New file.
48138         * tests/uniwidth/test-uc_width2.sh: New file.
48139         * modules/uniwidth/width-tests (Files): Add the new files.
48140         (TESTS): Add uniwidth/test-uc_width2.sh.
48141         (TESTS_ENVIRONMENT): New variable.
48142         (check_PROGRAMS): Add test-uc_width2.
48143         (test_uc_width2_SOURCES): New variable.
48144
48145         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48146         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48147         not 0x00AB.
48148         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48149
48150 2008-08-22  Eric Blake  <ebb9@byu.net>
48151
48152         test-lock, test-tls: mention why a test is skipped
48153         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48154         skipped.
48155         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48156
48157         count-one-bits: relax license
48158         * modules/count-one-bits (License): Relicense to LGPLv2+.
48159         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48160
48161 2008-08-22  Andreas Schwab  <schwab@suse.de>
48162
48163         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48164         Remove spurious space in assignment.
48165
48166 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48167
48168         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48169         Paul Eggert <eggert@CS.UCLA.EDU>.
48170
48171 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48172
48173         * modules/gettext: Add m4/threadlib.m4.
48174
48175 2008-08-19  Eric Blake  <ebb9@byu.net>
48176
48177         test-c-stack: fix compilation failure on FreeBSD 5.0
48178         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48179         headers before <sys/resource.h>.
48180         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48181         the bug.
48182         Reported by Nelson H. F. Beebe.
48183
48184         strverscmp: migrate from "strverscmp.h" to <string.h>
48185         * modules/string (Makefile.am): Add new hooks.
48186         * modules/strverscmp (Files): Remove strverscmp.h.
48187         (Depends-on): Add string.
48188         (configure.ac): Add indicator.
48189         (Include): Mention new header.
48190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48191         defaults.
48192         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48193         results.
48194         * lib/strverscmp.h: Delete.
48195         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48196         * tests/test-strverscmp.c (includes): Adjust client.
48197         * lib/check-version.c (includes): Likewise.
48198         * NEWS: Document the change.
48199
48200         strverscmp: add unit test
48201         * modules/strverscmp-tests: New file.
48202         * tests/test-strverscmp.c: Likewise.
48203
48204 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48205
48206         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48207         regarding Windows crypto stuff, from Mono.
48208
48209 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48210
48211         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48212         if present, for intel RND.  Return error on failures.
48213
48214 2008-08-18  Ben Pfaff  <blp@gnu.org>
48215
48216         gitlog-to-changelog: give better diagnostic for failed pipe-open
48217         * build-aux/gitlog-to-changelog: Improve error message: suggest
48218         that the version of Git may be too old.
48219
48220 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48221
48222         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48223         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48224
48225 2008-08-18  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48228         pthread_in_use().
48229
48230 2008-08-18  Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/glthread/threadlib.c: Include <pthread.h>.
48233
48234 2008-08-18  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48237         glthread_recursive_lock_* macros.
48238         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48239         Fix syntax error.
48240
48241 2008-08-18  Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/glthread/thread.c: Avoid forcing a context switch right after
48244         thread creation.
48245
48246 2008-08-17  Bruno Haible  <bruno@clisp.org>
48247
48248         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48249         * lib/glthread/thread.h: Provide Win32 specific implementation.
48250         * modules/thread (Files): Add lib/glthread/thread.c.
48251         (Depends-on): Add lock.
48252         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48253
48254 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48255
48256         New module 'yield'.
48257         * modules/yield: New file.
48258         * lib/glthread/yield.h: New file.
48259         * m4/yield.m4: New file.
48260         * MODULES.html.sh (Multithreading): Add yield.
48261
48262 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48263
48264         New module 'thread'.
48265         * modules/thread: New file.
48266         * lib/glthread/thread.h: New file.
48267         * m4/thread.m4: New file.
48268         * MODULES.html.sh (Multithreading): Add thread.
48269
48270 2008-08-17  Bruno Haible  <bruno@clisp.org>
48271
48272         * lib/glthread/lock.h: Include <stdlib.h> always.
48273         * lib/glthread/tls.h: Likewise.
48274         * lib/glthread/cond.h: Likewise.
48275
48276 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48277
48278         New module 'cond'.
48279         * modules/cond: New file.
48280         * lib/glthread/cond.h: New file.
48281         * lib/glthread/cond.c: New file.
48282         * m4/cond.m4: New file.
48283         * MODULES.html.sh (Multithreading): Add cond.
48284
48285 2008-08-16  Eric Blake  <ebb9@byu.net>
48286
48287         c-stack: fix regression on Irix 5.3 from 2008-06-21
48288         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48289         sa_sigaction...
48290         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48291         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48292         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48293         * modules/signal (Makefile.am): Use the value.
48294         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48295         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48296         * doc/posix-headers/signal.texi (signal.h): Document this
48297         portability issue.
48298         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48299         Reported by Tom G. Christensen.
48300
48301 2008-08-17  Bruno Haible  <bruno@clisp.org>
48302
48303         New module 'threadlib'.
48304         * modules/threadlib: New file.
48305         * lib/glthread/threadlib.c: New file, extracted from
48306         lib/glthread/lock.c.
48307         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48308         functions.
48309         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48310         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48311         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48312         macros.
48313         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48314         (gl_DISABLE_THREADS): Remove macro.
48315         * modules/lock (Files): Remove build-aux/config.rpath.
48316         (Depends-on): Remove havelib. Add threadlib.
48317         (configure.ac-early): Remove section.
48318         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48319         * modules/tls (Depends-on): Remove lock. Add threadlib.
48320         (Link): New section, copied from threadlib.
48321         * MODULES.html.sh (Multithreading): Add threadlib.
48322
48323 2008-08-14  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48326         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48327         glthread_rwlock_unlock, glthread_rwlock_destroy,
48328         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48329         glthread_recursive_lock_destroy): Define as macros always.
48330         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48331         glthread_lock_lock.
48332         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48333         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48334         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48335         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48336         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48337         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48338         (glthread_recursive_lock_lock_func): Renamed from
48339         glthread_recursive_lock_lock.
48340         (glthread_recursive_lock_unlock_func): Renamed from
48341         glthread_recursive_lock_unlock.
48342         (glthread_recursive_lock_destroy_func): Renamed from
48343         glthread_recursive_lock_destroy.
48344
48345 2008-08-14  Bruno Haible  <bruno@clisp.org>
48346
48347         * lib/glthread/lock.h: Renamed from lib/lock.h.
48348         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48349         * lib/glthread/tls.h: Renamed from lib/tls.h.
48350         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48351         * lib/fstrcmp.c: Update includes.
48352         * lib/strsignal.c: Update includes.
48353         * modules/lock (Files, Makefile.am): Update.
48354         (Include): Change to "glthread/lock.h".
48355         * modules/tls (Files, Makefile.am): Update.
48356         (Include): Change to "glthread/tls.h".
48357         * tests/test-lock.c: Update includes.
48358         * tests/test-tls.c: Update includes.
48359         * NEWS: Mention the renamed header files.
48360
48361 2008-08-11  Jim Meyering  <meyering@redhat.com>
48362
48363         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48364
48365 2008-08-11  Eric Blake  <ebb9@byu.net>
48366
48367         test-c-stack: avoid C99-ism
48368         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48369         before statement.
48370         Reported by Alain Guibert.
48371
48372 2008-08-10  Jim Meyering  <meyering@redhat.com>
48373
48374         ensure that return value of uinttostr et al are not ignored
48375         * lib/inttostr.h (__GNUC_PREREQ): Define.
48376         (__attribute_warn_unused_result__): Define.
48377         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48378
48379 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48380
48381         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48382         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48383
48384 2008-08-07  Jim Meyering  <meyering@redhat.com>
48385
48386         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48387
48388         * modules/mkstemp (License): Relicense under LGPLv2+.
48389         * modules/tempname (License): Likewise.
48390
48391 2008-08-06  Bruno Haible  <bruno@clisp.org>
48392
48393         * lib/poll.c (poll): Further micro-optimization.
48394
48395 2008-08-06  Jim Meyering  <meyering@redhat.com>
48396
48397         inet_pton.c: use locale-independent tolower
48398         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48399         (inet_pton6): Use c_tolower rather than tolower.
48400         * modules/inet_pton (Depends-on): Add c-ctype.
48401
48402 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48403
48404         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48405         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48406
48407 2008-08-06  Jim Meyering  <meyering@redhat.com>
48408
48409         * modules/inet_pton (License): Relicense under LGPLv2+.
48410
48411 2008-08-03  Bruno Haible  <bruno@clisp.org>
48412
48413         Additional non-aborting API for lock and tls.
48414         * lib/lock.h: Include <errno.h>.
48415         (glthread_lock_init): New macro/function.
48416         (gl_lock_init): Define as wrapper around glthread_lock_init.
48417         (glthread_lock_lock): New macro/function.
48418         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48419         (glthread_lock_unlock): New macro/function.
48420         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48421         (glthread_lock_destroy): New macro/function.
48422         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48423         (glthread_rwlock_init): New macro/function.
48424         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48425         (glthread_rwlock_rdlock): New macro/function.
48426         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48427         (glthread_rwlock_wrlock): New macro/function.
48428         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48429         (glthread_rwlock_unlock): New macro/function.
48430         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48431         (glthread_rwlock_destroy): New macro/function.
48432         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48433         (glthread_recursive_lock_init): New macro/function.
48434         (gl_recursive_lock_init): Define as wrapper around
48435         glthread_recursive_lock_init.
48436         (glthread_recursive_lock_lock): New macro/function.
48437         (gl_recursive_lock_lock): Define as wrapper around
48438         glthread_recursive_lock_lock.
48439         (glthread_recursive_lock_unlock): New macro/function.
48440         (gl_recursive_lock_unlock): Define as wrapper around
48441         glthread_recursive_lock_unlock.
48442         (glthread_recursive_lock_destroy): New macro/function.
48443         (gl_recursive_lock_destroy): Define as wrapper around
48444         glthread_recursive_lock_destroy.
48445         (glthread_once): New macro/function.
48446         (gl_once): Define as wrapper around glthread_once.
48447         Update function declarations.
48448         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48449         glthread_rwlock_init. Return error code.
48450         (glthread_rwlock_rdlock_multithreaded): Renamed from
48451         glthread_rwlock_rdlock. Return error code.
48452         (glthread_rwlock_wrlock_multithreaded): Renamed from
48453         glthread_rwlock_wrlock. Return error code.
48454         (glthread_rwlock_unlock_multithreaded): Renamed from
48455         glthread_rwlock_unlock. Return error code.
48456         (glthread_rwlock_destroy_multithreaded): Renamed from
48457         glthread_rwlock_destroy. Return error code.
48458         (glthread_recursive_lock_init_multithreaded): Renamed from
48459         glthread_recursive_lock_init. Return error code.
48460         (glthread_recursive_lock_lock_multithreaded): Renamed from
48461         glthread_recursive_lock_lock. Return error code.
48462         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48463         glthread_recursive_lock_unlock. Return error code.
48464         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48465         glthread_recursive_lock_destroy. Return error code.
48466         (glthread_once_call): Make static.
48467         (glthread_once_multithreaded): Renamed from glthread_once.
48468         * lib/tls.h: Include <errno.h>.
48469         (glthread_tls_key_init): New macro/function.
48470         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48471         (glthread_tls_set): New macro/function.
48472         (gl_tls_set): Define as wrapper around glthread_tls_set.
48473         (glthread_tls_key_destroy): New macro/function.
48474         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48475         Update function declarations.
48476         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48477         glthread_tls_get.
48478         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48479
48480 2008-08-04  Eric Blake  <ebb9@byu.net>
48481
48482         gnumakefile: use space, not TAB, outside of targets
48483         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48484
48485 2008-08-02  Jim Meyering  <meyering@redhat.com>
48486
48487         getdate.y: avoid locale-dependent date parsing failure
48488         In Turkish locales, getdate would fail to recognize keywords
48489         containing a lowercase "i".  The solution is not to rely on
48490         locale-sensitive case-conversion.
48491         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48492         (lookup_word): Use c_toupper in place of toupper.
48493         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48494         Reported by Vefa Bicakci <bicave@superonline.com> in
48495         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48496         * modules/getdate (Depends-on): Add c-ctype.
48497
48498 2008-08-02  Bruno Haible  <bruno@clisp.org>
48499
48500         * gnulib-tool (func_import): When updating or creating a .gitignore
48501         file, prepend each added line with a slash, and ignore leading slashes
48502         from the existing lines.
48503         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48504
48505 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48506
48507         Portability fix for GNU make 3.79.1.
48508         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48509         versions do not understand.
48510
48511 2008-08-01  Bruno Haible  <bruno@clisp.org>
48512
48513         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48514         * tests/test-isnanf.h (zero): New variable.
48515         (main): Avoid literal -0.0f.
48516         * tests/test-isnand.h (zero): New variable.
48517         (main): Avoid literal -0.0.
48518         * tests/test-isnanl.h (zero): New variable.
48519         (main): Avoid literal -0.0L.
48520         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48521         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48522         -0.0, -0.0L.
48523         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48524         (test_signbitd): Avoid literal -0.0.
48525         (test_signbitl): Avoid literal -0.0L.
48526         * tests/test-ceilf1.c (zero): New variable.
48527         (main): Avoid literal -0.0f.
48528         * tests/test-ceill.c (zero): New variable.
48529         (main): Avoid literal -0.0L.
48530         * tests/test-floorf1.c (zero): New variable.
48531         (main): Avoid literal -0.0f.
48532         * tests/test-floorl.c (zero): New variable.
48533         (main): Avoid literal -0.0L.
48534         * tests/test-roundf1.c (zero): New variable.
48535         (main): Avoid literal -0.0f.
48536         * tests/test-round1.c (zero): New variable.
48537         (main): Avoid literal -0.0.
48538         * tests/test-roundl.c (zero): New variable.
48539         (main): Avoid literal -0.0L.
48540         * tests/test-truncf1.c (zero): New variable.
48541         (main): Avoid literal -0.0f.
48542         * tests/test-trunc1.c (zero): New variable.
48543         (main): Avoid literal -0.0.
48544         * tests/test-truncl.c (zero): New variable.
48545         (main): Avoid literal -0.0L.
48546         * tests/test-frexp.c (zero): New variable.
48547         (main): Avoid literal -0.0.
48548         * tests/test-frexpl.c (zero): New variable.
48549         (main): Avoid literal -0.0L.
48550         * tests/test-ldexpl.c (zero): New variable.
48551         (main): Avoid literal -0.0L.
48552         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48553         (zerod, zerol): New variables.
48554         (test_function): Avoid literals -0.0, -0.0L.
48555         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48556         (zerod, zerol): New variables.
48557         (test_function): Avoid literals -0.0, -0.0L.
48558         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48559         (zerod, zerol): New variables.
48560         (test_function): Avoid literals -0.0, -0.0L.
48561         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48562         (zerod, zerol): New variables.
48563         (test_function): Avoid literals -0.0, -0.0L.
48564         * tests/test-strtod.c (zero): New variable.
48565         (main): Avoid literal -0.0.
48566         Reported by Jonathan C. Patschke <jp@centtech.com>.
48567
48568 2008-07-31  Jim Meyering  <meyering@redhat.com>
48569
48570         sha256.h: correct definition of SHA224_DIGEST_SIZE
48571         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48572         Reported by Paulie Pena IV <paulie4@gmail.com>.
48573         Define as 224 / 8, rather than as a literal.
48574         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48575         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48576         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48577
48578 2008-07-31  Bruno Haible  <bruno@clisp.org>
48579
48580         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48581         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48582         Reported by Jonathan Patschke <jp@centtech.com>.
48583
48584 2008-07-31  Bruno Haible  <bruno@clisp.org>
48585
48586         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48587         Reported by Paolo Bonzini <bonzini@gnu.org>.
48588
48589 2008-07-30  Eric Blake  <ebb9@byu.net>
48590
48591         test-strtod: allow compilation without -lm
48592         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48593         Reported by Dennis Clarke <blastwave@gmail.com>.
48594
48595 2008-07-28  Jim Meyering  <meyering@redhat.com>
48596
48597         bootstrap: work also when there are no .po files in po/
48598         * build-aux/bootstrap (update_po_files): Complete the change
48599         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48600
48601 2008-07-27  Jim Meyering  <meyering@redhat.com>
48602
48603         * users.txt: Add zile.
48604
48605 2008-07-26  Ben Pfaff  <blp@gnu.org>
48606
48607         Add missing dependencies on new m4/exponent[fdl].m4 files.
48608         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48609         * modules/isnand-nolibm: Add m4/exponentd.m4.
48610         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48611         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48612         m4/isnan[fdl].m4, because the macros actually used moved.
48613         Reported by Jim Meyering.
48614
48615 2008-07-14  Ben Pfaff  <blp@gnu.org>
48616
48617         Add isinf module.
48618         * lib/isinf.c: New file.
48619         * lib/math.in.h: Define isinf macro if we have decided to replace
48620         it.
48621         * m4/isinf.m4: New file.
48622         * m4/math_h.m4: Initialize and substitute variables for isinf
48623         module.
48624         * modules/isinf: New file.
48625         * modules/isinf-tests: New file.
48626         * modules/math: Add substitutions for new module.
48627         * tests/test-isinf.c: New file.
48628         * doc/posix-functions/isinf.texi: Mention new module.
48629         * MODULES.html.sh: Mention new module.
48630
48631 2008-07-14  Ben Pfaff  <blp@gnu.org>
48632
48633         Factor out some macros for use by additional modules.
48634         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48635         exponentf.m4.
48636         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48637         exponentd.m4.
48638         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48639         file exponentl.m4.
48640         * m4/exponentf.m4: New file.
48641         * m4/exponentd.m4: New file.
48642         * m4/exponentl.m4: New file.
48643         * modules/isnanf: Use new file m4/exponentf.m4.
48644         * modules/isnand: Use new file m4/exponentd.m4.
48645         * modules/isnanl: Use new file m4/exponentl.m4.
48646
48647 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48648
48649         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48650         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48651         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48652         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48653
48654         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48655         readlink on platforms without PATH_MAX.
48656
48657 2008-07-21  Eric Blake  <ebb9@byu.net>
48658
48659         Warn, not fail, on stale version.
48660         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48661
48662         Don't allow installation with stale devel version number.
48663         * top/GNUmakefile (_is-install-target): New macro.
48664         (_curr-ver): Forbid installation with stale version number.
48665
48666 2008-07-20  Bruno Haible  <bruno@clisp.org>
48667
48668         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48669         TESTS_ENVIRONMENT.
48670         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48671
48672 2008-07-20  Bruno Haible  <bruno@clisp.org>
48673
48674         * lib/c-stack.h (c_stack_action): Add documentation.
48675         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48676
48677 2008-07-20  Bruno Haible  <bruno@clisp.org>
48678
48679         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48680         * modules/readlink (License): Likewise.
48681
48682 2008-07-17  Eric Blake  <ebb9@byu.net>
48683
48684         * modules/c-stack (Link): Fix typo.
48685
48686         Make c-stack use libsigsegv, when available.
48687         * modules/c-stack (Depends-on): Add libsigsegv.
48688         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48689         needed.
48690         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48691         (segv_handler, overflow_handler, c_stack_action)
48692         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48693         implementation when libsigsegv is available, but only when using
48694         the library is necessary.
48695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48696         comment, explaining why XSI check fails on Linux.
48697         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48698         * tests/test-c-stack2.sh: Tweak skip message.
48699         * NEWS: Document new link-time requirements.
48700
48701 2008-07-16  Eric Blake  <ebb9@byu.net>
48702
48703         c-stack: Expose false positives when not using libsigsegv.
48704         * modules/c-stack-tests (Files): Expand test.
48705         * tests/test-c-stack.c (main): Add means to conditionally trigger
48706         non-overflow SIGSEGV.
48707         * tests/test-c-stack2.sh: New file.
48708
48709 2008-07-14  Bruno Haible  <bruno@clisp.org>
48710
48711         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48712         Reported by Eric Blake.
48713
48714 2008-07-14  Sam Steingold  <sds@gnu.org>
48715             Bruno Haible  <bruno@clisp.org>
48716
48717         New module libsigsegv.
48718         * modules/libsigsegv: New file.
48719         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48720         modifications.
48721         * MODULES.html.sh (Signal handling): New section.
48722
48723 2008-07-14  Bruno Haible  <bruno@clisp.org>
48724
48725         * modules/unictype/ctype-* (Description): Add the word "function".
48726         Improves the resulting doc in MODULES.html.
48727
48728 2008-07-12  Ben Pfaff  <blp@gnu.org>
48729
48730         Add longlong module.
48731         * modules/longlong: New file.
48732
48733 2008-07-12  Bruno Haible  <bruno@clisp.org>
48734
48735         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48736         to empty.
48737
48738 2008-07-10  Ben Pfaff  <blp@gnu.org>
48739
48740         Add isnan module.
48741         * doc/posix-functions/isnan.texi: Mention new module.
48742         * lib/math.in.h: Define isnan macro if we have decided to replace
48743         it.
48744         * m4/isnan.m4: New file.
48745         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48746         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48747         also.
48748         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48749         redundancy.
48750         * m4/math_h.m4: Initialize and substitute variables for isnan
48751         module.
48752         * modules/isnan: New file.
48753         * modules/isnan-tests: New file.
48754         * modules/math: Add substitutions for new module.
48755         * tests/test-isnan.c: New file.
48756         * MODULES.html.sh: Mention new module.
48757
48758 2008-07-10  Ben Pfaff  <blp@gnu.org>
48759
48760         Add isnanf module.
48761         * lib/isnanf.m4: New file.
48762         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48763         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48764         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48765         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48766         * modules/isnanf: New file.
48767         * modules/isnanf-tests: New file.
48768         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48769         files.
48770         * tests/test-isnanf-nolibm.c: factored most of its contents into
48771         new file tests/test-isnanf.h.
48772         * tests/test-isnanf.h: New file.
48773         * tests/test-isnanf.c: New file.
48774         * MODULES.html.sh: Mention new module.
48775         * doc/glibc-functions/isnanf.texi: Mention new module.
48776
48777 2008-07-10  Ben Pfaff  <blp@gnu.org>
48778
48779         Add isnand module.
48780         * lib/isnand.h: New file.
48781         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48782         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48783         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48784         functionality also.
48785         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48786         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48787         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48788         * modules/isnand: New file.
48789         * modules/isnand-tests: New file.
48790         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48791         files.
48792         * tests/test-isnand-nolibm.c: factored most of its contents into
48793         new file tests/test-isnand.h.
48794         * tests/test-isnand.h: New file.
48795         * tests/test-isnand.c: New file.
48796         * MODULES.html.sh: Mention new module.
48797
48798 2008-07-10  Ben Pfaff  <blp@gnu.org>
48799
48800         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48801         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48802         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48803         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48804         * modules/isnanf-nolibm: Update references to renamed files.
48805         * modules/isnand-nolibm: Likewise.
48806         * modules/isnanf-nolibm-tests: Likewise.
48807         * modules/isnand-nolibm-tests: Likewise.
48808         * lib/frexp.c: Likewise.
48809         * lib/isfinite.c: Likewise.
48810         * lib/signbitd.c: Likewise.
48811         * lib/signbitf.c: Likewise.
48812         * lib/vasnprintf.c: Likewise.
48813         * tests/test-ceilf1.c: Likewise.
48814         * tests/test-ceilf2.c: Likewise.
48815         * tests/test-floorf1.c: Likewise.
48816         * tests/test-floorf2.c: Likewise.
48817         * tests/test-frexp.c: Likewise.
48818         * tests/test-round1.c: Likewise.
48819         * tests/test-round2.c: Likewise.
48820         * tests/test-roundf1.c: Likewise.
48821         * tests/test-strtod.c: Likewise.
48822         * tests/test-trunc1.c: Likewise.
48823         * tests/test-trunc2.c: Likewise.
48824         * tests/test-truncf1.c: Likewise.
48825         * tests/test-truncf2.c: Likewise.
48826         * NEWS: Mention the renamed header files.
48827
48828 2008-07-11  Jim Meyering  <meyering@redhat.com>
48829
48830         vc-list-files: make the last-resort awk code more portable
48831         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48832         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48833         does not support it.
48834
48835 2008-07-10  Eric Blake  <ebb9@byu.net>
48836
48837         Work with tar's bootstrap.
48838         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48839         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48840         an m4 comment.
48841
48842 2008-07-09  Jim Meyering  <meyering@redhat.com>
48843
48844         posix-shell.m4: fix typo that made this test malfunction
48845         * m4/posix-shell.m4: Remove capitalization in variable name.
48846
48847 2008-07-08  Bruno Haible  <bruno@clisp.org>
48848
48849         * m4/onceonly.m4: Update comments.
48850         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48851
48852 2008-07-04  Jim Meyering  <meyering@redhat.com>
48853
48854         * users.txt: Add vc-dwim.
48855         (bison, coreutils): Use the gitweb URL.
48856
48857 2008-07-03  Jim Meyering  <meyering@redhat.com>
48858
48859         * users.txt: Add libffcall.  From Sam Steingold.
48860
48861 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48862
48863         getdate.y: do not ignore TZ with relative day, month or year offset
48864         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48865         relative-date-handling, since otherwise, the latter would clobber the
48866         sole output (an updated Start value) of the tz-handling block.
48867         * tests/test-getdate.c: Tests for the fix
48868
48869 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48870
48871         Recognize 'foo_LIBRARIES += libgnu.a'.
48872         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48873         makefile snippet has already specified an installation location,
48874         also using '+='.
48875
48876 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48877
48878         getdate.y: factor out common actions
48879         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48880         Use them in place of open-coded actions.
48881
48882 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48883
48884         Add self-test for getdate module.
48885         * modules/getdate-tests: New file.
48886         * tests/test-getdate.c: New file.
48887
48888 2008-06-29  Bruno Haible  <bruno@clisp.org>
48889
48890         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48891         .gitignore.
48892         Reported by Sylvain Beucler <beuc@beuc.net>.
48893
48894 2008-06-29  Bruno Haible  <bruno@clisp.org>
48895
48896         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48897         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48898
48899 2008-06-29  Bruno Haible  <bruno@clisp.org>
48900
48901         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48902         EXTRA_DIST.
48903         Reported by Sylvain Beucler <beuc@beuc.net>.
48904
48905 2008-06-26  Jim Meyering  <meyering@redhat.com>
48906
48907         make several modules depend on the "open" module
48908         This provides slightly increased consistency when opening-for-write
48909         the name of a non-directory spelled with a trailing slash.
48910         * modules/chdir-safer: Likewise.
48911         * modules/chown: Likewise.
48912         * modules/clean-temp: Likewise.
48913         * modules/copy-file: Likewise.
48914         * modules/fchdir: Likewise.
48915         * modules/fcntl-safer: Likewise.
48916         * modules/pipe: Likewise.
48917         * modules/utime: Likewise.
48918         Prompted by Eric Blake and Bruno Haible.
48919
48920 2008-06-24  Andreas Schwab  <schwab@suse.de>
48921
48922         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48923         literals can be used as initializers for global variables.
48924
48925 2008-06-23  Eric Blake  <ebb9@byu.net>
48926
48927         Make gnulib-cache.m4 easier to diff.
48928         * gnulib-tool (func_import): Allow newlines when reading cached
48929         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48930
48931 2008-06-23  Bruno Haible  <bruno@clisp.org>
48932
48933         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48934         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48935         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48936         m4/signalblocking.m4.
48937         (gl_PREREQ_SIGACTION): Don't invoke it.
48938         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48939         gl_PREREQ_SIG_HANDLER_H.
48940         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48941         Don't check for sigaction here.
48942
48943 2008-06-23  Bruno Haible  <bruno@clisp.org>
48944
48945         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48946         (install_handlers): Don't set the SA_RESETHAND flag.
48947
48948 2008-06-23  Bruno Haible  <bruno@clisp.org>
48949
48950         * m4/sigaction.m4: Comment fixes.
48951         * lib/signal.in.h: Likewise.
48952
48953 2008-06-23  Eric Blake  <ebb9@byu.net>
48954
48955         Fix typo.
48956         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48957
48958         Avoid SA_ namespace.
48959         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48960         Reported by Ralf Wildenhues.
48961
48962         Avoid test failure due to SA_RESTORER.
48963         * tests/test-sigaction.c (SA_MASK): New macro.
48964         (main): Avoid failing due to extension flags being set.
48965         Reported by Jim Meyering.
48966
48967         Revert use of sig-handler.h in sigprocmask.c.
48968         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48969         it requires the existence of struct sigaction.
48970         * lib/sigprocmask.c (handler_t): Restore typedef.
48971         (rpl_signal, old_handlers): Use local type.
48972
48973 2008-06-22  Bruno Haible  <bruno@clisp.org>
48974
48975         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48976         conditionally.
48977         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48978
48979 2008-06-22  Bruno Haible  <bruno@clisp.org>
48980
48981         * doc/posix-functions/siginterrupt.texi: Move note.
48982
48983         * lib/signal.in.h (SA_RESTART): New macro.
48984         * lib/sigaction.c: Update comment.
48985
48986         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48987
48988         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48989         (gl_PREREQ_SIGPROCMASK): Invoke it.
48990         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48991
48992         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48993
48994         * lib/sigprocmask.c: Update a comment.
48995
48996 2008-06-21  Eric Blake  <ebb9@byu.net>
48997
48998         Use sigaction module rather than signal().
48999         * modules/c-stack (Depends-on): Add sigaction.
49000         * modules/fatal-signal (Depends-on): Likewise.
49001         * modules/nanosleep (Depends-on): Likewise.
49002         * modules/sigprocmask (Files): Add sig-handler.h.
49003         * modules/sigaction (Files): Likewise.
49004         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49005         Eggert.
49006         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49007         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49008         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49009         (init_fatal_signals): Likewise.
49010         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49011         (siginterrupt): Delete fallback.
49012         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49013         instead.
49014         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49015         siginterrupt.
49016
49017         New module sigaction, for mingw.
49018         * modules/sigaction: New module...
49019         * modules/sigaction-tests: ...and its test.
49020         * m4/sigaction.m4: New file.
49021         * lib/sigaction.c: Likewise.
49022         * tests/test-sigaction.c: Likewise.
49023         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49024         * modules/signal (Makefile.am): Likewise.
49025         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49026         needed.
49027         * doc/posix-headers/signal.texi (signal.h): Mention provided
49028         types.
49029         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49030         that sigaction is preferable.
49031         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49032         module.
49033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49034         sigaction.
49035
49036         Improve robustness of sigprocmask by overriding signal.
49037         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49038         is in use.
49039         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49040         (SIGKILL, SIGSTOP): Provide fallbacks.
49041         (rpl_signal): Implement.
49042         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49043         signal can be called inside handlers.
49044
49045         Fix nanosleep module on mingw.
49046         * modules/nanosleep (Depends-on): Add sys_select.
49047         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49048
49049         Fix licensing of sigprocmask.
49050         * modules/raise (License): Relicense as LGPL.
49051
49052 2008-06-21  Bruno Haible  <bruno@clisp.org>
49053
49054         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49055         result if it contains question marks.
49056         Reported by Michael Geng <linux@michaelgeng.de>.
49057
49058 2008-06-19  Bruno Haible  <bruno@clisp.org>
49059
49060         Fix CVS-ism.
49061         * doc/gnulib.texi: Include updated-stamp.texi.
49062         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49063         (updated-stamp.texi): New rule.
49064         (gnulib.info): Depend on it.
49065         * doc/.gitignore: Add updated-stamp.texi.
49066         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49067
49068 2008-06-19  Bruno Haible  <bruno@clisp.org>
49069
49070         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49071         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49072
49073 2008-06-19  Eric Blake  <ebb9@byu.net>
49074
49075         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49076         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49077         Reported by Stepan Kasal.
49078
49079 2008-06-18  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49082         Reported by Eric Blake.
49083
49084 2008-06-18  Eric Blake  <ebb9@byu.net>
49085
49086         Work around cygwin 1.5.25 strsignal bug.
49087         * tests/test-strsignal.c: Allow for const char *.
49088         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49089
49090 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49091
49092         * users.txt: Update URL to article and add author/date
49093         information.
49094
49095 2008-06-17  Bruno Haible  <bruno@clisp.org>
49096
49097         New macro gl_DISABLE_THREADS.
49098         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49099         if the user did not pass --enable-threads or --disable-threads option.
49100         (gl_DISABLE_THREADS): New macro.
49101         Reported by Eric Blake <ebb9@byu.net>.
49102
49103 2008-06-17  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49106         when the macro ignores it.
49107         Based on a patch by Eric Blake <ebb9@byu.net>.
49108
49109 2008-06-17  Bruno Haible  <bruno@clisp.org>
49110
49111         * modules/tls (License): Change to LGPLv2+.
49112         Reported by Eric Blake.
49113
49114 2008-06-17  Eric Blake  <ebb9@byu.net>
49115
49116         Simplify c-stack prerequisites.
49117         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49118         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49119         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49120         check.
49121         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49122         <sys/resource.h>.
49123
49124         Move c-stack test into testsuite.
49125         * modules/c-stack-tests: New file.
49126         * lib/c-stack.c [DEBUG]: Move test program...
49127         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49128         fail test if sigaltstack is lacking.
49129         * tests/test-c-stack.sh: New driver file.
49130
49131 2008-06-16  Eric Blake  <ebb9@byu.net>
49132
49133         Use raise module consistently.
49134         * modules/fatal-signal (Depends-on): Add raise.
49135         * modules/sigprocmask (Depends-on): Likewise.
49136         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49137         * lib/sigprocmask.c (sigprocmask): Likewise.
49138         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49139         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49140
49141         Fix compliance bug in sigpending.
49142         * lib/sigprocmask.c (sigpending): Return pending array via
49143         parameter, not return value.
49144
49145 2008-06-14  Eric Blake  <ebb9@byu.net>
49146
49147         Improve obstack-printf test code.
49148         * tests/test-obstack-printf.c (test_function): Fix comment, and
49149         simplify usage of obstack_* in macros.  Add a test for coverage.
49150         Reported by Bruno Haible.
49151
49152 2008-06-14  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49155         array size as a constant, not as a const variable.
49156         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49157         AC_USE_SYSTEM_EXTENSIONS.
49158         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49159         Test whether the obstack_printf function actually exists.
49160         * modules/obstack-printf (Depends-on): Add extensions.
49161         (Include): Remove obstack.h.
49162         * modules/obstack-printf-posix (Depends-on): Add extensions.
49163         (Include): Remove obstack.h.
49164
49165 2008-06-13  Eric Blake  <ebb9@byu.net>
49166
49167         Add obstack-printf and obstack-printf-posix modules.
49168         * modules/obstack-printf: New file.
49169         * modules/obstack-printf-posix: Likewise.
49170         * MODULES.html.sh (Misc): Mention them.
49171         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49172         Likewise.
49173         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49174         Likewise.
49175         * modules/stdio (Makefile.am): Accomodate new modules.
49176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49177         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49178         Declare.
49179         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49180         functions.
49181         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49182         (gl_REPLACE_OBSTACK_PRINTF): New macros
49183         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49184         * tests/test-obstack-printf.c: New file.
49185         * modules/obstack-printf-tests: Likewise.
49186         * modules/obstack-printf-posix-tests: Likewise.
49187
49188 2008-06-11  Bruno Haible  <bruno@clisp.org>
49189
49190         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49191         * lib/open.c: Include errno.h.
49192         (open): Fail when attempting to write to a file that has a trailing
49193         slash.
49194         * tests/test-open.c (main): Test against trailing slash bug.
49195         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49196
49197 2008-06-10  Bruno Haible  <bruno@clisp.org>
49198
49199         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49200         for $? to work inside the trap command, with various /bin/sh-s.
49201         * tests/test-vc-list-files-cvs.sh: Likewise.
49202
49203 2008-06-10  Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/acl-internal.h: Don't include gettext.h here.
49206         * lib/set-mode-acl.c: Include gettext.h here.
49207         * lib/copy-acl.c: Likewise.
49208
49209 2008-06-10  Bruno Haible  <bruno@clisp.org>
49210
49211         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49212         * lib/wait-process.c (wait_subprocess): Likewise.
49213         * lib/execute.h (execute): Add termsigp argument.
49214         * lib/execute.c (execute): Likewise.
49215         * lib/csharpcomp.c (compile_csharp_using_pnet,
49216         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49217         * lib/csharpexec.c (execute_csharp_using_pnet,
49218         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49219         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49220         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49221         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49222         is_jikes_present): Update.
49223         * lib/javaexec.c (execute_java_class): Update.
49224         * lib/javaversion.c (execute_and_read_line): Update.
49225         * NEWS: Document the changes.
49226         Reported by Eric Blake.
49227
49228 2008-06-10  Eric Blake  <ebb9@byu.net>
49229
49230         Add missing include.
49231         * tests/test-strstr.c (includes): Add <signal.h>.
49232         * tests/test-strcasestr.c (includes): Likewise.
49233         * tests/test-memmem.c (includes): Likewise.
49234
49235 2008-06-10  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/wait-process.c (wait_subprocess): Add an assertion.
49238
49239 2008-06-10  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49242
49243 2008-06-10  Bruno Haible  <bruno@clisp.org>
49244
49245         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49246         using alarm().
49247         * tests/test-strcasestr.c (main): Likewise.
49248         * tests/test-strstr.c (main): Likewise.
49249
49250 2008-06-09  Bruno Haible  <bruno@clisp.org>
49251
49252         Work around the Solaris 10 ACE ACLs ABI change.
49253         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49254         declare if ACL_NO_TRIVIAL is present.
49255         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49256         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49257         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49258         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49259         define if ACL_NO_TRIVIAL is present.
49260         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49261         and use the current ABI.
49262         (file_has_acl): Use same #if condition as elsewhere.
49263         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49264         in use, and use the current ABI.
49265         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49266         Reported by Jim Meyering.
49267
49268 2008-06-09  Eric Blake  <ebb9@byu.net>
49269
49270         Work around environments that (stupidly) ignore SIGALRM.
49271         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49272         before using alarm().
49273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49274         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49275         Reported by Ian Beckwith <ianb@erislabs.net>.
49276
49277         Produce autobuild blurb earlier in log.
49278         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49279
49280 2008-06-09  Jim Meyering  <meyering@redhat.com>
49281         and Ondřej Vašík  <ovasik@redhat.com>
49282
49283         utimens.c: correct kernel bug work-around
49284         Ondřej Vašík found that the invalid return value of 280 indicates
49285         failure, not success, and the kernel bug we're trying to work
49286         around affects not just the utimensat call, but also the fallback
49287         futimens call.
49288         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49289         not success.
49290         [HAVE_FUTIMENS]: Use the same work-around, here.
49291
49292 2008-06-09  Jim Meyering  <meyering@redhat.com>
49293
49294         add more guards around definition of ACE_-related code
49295         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49296         ALLOW and ACE_OWNER are also defined.
49297
49298 2008-06-08  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/acl-internal.h: Add me as co-author.
49301         * lib/file-has-acl.c: Likewise.
49302         * lib/set-mode-acl.c: Likewise.
49303         * lib/copy-acl.c: Likewise.
49304
49305 2008-06-08  Bruno Haible  <bruno@clisp.org>
49306
49307         Add support for AIX ACLs.
49308         * lib/acl-internal.h (acl_nontrivial): New declaration.
49309         * lib/file-has-acl.c (acl_nontrivial): New function.
49310         (file_has_acl): Add implementation using AIX 4 ACL API.
49311         * lib/set-mode-acl.c (qset_acl): Likewise.
49312         * lib/copy-acl.c (qcopy_acl): Likewise.
49313
49314 2008-06-08  Bruno Haible  <bruno@clisp.org>
49315
49316         Add support for HP-UX ACLs.
49317         * lib/acl-internal.h (acl_nontrivial): New declaration.
49318         * lib/file-has-acl.c (acl_nontrivial): New function.
49319         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49320         * lib/set-mode-acl.c (qset_acl): Likewise.
49321         * lib/copy-acl.c (qcopy_acl): Likewise.
49322
49323 2008-06-08  Bruno Haible  <bruno@clisp.org>
49324
49325         Add support for Cygwin ACLs.
49326         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49327         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49328         the chmod_or_fchmod call.
49329         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49330
49331 2008-06-08  Bruno Haible  <bruno@clisp.org>
49332
49333         Fix bug with setuid modes in Solaris 10+ code.
49334         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49335         succeeded, when the mode contains some special bits.
49336
49337 2008-06-08  Bruno Haible  <bruno@clisp.org>
49338
49339         Add support for Solaris 7..10 ACLs.
49340         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49341         declarations.
49342         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49343         functions.
49344         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49345         * lib/set-mode-acl.c (qset_acl): Likewise.
49346         * lib/copy-acl.c (qcopy_acl): Likewise.
49347
49348 2008-06-08  Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49351         declaration.
49352         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49353         (acl_access_nontrivial): Remove MacOS X case.
49354         (file_has_acl): Use acl_extended_nontrivial.
49355         * lib/copy-acl.c (qcopy_acl): Likewise.
49356
49357 2008-06-08  Bruno Haible  <bruno@clisp.org>
49358
49359         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49360
49361 2008-06-08  Jim Meyering  <meyering@redhat.com>
49362
49363         * modules/acl (Maintainer): Add Bruno Haible.
49364
49365 2008-06-07  Bruno Haible  <bruno@clisp.org>
49366
49367         Improve support for Tru64 ACLs.
49368         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49369         ACL on OSF/1.
49370
49371 2008-06-07  Bruno Haible  <bruno@clisp.org>
49372
49373         Add support for MacOS X ACLs.
49374         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49375         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49376         * lib/set-mode-acl.c (qset_acl): Likewise.
49377         * lib/copy-acl.c (qcopy_acl): Likewise.
49378
49379 2008-06-07  Bruno Haible  <bruno@clisp.org>
49380
49381         Fix memory leak introduced on 2008-05-22.
49382         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49383         use.
49384
49385 2008-06-07  Bruno Haible  <bruno@clisp.org>
49386
49387         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49388         to construct an empty ACL.
49389
49390 2008-06-07  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49393         precisely.
49394         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49395
49396 2008-06-07  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49399         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49400
49401 2008-06-07  Bruno Haible  <bruno@clisp.org>
49402
49403         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49404         regardless of POSIX.
49405         * doc/posix-functions/_longjmp.texi: Likewise.
49406         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49407         SystemV platform in this case.
49408
49409 2008-06-06  Eric Blake  <ebb9@byu.net>
49410
49411         Document abort() bugs.
49412         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49413
49414         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49415         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49416         sigsetjmp.
49417         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49418         siglongjmp, but only as a macro.
49419         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49420         is obsolete.
49421         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49422
49423         Tweak documentation to cover cygwin argz bugs.
49424         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49425         argz bug fix; no code change needed since no cygwin releases
49426         occurred between the last fix and the bug being tested.
49427         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49428         module and recently fixed cygwin bugs.
49429         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49430         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49431         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49432         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49433         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49434         Likewise.
49435         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49436         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49437         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49438         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49439         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49440         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49441         Likewise.
49442
49443         Avoid gcc warning on cygwin.
49444         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49445         !ACL_NO_TRIVIAL]: Avoid unused variable.
49446
49447 2008-06-05  Eric Blake  <ebb9@byu.net>
49448
49449         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49450         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49451         git-version-gen fails to come up with a version.
49452         Reported by Simon Josefsson.
49453
49454 2008-06-05  Jim Meyering  <meyering@redhat.com>
49455             Paul Eggert  <eggert@cs.ucla.edu>
49456
49457         utimens.c: work around a probable Linux kernel bug
49458         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49459         appears to be a kernel bug that causes utimensat to return 280
49460         instead of 0, indicating success.
49461
49462 2008-06-04  Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49465         2008-06-01 commit.
49466
49467 2008-06-04  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49470         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49471         (file_has_acl): Use it. Save errno afterwards.
49472         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49473
49474 2008-06-03  Bruno Haible  <bruno@clisp.org>
49475
49476         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49477         draft code. Simplify #ifs.
49478         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49479         Put Solaris code after POSIX-draft code. Fix comments regarding
49480         Solaris 10, HP-UX. Mention Cygwin.
49481         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49482
49483 2008-06-03  Eric Blake  <ebb9@byu.net>
49484
49485         Provide fallback for older kernels.
49486         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49487         Provide runtime fallback if kernel lacks support.
49488         Reported by Mike Frysinger.
49489
49490 2008-06-02  Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49493         it exists.
49494
49495 2008-06-02  Bruno Haible  <bruno@clisp.org>
49496
49497         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49498         * lib/copy-acl.c (qcopy_acl): Update comment.
49499
49500 2008-06-02  Bruno Haible  <bruno@clisp.org>
49501
49502         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49503         like ACL APIs.
49504
49505 2008-06-02  Bruno Haible  <bruno@clisp.org>
49506
49507         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49508         * tests/test-set-mode-acl.sh: Likewise.
49509         * tests/test-copy-acl.sh: Likewise.
49510         * tests/test-copy-file.sh: Likewise.
49511
49512 2008-06-02  Bruno Haible  <bruno@clisp.org>
49513
49514         * tests/test-file-has-acl.sh: Remove unused code.
49515
49516 2008-06-01  Bruno Haible  <bruno@clisp.org>
49517
49518         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49519         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49520         messages.
49521         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49522
49523 2008-06-01  Bruno Haible  <bruno@clisp.org>
49524
49525         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49526         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49527         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49528         APIs.
49529         * modules/acl-tests (configure.ac): Remove tests now contained in
49530         m4/acl.m4.
49531
49532 2008-06-02  Jim Meyering  <meyering@redhat.com>
49533
49534         announce-gen: use a better key-server host name
49535         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49536         it may be more consistently reliable.  Suggested by Werner Koch
49537         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49538
49539 2008-06-01  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49542         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49543
49544 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49545
49546         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49547
49548 2008-06-01  Bruno Haible  <bruno@clisp.org>
49549
49550         New ACL tests.
49551         * tests/test-file-has-acl.sh: New file.
49552         * tests/test-file-has-acl.c: New file.
49553         * tests/test-set-mode-acl.sh: New file.
49554         * tests/test-set-mode-acl.c: New file.
49555         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49556         * tests/test-copy-acl.c: New file.
49557         * modules/acl-tests: New file, based on modules/copy-file-tests.
49558         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49559         (Depends-on): Add acl-tests.
49560         (configure.ac): Remove checks.
49561         (Makefile.am): Don't create test-sameacls program here any more.
49562
49563 2008-06-01  Bruno Haible  <bruno@clisp.org>
49564
49565         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49566         * tests/test-sameacls.c: Include progname.h.
49567         (main): Invoke set_program_name. Portability fixes for MacOS X,
49568         Solaris, HP-UX.
49569
49570 2008-06-01  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49573         function.
49574         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49575
49576 2008-06-01  Bruno Haible  <bruno@clisp.org>
49577
49578         * modules/rpmatch (Depends-on): Add strdup.
49579
49580 2008-06-01  Bruno Haible  <bruno@clisp.org>
49581
49582         * lib/pipe.c: Include unistd-safer.h.
49583         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49584         * modules/pipe (Depends-on): Add unistd-safer.
49585
49586 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49587
49588         * modules/autobuild (configure.ac): Call AB_INIT.
49589
49590 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49591
49592         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49593         Suggested by Bruno Haible <bruno@clisp.org>.
49594
49595 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49596
49597         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49598         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49599         <bruno@clisp.org>.
49600
49601 2008-05-29  Eric Blake  <ebb9@byu.net>
49602
49603         Prefer new POSIX 200x interfaces over futimesat.
49604         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49605         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49606         when available.
49607         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49608
49609 2008-05-28  Bruno Haible  <bruno@clisp.org>
49610
49611         * modules/stpcpy (License): Change to LGPLv2+.
49612         Requested by David Lutterkort <dlutter@redhat.com>.
49613
49614 2008-05-27  Bruno Haible  <bruno@clisp.org>
49615
49616         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49617         current mingw.
49618         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49619
49620 2008-05-27  Bruno Haible  <bruno@clisp.org>
49621
49622         * modules/iconv_open (Link): New section, from module 'iconv'.
49623         * modules/striconv (Link): Likewise.
49624         * modules/striconveh (Link): Likewise.
49625         * modules/xstriconv (Link): Likewise.
49626         * modules/unicodeio (Link): Likewise.
49627         * modules/propername (Link): Likewise.
49628         Reported by Jim Meyering.
49629
49630 2008-05-26  Jim Meyering  <meyering@redhat.com>
49631
49632         sha256: do not artificially restrict buffer length to be < 2^32
49633         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49634         uint32_t to size_t.
49635         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49636         to match.
49637
49638         avoid unaligned access errors, e.g., on sparc
49639         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49640         direct access through a possibly-unaligned uint64* pointer.
49641         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49642         direct access through a possibly-unaligned uint32* pointer.
49643         Prompted by this patch from Tom "spot" Callaway:
49644         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49645
49646         sha512.c: fix typo in comment
49647         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49648
49649 2008-05-25  Bruno Haible  <bruno@clisp.org>
49650
49651         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49652         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49653         (Makefile.am): Update lib_SOURCES.
49654
49655 2008-05-25  Bruno Haible  <bruno@clisp.org>
49656
49657         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49658
49659 2008-05-25  Jim Meyering  <meyering@redhat.com>
49660
49661         useless-if-before-free: freed expr may have white-space differences
49662         * build-aux/useless-if-before-free: Recognize cases in which the
49663         freed expression differs from the tested one in embedded white
49664         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49665         $1 was used, so we can't make any regexp shy.  Improved tests now
49666         detect this.
49667
49668         useless-if-before-free: accept white space in the expression.
49669         * build-aux/useless-if-before-free: For now, any white space
49670         in the expression must be identical in the free argument.
49671
49672         useless-if-before-free: efficiency tweak
49673         * build-aux/useless-if-before-free: Make the expression-matching
49674         regexp "shy".
49675         Make the *outer* regexp shy, not the expr-matching one.
49676
49677         update code-in-comment to accept cast of free arg
49678         * build-aux/useless-if-before-free: Update regexp.
49679
49680 2008-05-25  Bruno Haible  <bruno@clisp.org>
49681
49682         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49683         * modules/copy-file-tests (Files, Makefile.am): Update.
49684         * tests/test-copy-file.c (func_test_copy): Update.
49685
49686 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49687
49688         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49689
49690 2008-05-23  Bruno Haible  <bruno@clisp.org>
49691
49692         Improve support for ACLs on OSF/1.
49693         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49694         Remove fallback for unknown flavors of ACLs.
49695
49696 2008-05-22  Bruno Haible  <bruno@clisp.org>
49697
49698         Add support for ACLs on OSF/1.
49699         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49700         replacements.
49701         (acl_free_text): New macro fallback.
49702         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49703         acl_free.
49704         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49705         acl_free_text function. Require AC_C_INLINE.
49706
49707 2008-05-22  Bruno Haible  <bruno@clisp.org>
49708
49709         Make copy_acl work on MacOS X 10.5.
49710         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49711         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49712         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49713         If MODE_INSIDE_ACL, don't assume that every system has the same text
49714         representation for ACLs as FreeBSD.
49715         * lib/copy-acl.c (copy_acl): Add support for platforms with
49716         !MODE_INSIDE_ACL.
49717         * lib/file-has-acl.c (file_has_acl): Likewise.
49718         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49719         FreeBSD, MacOS X, or IRIX, respectively.
49720
49721 2008-05-22  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/acl.h: Don't include <sys/acl.h>.
49724         (GETACLCNT): Move fallback to lib/acl-internal.h.
49725         * lib/acl-internal.h: Include <sys/acl.h> here.
49726         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49727
49728 2008-05-22  Bruno Haible  <bruno@clisp.org>
49729
49730         Split off copy_acl function to separate file.
49731         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49732         * lib/acl.c (copy_acl): Moved function to separate file.
49733         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49734         * modules/acl (Files): Add lib/copy-acl.c.
49735         (Makefiles.am): Augment lib_SOURCES.
49736
49737 2008-05-22  Bruno Haible  <bruno@clisp.org>
49738
49739         * modules/copy-file-tests: New file.
49740         * tests/test-copy-file.sh: New file.
49741         * tests/test-copy-file.c: New file.
49742         * tests/test-copy-file-sameacls.c: New file.
49743
49744 2008-05-22  Eric Blake  <ebb9@byu.net>
49745
49746         Avoid gcc warning.
49747         * tests/test-memcmp.c (main): Pass NULL indirectly.
49748
49749 2008-05-21  Bruno Haible  <bruno@clisp.org>
49750
49751         Add reference doc about ACLs.
49752         * doc/acl-resources.txt: New file.
49753         * doc/acl-cygwin.txt: New file.
49754
49755 2008-05-21  Bruno Haible  <bruno@clisp.org>
49756
49757         Avoid one more warning from gcc.
49758         * lib/vasnprintf.c (IF_LINT): Update comments.
49759         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49760
49761 2008-05-21  Jim Meyering  <meyering@redhat.com>
49762
49763         avoid a warning from gcc
49764         * lib/vasnprintf.c (IF_LINT): Define.
49765         (scale10_round_decimal_long_double):
49766         Use it to avoid a "may be used uninitialized" warning.
49767         (scale10_round_decimal_double): Likewise.
49768
49769 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49770
49771         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49772         declared.
49773
49774 2008-05-20  Bruno Haible  <bruno@clisp.org>
49775
49776         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49777         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49778
49779 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49780
49781         * modules/memcmp-tests: New file.
49782         * tests/test-memcmp.c: New file.
49783
49784 2008-05-19  Bruno Haible  <bruno@clisp.org>
49785
49786         * modules/propername (Notice, configure.ac): Put quoted "..." into
49787         --keyword option.
49788         * lib/propername.h: Update comments accordingly.
49789         Reported by Eric Blake.
49790
49791 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49792
49793         * modules/getpass-gnu (Depends-on): Add fseeko.
49794
49795 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49796
49797         * modules/base64-tests: New file.
49798
49799 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49800
49801         * lib/base64.c (base64_decode_ctx): If a decode context structure
49802         was passed in use it to ignore newlines.  If a context structure
49803         was _not_ passed in, continue to treat newlines as garbage (this
49804         is the historical behavior).  Formerly base64_decode.
49805         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49806         takes a decode context structure.
49807         * lib/base64.h (base64_decode): Macro for four-argument calls.
49808         (base64_decode_alloc): Likewise.
49809         * lib/base64.c (base64_decode_ctx): If a decode context structure
49810         was passed in use it to ignore newlines.  If a context structure
49811         was _not_ passed in, continue to treat newlines as garbage (this
49812         is the historical behavior).  Formerly base64_decode.
49813         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49814         takes a decode context structure.
49815         * lib/base64.h (base64_decode): Macro for four-argument calls.
49816         (base64_decode_alloc): Likewise.
49817
49818 2008-05-19  Jim Meyering  <meyering@redhat.com>
49819
49820         avoid a warning from gcc
49821         * lib/trim.c (IF_LINT): Define.
49822         (trim2): Use it to avoid a "may be used uninitialized" warning.
49823
49824         Fix doc typo.
49825         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49826
49827 2008-05-19  Bruno Haible  <bruno@clisp.org>
49828
49829         * doc/glibc-functions/getpass.texi: Document limits of other
49830         implementations.
49831
49832 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49833             Bruno Haible <bruno@clisp.org>
49834
49835         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49836
49837 2008-05-18  Bruno Haible  <bruno@clisp.org>
49838
49839         * modules/propername: New file, from GNU gettext.
49840         * lib/propername.h: New file, from GNU gettext.
49841         * lib/propername.c: New file, from GNU gettext.
49842         * MODULES.html.sh (Internationalization functions): Add propername.
49843
49844 2008-05-16  Jim Meyering  <meyering@redhat.com>
49845             Bruno Haible  <bruno@clisp.org>
49846
49847         Avoid some warnings from "gcc -Wshadow".
49848         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49849
49850 2008-05-15  Eric Blake  <ebb9@byu.net>
49851
49852         Extend previous patch to cygwin 1.7.0.
49853         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49854         fast implementation in cygwin >= 1.7.0.
49855         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49856         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49857
49858 2008-05-15  Bruno Haible  <bruno@clisp.org>
49859
49860         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49861         implementation in glibc >= 2.9.
49862         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49863         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49864
49865 2008-05-15  Bruno Haible  <bruno@clisp.org>
49866
49867         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49868         (Unicode string functions): Add unilbrk/*.
49869         Reported by Karl Berry.
49870
49871 2008-05-15  Eric Blake  <ebb9@byu.net>
49872
49873         Fix violation of <stdbool.h> replacement in regex.
49874         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49875         * lib/regexec.c (re_search_internal): Likewise.
49876         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49877
49878 2008-05-15  Jim Meyering  <meyering@redhat.com>
49879
49880         avoid distracting test output when git or cvs is not found
49881         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49882         * tests/test-vc-list-files-git.sh: Likewise.
49883
49884 2008-05-15  Eric Blake  <ebb9@byu.net>
49885
49886         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49887         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49888         glibc version.
49889         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49890         * doc/posix-functions/strstr.texi (strstr): Likewise.
49891         * lib/str-two-way.h (MAX): Sychronize with glibc.
49892
49893 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49894
49895         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49896         opr.ctx_type.
49897         (calc_first): Initialize constraint field.
49898         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49899         Fix grammar.
49900         (duplicate_node): Merge constraint field for all node types.
49901         (calc_eclosure_iter): Look at constraint field for all node types.
49902         * lib/regex_internal.c (create_cd_newstate): Don't look at
49903         opr.ctx_type.
49904
49905 2008-05-14  Bruno Haible  <bruno@clisp.org>
49906
49907         Help GCC to do better code generation.
49908         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49909         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49910         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49911         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49912         Declare with attribute 'malloc' if supported.
49913
49914 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49915
49916         use "echo STR|wc -c" rather than unportable "expr length STR"
49917         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49918         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49919
49920 2008-05-14  Jim Meyering  <meyering@redhat.com>
49921
49922         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49923         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49924         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49925         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49926         via Collin Lasse.
49927
49928 2008-05-14  Eric Blake  <ebb9@byu.net>
49929
49930         Avoid quadratic growth in gl_LIBSOURCES.
49931         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49932         Suggested by Bruno Haible.
49933
49934         Test xmemdup0.
49935         * modules/xmemdup0-tests: New file.
49936         * tests/test-xmemdup0.c: Likewise.
49937
49938 2008-05-13  Eric Blake  <ebb9@byu.net>
49939
49940         Split xmemdup0 into its own module.
49941         * modules/xmemdup0: New file.
49942         * lib/xmemdup0.h: Likewise.
49943         * lib/xmemdup0.c: Likewise.
49944         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49945         * lib/xalloc.h (xmemdup0): Remove.
49946         * lib/xmalloc.c (xmemdup0): Likewise.
49947
49948 2008-05-13  Eric Blake  <ebb9@byu.net>
49949             Bruno Haible  <bruno@clisp.org>
49950
49951         Reduce number of forks required during autoconf.
49952         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49953         and gl_LIBSOURCES_DIR.
49954         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49955         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49956         m4_syscmd per file.
49957         <m4_foreach_w>: Move...
49958         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49959
49960 2008-05-13  Eric Blake  <ebb9@byu.net>
49961
49962         * gnulib-tool: Fix various comment typos.
49963
49964 2008-05-12  Bruno Haible  <bruno@clisp.org>
49965
49966         Tailor the linebreaking algorithm.
49967         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49968
49969 2008-05-12  Bruno Haible  <bruno@clisp.org>
49970
49971         Update to Unicode 5.0.0.
49972         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49973         LBP_JV, LBP_JT. Redistribute values.
49974         (unilbrk_table): Change size.
49975         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49976         Unicode TR#14 rev. 22.
49977         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49978         LBP_JV, LBP_JT. Redistribute values.
49979         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49980         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49981         Update.
49982         * lib/unilbrk/lbrkprop1.h: Regenerated.
49983         * lib/unilbrk/lbrkprop2.h: Regenerated.
49984         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49985         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49986         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49987         Likewise.
49988         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49989         Likewise.
49990         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49991         result.
49992         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49993         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49994         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49995         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49996         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49997         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49998
49999 2008-05-11  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50002
50003 2008-05-11  Bruno Haible  <bruno@clisp.org>
50004
50005         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50006         * modules/unilbrk/gen-lbrk: New file.
50007
50008 2008-05-11  Bruno Haible  <bruno@clisp.org>
50009
50010         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50011         * m4/sha512.m4 (gl_SHA512): Likewise.
50012
50013 2008-05-11  Jim Meyering  <meyering@redhat.com>
50014
50015         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50016         * modules/crypto/sha256: New file.
50017         * modules/crypto/sha512: Likewise.
50018         * lib/sha256.c: Likewise.
50019         * lib/sha256.h: Likewise.
50020         * lib/sha512.c: Likewise.
50021         * lib/sha512.h: Likewise.
50022         * lib/u64.h: Likewise.
50023         * m4/sha256.m4: Likewise.
50024         * m4/sha512.m4: Likewise.
50025         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50026
50027 2008-05-10  Bruno Haible  <bruno@clisp.org>
50028
50029         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50030         (Input/Output <stdio.h>): Add xprintf.
50031         (Signal handling <signal.h>): Add strsignal.
50032         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50033         (Core language properties): Add func.
50034         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50035         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50036         strings.
50037         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50038         (Input/output): New section.
50039         (File system functions): Add openat-die, stat-macros.
50040         (Networking functions): Add sockets.
50041         (Unicode string functions): Add unictype/*.
50042         (Support for building libraries and executables): Add gperf.
50043         (Support for building documentation): Add agpl-3.0.
50044         (Misc): Add nocrash.
50045
50046 2008-05-10  Bruno Haible  <bruno@clisp.org>
50047
50048         * modules/unictype/gen-ctype: New file.
50049
50050 2008-05-10  Jim Meyering  <meyering@redhat.com>
50051
50052         Make chdir-safer.c more efficient on a system with no symlinks.
50053         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50054         also if ELOOP is zero.  Suggested by Bruno Haible.
50055
50056         Make chdir-safer.c slightly safer.
50057         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50058         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50059
50060         Avoid compile failure on systems without ELOOP (like mingw).
50061         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50062         Reported by Bruno Haible.
50063
50064 2008-05-10  Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50067         (is_utf8_encoding): Use a case-insensitive comparison.
50068         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50069         streq.
50070
50071 2008-05-10  Bruno Haible  <bruno@clisp.org>
50072
50073         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50074         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50075         * lib/unilbrk/ulc-common.h (iconv_string_length,
50076         iconv_string_keeping_offsets): Remove declarations.
50077         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50078         Don't include <iconv.h>, streq.h, xsize.h.
50079         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50080         conversion.
50081         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50082         <iconv.h>, streq.h, xsize.h.
50083         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50084         conversion.
50085         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50086         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50087         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50088         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50089
50090 2008-05-10  Bruno Haible  <bruno@clisp.org>
50091
50092         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50093         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50094
50095         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50096         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50097
50098         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50099         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50100
50101         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50102         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50103
50104         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50105         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50106
50107         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50108         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50109
50110         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50111         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50112
50113         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50114         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50115
50116 2008-05-10  Bruno Haible  <bruno@clisp.org>
50117
50118         Split up 'linebreak' module.
50119         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50120         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50121         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50122         modifications.
50123         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50124         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50125         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50126         lib/linebreak.c.
50127         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50128         lib/linebreak.c.
50129         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50130         lib/linebreak.c.
50131         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50132         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50133         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50134         lib/linebreak.c.
50135         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50136         lib/linebreak.c.
50137         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50138         lib/linebreak.c.
50139         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50140         lib/linebreak.c.
50141         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50142         lib/linebreak.c.
50143         * modules/unilbrk/base: New file.
50144         * modules/unilbrk/tables: New file.
50145         * modules/unilbrk/u8-possible-linebreaks: New file.
50146         * modules/unilbrk/u16-possible-linebreaks: New file.
50147         * modules/unilbrk/u32-possible-linebreaks: New file.
50148         * modules/unilbrk/ulc-common: New file.
50149         * modules/unilbrk/ulc-possible-linebreaks: New file.
50150         * modules/unilbrk/u8-width-linebreaks: New file.
50151         * modules/unilbrk/u16-width-linebreaks: New file.
50152         * modules/unilbrk/u32-width-linebreaks: New file.
50153         * modules/unilbrk/ulc-width-linebreaks: New file.
50154         * lib/linebreak.h: Remove file.
50155         * lib/linebreak.c: Remove file.
50156         * m4/linebreak.m4: Remove file.
50157         * modules/linebreak: Remove file.
50158         * NEWS: Mention the changes.
50159
50160 2008-05-09  Eric Blake  <ebb9@byu.net>
50161
50162         Add xmemdup0.
50163         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50164         implementation.
50165         * lib/xmalloc.c (xmemdup0): New C implementation.
50166
50167 2008-05-08  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50170
50171 2008-05-07  Eric Blake  <ebb9@byu.net>
50172
50173         Support cross-compilation of <wctype.h>.
50174         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50175         AC_CACHE_CHECK.
50176
50177 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50178
50179         * build-aux/vc-list-files: Add support for bzr.
50180
50181 2008-05-03  Jim Meyering  <meyering@redhat.com>
50182
50183         avoid failed assertion with tight malloc
50184         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50185
50186 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50187
50188         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50189         are needed from arpa/inet.h.
50190         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50191         Reported by Bruno Haible.
50192
50193 2008-05-02  Jim Meyering  <meyering@redhat.com>
50194
50195         avoid compilation error on FreeBSD 6
50196         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50197
50198 2008-05-01  Jim Meyering  <meyering@redhat.com>
50199
50200         useless-if-before-free: correct --help's exit status description
50201         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50202         for one or more matches, etc.  Reported by Bruno Haible.
50203
50204         vc-list-files: make the stand-alone gnulib test work
50205         * modules/vc-list-files-tests (configure.ac):
50206         Define and AC_SUBST abs_aux_dir.
50207         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50208         $(abs_top_srcdir) to each script and having each of them
50209         duplicate the work of setting PATH, set PATH here, using
50210         the new variable, abs_aux_dir instead.
50211         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50212         * tests/test-vc-list-files-git.sh: Likewise.
50213         Reported by Bruno Haible.
50214
50215 2008-05-01  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50218         reallocation. Rename 'done' to 'found_delimiter'.
50219
50220 2008-05-01  Jim Meyering  <meyering@redhat.com>
50221
50222         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50223         * build-aux/vc-list-files: Use `...`, not $(...).
50224
50225 2008-04-30  Jim Meyering  <meyering@redhat.com>
50226
50227         add tests for vc-list-files
50228         * modules/vc-list-files-tests: New module.
50229         * tests/test-vc-list-files-cvs.sh: New file.
50230         * tests/test-vc-list-files-git.sh: New file.
50231
50232         avoid a warning from gcc
50233         * lib/getndelim2.c (IF_LINT): Define.
50234         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50235
50236         vc-list-files: work properly with build-aux/cvsu, too
50237         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50238         to all cvs-based clauses.
50239
50240         vc-list-files: work properly in the CVS+awk case, too
50241         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50242
50243         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50244         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50245         take more than one file argument, so .  Add quotes, just in case $dir
50246         ever contains a shell meta-character.  Prompted by Soren Hansen in
50247         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50248
50249 2008-04-29  Eric Blake  <ebb9@byu.net>
50250
50251         Optimize getndelim2 to use block operations when possible.
50252         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50253         freadseek, and memchr2.
50254         * lib/getndelim2.c (getndelim2): Use them for block reads.
50255
50256 2008-04-29  Bruno Haible  <bruno@clisp.org>
50257
50258         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50259         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50260         * modules/inet_ntop (Depends-on): Add extensions.
50261         * modules/inet_pton (Depends-on): Likewise.
50262         Reported by Simon Josefsson.
50263
50264 2008-04-29  Jim Meyering  <meyering@redhat.com>
50265
50266         When the is more than one match in a block, match all of them.
50267         * build-aux/useless-if-before-free: Iterate through each block
50268         until there are no more matches.
50269
50270         Fix broken useless-if-before-free script.
50271         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50272         the expression to match cast of argument to free-like function.
50273
50274 2008-04-29  Eric Blake  <ebb9@byu.net>
50275
50276         Use new header.
50277         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50278
50279 2008-04-29  Jim Meyering  <meyering@redhat.com>
50280
50281         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50282         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50283         by gnulib to exist and to declare e.g., inet_ntop.
50284         Don't include "inet_ntop.h", now removed.
50285
50286         * m4/arpa_inet_h.m4: Remove trailing blanks.
50287
50288 2008-04-29  Eric Blake  <ebb9@byu.net>
50289
50290         Silence valgrind on safe reads beyond potential array bounds.
50291         * lib/rawmemchr.valgrind: New file.
50292         * lib/strchrnul.valgrind: Likewise.
50293         * modules/rawmemchr (Files): Distribute new file.
50294         * modules/strchrnul (Files): Likewise.
50295         Suggested by Bruno Haible.
50296
50297 2008-04-29  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50300         (inet_ntop, inet_pton): Change portability warning's wording.
50301         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50302         Invoke gl_CHECK_NEXT_HEADERS.
50303         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50304         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50305         set ARPA_INET_H.
50306         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50307         * modules/arpa_inet (Description): No longer only for systems that
50308         lack it.
50309         (Depends-on): Add include_next.
50310         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50311         HAVE_ARPA_INET_H.
50312
50313 2008-04-29  Jim Meyering  <meyering@redhat.com>
50314
50315         * modules/mkdir (License): Re-license as LGPLv2+.
50316
50317 2008-04-29  Bruno Haible  <bruno@clisp.org>
50318
50319         * modules/rawmemchr (Maintainer): Set to Eric.
50320         * modules/strchrnul (Maintainer): Likewise.
50321
50322 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50323
50324         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50325         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50326
50327         * modules/arpa_inet (arpa/inet.h): Use them.
50328
50329 2008-04-28  Eric Blake  <ebb9@byu.net>
50330
50331         Test getndelim2.
50332         * modules/getndelim2-tests: New file.
50333         * tests/test-getndelim2.c: Likewise.
50334         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50335         stream.
50336         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50337
50338         * MODULES.html.sh: Document new module.
50339
50340 2008-04-20  Bruno Haible  <bruno@clisp.org>
50341
50342         * lib/c-stack.c (die): Use raise.
50343         * modules/c-stack (Depends-on): Add raise.
50344
50345 2008-04-28  Bruno Haible  <bruno@clisp.org>
50346
50347         Expect rpmatch to be declared.
50348         * lib/yesno.c (rpmatch): Remove declaration.
50349
50350         Declare rpmatch.
50351         * lib/stdlib.in.h (rpmatch): New declaration.
50352         * lib/rpmatch.c: Include <stdlib.h> first.
50353         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50354         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50356         HAVE_RPMATCH.
50357         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50358         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50359         (Include): Set to <stdlib.h>.
50360         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50361         HAVE_RPMATCH.
50362         * NEWS: Document the change.
50363
50364 2008-04-28  Bruno Haible  <bruno@clisp.org>
50365
50366         Change rpmatch to use nl_langinfo when appropriate.
50367         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50368         (N_): New macro.
50369         (localized_pattern): New function/macro.
50370         (try): Remove match, nomatch arguments. Copy the pattern into safe
50371         memory before caching it.
50372         (rpmatch): Use localized_pattern. Add translator comments.
50373         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50374         Suggested by Eric Blake.
50375         * modules/rpmatch (Depends-on): Add stdbool.
50376
50377 2008-04-28  Eric Blake  <ebb9@byu.net>
50378
50379         Add rawmemchr module, matching glibc.
50380         * modules/string (Makefile.am): New indicator.
50381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50382         * lib/string.in.h (rawmemchr): Declare when appropriate.
50383         * modules/rawmemchr: New file.
50384         * m4/rawmemchr.m4: Likewise.
50385         * lib/rawmemchr.c: Likewise.
50386         * modules/rawmemchr-tests: Likewise.
50387         * tests/test-rawmemchr.c: Likewise.
50388         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50389         module.
50390         * modules/strchrnul (Depends-on): Add rawmemchr.
50391         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50392
50393         Whitespace cleanup.
50394         * tests/test-strchrnul.c: Reindent.
50395         * lib/strchrnul.c: Likewise.
50396
50397         Optimize and test strchrnul.
50398         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50399         * modules/strchrnul-tests: New file.
50400         * tests/test-strchrnul.c: Likewise.
50401
50402         Remove intprops dependency.
50403         * modules/memchr (Depends-on): Remove intprops.
50404         * modules/memrchr (Depends-on): Likewise.
50405         * modules/memchr2 (Depends-on): Likewise.
50406         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50407         * lib/memrchr.c (__memrchr): Likewise.
50408         * lib/memrchr2.c (memchr2): Likewise.
50409         Reported by Simon Josefsson.
50410
50411 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50412
50413         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50414         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50415
50416 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50417
50418         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50419
50420         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50421
50422         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50423
50424         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50425         declarations.
50426         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50427
50428         * m4/inet_pton.m4: Don't check for header files.
50429
50430         * m4/inet_ntop.m4: Don't check for header files.
50431
50432 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50433
50434         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50435         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50436         trigger for cygwin).
50437         Reported by Bruno Haible  <bruno@clisp.org>.
50438
50439 2008-04-28  Bruno Haible  <bruno@clisp.org>
50440
50441         * doc/posix-functions/strdup.texi: Mention mingw problem.
50442
50443 2008-04-27  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/stat-time-tests (Depends-on): Add sleep.
50446         * tests/test-stat-time.c (force_unlink): New function.
50447         (cleanup): Use it.
50448         (test_mtime): Remove the ctime related tests.
50449         (test_ctime): New function, containing the ctime related tests.
50450         (main): Call test_ctime, except on native Windows platforms.
50451
50452 2008-04-27  Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/rpmatch.c (rpmatch): Add some comments.
50455         Reported by James Youngman <jay@gnu.org>.
50456
50457 2008-04-27  Bruno Haible  <bruno@clisp.org>
50458
50459         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50460         quiet NaNs.
50461
50462 2008-04-27  Bruno Haible  <bruno@clisp.org>
50463
50464         Make test-yesno.sh work on mingw.
50465         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50466         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50467         (main): Set stdin to binary mode.
50468         * modules/yesno-tests (Depends-on): Add binary-io.
50469
50470 2008-04-27  Bruno Haible  <bruno@clisp.org>
50471
50472         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50473         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50474         argument that lie outside the IEEE 854 domain.
50475         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50476         (gl_ISFINITE): Use it.
50477         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50478
50479 2008-04-27  Bruno Haible  <bruno@clisp.org>
50480
50481         Allow local renaming in config.h.
50482         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50483
50484 2008-04-27  Bruno Haible  <bruno@clisp.org>
50485
50486         * lib/memchr.c (__memchr): Change type of 'i'.
50487         * lib/memchr2.c (memchr2): Likewise.
50488
50489 2008-04-26  Eric Blake  <ebb9@byu.net>
50490         and Bruno Haible  <bruno@clisp.org>
50491
50492         Optimize and test memrchr.
50493         * modules/memrchr (Depends-on): Add intprops.
50494         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50495         * modules/memrchr-tests: New file.
50496         * tests/test-memrchr.c: New file.
50497
50498 2008-04-26  Bruno Haible  <bruno@clisp.org>
50499
50500         Add tentative support for DragonFly BSD.
50501         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50502         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50503         fp.
50504         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50505         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50506         * lib/fpurge.c (fpurge): Likewise.
50507         * lib/freadable.c (freaadable): Likewise.
50508         * lib/freadahead.c (freadahead): Likewise.
50509         * lib/freading.c (freading): Likewise.
50510         * lib/freadptr.c (freadptr): Likewise.
50511         * lib/freadseek.c (freadptrinc): Likewise.
50512         * lib/fseeko.c (fseeko): Likewise.
50513         * lib/fseterr.c (fseterr): Likewise.
50514         * lib/fwritable.c (fwritable): Likewise.
50515         * lib/fwriting.c (fwriting): Likewise.
50516
50517 2008-04-26  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/stdio-impl.h: New file.
50520         * lib/fbufmode.c: Include stdio-impl.h.
50521         (fbufmode): Use fp_, remove redundant #defines.
50522         * lib/fflush.c: Include stdio-impl.h.
50523         (clear_ungetc_buffer): Remove redundant #defines.
50524         * lib/fpurge.c: Include stdio-impl.h.
50525         (fpurge): Remove redundant #defines.
50526         * lib/freadable.c: Include stdio-impl.h.
50527         (freadable): Remove redundant #defines.
50528         * lib/freadahead.c: Include stdio-impl.h.
50529         (freadahead): Remove redundant #defines.
50530         * lib/freading.c: Include stdio-impl.h.
50531         (freading): Remove redundant #defines.
50532         * lib/freadptr.c: Include stdio-impl.h.
50533         (freadptr): Remove redundant #defines.
50534         * lib/freadseek.c: Include stdio-impl.h.
50535         (freadptrinc): Remove redundant #defines.
50536         * lib/fseeko.c: Include stdio-impl.h.
50537         (rpl_fseeko): Remove redundant #defines.
50538         * lib/fseterr.c: Include stdio-impl.h.
50539         (fseterr): Remove redundant #defines.
50540         * lib/fwritable.c: Include stdio-impl.h.
50541         (fwritable: Remove redundant #defines.
50542         * lib/fwriting.c: Include stdio-impl.h.
50543         (fwriting): Remove redundant #defines.
50544         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50545         * modules/fflush (Files): Likewise.
50546         * modules/fpurge (Files): Likewise.
50547         * modules/freadable (Files): Likewise.
50548         * modules/freadahead (Files): Likewise.
50549         * modules/freading (Files): Likewise.
50550         * modules/freadptr (Files): Likewise.
50551         * modules/freadseek (Files): Likewise.
50552         * modules/fseeko (Files): Likewise.
50553         * modules/fseterr (Files): Likewise.
50554         * modules/fwritable (Files): Likewise.
50555         * modules/fwriting (Files): Likewise.
50556
50557 2008-04-26  Bruno Haible  <bruno@clisp.org>
50558
50559         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50560         restore_seek_optimization, update_fpos_cache): New functions, extracted
50561         from rpl_fflush.
50562         (rpl_fflush): Use them.
50563         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50564         (gl_REPLACE_FFLUSH): Use it.
50565
50566 2008-04-26  Bruno Haible  <bruno@clisp.org>
50567
50568         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50569         on Solaris.
50570         * tests/test-xstrtoimax.sh: Likewise.
50571         * tests/test-xstrtoumax.sh: Likewise.
50572         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50573
50574 2008-04-26  Bruno Haible  <bruno@clisp.org>
50575
50576         * modules/memchr-tests: New file.
50577         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50578
50579 2008-04-26  Eric Blake  <ebb9@byu.net>
50580             Bruno Haible  <bruno@clisp.org>
50581
50582         * lib/memchr.c: Include intprops.h.
50583         (__memchr): Optimize parallel detection of matching bytes. Rename local
50584         variables. Add explanatory comments.
50585
50586 2008-04-26  Bruno Haible  <bruno@clisp.org>
50587
50588         Fix module 'memchr', broken since 2000-10-28.
50589         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50590
50591 2008-04-26  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50594         comments.
50595
50596 2008-04-25  Eric Blake  <ebb9@byu.net>
50597
50598         Use native fstatat on cygwin 1.7.0.
50599         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50600         first.
50601
50602 2008-04-23  Eric Blake  <ebb9@byu.net>
50603
50604         Improve memchr2 performance.
50605         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50606         NUL bytes.
50607         * modules/memchr2 (Depends-on): Use intprops.h.
50608
50609 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50610
50611         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50612         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50613         <blp@cs.stanford.edu>.
50614
50615 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50616
50617         * lib/arpa_inet.in.h: New file.
50618
50619         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50620         (Makefile.am): Sed in substitute header file.
50621
50622         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50623         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50624
50625         * modules/inet_ntop (configure.ac): Use
50626         gl_ARPA_INET_MODULE_INDICATOR.
50627
50628         * modules/inet_pton (configure.ac): Use
50629         gl_ARPA_INET_MODULE_INDICATOR.
50630
50631 2008-04-22  Jim Meyering  <meyering@redhat.com>
50632
50633         * modules/verify (License): Re-license as LGPLv2+.
50634
50635 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50636
50637         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50638         parameter to void* as per POSIX standard (MinGW uses char*).
50639
50640 2008-04-21  Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50643         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50644         Define to replacements if REPLACE_ISWCNTRL is 1.
50645         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50646         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50647         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50648         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50649         what it fixes.
50650         * doc/posix-functions/iswalpha.texi: Likewise.
50651         * doc/posix-functions/iswblank.texi: Likewise.
50652         * doc/posix-functions/iswcntrl.texi: Likewise.
50653         * doc/posix-functions/iswdigit.texi: Likewise.
50654         * doc/posix-functions/iswgraph.texi: Likewise.
50655         * doc/posix-functions/iswlower.texi: Likewise.
50656         * doc/posix-functions/iswprint.texi: Likewise.
50657         * doc/posix-functions/iswpunct.texi: Likewise.
50658         * doc/posix-functions/iswspace.texi: Likewise.
50659         * doc/posix-functions/iswupper.texi: Likewise.
50660         * doc/posix-functions/iswxdigit.texi: Likewise.
50661         Reported by Alain Guibert.
50662
50663 2008-04-21  Bruno Haible  <bruno@clisp.org>
50664
50665         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50666         Patch by Alain Guibert.
50667
50668 2008-04-21  Bruno Haible  <bruno@clisp.org>
50669
50670         Fix test failures on mingw.
50671         * tests/test-xstrtol.c (print_no_progname): New function.
50672         (main): Install it in error_print_progname hook.
50673         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50674         * tests/test-xstrtoimax.sh: Likewise.
50675         * tests/test-xstrtoumax.sh: Likewise.
50676
50677 2008-04-21  Bruno Haible  <bruno@clisp.org>
50678
50679         Fix test failure on mingw.
50680         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50681
50682 2008-04-21  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50685         Actually assign a value.
50686
50687 2008-04-20  Bruno Haible  <bruno@clisp.org>
50688
50689         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50690         take 2.
50691         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50692         'canonicalize-lgpl' module is also used.
50693         * lib/canonicalize-lgpl.c: Undo last change.
50694         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50695
50696 2008-04-20  Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50699         config.h. Provide _mkdir based fallback for mingw.
50700         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50701         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50702         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50703         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50704         rather than defining mkdir in config.h.
50705         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50706         (gl_SYS_STAT_H_DEFAULTS): New macro.
50707         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50708         HAVE_IO_H any more.
50709         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50710         HAVE_DECL_MKDIR and HAVE_IO_H.
50711
50712 2008-04-20  Bruno Haible  <bruno@clisp.org>
50713
50714         * lib/isapipe.c: Port to native Windows platforms.
50715
50716 2008-04-20  Bruno Haible  <bruno@clisp.org>
50717
50718         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50719
50720 2008-04-21  Eric Blake  <ebb9@byu.net>
50721
50722         Work around preprocessors that don't handle UINTMAX_MAX.
50723         * lib/memchr2.c (memchr2): Avoid embedded #if.
50724         Reported by Alain Guibert, fix suggested by Bruno Haible.
50725
50726 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50727
50728         * doc/posix-functions/strftime.texi (strftime): Explain better
50729         Windows incompatibility.  Suggested by Micah Cowan
50730         <micah@cowan.name>.
50731
50732 2008-04-20  Bruno Haible  <bruno@clisp.org>
50733
50734         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50735         unistr/u8-mblen.
50736
50737 2008-04-20  Bruno Haible  <bruno@clisp.org>
50738
50739         Fix test failure on platforms with non-GNU iconv.
50740         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50741         (U_TO_U8): Use it, rather than u16_to_u8.
50742         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50743         units at the end of the input string.
50744         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50745
50746 2008-04-20  Bruno Haible  <bruno@clisp.org>
50747
50748         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50749         when the resulting length is 0.
50750         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50751
50752 2008-04-20  Bruno Haible  <bruno@clisp.org>
50753
50754         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50755         works.
50756         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50757
50758 2008-04-20  Bruno Haible  <bruno@clisp.org>
50759
50760         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50761         * modules/tsearch-tests (configure.ac): Test for initstate function.
50762
50763 2008-04-20  Bruno Haible  <bruno@clisp.org>
50764
50765         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50766         for nlink_t if missing.
50767         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50768
50769 2008-04-19  Bruno Haible  <bruno@clisp.org>
50770
50771         Work around snprintf bug on Linux libc5.
50772         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50774         gl_SNPRINTF_SIZE1.
50775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50776         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50777         that test failed.
50778         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50779         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50780         * modules/snprintf (Files): Add m4/printf.m4.
50781         * modules/vsnprintf (Files): Likewise.
50782         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50783         * doc/posix-functions/vsnprintf.texi: Likewise.
50784
50785 2008-04-19  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50788         from 0.0058 to less than 10^-7.
50789
50790 2008-04-19  Bruno Haible  <bruno@clisp.org>
50791
50792         Fix rounding when a precision is given.
50793         * lib/vasnprintf.c (is_borderline): New function.
50794         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50795         9...9x.
50796         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50797         %e, %g.
50798         * tests/test-vasprintf-posix.c (test_function): Likewise.
50799         * tests/test-snprintf-posix.h (test_function): Likewise.
50800         * tests/test-sprintf-posix.h (test_function): Likewise.
50801         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50802         * tests/test-printf-posix.h (test_function): Likewise.
50803         * tests/test-printf-posix.output: Update.
50804         Reported by John Darrington <john@darrington.wattle.id.au> via
50805         Ben Pfaff <blp@cs.stanford.edu>.
50806
50807 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50808
50809         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50810         Suggested by Bruno Haible <bruno@clisp.org>.
50811
50812 2008-04-17  Bruno Haible  <bruno@clisp.org>
50813
50814         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50815         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50816         implementation.
50817         Patch by Bruce Merry <bmerry@gmail.com>.
50818
50819 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50820
50821         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50822         doesn't work under Windows.
50823
50824 2008-04-16  Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50827         New macros.
50828         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50829         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50830         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50831         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50832         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50833         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50834         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50835         macros.
50836         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50837         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50838         Northern Sotho, Uighur.
50839
50840 2008-04-16  Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50843         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50844         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50845         Reported by Daniel Bergström <daniel@octocode.com>.
50846
50847 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50848             Bruno Haible  <bruno@clisp.org>
50849
50850         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50851         function.
50852         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50853         New functions, mostly extracted from gl_locale_name_default.
50854         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50855
50856 2008-04-16  Eric Blake  <ebb9@byu.net>
50857
50858         Adjust strtod detection to catch glibc 2.7 bug.
50859         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50860         Reported by John Gatewood Ham.
50861
50862 2008-04-16  Bruno Haible  <bruno@clisp.org>
50863
50864         Add tentative support for Linux libc5.
50865         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50866         * lib/fpurge.c (fpurge): Likewise.
50867         * lib/freadable.c (freadable): Likewise.
50868         * lib/freadahead.c (freadahead): Likewise.
50869         * lib/freading.c (freading): Likewise.
50870         * lib/freadptr.c (freadptr): Likewise.
50871         * lib/freadseek.c (freadptrinc): Likewise.
50872         * lib/fseeko.c (rpl_fseeko): Likewise.
50873         * lib/fseterr.c (fseterr): Likewise.
50874         * lib/fwritable.c (fwritable): Likewise.
50875         * lib/fwriting.c (fwriting): Likewise.
50876         Reported by Alain Guibert <alguibert+bts@free.fr>.
50877
50878 2008-04-15  Bruno Haible  <bruno@clisp.org>
50879
50880         * modules/mathl (configure.ac): Define module indicator.
50881
50882 2008-04-15  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/logl.c (logl): Remove unused variables.
50885
50886 2008-04-15  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50889         fails.
50890
50891 2008-04-15  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/trim.c (trim2): Fix argument of isspace() macro.
50894
50895 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50896
50897         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50898         to 0.
50899         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50900
50901 2008-04-14  Bruno Haible  <bruno@clisp.org>
50902
50903         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50904         AC_LANG_PROGRAM argument.
50905         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50906         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50908         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50909         * m4/math_h.m4 (gl_MATH_H): Likewise.
50910         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50911         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50912         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50913         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50914         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50915         * m4/regex.m4 (gl_REGEX): Likewise.
50916         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50917         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50919         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50920         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50921         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50924
50925 2008-04-14  Jim Meyering  <meyering@redhat.com>
50926
50927         test-strtod: fix typos: s/abs/fabs/
50928         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50929
50930 2008-04-13  Bruno Haible  <bruno@clisp.org>
50931
50932         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50933         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50934         module is also used and while not building the reloc-wrapper.
50935
50936 2008-04-13  Bruno Haible  <bruno@clisp.org>
50937
50938         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50939
50940 2008-04-13  Bruno Haible  <bruno@clisp.org>
50941
50942         Fix AIX compilation failure introduced on 2008-04-02.
50943         * tests/test-frexp.c (exp): Undefine before redefining.
50944         * tests/test-frexpl.c (exp): Likewise.
50945
50946 2008-04-13  Bruno Haible  <bruno@clisp.org>
50947
50948         Work around a HP-UX stdio bug.
50949         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50950         * tests/test-ftello.c (main): Likewise.
50951         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50952         * doc/posix-functions/ftello.texi: Likewise.
50953
50954 2008-04-13  Bruno Haible  <bruno@clisp.org>
50955
50956         Make test-signbit pass on HP-UX/hppa.
50957         * tests/test-signbit.c (minus_zerol): New variable.
50958         (test_signbitl): Use it.
50959
50960 2008-04-13  Bruno Haible  <bruno@clisp.org>
50961
50962         Make truncl work on OSF/1 4.0.
50963         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50964         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50965         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50967         HAVE_DECL_TRUNCL.
50968         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50969         HAVE_DECL_TRUNCL.
50970         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50971
50972 2008-04-13  Bruno Haible  <bruno@clisp.org>
50973
50974         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50975
50976 2008-04-13  Bruno Haible  <bruno@clisp.org>
50977
50978         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50979         expression, so as to avoid HP-UX 11 cc compiler bug.
50980
50981 2008-04-13  Bruno Haible  <bruno@clisp.org>
50982
50983         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50984
50985 2008-04-13  Bruno Haible  <bruno@clisp.org>
50986
50987         * lib/git-merge-changelog.c: Remove empty declaration outside of
50988         functions.
50989
50990 2008-04-13  Bruno Haible  <bruno@clisp.org>
50991
50992         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50993
50994 2008-04-13  Bruno Haible  <bruno@clisp.org>
50995
50996         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50997         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50998         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50999         also if it exists but lacks definitions of the SHUT_* macros.
51000         * modules/sys_socket (Description): Update.
51001         Reported by Elbert Pol <e.pol@chello.nl>.
51002
51003 2008-04-13  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/localcharset.c (OS2): Don't redefine if already defined.
51006         Reported by Elbert Pol <e.pol@chello.nl>.
51007
51008 2008-04-13  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/binary-io.h [__EMX__]: Include <io.h>.
51011         Reported by Elbert Pol <e.pol@chello.nl>.
51012
51013 2008-04-12  Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/fpucw.h: Enable the definitions also for x86_64.
51016         Needed for NetBSD/x86_64.
51017         Reported by Thomas Klausner <tk@giga.or.at>.
51018
51019 2008-04-12  Bruno Haible  <bruno@clisp.org>
51020
51021         * tests/test-strtod.c: Include isnand.h.
51022         (main): Use isnand instead of isnan.
51023         Reported by Jim Meyering.
51024
51025 2008-04-12  Bruno Haible  <bruno@clisp.org>
51026
51027         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51028         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51029
51030 2008-04-12  Jim Meyering  <meyering@redhat.com>
51031
51032         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51033
51034 2008-04-12  Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51037         Reported by Elbert Pol <e.pol@chello.nl>.
51038
51039 2008-04-12  Eric Blake  <ebb9@byu.net>
51040
51041         Work around Solaris 10 math.h bug.
51042         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51043         (gl_MATH_H_DEFAULTS): Set up default.
51044         * modules/math (Makefile.am): Replace new indicators.
51045         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51046         * tests/test-math.c (main): Test this.
51047         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51048         * doc/posix-headers/math.texi (math.h): Mention bug.
51049         Reported by Nelson H. F. Beebe and Jim Meyering.
51050
51051 2008-04-11  Bruno Haible  <bruno@clisp.org>
51052
51053         Adapt to future versions of Apple GCC.
51054         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51055         Reported by Peter O'Gorman <peter@pogma.com>.
51056
51057 2008-04-11  Bruno Haible  <bruno@clisp.org>
51058
51059         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51060
51061 2008-04-11  Bruno Haible  <bruno@clisp.org>
51062
51063         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51064
51065         * modules/getaddrinfo-tests (Makefile.am): Define
51066         test_getaddrinfo_LDADD.
51067
51068 2008-04-11  Bruno Haible  <bruno@clisp.org>
51069
51070         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51071         (init): Fix syntax error.
51072         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51073         is declared.
51074
51075 2008-04-11  Bruno Haible  <bruno@clisp.org>
51076
51077         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51078         * modules/glob (Depends-on): Add stdbool.
51079
51080 2008-04-11  Bruno Haible  <bruno@clisp.org>
51081
51082         * lib/trim.c: Include <string.h>.
51083
51084 2008-04-11  Eric Blake  <ebb9@byu.net>
51085
51086         Avoid compile failure on OS/2.
51087         * lib/regex_internal.h (internal_function): Disable optimization
51088         on OS/2 (__EMX__), where it caused compiler error.
51089         Reported by Elbert Pol.
51090
51091 2008-04-11  Bruno Haible  <bruno@clisp.org>
51092
51093         Flush the standard error stream before aborting. Needed on mingw.
51094         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51095         * tests/test-array_list.c (ASSERT): Likewise.
51096         * tests/test-array_oset.c (ASSERT): Likewise.
51097         * tests/test-avltree_list.c (ASSERT): Likewise.
51098         * tests/test-avltree_oset.c (ASSERT): Likewise.
51099         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51100         * tests/test-binary-io.c (ASSERT): Likewise.
51101         * tests/test-byteswap.c (ASSERT): Likewise.
51102         * tests/test-c-ctype.c (ASSERT): Likewise.
51103         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51104         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51105         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51106         * tests/test-c-strstr.c (ASSERT): Likewise.
51107         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51108         * tests/test-canonicalize.c (ASSERT): Likewise.
51109         * tests/test-carray_list.c (ASSERT): Likewise.
51110         * tests/test-ceilf1.c (ASSERT): Likewise.
51111         * tests/test-ceilf2.c (ASSERT): Likewise.
51112         * tests/test-ceill.c (ASSERT): Likewise.
51113         * tests/test-count-one-bits.c (ASSERT): Likewise.
51114         * tests/test-fbufmode.c (ASSERT): Likewise.
51115         * tests/test-fflush2.c (ASSERT): Likewise.
51116         * tests/test-floorf1.c (ASSERT): Likewise.
51117         * tests/test-floorf2.c (ASSERT): Likewise.
51118         * tests/test-floorl.c (ASSERT): Likewise.
51119         * tests/test-fopen.c (ASSERT): Likewise.
51120         * tests/test-fpending.c (ASSERT): Likewise.
51121         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51122         * tests/test-fpurge.c (ASSERT): Likewise.
51123         * tests/test-freadable.c (ASSERT): Likewise.
51124         * tests/test-freadahead.c (ASSERT): Likewise.
51125         * tests/test-freading.c (ASSERT): Likewise.
51126         * tests/test-freadptr.c (ASSERT): Likewise.
51127         * tests/test-freadptr2.c (ASSERT): Likewise.
51128         * tests/test-freadseek.c (ASSERT): Likewise.
51129         * tests/test-freopen.c (ASSERT): Likewise.
51130         * tests/test-frexp.c (ASSERT): Likewise.
51131         * tests/test-frexpl.c (ASSERT): Likewise.
51132         * tests/test-fseek.c (ASSERT): Likewise.
51133         * tests/test-fseeko.c (ASSERT): Likewise.
51134         * tests/test-fstrcmp.c (ASSERT): Likewise.
51135         * tests/test-ftell.c (ASSERT): Likewise.
51136         * tests/test-ftello.c (ASSERT): Likewise.
51137         * tests/test-func.c (ASSERT): Likewise.
51138         * tests/test-fwritable.c (ASSERT): Likewise.
51139         * tests/test-fwriting.c (ASSERT): Likewise.
51140         * tests/test-getdelim.c (ASSERT): Likewise.
51141         * tests/test-getline.c (ASSERT): Likewise.
51142         * tests/test-i-ring.c (ASSERT): Likewise.
51143         * tests/test-iconv-utf.c (ASSERT): Likewise.
51144         * tests/test-iconv.c (ASSERT): Likewise.
51145         * tests/test-isfinite.c (ASSERT): Likewise.
51146         * tests/test-isnand.c (ASSERT): Likewise.
51147         * tests/test-isnanf.c (ASSERT): Likewise.
51148         * tests/test-isnanl.h (ASSERT): Likewise.
51149         * tests/test-ldexpl.c (ASSERT): Likewise.
51150         * tests/test-linked_list.c (ASSERT): Likewise.
51151         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51152         * tests/test-localename.c (ASSERT): Likewise.
51153         * tests/test-lseek.c (ASSERT): Likewise.
51154         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51155         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51156         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51157         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51158         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51159         * tests/test-mbschr.c (ASSERT): Likewise.
51160         * tests/test-mbscspn.c (ASSERT): Likewise.
51161         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51162         * tests/test-mbspbrk.c (ASSERT): Likewise.
51163         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51164         * tests/test-mbsrchr.c (ASSERT): Likewise.
51165         * tests/test-mbsspn.c (ASSERT): Likewise.
51166         * tests/test-mbsstr1.c (ASSERT): Likewise.
51167         * tests/test-mbsstr2.c (ASSERT): Likewise.
51168         * tests/test-mbsstr3.c (ASSERT): Likewise.
51169         * tests/test-memchr2.c (ASSERT): Likewise.
51170         * tests/test-memmem.c (ASSERT): Likewise.
51171         * tests/test-open.c (ASSERT): Likewise.
51172         * tests/test-printf-frexp.c (ASSERT): Likewise.
51173         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51174         * tests/test-printf-posix.c (ASSERT): Likewise.
51175         * tests/test-quotearg.c (ASSERT): Likewise.
51176         * tests/test-rbtree_list.c (ASSERT): Likewise.
51177         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51178         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51179         * tests/test-round1.c (ASSERT): Likewise.
51180         * tests/test-roundf1.c (ASSERT): Likewise.
51181         * tests/test-roundl.c (ASSERT): Likewise.
51182         * tests/test-signbit.c (ASSERT): Likewise.
51183         * tests/test-sleep.c (ASSERT): Likewise.
51184         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51185         * tests/test-snprintf.c (ASSERT): Likewise.
51186         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51187         * tests/test-stat-time.c (ASSERT): Likewise.
51188         * tests/test-strcasestr.c (ASSERT): Likewise.
51189         * tests/test-strerror.c (ASSERT): Likewise.
51190         * tests/test-striconv.c (ASSERT): Likewise.
51191         * tests/test-striconveh.c (ASSERT): Likewise.
51192         * tests/test-striconveha.c (ASSERT): Likewise.
51193         * tests/test-strsignal.c (ASSERT): Likewise.
51194         * tests/test-strstr.c (ASSERT): Likewise.
51195         * tests/test-strtod.c (ASSERT): Likewise.
51196         * tests/test-trunc1.c (ASSERT): Likewise.
51197         * tests/test-trunc2.c (ASSERT): Likewise.
51198         * tests/test-truncf1.c (ASSERT): Likewise.
51199         * tests/test-truncf2.c (ASSERT): Likewise.
51200         * tests/test-truncl.c (ASSERT): Likewise.
51201         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51202         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51203         * tests/test-vasnprintf.c (ASSERT): Likewise.
51204         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51205         * tests/test-vasprintf.c (ASSERT): Likewise.
51206         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51207         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51208         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51209         * tests/test-vsnprintf.c (ASSERT): Likewise.
51210         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51211         * tests/test-wcwidth.c (ASSERT): Likewise.
51212         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51213         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51214         * tests/test-xvasprintf.c (ASSERT): Likewise.
51215         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51216         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51217         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51218         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51219         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51220         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51221         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51222         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51223         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51224         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51225         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51226         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51227         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51228         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51229         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51230         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51231         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51232         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51233         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51234         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51235         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51236         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51237         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51238         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51239         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51240         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51241         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51242         * tests/unictype/test-combining.c (ASSERT): Likewise.
51243         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51244         * tests/unictype/test-digit.c (ASSERT): Likewise.
51245         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51246         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51247         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51248         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51249         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51250         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51251         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51252         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51253         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51254         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51255         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51256         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51257         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51258         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51259         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51260         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51261         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51262         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51263         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51264         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51265         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51266         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51267         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51268         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51269         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51270         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51271         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51272         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51273         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51274         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51275         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51276         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51277         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51278         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51279         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51280         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51281         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51282         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51283         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51284         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51285         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51286         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51287         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51288         Reported by Eric Blake.
51289
51290 2008-04-11  Bruno Haible  <bruno@clisp.org>
51291
51292         * lib/wchar.in.h: Tweak comment.
51293
51294 2008-04-11  Bruno Haible  <bruno@clisp.org>
51295
51296         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51297         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51298         gl_COMMON.
51299         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51300
51301 2008-04-11  Bruno Haible  <bruno@clisp.org>
51302
51303         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51304
51305 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51306
51307         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51308         of attempting to use non-existing /dev/*random.  Based on patch
51309         from Adam Strzelecki <ono@java.pl> in
51310         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51311
51312 2008-04-08  Bruno Haible  <bruno@clisp.org>
51313
51314         Add tentative support for emx+gcc.
51315         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51316         * lib/fpurge.c (fpurge): Likewise.
51317         * lib/freadable.c (freadable): Likewise.
51318         * lib/freadahead.c (freadahead): Likewise.
51319         * lib/freading.c (freading): Likewise.
51320         * lib/freadptr.c (freadptr): Likewise.
51321         * lib/freadseek.c (freadptrinc): Likewise.
51322         * lib/fseeko.c (rpl_fseeko): Likewise.
51323         * lib/fseterr.c (fseterr): Likewise.
51324         * lib/fwritable.c (fwritable): Likewise.
51325         * lib/fwriting.c (fwriting): Likewise.
51326         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51327
51328 2008-04-09  Eric Blake  <ebb9@byu.net>
51329
51330         Avoid some autoconf warnings.
51331         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51332         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51333         * m4/afs.m4 (gl_AFS): Likewise.
51334         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51335         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51336         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51337         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51338         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51339         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51340         (AC_CHECK_DECLS_ONCE): Likewise.
51341         Rename file...
51342         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51343         gnulib-tool requires autoconf 2.59 or better.
51344         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51345
51346 2008-04-08  Eric Blake  <ebb9@byu.net>
51347
51348         Use 'git describe --match' if present (added in git 1.5.5).
51349         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51350         if possible.
51351
51352 2008-04-08  Bruno Haible  <bruno@clisp.org>
51353
51354         Add tentative support for OpenServer.
51355         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51356         _ptr, _cnt.
51357         * lib/fpurge.c (fpurge): Likewise.
51358         * lib/freadable.c (freadable): Likewise.
51359         * lib/freadahead.c (freadahead): Likewise.
51360         * lib/freading.c (freading): Likewise.
51361         * lib/freadptr.c (freadptr): Likewise.
51362         * lib/freadseek.c (freadptrinc): Likewise.
51363         * lib/fseeko.c (rpl_fseeko): Likewise.
51364         * lib/fseterr.c (fseterr): Likewise.
51365         * lib/fwritable.c (fwritable): Likewise.
51366         * lib/fwriting.c (fwriting): Likewise.
51367         Reported by Roger Cornelius <rac@tenzing.org> and
51368         Brian K. White <brian@aljex.com>.
51369
51370 2008-04-06  Jim Meyering  <meyering@redhat.com>
51371
51372         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51373
51374 2008-04-06  Bruno Haible  <bruno@clisp.org>
51375
51376         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51377         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51378         * tests/test-printf-posix.sh: Likewise.
51379         * tests/test-vfprintf-posix.sh: Likewise.
51380         * tests/test-vprintf-posix.sh: Likewise.
51381         * tests/test-xprintf-posix.sh: Likewise.
51382
51383 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51384
51385         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51386         hide error from 'ls', needed on OS/2.
51387         Report by Elbert Pol <elbert.pol@gmail.com>.
51388
51389 2008-04-04  Eric Blake  <ebb9@byu.net>
51390
51391         Make test-fseeko.c failures meaningful.
51392         * tests/test-fseeko.c: Print line number on failure.
51393         * tests/test-fseek.c: Likewise.
51394         Reported by Nelson H. F. Beebe.
51395
51396         Improve strtod bug detection check.
51397         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51398         required for Solaris 10.
51399         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51400
51401 2008-04-04  Bruno Haible  <bruno@clisp.org>
51402
51403         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51404         by m4/setenv.m4.
51405
51406 2008-04-03  Eric Blake  <ebb9@byu.net>
51407
51408         Ensure sane .version contents.
51409         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51410         version string.
51411         * build-aux/git-version-gen: Improve documentation.
51412
51413         Make GNU make output nicer.
51414         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51415         MAKECMDGOALS to enforce message for all command line targets.  Set
51416         srcdir for use in maint.mk.
51417
51418         Another maintainer tweak.
51419         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51420         a target that regenerates version.
51421
51422 2008-04-03  Jim Meyering  <meyering@redhat.com>
51423
51424         vc-list-files: don't cause coreutils "make po-check" failure
51425         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51426
51427 2008-04-03  Eric Blake  <ebb9@byu.net>
51428
51429         Allow VPATH usage of vc-list-files.
51430         * build-aux/vc-list-files (scriptversion): Add timestamp.
51431         (options): Add --help, --version, -C.
51432         (CVS): Support installed cvsu.
51433
51434 2008-04-02  Bruno Haible  <bruno@clisp.org>
51435
51436         Avoid some "statement with no effect" warnings from gcc.
51437         * tests/test-wctype.c (main): Explicitly ignore unused values.
51438         Reported by Jim Meyering.
51439
51440 2008-04-02  Jim Meyering  <meyering@redhat.com>
51441
51442         Avoid some warnings from "gcc -Wshadow".
51443         * tests/test-frexp.c (exp): Define to a different identifier.
51444         * tests/test-frexpl.c (exp): Likewise.
51445
51446 2008-04-03  Jim Meyering  <meyering@redhat.com>
51447
51448         bootstrap: remove dangling *.[ch] symlinks from lib
51449         * build-aux/bootstrap [dangling symlink removal]: Move find's
51450         -depth option to precede all others, to avoid a warning.
51451         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51452
51453 2008-04-02  Bruno Haible  <bruno@clisp.org>
51454
51455         Avoid some warnings from "gcc -Wshadow".
51456         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51457         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51458         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51459         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51460         Reported by Jim Meyering.
51461
51462 2008-04-01  Bruno Haible  <bruno@clisp.org>
51463
51464         Fix test to work on IRIX 6.5 with cc.
51465         * tests/test-math.c (numeric_equal): New function.
51466         (main): Use it.
51467
51468 2008-04-01  Bruno Haible  <bruno@clisp.org>
51469
51470         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51471
51472 2008-04-01  Bruno Haible  <bruno@clisp.org>
51473
51474         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51475         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51476         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51477         (Depends-on): Remove math.
51478
51479         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51480         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51481         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51482         (Depends-on): Remove math.
51483
51484         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51485         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51486         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51487         (Depends-on): Remove math.
51488         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51489         (Depends-on): Remove math.
51490
51491         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51492         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51493         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51494         (Depends-on): Remove math.
51495         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51496         (Depends-on): Remove math.
51497
51498         * tests/test-round1.c: Include nan.h.
51499         (main): Use NaNd instead of NAN.
51500         * modules/round-tests (Files): Add tests/nan.h.
51501
51502         * tests/test-trunc1.c: Include nan.h.
51503         (main): Use NaNd instead of NAN.
51504         * modules/trunc-tests (Files): Add tests/nan.h.
51505
51506         * tests/test-roundf1.c: Include nan.h.
51507         (main): Use NaNf instead of NAN.
51508         * modules/roundf-tests (Files): Add tests/nan.h.
51509
51510         * tests/test-truncf1.c: Include nan.h.
51511         (main): Use NaNf instead of NAN.
51512         * modules/truncf-tests (Files): Add tests/nan.h.
51513
51514         * tests/test-ceilf1.c: Include nan.h.
51515         (main): Use NaNf instead of NAN.
51516         * modules/ceilf-tests (Files): Add tests/nan.h.
51517
51518         * tests/test-floorf1.c: Include nan.h.
51519         (main): Use NaNf instead of NAN.
51520         * modules/floorf-tests (Files): Add tests/nan.h.
51521
51522         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51523         (main): Use NaNf instead of NAN.
51524         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51525
51526         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51527         (main): Use NaNd instead of NAN.
51528         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51529
51530         * tests/test-frexp.c: Include nan.h.
51531         (main): Use NaNd instead of NAN.
51532         * modules/frexp-tests (Files): Add tests/nan.h.
51533
51534         * lib/isnan.c: Don't include <math.h>.
51535         (FUNC): Don't use NAN macro.
51536         * modules/isnand-nolibm (Depends-on): Remove math.
51537         * modules/isnanf-nolibm (Depends-on): Remove math.
51538         * modules/isnanl (Depends-on): Remove math.
51539         * modules/isnanl-nolibm (Depends-on): Remove math.
51540
51541         * tests/nan.h: New file.
51542
51543 2008-04-01  Eric Blake  <ebb9@byu.net>
51544
51545         Fix typos.
51546         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51547         values to be the right type.
51548
51549         For now, cater to gnulib strtod inaccuracies.
51550         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51551         fractional results.  While not as nice from a QoI perspective, it
51552         is a quicker patch than correctly implementing decimal to binary
51553         rounding.
51554
51555 2008-03-31  Eric Blake  <ebb9@byu.net>
51556
51557         Guarantee a definition of NAN.
51558         * lib/math.in.h (NAN): Define if missing.
51559         * tests/test-math.c (main): Test it.
51560         * doc/posix-headers/math.texi (math.h): Document this.
51561         * lib/isnan.c (rpl_isnand): Use it.
51562         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51563         * tests/test-floorf1.c (NaN): Likewise.
51564         * tests/test-frexp.c (NaN): Likewise.
51565         * tests/test-isnand.c (NaN): Likewise.
51566         * tests/test-isnanf.c (NaN): Likewise.
51567         * tests/test-round1.c (NaN): Likewise.
51568         * tests/test-roundf1.c (NaN): Likewise.
51569         * tests/test-snprintf-posix.h (NaN): Likewise.
51570         * tests/test-sprintf-posix.h (NaN): Likewise.
51571         * tests/test-trunc1.c (NaN): Likewise.
51572         * tests/test-truncf1.c (NaN): Likewise.
51573         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51574         * tests/test-vasprintf-posix.c (NaN): Likewise.
51575         * modules/isnand-nolibm (Depends-on): Add math.
51576         * modules/isnanf-nolibm (Depends-on): Likewise.
51577         * modules/isnanl (Depends-on): Likewise.
51578         * modules/isnanl-nolibm (Depends-on): Likewise.
51579         * modules/snprintf-posix-tests (Depends-on): Likewise.
51580         * modules/sprintf-posix-tests (Depends-on): Likewise.
51581         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51582         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51583         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51584         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51585
51586 2008-03-31  Bruno Haible  <bruno@clisp.org>
51587
51588         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51589         * doc/posix-functions/strtod.texi: Likewise.
51590
51591 2008-03-31  Bruno Haible  <bruno@clisp.org>
51592
51593         * tests/test-strtod.c (main): Don't use C99 syntax.
51594
51595 2008-03-31  Bruno Haible  <bruno@clisp.org>
51596
51597         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51598         Reported by Eric Blake.
51599
51600 2008-03-31  Jim Meyering  <meyering@redhat.com>
51601
51602         Don't compare actual signbit return values.
51603         * tests/test-strtod.c (main): Rather, compare only their
51604         zero/non-zero nature.
51605
51606 2008-03-31  Eric Blake  <ebb9@byu.net>
51607
51608         More strtod documentation.
51609         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51610         failures as distinct bugs.
51611
51612 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51613
51614         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51615         Problem reported by Erik Benada in
51616         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51617
51618 2008-03-30  Bruno Haible  <bruno@clisp.org>
51619
51620         * tests/test-strtod.c: Add comments about which assertion fails on which
51621         platform.
51622         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51623
51624 2008-03-30  Eric Blake  <ebb9@byu.net>
51625
51626         Test signbit behavior on zeros.
51627         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51628         (test_signbitd, test_signbitl): Likewise.
51629
51630         More strtod touchups.
51631         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51632         sign of negative underflow, for now.  Use .5, not .1.
51633         * doc/posix-functions/strtod.texi (strtod): Mention these
51634         limitations.
51635         Reported by Jim Meyering.
51636
51637 2008-03-30  Bruno Haible  <bruno@clisp.org>
51638
51639         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51640         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51641
51642 2008-03-30  Bruno Haible  <bruno@clisp.org>
51643
51644         Avoid failure when attempting to return empty iconv results on some
51645         platforms.
51646         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51647         allocation, don't report ENOMEM when the resulting string is empty.
51648
51649 2008-03-30  Bruno Haible  <bruno@clisp.org>
51650
51651         Fix buffer overrun.
51652         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51653         Don't consider the width for tmp_length. Check count against tmp_length
51654         before doing the padding. Ensure enough allocation during padding.
51655
51656 2008-03-30  Eric Blake  <ebb9@byu.net>
51657
51658         strtod touchups.
51659         * lib/strtod.c (strtod): Avoid compiler warnings.
51660         Reported by Jim Meyering.
51661
51662 2008-03-30  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51665         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51666         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51667         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51668         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51669         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51670         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51671         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51672
51673         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51674         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51675         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51676         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51677         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51678         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51679         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51680         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51681
51682         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51683         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51684         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51685         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51686         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51687         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51688         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51689         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51690
51691         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51692         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51693
51694         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51695         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51696
51697         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51698         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51699
51700         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51702         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51703
51704         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51706         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51707
51708         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51709         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51710         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51711
51712         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51713         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51714         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51715
51716         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51717         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51719         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51720         (Depends-on): Add EOVERFLOW.
51721         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51722         (Depends-on): Add EOVERFLOW.
51723         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51724         (Depends-on): Add EOVERFLOW.
51725         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51726         (Depends-on): Add EOVERFLOW.
51727         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51728         (Depends-on): Add EOVERFLOW.
51729         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51730         (Depends-on): Add EOVERFLOW.
51731         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51732         (Depends-on): Add EOVERFLOW.
51733         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51734         (Depends-on): Add EOVERFLOW.
51735
51736         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51738         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51739
51740         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51742         * modules/snprintf (Depends-on): Add EOVERFLOW.
51743
51744         * lib/poll.c (EOVERFLOW): Remove fallback.
51745         * modules/poll (Depends-on): Add EOVERFLOW.
51746
51747         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51748         * modules/getugroups (Depends-on): Add EOVERFLOW.
51749
51750         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51751         * modules/getdelim (Depends-on): Add EOVERFLOW.
51752
51753         * lib/ftell.c (EOVERFLOW): Remove fallback.
51754         * modules/ftell (Depends-on): Add EOVERFLOW.
51755
51756         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51757         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51758         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51759
51760         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51761
51762         * modules/EOVERFLOW-tests: New file.
51763         * tests/test-EOVERFLOW.c: New file.
51764
51765         * modules/EOVERFLOW: New file.
51766         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51767
51768 2008-03-30  Bruno Haible  <bruno@clisp.org>
51769
51770         Fix bug introduced on 2007-06-10.
51771         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51772         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51773
51774 2008-03-30  Bruno Haible  <bruno@clisp.org>
51775
51776         Improve freadseek's efficiency after ungetc.
51777         * lib/freadseek.c: Include freadahead.h.
51778         (freadptrinc): New function, extracted from freadseek.
51779         (freadseek): Use it in a loop. Use freadahead to determine the number
51780         of loop iterations.
51781         * modules/freadseek (Depends-on): Add freadahead.
51782         (configure.ac): Require AC_C_INLINE.
51783
51784 2008-03-30  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/freadseek.c (freadseek): Don't ignore the return value of
51787         freadptr.
51788
51789 2008-03-29  Eric Blake  <ebb9@byu.net>
51790
51791         Add hex float support.
51792         * modules/strtod (Depends-on): Add c-ctype.
51793         (Link): Mention POW_LIB.
51794         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51795         whitespace between 'e' and exponent.
51796         * tests/test-strtod.c (main): Enable hex float tests.
51797         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51798         now provides.
51799
51800         Document various strtod bugs, with some fixes.
51801         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51802         "-0x", "inf", "nan", and hex constants.
51803         * doc/posix-functions/atof.texi (atof): Likewise.
51804         * modules/stdlib (Makefile.am): Support strtod.
51805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51806         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51807         detect additional strtod bugs.
51808         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51809         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51810         bool where appropriate.  Parse 'inf' and 'nan'.
51811         * tests/test-strtod.c: New file.
51812         * modules/strtod (Depends-on): Add stdbool, stdlib.
51813         (configure.ac): Turn on module indicator.
51814         * modules/strtod-tests: New module.
51815
51816 2008-03-29  Eric Blake  <ebb9@byu.net>
51817
51818         Fix ftell on mingw.
51819         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51820         * modules/ftell-tests (Depends-on): Add binary-io.
51821         * modules/ftello-tests (Depends-on): Likewise.
51822         * tests/test-ftell.c (main): Enhance test to cover behavior after
51823         ungetc.  Enforce binary mode.
51824         * tests/test-ftello.c (main): Likewise.
51825
51826         Pass test-freadseek on cygwin.
51827         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51828         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51829         ungetc buffer.
51830
51831         * tests/test-fflush2.c (main): Fix typo.
51832
51833 2008-03-29  Bruno Haible  <bruno@clisp.org>
51834
51835         * tests/test-fflush2.c (main): Temporarily disable the contents of
51836         this test.
51837         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51838         Reported by Eric Blake.
51839
51840 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51841
51842         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51843         (GC_SHA224_DIGEST_SIZE): Add.
51844
51845         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51846         (gc_hash_digest_length): Likewise.
51847         (gc_hash_buffer): Likewise.
51848
51849 2008-03-25  Bruno Haible  <bruno@clisp.org>
51850
51851         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51852         detail which gettext release to use.
51853         Reported by Simon Josefsson.
51854
51855 2008-03-26  Jim Meyering  <meyering@redhat.com>
51856
51857         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51858         * modules/gnumakefile (clean-GNUmakefile): Also, use
51859         test ... && ... || : syntax rather than if-then ... fi.
51860
51861         gnumakefile: Don't double-quote-expand $(VPATH) value.
51862         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51863
51864 2008-03-24  Eric Blake  <ebb9@byu.net>
51865
51866         Alter GNUmakefile to install into top directory.
51867         * modules/maintainer-makefile: Split, and add dependency...
51868         * modules/gnumakefile: to this new module.
51869         * build-aux/GNUmakefile: Move...
51870         * top/GNUmakefile: ...here.
51871         * build-aux/maint.mk: Move...
51872         * top/maint.mk: ...here.
51873         * MODULES.html.sh (Support for maintaining...): Document new
51874         module.
51875
51876 2008-03-23  Bruno Haible  <bruno@clisp.org>
51877
51878         * gnulib-tool: New options --vc-files, --no-vc-files.
51879         (func_usage): Document them.
51880         (vc_files): New variable.
51881         (func_import): Consider vc_files.
51882         (func_create_testdir): Set vc_files to empty.
51883         Suggested by Jim Meyering and Karl Berry.
51884
51885 2008-03-23  Bruno Haible  <bruno@clisp.org>
51886
51887         Fix regex compilation error on HP-UX 11.
51888         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51889         * modules/regex (Files): Add m4/mbstate_t.m4.
51890         Reported by Ton Voon <ton.voon@altinity.com>.
51891
51892 2008-03-23  Bruno Haible  <bruno@clisp.org>
51893
51894         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51895
51896 2008-03-23  Eric Blake  <ebb9@byu.net>
51897             Bruno Haible  <bruno@clisp.org>
51898
51899         Install files from top/ in the destination directory.
51900         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51901         augmentation also for the files from top/.
51902         (func_import, func_create_testdir): Rewrite file names:
51903         top/filename -> filename.
51904
51905 2008-03-23  Bruno Haible  <bruno@clisp.org>
51906
51907         Tweak "gnulib --version" output.
51908         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51909
51910 2008-03-23  Bruno Haible  <bruno@clisp.org>
51911
51912         Tweak "gnulib --version" output.
51913         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51914         rather than contents of ChangeLog, when possible.
51915
51916 2008-03-21  Eric Blake  <ebb9@byu.net>
51917
51918         More --version tweaks.
51919         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51920         date of last ChangeLog entry.
51921
51922 2008-03-21  Jim Meyering  <meyering@redhat.com>
51923
51924         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51925
51926 2008-03-20  Eric Blake  <ebb9@byu.net>
51927
51928         VPATH fix.
51929         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51930
51931 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51932
51933         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51934         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51935
51936 2008-03-20  Eric Blake  <ebb9@byu.net>
51937
51938         Sync GNUmakefile with coreutils.
51939         * build-aux/GNUmakefile (have-Makefile): Rename...
51940         (_have-Makefile): ...to this, for namespace consideration.
51941         (GNUmakefile.cfg): Include, if present.
51942         (_autoreconf): Define a default.
51943         (_is-dist-target): New rule for rebuilds to pick up intra-release
51944         version.
51945         (maint-cfg.mk): Rename...
51946         (cfg.mk): ...to this.
51947
51948 2008-03-18  Jim Meyering  <meyering@redhat.com>
51949
51950         New script and module: mktempd
51951         * MODULES.html.sh (maint+release support): Add mktempd.
51952         * build-aux/mktempd: New file.
51953         * modules/mktempd: New file.
51954
51955 2008-03-15  Jim Meyering  <meyering@redhat.com>
51956
51957         Undo last change.
51958         * lib/sha1.c, lib/md5.c: 63 != ~63.
51959         Reported by Andreas Schwab.
51960
51961         sha1.c, md5.c: Hoist a redundant expression.
51962         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51963         "ctx->buflen" only once, before calling *_process_block.
51964         * lib/md5.c (md5_process_bytes): Likewise.
51965
51966 2008-03-14  Eric Blake  <ebb9@byu.net>
51967
51968         Bump copyright year in files generated by gnulib-tool.
51969         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51970         gnulib-tool, rather than hard-coding it.
51971
51972         Fix 'gnulib-tool --version' output to work with git.
51973         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51974         (startup): ...here.
51975         (func_version): Use it to invoke git-version-gen, rather than
51976         relying on CVS keyword expansion.  Modernize wording.
51977         (cvsdatestamp, last_checkin_date, version): Kill unused
51978         variables.
51979
51980 2008-03-12  Jim Meyering  <meyering@redhat.com>
51981
51982         Recognize optional cast of the argument to free.
51983         * build-aux/useless-if-before-free: Update regexps.
51984
51985         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51986
51987 2008-03-11  Bruno Haible  <bruno@clisp.org>
51988
51989         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51990         by a single package.
51991         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51992         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51993         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51994         Reported by Sam Steingold <sds@gnu.org>.
51995
51996 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51997
51998         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51999         repositories.
52000
52001 2008-03-11  Bruno Haible  <bruno@clisp.org>
52002
52003         Avoid conflicts between local macro definitions.
52004         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52005         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52006
52007 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52008             Bruno Haible  <bruno@clisp.org>
52009
52010         Make va_copy work with some version of xlc on AIX 5.1.
52011         * lib/stdarg.in.h: New file.
52012         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52013         On AIX, use a <stdarg.h> file substitute.
52014         * modules/stdarg (Files): Add lib/stdarg.in.h.
52015         (Depends-on): Add include_next.
52016         (Makefile.am): Build a stdarg.h substitute if requested.
52017         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52018
52019 2008-03-10  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52022         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52023         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52024
52025 2008-03-10  Bruno Haible  <bruno@clisp.org>
52026
52027         * modules/stdlib (Depends-on): Add include_next, remove
52028         absolute-header.
52029
52030 2008-03-09  Bruno Haible  <bruno@clisp.org>
52031
52032         * lib/freadahead.h (freadahead): Document more precisely.
52033         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52034         the sum of both buffer sizes.
52035         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52036         * NEWS: Document the change.
52037
52038 2008-03-09  Bruno Haible  <bruno@clisp.org>
52039
52040         Extend freadptr to return also the buffer size.
52041         * lib/freadptr.h (freadptr): Add sizep argument.
52042         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52043         (freadptr): Add sizep argument. Determine buffer size like freadahead
52044         does.
52045         * tests/test-freadptr.c: Don't include freadahead.h.
52046         (main): Adapt for new calling convention of freadptr.
52047         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52048         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52049         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52050         tests/test-freadptr2.sh.
52051         (Depends): Remove freadahead.
52052         (TESTS): Add test-freadptr2.sh.
52053         (check_PROGRAMS): Add test-freadptr2.
52054
52055 2008-03-09  Bruno Haible  <bruno@clisp.org>
52056
52057         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52058         Report and solution by Simon Josefsson.
52059
52060 2008-03-06  Bruno Haible  <bruno@clisp.org>
52061
52062         Make fflush after ungetc work on BSD platforms.
52063         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52064         * tests/test-fflush2.c: New file.
52065         * tests/test-fflush2.sh: New file.
52066         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52067         tests/test-fflush2.c.
52068         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52069         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52070
52071 2008-03-06  Eric Blake  <ebb9@byu.net>
52072
52073         Likewise for ftello.
52074         * modules/ftello (Dependencies): Add extensions.
52075         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52076
52077 2008-03-06  Bruno Haible  <bruno@clisp.org>
52078
52079         * modules/fseeko (Dependencies): Add extensions.
52080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52081         Needed on glibc systems.
52082
52083 2008-03-06  Bruno Haible  <bruno@clisp.org>
52084
52085         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52086         email address.
52087         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52088
52089 2008-03-06  Bruno Haible  <bruno@clisp.org>
52090
52091         * users.txt: Add libgnupdf.
52092
52093 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52094
52095         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52096         (Header File Substitutes, Function Substitutes,
52097         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52098         (Build robot for gnulib): Fix typo.
52099
52100 2008-03-06  Bruno Haible  <bruno@clisp.org>
52101
52102         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52103         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52104
52105 2008-03-06  Bruno Haible  <bruno@clisp.org>
52106
52107         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52108         * doc/gnulib.texi: Include it.
52109
52110 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52111
52112         * modules/func (License): Change license to unlimited; there was
52113         no LGPL parts in the module anyway.
52114
52115 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52116
52117         * modules/__func__: Renamed to modules/func.
52118         * modules/__func__-tests: Renamed to modules/func-tests.
52119         * tests/test-__func__.c: Renamed to tests/test-func.c.
52120         * m4/__func__.m4: Renamed to m4/func.m4.
52121         * doc/gnulib.texi (__func__): Section renamed to func.
52122         Suggested by Eric Blake <ebb9@byu.net>.
52123
52124 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52125
52126         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52127         about __func__.  Make example self-contained.  Suggested by Eric
52128         Blake <ebb9@byu.net>.
52129
52130         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52131         Suggested by Eric Blake <ebb9@byu.net>.
52132
52133 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52134
52135         * modules/__func__: New file.
52136         * modules/__func__-tests: New file.
52137         * tests/test-__func__.c: New file.
52138         * m4/__func__.m4: New file.
52139         * doc/gnulib.texi (__func__): Document __func__ module.
52140
52141 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52142
52143         * modules/byteswap (License): Re-license as LGPLv2+.
52144
52145 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52146
52147         * doc/Makefile: Add pdf target.
52148
52149 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52150
52151         * modules/inline (License): Use 'unlimited', since there are only
52152         *.m4 files in this module.
52153
52154 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52155             Bruno Haible  <bruno@clisp.org>
52156
52157         Add support for HP C 7.1 on OpenVMS 8.3.
52158         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52159
52160 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52161
52162         Update VMS specifics.
52163         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52164
52165 2008-03-02  Jim Meyering  <meyering@redhat.com>
52166
52167         Remove the last dependency on the "free" module.
52168         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52169         Reported by Bob Proulx.
52170
52171         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52172
52173         Remove useless "if" tests before free.  Deprecate "free" module.
52174         * doc/posix-functions/free.texi: Mention that this
52175         module is no longer useful.
52176         * modules/free (Notice): Say this module is obsolete.
52177         * modules/readutmp (Depends-on): Remove free.
52178         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52179         * lib/putenv.c (putenv): Likewise.
52180         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52181         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52182         * tests/test-c-strcasestr.c (main): Likewise.
52183         * tests/test-c-strstr.c (main): Likewise.
52184         * tests/test-mbscasestr1.c (main): Likewise.
52185         * tests/test-mbscasestr2.c (main): Likewise.
52186         * tests/test-mbsstr1.c (main): Likewise.
52187         * tests/test-mbsstr2.c (main): Likewise.
52188         * tests/test-memmem.c (main): Likewise.
52189         * tests/test-strcasestr.c (main): Likewise.
52190         * tests/test-striconv.c (main): Likewise.
52191         * tests/test-striconveh.c (main): Likewise.
52192         * tests/test-striconveha.c (main): Likewise.
52193         * tests/test-strstr.c (main): Likewise.
52194
52195         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52196
52197         bootstrap: sync from coreutils again
52198         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52199
52200 2008-03-01  Jim Meyering  <meyering@redhat.com>
52201
52202         bootstrap: sync from coreutils
52203         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52204         also when the target doesn't exist.
52205
52206 2008-03-01  Eric Blake  <ebb9@byu.net>
52207
52208         Fix bugs in last patch.
52209         * lib/memchr2.c (memchr2): Fix typo.
52210         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52211         extension.
52212         Reported by Bruce Korb.
52213
52214         New module 'memchr2'.
52215         * modules/memchr2: New file.
52216         * modules/memchr2-tests: Likewise.
52217         * lib/memchr2.h: Likewise.
52218         * lib/memchr2.c: Likewise, based on memchr.c.
52219         * tests/test-memchr2.c: New test.
52220         * MODULES.html.sh (String handling): Add memchr2.
52221
52222 2008-02-29  Bruno Haible  <bruno@clisp.org>
52223
52224         * modules/freadseek-tests: New file.
52225         * tests/test-freadseek.sh: New file.
52226         * tests/test-freadseek.c: New file.
52227
52228         New module 'freadseek'.
52229         * modules/freadseek: New file.
52230         * lib/freadseek.h: New file.
52231         * lib/freadseek.c: New file.
52232         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52233
52234 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52235
52236         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52237         wydawca.
52238
52239         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52240         program_invocation_name and program_invocation_short_name are
52241         present.
52242
52243 2008-02-28  Bruno Haible  <bruno@clisp.org>
52244
52245         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52246         * tests/test-freadptr.sh: Also test non-seekable stdin.
52247
52248 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52249
52250         * build-aux/bootstrap (source_base, m4_base)
52251         (doc_base, tests_base): New variables.
52252         (gnulib_tool_options): Do not hardcode base directories, use
52253         the above variables instead.
52254
52255 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52256
52257         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52258
52259 2008-02-28  Bruno Haible  <bruno@clisp.org>
52260
52261         * modules/freadptr-tests: New file.
52262         * tests/test-freadptr.sh: New file.
52263         * tests/test-freadptr.c: New file.
52264
52265         New module 'freadptr'.
52266         * modules/freadptr: New file.
52267         * lib/freadptr.h: New file.
52268         * lib/freadptr.c: New file.
52269         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52270
52271 2008-02-26  Karl Berry  <karl@freefriends.org>
52272
52273         Sync from Libtool:
52274         * libltdl/argz.c (argz_add, argz_count): New functions.
52275         * libltdl/argz.in.h: Declare them.
52276         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52277
52278 2008-02-22  Bruno Haible  <bruno@clisp.org>
52279
52280         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52281         is a pointer type.  Needed for HP-UX 10.
52282         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52283         * doc/posix-functions/gmtime_r.texi: Likewise.
52284         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52285
52286 2008-02-24  Bruno Haible  <bruno@clisp.org>
52287
52288         * modules/environ-tests: New file.
52289         * tests/test-environ.c: New file.
52290
52291         New module 'environ'.
52292         * modules/environ: New file.
52293         * lib/unistd.in.h (environ): New declaration.
52294         * m4/environ.m4: New file.
52295         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52296         after use.
52297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52298         HAVE_DECL_ENVIRON.
52299         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52300         HAVE_DECL_ENVIRON.
52301         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52302         wrong claim that 'environ' is missing on some systems.
52303         * modules/execute (Depends-on): Add environ.
52304         * lib/execute.c (environ): Remove fallback declaration.
52305         * modules/pipe (Depends-on): Add environ.
52306         * lib/pipe.c (environ): Remove fallback declaration.
52307         * modules/setenv (Depends-on): Add environ.
52308         * lib/setenv.c (environ): Remove fallback declaration.
52309         * modules/unsetenv (Depends-on): Add environ.
52310         * lib/unsetenv.c (environ): Remove fallback declaration.
52311         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52312         m4/environ.m4.
52313         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52314         (gl_PREREQ_UNSETENV): Likewise.
52315
52316 2008-02-24  Bruno Haible  <bruno@clisp.org>
52317
52318         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52319
52320 2008-02-20  Bob Proulx  <bob@proulx.com>
52321
52322         Enable use of older two part flavor 'git describe'.
52323         * build-aux/git-version-gen: If using the older two part flavor of
52324         git version then recreate the third part now present in the
52325         newer three part flavor of git describe.
52326
52327 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52328
52329         * lib/fts.c (fts_build): Typo correction to comment.
52330
52331 2008-02-17  Bruno Haible  <bruno@clisp.org>
52332
52333         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52334         generating no-op conflicts.
52335
52336 2008-02-17  Bruno Haible  <bruno@clisp.org>
52337
52338         Speed up by 10%.
52339         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52340         result_entries, rather than an index-based loop.
52341
52342 2008-02-17  Bruno Haible  <bruno@clisp.org>
52343
52344         Speed up by 25%.
52345         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52346         'hashcode_cached'.
52347         (entry_create): New function.
52348         (entry_hashcode): Use the cached hashcode if possible.
52349         (read_changelog_file, try_split_merged_entry): Use entry_create.
52350
52351 2008-02-17  Bruno Haible  <bruno@clisp.org>
52352
52353         Speed up from O(n^2) to O(n) for long ChangeLog files.
52354         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52355         (read_changelog_file): Change implementation of entries_reversed list
52356         to rbtreehash.
52357         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52358
52359 2008-02-17  Bruno Haible  <bruno@clisp.org>
52360
52361         New option --split-merged-entry.
52362         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52363         (find_paragraph_end, try_split_merged_entry): New functions.
52364         (long_options): Add option --split-merged-entry.
52365         (usage): Document option --split-merged-entry.
52366         (main): Implement option --split-merged-entry.
52367         Reported by Eric Blake.
52368
52369 2008-02-17  Bruno Haible  <bruno@clisp.org>
52370
52371         * lib/git-merge-changelog.c: Include c-strstr.h.
52372         (main): Support the "git pull --rebase" situation.
52373         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52374         Reported by Eric Blake.
52375
52376 2008-02-16  Eric Blake  <ebb9@byu.net>
52377
52378         Avoid doubling \ in common case of "c-maybe" quoting style.
52379         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52380         eliding outer quotes.
52381         * lib/quotearg.h: Document this.
52382         * tests/test-quotearg.c (result_strings, inputs, results_g)
52383         (flag_results, locale_results): Test it by adding a new string to
52384         each test group.
52385         (compare_strings): Test new string.
52386
52387 2008-02-13  Eric Blake  <ebb9@byu.net>
52388
52389         Avoid trigraph quoting in default output.
52390         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52391         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52392         unless explicitly requested.
52393         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52394
52395 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52396
52397         Don't rely on signed integer overflowing to negative value.
52398         * lib/getugroups.c (getugroups): Include <limits.h>.
52399         Instead, compare against INT_MAX, and increment only if the test passes.
52400
52401 2008-02-13  Jim Meyering  <meyering@redhat.com>
52402         and Eric Blake  <ebb9@byu.net>
52403
52404         Avoid shadowing warning and compile errors on Linux.
52405         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52406         forwarding macros on Linux.
52407         (dcgettext): Define a stub, for Linux.
52408         (results_g, main): Avoid warnings.
52409
52410 2008-02-12  Eric Blake  <ebb9@byu.net>
52411
52412         Silence warning in last patch.
52413         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52414
52415         Quotearg part 4: add tests, fix c-maybe colon quoting.
52416         * lib/quotearg.h: Improve documentation.
52417         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52418         escapes when adding outer quotes.  When quoting trigraphs, use
52419         valid C notation.  When quoting NUL, omit extra characters if next
52420         character is not digit.  Alter prototype.
52421         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52422         callers.
52423         * modules/quotearg-tests: New module.
52424         * tests/test-quotearg.c: New test.
52425
52426 2008-02-07  Eric Blake  <ebb9@byu.net>
52427
52428         Quotearg part 3: add flag to control outer quote elision.
52429         * lib/quotearg.h (c_maybe_quoting_style): New style.
52430         (enum quoting_flags): Better documentation of flags.
52431         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52432         c-maybe style.
52433         (quotearg_buffer_restyled): Handle new flag to elide outer
52434         quotes.
52435
52436         Quotearg part 2: add flag that can control NUL elision.
52437         * lib/quotearg.h (set_quoting_flags): New prototype.
52438         * lib/quotearg.c (struct quoting_options): Add flag field.
52439         (set_quoting_flags): New function.
52440         (quotearg_buffer_restyled): Add flags parameter.
52441         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52442         (quotearg_n_options): Set the flag, since length cannot be
52443         returned.
52444         (quoting_options_from_style): Default flags correctly.
52445
52446         Quotearg part 1: more wrappers, restore quotearg_char state.
52447         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52448         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52449         (quotearg_colon_mem): New wrappers.
52450         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52451         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52452         functions.
52453         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52454         (quotearg_colon_mem): New functions.
52455
52456 2008-02-11  Bruno Haible  <bruno@clisp.org>
52457
52458         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52459         library in the current directory: it does not work with parallel make.
52460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52461
52462 2008-02-11  Bruno Haible  <bruno@clisp.org>
52463
52464         * .gitattributes: New file.
52465
52466 2008-02-11  Jim Meyering  <meyering@redhat.com>
52467
52468         useless-if-before-free: Fix reversed exit values.
52469         * build-aux/useless-if-before-free: Use correct values
52470         for EXIT_MATCH and EXIT_NO_MATCH.
52471
52472         * build-aux/useless-if-before-free: Close stdout carefully.
52473
52474 2008-02-10  Bruno Haible  <bruno@clisp.org>
52475
52476         New module 'git-merge-changelog'.
52477         * modules/git-merge-changelog: New file.
52478         * lib/git-merge-changelog.c: New file.
52479
52480 2008-02-10  Jim Meyering  <meyering@redhat.com>
52481
52482         useless-if-before-free: New option: --list (-l).
52483
52484         useless-if-before-free: Don't exit immediately upon open failure.
52485         * build-aux/useless-if-before-free: Exit 2 for errors.
52486         Upon failure to open a file, don't exit immediately.
52487         Rather, just warn and continue with any remaining files.
52488
52489 2008-02-10  Bruno Haible  <bruno@clisp.org>
52490
52491         New abstract list operation 'node_set_value'.
52492         * lib/gl_list.h (gl_list_node_set_value): New function.
52493         (struct gl_list_implementation): New field node_set_value.
52494         * lib/gl_list.c (gl_list_node_set_value): New function.
52495         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52496         (gl_array_list_implementation): Update.
52497         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52498         (gl_carray_list_implementation): Update.
52499         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52500         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52501         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52502         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52503         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52504         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52505         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52506         Update.
52507         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52508         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52509         (gl_sublist_list_implementation): Update.
52510
52511 2008-02-10  Bruno Haible  <bruno@clisp.org>
52512
52513         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52514         Needed when ELEMENT is #defined to 'some_type *'.
52515
52516 2008-02-10  Jim Meyering  <meyering@redhat.com>
52517
52518         New script and module: useless-if-before-free
52519         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52520         * build-aux/useless-if-before-free: New file.
52521         * modules/useless-if-before-free: New file.
52522
52523         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52524
52525         xstrtol_error: Fix typo.
52526         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52527         s/exit_failure/exit_status/.
52528
52529 2008-02-09  Jim Meyering  <meyering@redhat.com>
52530
52531         New script and module: gitlog-to-changelog
52532         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52533         * modules/gitlog-to-changelog: New file.
52534         * build-aux/gitlog-to-changelog: New file.
52535
52536 2008-02-08  Jim Meyering  <meyering@redhat.com>
52537
52538         Avoid two "parameter unused" warnings.
52539         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52540         Mark "st" as used.
52541
52542         Use "git COMMAND", not "git-COMMAND".
52543         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52544         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52545         * build-aux/git-version-gen: Use "git status", not "git-status".
52546
52547 2008-02-07  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52550         Avoids a crash on Windows Vista.
52551         Reported by Adam Strzelecki <ono@java.pl> via
52552         Simon Josefsson <simon@josefsson.org>.
52553
52554 2008-02-06  Bruno Haible  <bruno@clisp.org>
52555
52556         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52557         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52558         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52560         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52561         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52562         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52563         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52568         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52571         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52572         left-adjust flag.
52573         * tests/test-snprintf-posix.h (test_function): Likewise.
52574         * tests/test-sprintf-posix.h (test_function): Likewise.
52575         * tests/test-vasprintf-posix.c (test_function): Likewise.
52576         * doc/posix-functions/fprintf.texi: Update.
52577         * doc/posix-functions/printf.texi: Update.
52578         * doc/posix-functions/snprintf.texi: Update.
52579         * doc/posix-functions/sprintf.texi: Update.
52580         * doc/posix-functions/vfprintf.texi: Update.
52581         * doc/posix-functions/vprintf.texi: Update.
52582         * doc/posix-functions/vsnprintf.texi: Update.
52583         * doc/posix-functions/vsprintf.texi: Update.
52584         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52585
52586 2008-02-06  Bruno Haible  <bruno@clisp.org>
52587
52588         Fix bug introduced on 2008-01-26.
52589         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52590
52591 2008-02-06  Bruno Haible  <bruno@clisp.org>
52592
52593         Fix bug introduced on 2007-06-10.
52594         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52595         !NEED_PRINTF_FLAG_ZERO.
52596
52597 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52598
52599         getloadavg: use libperfstat on AIX5
52600         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52601
52602 2008-02-03  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/diffseq.h: Add comments about required #includes.
52605         Reported by Michael Biggs <gnulib@doubleplum.net>.
52606
52607 2008-02-01  Bruno Haible  <bruno@clisp.org>
52608
52609         * users.txt: Add gnuit.
52610
52611 2008-01-31  Bruno Haible  <bruno@clisp.org>
52612
52613         * lib/md4.c (set_uint32): Mark as inline.
52614         * lib/md5.c (set_uint32): Likewise.
52615         * lib/sha1.c (set_uint32): Likewise.
52616         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52617         * m4/md5.m4 (gl_MD5): Likewise.
52618         * m4/sha1.m4 (gl_SHA1): Likewise.
52619
52620 2008-01-31  Jim Meyering  <meyering@redhat.com>
52621
52622         Use "sizeof VAR", rather than a literal "4".
52623         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52624         * lib/md4.c (md4_read_ctx): Likewise.
52625         * lib/sha1.c (sha1_read_ctx): Likewise.
52626
52627 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52628
52629         * tests/test-sha1.c: New file, based on test-md5.c.
52630
52631         * modules/crypto/sha1-tests: New file.
52632
52633 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52634
52635         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52636
52637 2008-01-31  Jim Meyering  <meyering@redhat.com>
52638
52639         Prefer "sizeof v" over the equivalent "4".
52640         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52641         * lib/md5.c (set_uint32): Likewise.
52642         * lib/sha1.c (set_uint32): Likewise.
52643
52644 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52645
52646         * lib/sha1.c (set_uint32): Mark function as static.
52647
52648 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52649
52650         md2: clarify comments to say that alignment is not required.
52651         * lib/md2.h: Remove warning about alignment in comment.
52652         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52653         never been required.
52654
52655 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52656
52657         md4: adapt alignment constraint fix from sha1.
52658         * lib/md4.c (set_uint32): New function, from sha1.c
52659         (md4_read_ctx): Use it.
52660         (md4_finish_ctx): Doc fix.
52661         * lib/md4.h: Doc fix.
52662
52663 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52664
52665         md5: adapt alignment constraint fix from sha1.
52666         * lib/md5.c (set_uint32): New function, from sha1.c
52667         (md5_read_ctx): Use it.
52668         (md5_finish_ctx): Doc fix.
52669         * lib/md5.h: Doc fix.
52670
52671 2008-01-30  Peter Palfrader  <weasel@debian.org>
52672
52673         sha1: remove the result buffer alignment constraint
52674         * lib/sha1.c (set_uint32): New function.
52675         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52676         constraint.
52677         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52678         * lib/sha1.h: Likewise.
52679
52680 2008-01-30  Andreas Schwab  <schwab@suse.de>
52681             Bruno Haible  <bruno@clisp.org>
52682
52683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52684         correct definition of LDBL_MIN_EXP.
52685
52686 2008-01-30  Karl Berry  <karl@gnu.org>
52687
52688         * config/srclist-update: try to preserve x bit on updates.
52689         * config/srclistvars.sh: update for karl.
52690
52691 2008-01-29  Jim Meyering  <meyering@redhat.com>
52692
52693         vasnprintf.c: Avoid warning about unused label
52694         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52695         "overflow" label definition and associated code with the
52696         same cpp condition that guards the sole use of that label.
52697
52698 2008-01-26  Bruno Haible  <bruno@clisp.org>
52699
52700         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52701         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52702         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52703         * lib/isnanl-nolibm.h (isnanl): Likewise.
52704         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52705
52706 2008-01-26  Bruno Haible  <bruno@clisp.org>
52707
52708         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52709         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52710
52711 2008-01-26  Bruno Haible  <bruno@clisp.org>
52712
52713         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52714         GCC >= 4.0 built-in.
52715         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52716
52717 2008-01-26  Bruno Haible  <bruno@clisp.org>
52718
52719         Rename isnan, applicable to 'double' only, to isnand.
52720         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52721         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52722         (configure.ac): Update.
52723         (Include): Replace "isnan.h" with "isnand.h".
52724         * m4/isnand.m4: Renamed from m4/isnan.m4.
52725         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52726         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52727         instead of isnan.c.
52728         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52729         instead of HAVE_ISNAN_IN_LIBC.
52730         (isnand): Renamed from isnan.
52731         * lib/isnand.c: New file.
52732         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52733         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52734         (Makefile.am): Update.
52735         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52736         Include isnand.h instead of isnan.h.
52737         (main): Test isnand instead of isnan.
52738         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52739         isnan-nolibm.
52740         * modules/frexp (Depends-on): Likewise.
52741         * modules/frexp-tests (Depends-on): Likewise.
52742         * modules/frexp-nolibm (Depends-on): Likewise.
52743         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52744         * modules/isfinite (Depends-on): Likewise.
52745         * modules/round-tests (Depends-on): Likewise.
52746         * modules/signbit (Depends-on): Likewise.
52747         * modules/signbit-tests (Depends-on): Likewise.
52748         * modules/snprintf-posix (Depends-on): Likewise.
52749         * modules/sprintf-posix (Depends-on): Likewise.
52750         * modules/trunc-tests (Depends-on): Likewise.
52751         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52752         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52753         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52754         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52755         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52756         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52757         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52758         * modules/vasnprintf-posix (Depends-on): Likewise.
52759         * modules/vasprintf-posix (Depends-on): Likewise.
52760         * modules/vfprintf-posix (Depends-on): Likewise.
52761         * modules/vsnprintf-posix (Depends-on): Likewise.
52762         * modules/vsprintf-posix (Depends-on): Likewise.
52763         * lib/frexp.c: Include isnand.h instead of isnan.h.
52764         (ISNAN): Set to isnand instead of isnan.
52765         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52766         (gl_isfinited): Use isnand instead of isnan.
52767         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52768         (gl_signbitd): Use isnand instead of isnan.
52769         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52770         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52771         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52772         (main): Use isnand instead of isnan.
52773         * tests/test-round1.c: Include isnand.h.
52774         (main): Use isnand instead of isnan.
52775         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52776         (ISNAN): Set to isnand instead of isnan.
52777         * tests/test-trunc1.c: Include isnand.h.
52778         (main): Use isnand instead of isnan.
52779         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52780         (equal): Use isnand instead of isnan.
52781         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52782         isnand-nolibm.
52783         * NEWS: Mention the change.
52784
52785 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52786             Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52789         the GCC builtins for signbits are present and set
52790         REPLACE_SIGNBIT_USING_GCC if so.
52791         * lib/math.in.h (signbit): Define using GCC builtins if
52792         REPLACE_SIGNBIT_USING_GCC is set.
52793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52794         REPLACE_SIGNBIT_USING_GCC.
52795         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52796
52797 2008-01-25  Jim Meyering  <meyering@redhat.com>
52798
52799         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52800         * lib/poll.c: Include <config.h>, not "config.h".
52801         * tests/test-getaddrinfo.c: Likewise.
52802
52803 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52804
52805         * modules/sockets-tests: New file.
52806
52807 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52808
52809         * modules/sockets: New module, can be used to call WSA_Startup and
52810         WSA_Cleanup when needed.
52811
52812         * lib/sockets.h, lib/sockets.c: New files.
52813
52814         * m4/sockets.m4: New file.
52815
52816         * tests/test-sockets.c: New file.
52817
52818 2008-01-19  Bruno Haible  <bruno@clisp.org>
52819
52820         * doc/posix-headers: Renamed from doc/headers.
52821         * doc/posix-functions: Renamed from doc/functions.
52822         * doc/gnulib.texi: Update.
52823
52824 2008-01-19  Bruno Haible  <bruno@clisp.org>
52825
52826         * doc/glibc-functions/strcasestr.texi: Include contents of
52827         doc/functions/strcasestr.texi, fixing the list of platforms.
52828         * doc/functions/strcasestr.texi: Remove file.
52829
52830 2008-01-19  Bruno Haible  <bruno@clisp.org>
52831
52832         * doc/glibc-functions/memmem.texi: Include contents of
52833         doc/functions/memmem.texi.
52834         * doc/functions/memmem.texi: Remove file.
52835
52836 2008-01-18  Bruno Haible  <bruno@clisp.org>
52837
52838         * doc/glibc-functions/*.texi: New files.
52839         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52840         to use the new files.
52841
52842 2008-01-17  Bruno Haible  <bruno@clisp.org>
52843
52844         * tests/test-gethostname.c (main): Fix printf statement.
52845
52846 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52847
52848         * modules/gethostname-tests: New file.
52849
52850         * tests/test-gethostname.c: New file.
52851
52852 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52853
52854         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52855         used by the UNAME case.  Reported by Bruno Haible
52856         <bruno@clisp.org>.
52857
52858 2008-01-17  Eric Blake  <ebb9@byu.net>
52859
52860         Convert c-strcasestr to be more efficient.
52861         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52862         (Depends-on): Add c-strcase, remove malloca, strnlen.
52863         * tests/test-c-strcasestr.c (main): Enhance test.
52864         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52865
52866 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52867
52868         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52869         Use it in creating po/Makevars.
52870
52871 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52872
52873         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52874         Applications that requires it should initialize libgcrypt
52875         manually.
52876
52877 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52878
52879         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52880
52881 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52882
52883         Fix problem with getdate on mingw32 reported by Simon Josefsson
52884         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52885         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52886         tzname", when deciding whether to declare tzname.
52887         * lib/strftime.c (tzname): Likewise.
52888
52889 2008-01-15  Bruno Haible  <bruno@clisp.org>
52890
52891         Work around a MacOS X 10.5 bug in frexpl().
52892         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52893         * doc/functions/frexpl.texi: Document the bug.
52894         Reported by Elias Pipping <pipping@gentoo.org>.
52895
52896 2008-01-14  Eric Blake  <ebb9@byu.net>
52897
52898         Touch up previous patch.
52899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52900         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52901
52902         Convert strcasestr module to use Two-Way algorithm.
52903         * modules/strcasestr-simple: New module, based on the old
52904         strcasestr, but with Two-Way rather than KMP.
52905         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52906         * lib/string.in.h (rpl_strcasestr): Declare.
52907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52908         performance.
52909         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52910         * modules/string (Makefile.am): Support strcasestr.
52911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52912         * modules/strcasestr-tests (Depends-on): Check for alarm.
52913         * tests/test-strcasestr.c: Augment test.
52914         * lib/str-two-way.h: Clean up stray macro.
52915         * NEWS: Document new module.
52916         * MODULES.html.sh (string handling): Likewise.
52917         * doc/functions/strcasestr.texi: New file.
52918         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52919         here, since it is not a POSIX function.
52920
52921 2008-01-14  Colin Watson  <cjwatson@debian.org>
52922             Bruno Haible  <bruno@clisp.org>
52923
52924         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52925         works fine; if not, set REPLACE_STRSIGNAL.
52926         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52928         REPLACE_STRSIGNAL.
52929         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52930         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52931         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52932
52933 2008-01-14  Bruno Haible  <bruno@clisp.org>
52934
52935         * modules/strsignal (Include): Change to <string.h>.
52936
52937 2008-01-14  Colin Watson  <cjwatson@debian.org>
52938
52939         * modules/argp (Notice): Add a notice recommending to change
52940         XGETTEXT_OPTIONS.
52941         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52942
52943 2008-01-13  Colin Watson  <cjwatson@debian.org>
52944
52945         * modules/strsignal-tests: New file.
52946         * tests/test-strsignal.c: New file.
52947
52948         * lib/strsignal.c: New file, from glibc with modifications.
52949         * lib/siglist.h: New file, from glibc with modifications.
52950         * lib/string.in.h (strsignal): New declaration.
52951         * m4/strsignal.m4: New file.
52952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52953         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52954         * modules/strsignal: New file.
52955         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52956         HAVE_DECL_STRSIGNAL.
52957
52958 2008-01-13  Bruno Haible  <bruno@clisp.org>
52959
52960         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52961         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52962         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52963         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52964
52965 2008-01-13  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52968         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52969         * lib/argp.h (__attribute__): Likewise.
52970         * lib/c-stack.c (__attribute__): Likewise.
52971         * lib/error.h (__attribute__): Likewise.
52972         * lib/fts.c (__attribute__): Likewise.
52973         * lib/openat.h (__attribute__): Likewise.
52974         * lib/stdio.in.h (__attribute__): Likewise.
52975         * lib/string.in.h (__attribute__): Likewise.
52976         * lib/utimens.c (__attribute__): Likewise.
52977         * lib/vasnprintf.h (__attribute__): Likewise.
52978         * lib/xalloc.h (__attribute__): Likewise.
52979         * lib/xprintf.h (__attribute__): Likewise.
52980         * lib/xstrtol.h (__attribute__): Likewise.
52981         * lib/xvasprintf.h (__attribute__): Likewise.
52982
52983 2008-01-12  Bruno Haible  <bruno@clisp.org>
52984
52985         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52986         * doc/glibc-headers/a.out.texi: New file.
52987         * doc/glibc-headers/aliases.texi: New file.
52988         * doc/glibc-headers/alloca.texi: New file.
52989         * doc/glibc-headers/ar.texi: New file.
52990         * doc/glibc-headers/argp.texi: New file.
52991         * doc/glibc-headers/argz.texi: New file.
52992         * doc/glibc-headers/byteswap.texi: New file.
52993         * doc/glibc-headers/crypt.texi: New file.
52994         * doc/glibc-headers/endian.texi: New file.
52995         * doc/glibc-headers/envz.texi: New file.
52996         * doc/glibc-headers/err.texi: New file.
52997         * doc/glibc-headers/error.texi: New file.
52998         * doc/glibc-headers/execinfo.texi: New file.
52999         * doc/glibc-headers/fpu_control.texi: New file.
53000         * doc/glibc-headers/fstab.texi: New file.
53001         * doc/glibc-headers/fts.texi: New file.
53002         * doc/glibc-headers/getopt.texi: New file.
53003         * doc/glibc-headers/ieee754.texi: New file.
53004         * doc/glibc-headers/ifaddrs.texi: New file.
53005         * doc/glibc-headers/libintl.texi: New file.
53006         * doc/glibc-headers/mcheck.texi: New file.
53007         * doc/glibc-headers/mntent.texi: New file.
53008         * doc/glibc-headers/obstack.texi: New file.
53009         * doc/glibc-headers/paths.texi: New file.
53010         * doc/glibc-headers/printf.texi: New file.
53011         * doc/glibc-headers/pty.texi: New file.
53012         * doc/glibc-headers/resolv.texi: New file.
53013         * doc/glibc-headers/shadow.texi: New file.
53014         * doc/glibc-headers/sysexits.texi: New file.
53015         * doc/glibc-headers/ttyent.texi: New file.
53016
53017 2008-01-12  Jim Meyering  <meyering@redhat.com>
53018
53019         announce-gen: emit Gnulib's git-based version string.
53020         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53021         New option --gnulib-version=V, where V is expected to be
53022         the output of running git describe in the gnulib directory.
53023         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53024         not useful, and plan to stop publishing an xdelta file with each
53025         coreutils release.
53026
53027         * build-aux/announce-gen: Also check for lzma-compressed files.
53028
53029 2008-01-11  Bruno Haible  <bruno@clisp.org>
53030
53031         * tests/test-memmem.c (main): Increase maximum allowed time.
53032         * tests/test-strstr.c (main): Likewise.
53033
53034 2008-01-11  Bruno Haible  <bruno@clisp.org>
53035
53036         * doc/functions/memmem.texi: Add more precisions about platforms.
53037         * doc/functions/strstr.texi: Likewise.
53038
53039 2008-01-10  Eric Blake  <ebb9@byu.net>
53040
53041         * m4/strstr.m4: Delete cruft from copy-n-paste.
53042         Reported by Bruno Haible.
53043
53044 2008-01-10  Bruno Haible  <bruno@clisp.org>
53045
53046         Make c-strstr rely on strstr.
53047         * lib/c-strstr.c: Don't include str-kmp.h.
53048         (c_strstr): Define in terms of strstr.
53049         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53050         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53051
53052 2008-01-10  Bruno Haible  <bruno@clisp.org>
53053
53054         * doc/gnulib.texi (String Functions in C Locale): New section.
53055         * doc/c-ctype.texi: New file.
53056         * doc/c-strcase.texi: New file.
53057         * doc/c-strcaseeq.texi: New file.
53058         * doc/c-strcasestr.texi: New file.
53059         * doc/c-strstr.texi: New file.
53060         * doc/c-strtod.texi: New file.
53061         * doc/c-strtold.texi: New file.
53062
53063 2008-01-10  Eric Blake  <ebb9@byu.net>
53064
53065         * lib/relocatable.h: Fix a comment.
53066
53067 2008-01-10  Eric Blake  <ebb9@byu.net>
53068
53069         Share two-way algorithm.
53070         * lib/str-two-way.h: New file, merged from...
53071         * lib/memmem.c: ...here...
53072         * lib/strstr.c: ...and here.
53073         * modules/memmem (Files): Use it.
53074         * modules/strstr (Files): Likewise.
53075
53076         Avoid quadratic strstr implementations.
53077         * lib/strstr.c: New file.
53078         * m4/strstr.m4: Likewise.
53079         * modules/strstr: Likewise.
53080         * modules/strstr-tests: Likewise.
53081         * tests/test-strstr.c: Likewise.
53082         * lib/string.in.h (rpl_strstr): Declare.
53083         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53085         * modules/string (Makefile.am): Likewise.
53086         * MODULES.html.sh (string handling): Mention new module.
53087         * doc/functions/strstr.texi (strstr): Document the bug.
53088
53089 2008-01-10  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/relocatable.h (relocate): State whether result is freshly
53092         allocated or not.
53093         * lib/relocatable.c (relocate): Return a freshly allocated string
53094         instead of a pointer to a privately held string.
53095         Reported by Sylvain Beucler <beuc@gnu.org>.
53096
53097 2008-01-10  Colin Watson  <cjwatson@debian.org>
53098
53099         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53100         s/S_ISNLK/S_ISLNK/.
53101
53102 2008-01-09  Bruno Haible  <bruno@clisp.org>
53103
53104         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53105         and other files.
53106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53107         if it's only a guess.
53108         * modules/memmem: Simplify by depending on memmem-simple.
53109
53110 2008-01-09  Bruno Haible  <bruno@clisp.org>
53111
53112         Work around OpenBSD 4.0 tdelete() bug.
53113         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53114         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53115         macros and don't redefine the enum values.
53116         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53117         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53118         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53119
53120 2008-01-09  Bruno Haible  <bruno@clisp.org>
53121
53122         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53123         (main): Don't perform the tests if setlocale did not install a UTF-8
53124         locale. Needed on OpenBSD 4.0.
53125         * modules/wcwidth-tests (Depends-on): Add localcharset.
53126
53127 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53128
53129         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53130         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53131         * NEWS: announce this.
53132         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53133
53134 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53135         and Eric Blake  <ebb9@byu.net>
53136
53137         Add memmem-simple module.
53138         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53139         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53140         * modules/memmem-simple: New file.
53141         * modules/memmem (Description): Tweak.
53142         * MODULES.html.sh (string handling): Mention new module.
53143         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53144         addressed by memmem-simple.
53145         * NEWS: Document the difference.
53146
53147 2008-01-09  Eric Blake  <ebb9@byu.net>
53148
53149         Give gcc some memmem optimization hints.
53150         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53151         (strcasestr): Declare as pure.
53152         * modules/memmem (Maintainer): Claim my implementation.
53153
53154 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53155
53156         Support AIX 6.1 and higher.
53157         * build-aux/config.libpath: Likewise.
53158         * build-aux/config.rpath: Likewise.
53159
53160 2008-01-08  Jim Meyering  <meyering@redhat.com>
53161             Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53164         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53165         Reported by Peter Fales in
53166         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53167
53168 2008-01-08  Bruno Haible  <bruno@clisp.org>
53169
53170         * modules/unictype/category-of (Depends-on): Add
53171         unictype/category-none.
53172         * modules/unictype/category-and-tests (Depends-on): Add
53173         unictype/category-{L,N,Lu,Nd}.
53174         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53175         * modules/unictype/category-or-tests (Depends-on): Add
53176         unictype/category-{L,N}.
53177         * modules/unictype/category-name-tests (Depends-on): Add
53178         unictype/category-{Z,Nl}.
53179         Reported by Simon Josefsson.
53180
53181 2008-01-08  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53184         convention better.
53185         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53186         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53187         Reported by Peter Miller <millerp@canb.auug.org.au>.
53188
53189 2008-01-08  Eric Blake  <ebb9@byu.net>
53190
53191         Rewrite memmem to guarantee linear complexity without malloc.
53192         * lib/memmem.c (memmem): Use Two-Way rather than
53193         Knuth-Morris-Pratt, to allow O(1) space usage.
53194         (critical_factorization, two_way_short_needle)
53195         (two_way_long_needle): New functions.
53196         (knuth_morris_pratt): Delete.
53197         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53198         Add stdint.
53199         * tests/test-memmem.c (main): Add tests for periodic needle and
53200         sublinear performance.
53201         * doc/functions/memmem.texi (memmem): Document other deficiencies
53202         in cygwin and older glibc.
53203
53204 2008-01-08  Bruno Haible  <bruno@clisp.org>
53205
53206         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53207         augmentation.
53208
53209 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53210
53211         Add a configure time option: --disable-acl.
53212         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53213         AC_ARG_ENABLE(acl).
53214
53215 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53216
53217         * tests/test-localename.c: Don't include obsolete "setenv.h".
53218
53219         * modules/localename-tests (Depends-on): Need unsetenv.
53220
53221 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53222
53223         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53224
53225 2008-01-06  Colin Watson  <cjwatson@debian.org>
53226
53227         * users.txt: Add man-db.
53228
53229 2008-01-07  Bruno Haible  <bruno@clisp.org>
53230
53231         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53232         previous section name.
53233
53234 2008-01-07  Bruno Haible  <bruno@clisp.org>
53235
53236         * lib/progname.c (set_program_name): Don't strip off a leading
53237         "lt-" prefix outside a .libs directory.
53238         Suggested by Paul Eggert.
53239
53240 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53241             Bruno Haible  <bruno@clisp.org>
53242
53243         Improve memory cleanup in 'relocatable' module.
53244         * lib/relocatable.h (compute_curr_prefix): Change return type to
53245         'char *'.
53246         * lib/relocatable.c (compute_curr_prefix): Change return type to
53247         'char *'. Free curr_installdir after use.
53248         (relocate): Free curr_prefix_better after use.
53249         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53250
53251 2008-01-01  Bruno Haible  <bruno@clisp.org>
53252
53253         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53254         failure on older glibc systems.
53255         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53256
53257 2008-01-05  Eric Blake  <ebb9@byu.net>
53258
53259         Avoid quadratic system memmem.
53260         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53261         Reported by Ralf Wildenhues.
53262
53263         Fix memmem test for mingw.
53264         * modules/memmem-tests (configure.ac): Check for alarm.
53265         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53266         it.
53267         * doc/functions/memmem.texi: New file.
53268         * doc/gnulib.texi (Function Substitutes): Add memmem.
53269         Reported by Bruno Haible.
53270
53271 2008-01-04  Bruno Haible  <bruno@clisp.org>
53272
53273         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53274         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53275         gl_HEADER_STRING_H_DEFAULTS.
53276
53277 2008-01-04  Eric Blake  <ebb9@byu.net>
53278
53279         Shorten duration of memmem test.
53280         * tests/test-memmem.c (main): Use alarm to declare failure if test
53281         is taking too long.
53282         Reported by Ralf Wildenhues.
53283
53284 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53285
53286         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53287         string, needed by strerror.
53288
53289 2008-01-03  Colin Watson  <cjwatson@debian.org>
53290             Bruno Haible  <bruno@clisp.org>
53291
53292         * doc/gnulib-tool.texi (Localization): New section.
53293
53294 2008-01-02  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53297         variables to 'unsigned char *' type.
53298         Reported by Paul Eggert.
53299
53300 2008-01-02  Jim Meyering  <jim@meyering.net>
53301
53302         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53303
53304 2007-12-31  Jim Meyering  <jim@meyering.net>
53305
53306         Avoid use of private FTS type name.
53307         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53308
53309 2007-12-30  Karl Berry  <karl@gnu.org>
53310
53311         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53312         work around defect in Texinfo and/or the standalone Info browser.
53313
53314 2007-12-30  Bruno Haible  <bruno@clisp.org>
53315
53316         Unify 5 copies of the KMP code.
53317         * lib/str-kmp.h: New file.
53318         * lib/c-strcasestr.c: Include str-kmp.h.
53319         (knuth_morris_pratt): Remove function.
53320         (c_strcasestr): Update.
53321         * lib/c-strstr.c: Include str-kmp.h.
53322         (knuth_morris_pratt): Remove function.
53323         (c_strcasestr): Update.
53324         * lib/mbscasestr.c: Include str-kmp.h.
53325         (knuth_morris_pratt_unibyte): Remove function.
53326         * lib/mbsstr.c: Include str-kmp.h.
53327         (knuth_morris_pratt_unibyte): Remove function.
53328         * lib/strcasestr.c: Include str-kmp.h.
53329         (knuth_morris_pratt): Remove function.
53330         (strcasestr): Update.
53331         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53332         * modules/c-strstr (Files): Likewise.
53333         * modules/mbscasestr (Files): Likewise.
53334         * modules/mbsstr (Files): Likewise.
53335         * modules/strcasestr (Files): Likewise.
53336         Suggested by Paul Eggert.
53337
53338 2007-12-30  Bruno Haible  <bruno@clisp.org>
53339
53340         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53341         defined.
53342
53343 2007-12-30  Bruno Haible  <bruno@clisp.org>
53344
53345         * lib/xmalloca.h: Include xalloc.h.
53346         (xnmalloca): New macro.
53347
53348 2007-12-30  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/malloca.h (nmalloca): New macro.
53351         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53352         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53353         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53354         knuth_morris_pratt_multibyte): Likewise.
53355         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53356         knuth_morris_pratt_multibyte): Likewise.
53357         * lib/memmem.c (knuth_morris_pratt): Likewise.
53358         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53359
53360 2007-12-25  Bruno Haible  <bruno@clisp.org>
53361
53362         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53363         * lib/glob.c: Don't include openat.h.
53364         (link_exists2_p): Add back the code that deals with the
53365         !GLOB_ALTDIRFUNC case.
53366         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53367         let it do the filename concatenation.
53368         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53369         * modules/glob (Depends-on): Remove openat.
53370
53371 2007-12-31  Bruno Haible  <bruno@clisp.org>
53372
53373         * modules/dirfd (License): Change to LGPLv2+.
53374         Approved by Jim Meyering.
53375
53376 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53377
53378         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53379         when multiplying M by sizeof (size_t).
53380
53381 2007-12-10  Martin Lambers  <marlam@marlam.de>
53382
53383         Override getpagesize on mingw.
53384         * lib/getpagesize.c: New file.
53385         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53386         * modules/getpagesize (Files): Add lib/getpagesize.c.
53387         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53389         REPLACE_GETPAGESIZE.
53390         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53391
53392 2007-12-25  Bruno Haible  <bruno@clisp.org>
53393
53394         * modules/localcharset (Notice): New field.
53395         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53396         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53397
53398 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53399             Bruno Haible  <bruno@clisp.org>
53400
53401         Avoid using the syntax symbol() in formatted documentation.
53402         * MODULES.html.sh (func_module): When replacing symbol() with a
53403         hyperlink, remove the parentheses. Show an error if some remain.
53404         Recognize and render the '...' syntax.
53405         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53406         Rework. Add paragraph about GCC's inlining.
53407         * doc/alloca.texi: Likewise.
53408         * doc/error.texi: Remove parentheses from symbol reference.
53409         * doc/gnulib-intro.texi: Likewise.
53410         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53411         * modules/fnmatch (Description): Reword to say "the ... function".
53412         * modules/full-read (Description): Likewise.
53413         * modules/full-write (Description): Likewise.
53414         * modules/safe-read (Description): Likewise.
53415         * modules/safe-write (Description): Likewise.
53416         * modules/strchrnul (Description): Likewise.
53417         * modules/trim (Description): Likewise.
53418         * modules/error (Description): Remove parentheses from symbol
53419         references.
53420         * modules/verror (Description): Likewise.
53421         Reported by Karl Berry.
53422
53423 2007-12-25  Bruno Haible  <bruno@clisp.org>
53424
53425         Fixup after 2007-10-16 commit.
53426         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53427
53428 2007-12-24  Bruno Haible  <bruno@clisp.org>
53429
53430         Make --enable-relocatable work with DESTDIR.
53431         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53432         to compute installdir from destprog.
53433         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53434         also set the RELOC_DESTDIR variable.
53435         Reported by Левашев Иван <octagram@bluebottle.com>.
53436
53437 2007-12-24  Bruno Haible  <bruno@clisp.org>
53438
53439         Fix link error due to xalloc_die().
53440         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53441         of xreadlink.
53442         * lib/relocwrapper.c: Update comments.
53443         * build-aux/install-reloc: Remove xreadlink.c from file list.
53444         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53445         xreadlink.c.
53446         Reported by Левашев Иван <octagram@bluebottle.com>.
53447
53448 2007-12-24  Bruno Haible  <bruno@clisp.org>
53449
53450         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53451         * lib/setenv.h: Remove file.
53452         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53453         lib/setenv.h.
53454         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53455         (Depends-on): Add stdlib.
53456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53457         gl_FUNC_UNSETENV.
53458         (Include): Replace setenv.h with <stdlib.h>.
53459         * modules/unsetenv: New file.
53460         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53461         * lib/unsetenv.c: Include <stdlib.h> first.
53462         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53463         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53464         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53465         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53466         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53467         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53469         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53470         * doc/functions/unsetenv.texi: Update.
53471         * modules/xsetenv (Depends-on): Add unsetenv.
53472         * modules/getdate (Depends-on): Likewise.
53473         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53474         * lib/xsetenv.c: Don't include setenv.h.
53475         * lib/getdate.y: Likewise.
53476         * lib/relocwrapper.c: Likewise.
53477         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53478         (Depends-on): Add stdlib.
53479         * NEWS: Mention the changes.
53480         Reported by Левашев Иван <octagram@bluebottle.com>.
53481
53482 2007-12-23  Bruno Haible  <bruno@clisp.org>
53483
53484         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53485         indentation.
53486
53487 2007-12-23  Bruno Haible  <bruno@clisp.org>
53488
53489         * lib/c-strcasestr.c: Add more comments.
53490         * lib/c-strstr.c: Likewise.
53491         * lib/mbscasestr.c: Likewise.
53492         * lib/mbsstr.c: Likewise.
53493         * lib/strcasestr.c: Likewise.
53494         * lib/memmem.c: Likewise.
53495
53496 2007-12-23  Bruno Haible  <bruno@clisp.org>
53497
53498         * tests/test-memmem.c: Include <string.h> first.
53499
53500 2007-12-22  Bruno Haible  <bruno@clisp.org>
53501
53502         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53503         the contents of $testsbase.
53504         Reported by Ralf Wildenhues.
53505
53506 2007-12-22  Bruno Haible  <bruno@clisp.org>
53507
53508         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53509         two variables local_ldadd_before, local_ldadd_last.
53510
53511 2007-12-20  Eric Blake  <ebb9@byu.net>
53512
53513         Work around circular library issue when cross-compiling.
53514         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53515         that progname.o does not need to pull in rpl_memcmp.
53516
53517 2007-12-19  Eric Blake  <ebb9@byu.net>
53518
53519         Fix memmem to avoid O(n^2) worst-case complexity.
53520         * lib/memmem.c (knuth_morris_pratt): New function.
53521         (memmem): Use it if first few naive iterations fail.
53522         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53523         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53524         * modules/memchr (License): Likewise.
53525         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53526         malloca.
53527         * tests/test-memmem.c: Rewrite, borrowing ideas from
53528         test-mbsstr1.c; the old version wouldn't even compile!
53529         * modules/memmem-tests: New file.
53530         * lib/string.in.h (rpl_memmem): Add declaration.
53531         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53533         REPLACE_MEMMEM.
53534
53535 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53538         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53539         before any system include files, and undef after them all.  This
53540         should fix a problem on VMS reported by John E. Malmberg in
53541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53542
53543 2007-12-17  Eric Blake  <ebb9@byu.net>
53544
53545         Revert addition of verify, for BSD/OS.
53546         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53547         can't handle large files, for the sake of obsolete platforms.
53548         * modules/fseeko (Depends-on): Remove verify.
53549         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53550         * doc/functions/ftello.texi (ftello): Likewise.
53551         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53552         Reported by Larry Jones.
53553
53554 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53555
53556         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53557         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53558
53559 2007-12-17  Jim Meyering  <meyering@redhat.com>
53560
53561         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53562         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53563         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53564         * modules/getcwd (Depends-on): Add openat.
53565         Reported by Petr Salinger.
53566
53567 2007-12-17  Bruno Haible  <bruno@clisp.org>
53568
53569         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53570         avoid a segmentation fault of the configure test on x86_64 systems.
53571
53572 2007-12-15  Jim Meyering  <meyering@redhat.com>
53573
53574         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53575
53576 2007-12-13  Eric Blake  <ebb9@byu.net>
53577
53578         Another fseek test.
53579         * tests/test-fseek.c (main): Also test ungetc handling.
53580         * tests/test-fseeko.c (main): Likewise.
53581         * modules/fseeko (Depends-on): Add verify.
53582         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53583         large.
53584         Reported by Larry Jones.
53585
53586         Fix fseeko on mingw.
53587         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53588         seek.
53589
53590         Beef up fseek tests.
53591         * tests/test-fseek.c (main): Also test eof handling.
53592         * tests/test-fseeko.c (main): Likewise.
53593         Reported by Larry Jones.
53594
53595 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53596
53597         Fix fseeko on BSD-based platforms.
53598         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53599         successful seek.
53600
53601 2007-12-12  Eric Blake  <ebb9@byu.net>
53602
53603         Allow circular dependency of separate libtests.a
53604         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53605         when use_libtests.
53606
53607 2007-12-11  Eric Blake  <ebb9@byu.net>
53608
53609         Fix bug with -0.0L in previous patch.
53610         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53611         * tests/test-isnan.c (main): Also test on zeroes.
53612         * tests/test-isnanf.c (main): Likewise.
53613         * tests/test-isnanl.h (main): Likewise.
53614
53615         Detect pseudo-denormals on x86 even when cross-compiling.
53616         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53617         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53618         invalid bit patterns that happen to satisfy ==.
53619
53620         Avoid link failures with separate libtests.a.
53621         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53622         last, to satisfy circular dependencies.
53623
53624 2007-12-11  Eric Blake  <ebb9@byu.net>
53625         and Bruno Haible  <bruno@clisp.org>
53626
53627         Fix OpenBSD 4.0 <float.h> handling of long double.
53628         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53629         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53630         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53631
53632 2007-12-11  Jim Meyering  <meyering@redhat.com>
53633
53634         * users.txt: Add libvirt.
53635
53636         Support versions of autoconf prior to 2.59c.
53637         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53638         if it is not already defined.
53639
53640 2007-12-09  Bruno Haible  <bruno@clisp.org>
53641
53642         Let 'gnulib-tool --import' collect sources needed for the tests in
53643         tests/ rather than in lib/.
53644         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53645         argument. If true, add rules to generate libtests.a, and put libtests.a
53646         into $(LDADD). Consider source files in subdirectories and set
53647         uses_subdirs.
53648         (func_emit_initmacro_start, func_emit_initmacro_end,
53649         func_emit_initmacro_done): Pass all arguments explicitly.
53650         (func_import): Determine two module lists main_modules,
53651         testsrelated_modules. Determine use_libtests. Determine two variables
53652         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53653         instead of just sed_transform_lib_file. Determine two variables
53654         main_files and testsrelated_files. Compute 'files' as the union of
53655         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53656         func_add_or_update. In the generated gnulib-comp.m4, collect the
53657         object files for tests/ in different variables than those for lib/.
53658         Substitute LIBTESTS_LIBDEPS.
53659         (func_create_testdir): Combine the uses_subdirs results from
53660         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53661
53662 2007-12-09  Bruno Haible  <bruno@clisp.org>
53663
53664         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53665         the build-aux directory.
53666
53667 2007-12-09  Bruno Haible  <bruno@clisp.org>
53668
53669         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53670         introduced on 2006-09-09.
53671
53672 2007-12-07  Jim Meyering  <meyering@redhat.com>
53673
53674         Let these macros work also with autoconf-2.59.
53675         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53676         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53677         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53678
53679 2007-12-06  Jim Meyering  <meyering@redhat.com>
53680
53681         Avoid a configure-time syntax error in gl_FUNC_ACL.
53682         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53683         function in each branch, before testing the cache variable.
53684
53685 2007-12-04  Eric Blake  <ebb9@byu.net>
53686
53687         Make scripts executable.
53688         * build-aux/config.guess: Add execute permissions.
53689         * build-aux/config.sub: Likewise.
53690         * build-aux/gendocs.sh: Likewise.
53691
53692         Fix frexp on mingw.
53693         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53694         cross-compiling.
53695         * doc/functions/frexp.texi (frexp): Document the bug.
53696
53697         Make cygwin fseeko check more reliable.
53698         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53699         version numbers, rather than unrelated feature check.
53700         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53701         * doc/functions/ftello.texi (ftello): Likewise.
53702         Reported by Bruno Haible.
53703
53704         * m4/strerror.m4: Bump version number.
53705
53706 2007-12-03  Bruno Haible  <bruno@clisp.org>
53707
53708         * doc/functions/mprotect.texi: Mention the mingw problem.
53709
53710 2007-12-03  Eric Blake  <ebb9@byu.net>
53711
53712         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53713         REPLACE_STRERROR is initialized before this macro.
53714
53715 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53716
53717         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53718         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53719         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53720         put -lsec in even for programs other than 'ls'.  This fixes a problem
53721         for gettext reported by Bruno Haible in
53722         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53723         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53724         Add support for Solaris 10.  This isn't efficient, but should get the
53725         job done for now.
53726
53727 2007-12-03  James Youngman  <jay@gnu.org>
53728
53729         * doc/regexprops-generic.texi: change "an close-group" to "a
53730         close-group" and "illegal" to "not allowed".
53731
53732 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53733
53734         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53735         pr_byname.h. Needed for the rare case when the maintainer has done
53736         "make maintainer-clean" in the source directory and then attempts a
53737         build outside the source directory.
53738         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53739         scripts_byname.h.
53740
53741 2007-12-02  Martin Lambers <marlam@marlam.de>
53742             Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/getpagesize.h: Remove file.
53745         * lib/unistd.in.h: Include declaration of getpagesize here.
53746         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53747         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53748         HAVE_SYS_PARAM_H.
53749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53750         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53751         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53752         (Depends-on): Add unistd.
53753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53754         (Include): Use <unistd.h> instead of getpagesize.h.
53755         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53756         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53757         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53758         gl_GETPAGESIZE invocation, already handled by module dependency.
53759         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53760
53761 2007-12-02  Bruno Haible  <bruno@clisp.org>
53762
53763         * modules/strings-tests: New file.
53764         * tests/test-strings.c: New file.
53765
53766         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53767         * lib/strings.in.h: New file.
53768         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53769         * m4/strings_h.m4: New file.
53770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53771         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53772         * modules/strings: New file.
53773         * modules/string (Makefile.am): Update.
53774         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53775         Reported by Karl Berry.
53776
53777 2007-12-01  Eric Blake  <ebb9@byu.net>
53778
53779         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53780         accomodate fix in cygwin 1.5.25.
53781
53782 2007-12-01  Jim Meyering  <meyering@redhat.com>
53783
53784         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53785         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53786         that would inhibit utf8-optimization of a regexp containing line-
53787         or buffer-anchors, e.g., `^', `$'.
53788
53789 2007-11-30  Bruno Haible  <bruno@clisp.org>
53790
53791         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53792         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53793         glthread_recursive_lock_init.
53794         * lib/lock.c (glthread_recursive_lock_init)
53795         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53796         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53797
53798 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53799
53800         New function qset_acl, like set_acl but with syscall semantics.
53801         * lib/acl.h (qset_acl): New decl.
53802         * lib/acl.c (qset_acl): New function.
53803         (set_acl): Use new function.  Use more-consistent diagnostics.
53804
53805 2007-11-28  Jim Meyering  <meyering@redhat.com>
53806
53807         * modules/physmem (License): Change from GPL to LGPLv2+.
53808
53809 2007-11-26  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53812         'long double' type has excess precision.
53813         Reported by Jim Meyering in
53814         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53815
53816 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53817
53818         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53819         Sync from <http://gnu.org/licenses>.
53820         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53821         with license text from same location.
53822         * doc/maintain.texi, doc/standards.texi:  Sync from
53823         <http://savannah.gnu.org/projects/gnustandards>.
53824
53825 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53826         and Jim Meyering  <meyering@redhat.com>
53827
53828         Adjust getdate' grammar to accept a slightly more regular language.
53829         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53830         Before, the former was rejected.
53831         * lib/getdate.y (digits_to_date_time): New function, factored
53832         out of ...
53833         (number): ...here.  Just call digits_to_date_time.
53834         (hybrid): New non-terminal to handle an <unsigned number,
53835         signed relative offset> sequence consistently.
53836
53837 2007-11-18  Jim Meyering  <meyering@redhat.com>
53838
53839         Pull my changes from coreutils:
53840         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53841         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53842         use of $gnulib_tool_option_extras, so that it's separated from the
53843         preceding argument.
53844
53845         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53846         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53847         parent destination directories before copying a file into place.
53848
53849 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53850
53851         bootstrap: work also with 4-argument variant of AC_INIT
53852         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53853
53854 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         Port test-getaddrinfo to Solaris.
53857         Problem reported by Bruno Haible in
53858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53859         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53860         explanation of setting 'hints'.
53861         Don't reject an implementation merely because it returns EAI_SERVICE.
53862         (EAI_SERVICE): Define to 0 if not defined.
53863
53864 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53865
53866         The license of gnu-make and posix-shell is now "GPLed build tool".
53867         * modules/gnu-make (License): Likewise.
53868         * modules/posix-shell (License): Likewise.
53869
53870         New module posix-shell, for determining a POSIX shell
53871         or perhaps something that is close enough to a POSIX shell.
53872         * m4/posix-shell.m4: New file.
53873         * modules/posix-shell: New file.
53874
53875         * MODULES.html.sh: Mention new module.
53876
53877         New module gnu-make, for determining whether we're using GNU Make.
53878         * m4/gnu-make.m4: New file.
53879         * modules/gnu-make: New file.
53880         * MODULES.html.sh: Mention new module.
53881
53882 2007-11-14  Jim Meyering  <meyering@redhat.com>
53883
53884         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53885         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53886         use this macro to create a function _definition_.
53887         Remove useless "#undef ARGMATCH_DIE".
53888
53889 2007-11-14  Bruno Haible  <bruno@clisp.org>
53890
53891         * lib/config.charset: Update for OpenBSD 4.1.
53892         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53893
53894 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53895
53896         Document 64-bit #if problems in stdint.texi.
53897         * doc/headers/stdint.texi (stdint.h): Mention problems with
53898         64-bit-#if, and how to work around them.
53899
53900         Don't insist on 'long long int' support in the preprocessor.  It
53901         breaks too many things.  For example, PRIdMAX still uses a 'long
53902         long int' format with the latest Sun compiler, even though
53903         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53904         preprocessor problem.  This causes the latest coreutils to dump
53905         core on Solaris 10 sparc with the Sun C compiler.
53906         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53907         the troublesome expressions at configure-time, not at #if-time.
53908         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53909         preprocessor.
53910         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53911         compile-time C checks, done at 'configure'-time.
53912         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53913         * modules/inttypes (Makefile): Substitute the new symbols that
53914         gl_INTTYPES_H now generates.
53915         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53916
53917 2007-11-12  Bruno Haible  <bruno@clisp.org>
53918
53919         Tests for Unicode character classification functions.
53920
53921         * modules/unictype/bidicategory-byname-tests: New file.
53922         * modules/unictype/bidicategory-name-tests: New file.
53923         * modules/unictype/bidicategory-of-tests: New file.
53924         * modules/unictype/bidicategory-test-tests: New file.
53925         * modules/unictype/block-list-tests: New file.
53926         * modules/unictype/block-of-tests: New file.
53927         * modules/unictype/block-test-tests: New file.
53928         * modules/unictype/category-C-tests: New file.
53929         * modules/unictype/category-Cc-tests: New file.
53930         * modules/unictype/category-Cf-tests: New file.
53931         * modules/unictype/category-Cn-tests: New file.
53932         * modules/unictype/category-Co-tests: New file.
53933         * modules/unictype/category-Cs-tests: New file.
53934         * modules/unictype/category-L-tests: New file.
53935         * modules/unictype/category-Ll-tests: New file.
53936         * modules/unictype/category-Lm-tests: New file.
53937         * modules/unictype/category-Lo-tests: New file.
53938         * modules/unictype/category-Lt-tests: New file.
53939         * modules/unictype/category-Lu-tests: New file.
53940         * modules/unictype/category-M-tests: New file.
53941         * modules/unictype/category-Mc-tests: New file.
53942         * modules/unictype/category-Me-tests: New file.
53943         * modules/unictype/category-Mn-tests: New file.
53944         * modules/unictype/category-N-tests: New file.
53945         * modules/unictype/category-Nd-tests: New file.
53946         * modules/unictype/category-Nl-tests: New file.
53947         * modules/unictype/category-No-tests: New file.
53948         * modules/unictype/category-P-tests: New file.
53949         * modules/unictype/category-Pc-tests: New file.
53950         * modules/unictype/category-Pd-tests: New file.
53951         * modules/unictype/category-Pe-tests: New file.
53952         * modules/unictype/category-Pf-tests: New file.
53953         * modules/unictype/category-Pi-tests: New file.
53954         * modules/unictype/category-Po-tests: New file.
53955         * modules/unictype/category-Ps-tests: New file.
53956         * modules/unictype/category-S-tests: New file.
53957         * modules/unictype/category-Sc-tests: New file.
53958         * modules/unictype/category-Sk-tests: New file.
53959         * modules/unictype/category-Sm-tests: New file.
53960         * modules/unictype/category-So-tests: New file.
53961         * modules/unictype/category-Z-tests: New file.
53962         * modules/unictype/category-Zl-tests: New file.
53963         * modules/unictype/category-Zp-tests: New file.
53964         * modules/unictype/category-Zs-tests: New file.
53965         * modules/unictype/category-and-not-tests: New file.
53966         * modules/unictype/category-and-tests: New file.
53967         * modules/unictype/category-byname-tests: New file.
53968         * modules/unictype/category-name-tests: New file.
53969         * modules/unictype/category-none-tests: New file.
53970         * modules/unictype/category-of-tests: New file.
53971         * modules/unictype/category-or-tests: New file.
53972         * modules/unictype/category-test-withtable-tests: New file.
53973         * modules/unictype/combining-class-tests: New file.
53974         * modules/unictype/ctype-alnum-tests: New file.
53975         * modules/unictype/ctype-alpha-tests: New file.
53976         * modules/unictype/ctype-blank-tests: New file.
53977         * modules/unictype/ctype-cntrl-tests: New file.
53978         * modules/unictype/ctype-digit-tests: New file.
53979         * modules/unictype/ctype-graph-tests: New file.
53980         * modules/unictype/ctype-lower-tests: New file.
53981         * modules/unictype/ctype-print-tests: New file.
53982         * modules/unictype/ctype-punct-tests: New file.
53983         * modules/unictype/ctype-space-tests: New file.
53984         * modules/unictype/ctype-upper-tests: New file.
53985         * modules/unictype/ctype-xdigit-tests: New file.
53986         * modules/unictype/decimal-digit-tests: New file.
53987         * modules/unictype/digit-tests: New file.
53988         * modules/unictype/mirror-tests: New file.
53989         * modules/unictype/numeric-tests: New file.
53990         * modules/unictype/property-alphabetic-tests: New file.
53991         * modules/unictype/property-ascii-hex-digit-tests: New file.
53992         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53993         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53994         * modules/unictype/property-bidi-block-separator-tests: New file.
53995         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53996         * modules/unictype/property-bidi-common-separator-tests: New file.
53997         * modules/unictype/property-bidi-control-tests: New file.
53998         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53999         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54000         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54001         * modules/unictype/property-bidi-european-digit-tests: New file.
54002         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54003         * modules/unictype/property-bidi-left-to-right-tests: New file.
54004         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54005         * modules/unictype/property-bidi-other-neutral-tests: New file.
54006         * modules/unictype/property-bidi-pdf-tests: New file.
54007         * modules/unictype/property-bidi-segment-separator-tests: New file.
54008         * modules/unictype/property-bidi-whitespace-tests: New file.
54009         * modules/unictype/property-byname-tests: New file.
54010         * modules/unictype/property-combining-tests: New file.
54011         * modules/unictype/property-composite-tests: New file.
54012         * modules/unictype/property-currency-symbol-tests: New file.
54013         * modules/unictype/property-dash-tests: New file.
54014         * modules/unictype/property-decimal-digit-tests: New file.
54015         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54016         * modules/unictype/property-deprecated-tests: New file.
54017         * modules/unictype/property-diacritic-tests: New file.
54018         * modules/unictype/property-extender-tests: New file.
54019         * modules/unictype/property-format-control-tests: New file.
54020         * modules/unictype/property-grapheme-base-tests: New file.
54021         * modules/unictype/property-grapheme-extend-tests: New file.
54022         * modules/unictype/property-grapheme-link-tests: New file.
54023         * modules/unictype/property-hex-digit-tests: New file.
54024         * modules/unictype/property-hyphen-tests: New file.
54025         * modules/unictype/property-id-continue-tests: New file.
54026         * modules/unictype/property-id-start-tests: New file.
54027         * modules/unictype/property-ideographic-tests: New file.
54028         * modules/unictype/property-ids-binary-operator-tests: New file.
54029         * modules/unictype/property-ids-trinary-operator-tests: New file.
54030         * modules/unictype/property-ignorable-control-tests: New file.
54031         * modules/unictype/property-iso-control-tests: New file.
54032         * modules/unictype/property-join-control-tests: New file.
54033         * modules/unictype/property-left-of-pair-tests: New file.
54034         * modules/unictype/property-line-separator-tests: New file.
54035         * modules/unictype/property-logical-order-exception-tests: New file.
54036         * modules/unictype/property-lowercase-tests: New file.
54037         * modules/unictype/property-math-tests: New file.
54038         * modules/unictype/property-non-break-tests: New file.
54039         * modules/unictype/property-not-a-character-tests: New file.
54040         * modules/unictype/property-numeric-tests: New file.
54041         * modules/unictype/property-other-alphabetic-tests: New file.
54042         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54043         * modules/unictype/property-other-grapheme-extend-tests: New file.
54044         * modules/unictype/property-other-id-continue-tests: New file.
54045         * modules/unictype/property-other-id-start-tests: New file.
54046         * modules/unictype/property-other-lowercase-tests: New file.
54047         * modules/unictype/property-other-math-tests: New file.
54048         * modules/unictype/property-other-uppercase-tests: New file.
54049         * modules/unictype/property-paired-punctuation-tests: New file.
54050         * modules/unictype/property-paragraph-separator-tests: New file.
54051         * modules/unictype/property-pattern-syntax-tests: New file.
54052         * modules/unictype/property-pattern-white-space-tests: New file.
54053         * modules/unictype/property-private-use-tests: New file.
54054         * modules/unictype/property-punctuation-tests: New file.
54055         * modules/unictype/property-quotation-mark-tests: New file.
54056         * modules/unictype/property-radical-tests: New file.
54057         * modules/unictype/property-sentence-terminal-tests: New file.
54058         * modules/unictype/property-soft-dotted-tests: New file.
54059         * modules/unictype/property-space-tests: New file.
54060         * modules/unictype/property-terminal-punctuation-tests: New file.
54061         * modules/unictype/property-test-tests: New file.
54062         * modules/unictype/property-titlecase-tests: New file.
54063         * modules/unictype/property-unassigned-code-value-tests: New file.
54064         * modules/unictype/property-unified-ideograph-tests: New file.
54065         * modules/unictype/property-uppercase-tests: New file.
54066         * modules/unictype/property-variation-selector-tests: New file.
54067         * modules/unictype/property-white-space-tests: New file.
54068         * modules/unictype/property-xid-continue-tests: New file.
54069         * modules/unictype/property-xid-start-tests: New file.
54070         * modules/unictype/property-zero-width-tests: New file.
54071         * modules/unictype/scripts-tests: New file.
54072         * modules/unictype/syntax-c-ident-tests: New file.
54073         * modules/unictype/syntax-c-whitespace-tests: New file.
54074         * modules/unictype/syntax-java-ident-tests: New file.
54075         * modules/unictype/syntax-java-whitespace-tests: New file.
54076         * tests/unictype/test-bidi_byname.c: New file.
54077         * tests/unictype/test-bidi_name.c: New file.
54078         * tests/unictype/test-bidi_of.c: New file.
54079         * tests/unictype/test-bidi_test.c: New file.
54080         * tests/unictype/test-block_list.c: New file.
54081         * tests/unictype/test-block_of.c: New file.
54082         * tests/unictype/test-block_test.c: New file.
54083         * tests/unictype/test-categ_and.c: New file.
54084         * tests/unictype/test-categ_and_not.c: New file.
54085         * tests/unictype/test-categ_byname.c: New file.
54086         * tests/unictype/test-categ_name.c: New file.
54087         * tests/unictype/test-categ_none.c: New file.
54088         * tests/unictype/test-categ_of.c: New file.
54089         * tests/unictype/test-categ_or.c: New file.
54090         * tests/unictype/test-categ_test_withtable.c: New file.
54091         * tests/unictype/test-combining.c: New file.
54092         * tests/unictype/test-decdigit.c: New file.
54093         * tests/unictype/test-digit.c: New file.
54094         * tests/unictype/test-mirror.c: New file.
54095         * tests/unictype/test-numeric.c: New file.
54096         * tests/unictype/test-pr_byname.c: New file.
54097         * tests/unictype/test-pr_test.c: New file.
54098         * tests/unictype/test-predicate-part1.h: New file.
54099         * tests/unictype/test-predicate-part2.h: New file.
54100         * tests/unictype/test-scripts.c: New file.
54101         * tests/unictype/test-sy_c_ident.c: New file.
54102         * tests/unictype/test-sy_java_ident.c: New file.
54103
54104         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54105         for Unicode 5.0.0.
54106         * tests/unictype/test-categ_Cc.c: Likewise.
54107         * tests/unictype/test-categ_Cf.c: Likewise.
54108         * tests/unictype/test-categ_Cn.c: Likewise.
54109         * tests/unictype/test-categ_Co.c: Likewise.
54110         * tests/unictype/test-categ_Cs.c: Likewise.
54111         * tests/unictype/test-categ_L.c: Likewise.
54112         * tests/unictype/test-categ_Ll.c: Likewise.
54113         * tests/unictype/test-categ_Lm.c: Likewise.
54114         * tests/unictype/test-categ_Lo.c: Likewise.
54115         * tests/unictype/test-categ_Lt.c: Likewise.
54116         * tests/unictype/test-categ_Lu.c: Likewise.
54117         * tests/unictype/test-categ_M.c: Likewise.
54118         * tests/unictype/test-categ_Mc.c: Likewise.
54119         * tests/unictype/test-categ_Me.c: Likewise.
54120         * tests/unictype/test-categ_Mn.c: Likewise.
54121         * tests/unictype/test-categ_N.c: Likewise.
54122         * tests/unictype/test-categ_Nd.c: Likewise.
54123         * tests/unictype/test-categ_Nl.c: Likewise.
54124         * tests/unictype/test-categ_No.c: Likewise.
54125         * tests/unictype/test-categ_P.c: Likewise.
54126         * tests/unictype/test-categ_Pc.c: Likewise.
54127         * tests/unictype/test-categ_Pd.c: Likewise.
54128         * tests/unictype/test-categ_Pe.c: Likewise.
54129         * tests/unictype/test-categ_Pf.c: Likewise.
54130         * tests/unictype/test-categ_Pi.c: Likewise.
54131         * tests/unictype/test-categ_Po.c: Likewise.
54132         * tests/unictype/test-categ_Ps.c: Likewise.
54133         * tests/unictype/test-categ_S.c: Likewise.
54134         * tests/unictype/test-categ_Sc.c: Likewise.
54135         * tests/unictype/test-categ_Sk.c: Likewise.
54136         * tests/unictype/test-categ_Sm.c: Likewise.
54137         * tests/unictype/test-categ_So.c: Likewise.
54138         * tests/unictype/test-categ_Z.c: Likewise.
54139         * tests/unictype/test-categ_Zl.c: Likewise.
54140         * tests/unictype/test-categ_Zp.c: Likewise.
54141         * tests/unictype/test-categ_Zs.c: Likewise.
54142         * tests/unictype/test-ctype_alnum.c: Likewise.
54143         * tests/unictype/test-ctype_alpha.c: Likewise.
54144         * tests/unictype/test-ctype_blank.c: Likewise.
54145         * tests/unictype/test-ctype_cntrl.c: Likewise.
54146         * tests/unictype/test-ctype_digit.c: Likewise.
54147         * tests/unictype/test-ctype_graph.c: Likewise.
54148         * tests/unictype/test-ctype_lower.c: Likewise.
54149         * tests/unictype/test-ctype_print.c: Likewise.
54150         * tests/unictype/test-ctype_punct.c: Likewise.
54151         * tests/unictype/test-ctype_space.c: Likewise.
54152         * tests/unictype/test-ctype_upper.c: Likewise.
54153         * tests/unictype/test-ctype_xdigit.c: Likewise.
54154         * tests/unictype/test-decdigit.h: Likewise.
54155         * tests/unictype/test-digit.h: Likewise.
54156         * tests/unictype/test-numeric.h: Likewise.
54157         * tests/unictype/test-pr_alphabetic.c: Likewise.
54158         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54159         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54160         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54161         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54162         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54163         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54164         * tests/unictype/test-pr_bidi_control.c: Likewise.
54165         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54166         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54167         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54168         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54169         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54170         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54171         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54172         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54173         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54174         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54175         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54176         * tests/unictype/test-pr_combining.c: Likewise.
54177         * tests/unictype/test-pr_composite.c: Likewise.
54178         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54179         * tests/unictype/test-pr_dash.c: Likewise.
54180         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54181         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54182         * tests/unictype/test-pr_deprecated.c: Likewise.
54183         * tests/unictype/test-pr_diacritic.c: Likewise.
54184         * tests/unictype/test-pr_extender.c: Likewise.
54185         * tests/unictype/test-pr_format_control.c: Likewise.
54186         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54187         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54188         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54189         * tests/unictype/test-pr_hex_digit.c: Likewise.
54190         * tests/unictype/test-pr_hyphen.c: Likewise.
54191         * tests/unictype/test-pr_id_continue.c: Likewise.
54192         * tests/unictype/test-pr_id_start.c: Likewise.
54193         * tests/unictype/test-pr_ideographic.c: Likewise.
54194         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54195         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54196         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54197         * tests/unictype/test-pr_iso_control.c: Likewise.
54198         * tests/unictype/test-pr_join_control.c: Likewise.
54199         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54200         * tests/unictype/test-pr_line_separator.c: Likewise.
54201         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54202         * tests/unictype/test-pr_lowercase.c: Likewise.
54203         * tests/unictype/test-pr_math.c: Likewise.
54204         * tests/unictype/test-pr_non_break.c: Likewise.
54205         * tests/unictype/test-pr_not_a_character.c: Likewise.
54206         * tests/unictype/test-pr_numeric.c: Likewise.
54207         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54208         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54209         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54210         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54211         * tests/unictype/test-pr_other_id_start.c: Likewise.
54212         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54213         * tests/unictype/test-pr_other_math.c: Likewise.
54214         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54215         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54216         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54217         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54218         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54219         * tests/unictype/test-pr_private_use.c: Likewise.
54220         * tests/unictype/test-pr_punctuation.c: Likewise.
54221         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54222         * tests/unictype/test-pr_radical.c: Likewise.
54223         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54224         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54225         * tests/unictype/test-pr_space.c: Likewise.
54226         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54227         * tests/unictype/test-pr_titlecase.c: Likewise.
54228         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54229         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54230         * tests/unictype/test-pr_uppercase.c: Likewise.
54231         * tests/unictype/test-pr_variation_selector.c: Likewise.
54232         * tests/unictype/test-pr_white_space.c: Likewise.
54233         * tests/unictype/test-pr_xid_continue.c: Likewise.
54234         * tests/unictype/test-pr_xid_start.c: Likewise.
54235         * tests/unictype/test-pr_zero_width.c: Likewise.
54236         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54237         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54238
54239 2007-11-12  Bruno Haible  <bruno@clisp.org>
54240
54241         Unicode character classification functions.
54242         * lib/unictype.h: New file.
54243         * modules/unictype/base: New file.
54244         * modules/unictype/category-L: New file.
54245         * modules/unictype/category-Lu: New file.
54246         * modules/unictype/category-Ll: New file.
54247         * modules/unictype/category-Lt: New file.
54248         * modules/unictype/category-Lm: New file.
54249         * modules/unictype/category-Lo: New file.
54250         * modules/unictype/category-M: New file.
54251         * modules/unictype/category-Mn: New file.
54252         * modules/unictype/category-Mc: New file.
54253         * modules/unictype/category-Me: New file.
54254         * modules/unictype/category-N: New file.
54255         * modules/unictype/category-Nd: New file.
54256         * modules/unictype/category-Nl: New file.
54257         * modules/unictype/category-No: New file.
54258         * modules/unictype/category-P: New file.
54259         * modules/unictype/category-Pc: New file.
54260         * modules/unictype/category-Pd: New file.
54261         * modules/unictype/category-Ps: New file.
54262         * modules/unictype/category-Pe: New file.
54263         * modules/unictype/category-Pi: New file.
54264         * modules/unictype/category-Pf: New file.
54265         * modules/unictype/category-Po: New file.
54266         * modules/unictype/category-S: New file.
54267         * modules/unictype/category-Sm: New file.
54268         * modules/unictype/category-Sc: New file.
54269         * modules/unictype/category-Sk: New file.
54270         * modules/unictype/category-So: New file.
54271         * modules/unictype/category-Z: New file.
54272         * modules/unictype/category-Zs: New file.
54273         * modules/unictype/category-Zl: New file.
54274         * modules/unictype/category-Zp: New file.
54275         * modules/unictype/category-C: New file.
54276         * modules/unictype/category-Cc: New file.
54277         * modules/unictype/category-Cf: New file.
54278         * modules/unictype/category-Cs: New file.
54279         * modules/unictype/category-Co: New file.
54280         * modules/unictype/category-Cn: New file.
54281         * modules/unictype/category-or: New file.
54282         * modules/unictype/category-of: New file.
54283         * modules/unictype/category-test: New file.
54284         * modules/unictype/category-test-withtable: New file.
54285         * modules/unictype/category-byname: New file.
54286         * modules/unictype/category-none: New file.
54287         * modules/unictype/category-and: New file.
54288         * modules/unictype/category-and-not: New file.
54289         * modules/unictype/category-name: New file.
54290         * modules/unictype/combining-class: New file.
54291         * modules/unictype/category-all: New file.
54292         * modules/unictype/bidicategory-all: New file.
54293         * modules/unictype/bidicategory-byname: New file.
54294         * modules/unictype/bidicategory-name: New file.
54295         * modules/unictype/bidicategory-of: New file.
54296         * modules/unictype/bidicategory-test: New file.
54297         * modules/unictype/decimal-digit: New file.
54298         * modules/unictype/digit: New file.
54299         * modules/unictype/numeric: New file.
54300         * modules/unictype/mirror: New file.
54301         * modules/unictype/property-white-space: New file.
54302         * modules/unictype/property-alphabetic: New file.
54303         * modules/unictype/property-other-alphabetic: New file.
54304         * modules/unictype/property-not-a-character: New file.
54305         * modules/unictype/property-default-ignorable-code-point: New file.
54306         * modules/unictype/property-other-default-ignorable-code-point: New
54307         file.
54308         * modules/unictype/property-deprecated: New file.
54309         * modules/unictype/property-logical-order-exception: New file.
54310         * modules/unictype/property-variation-selector: New file.
54311         * modules/unictype/property-private-use: New file.
54312         * modules/unictype/property-unassigned-code-value: New file.
54313         * modules/unictype/property-uppercase: New file.
54314         * modules/unictype/property-other-uppercase: New file.
54315         * modules/unictype/property-lowercase: New file.
54316         * modules/unictype/property-other-lowercase: New file.
54317         * modules/unictype/property-titlecase: New file.
54318         * modules/unictype/property-soft-dotted: New file.
54319         * modules/unictype/property-id-start: New file.
54320         * modules/unictype/property-other-id-start: New file.
54321         * modules/unictype/property-id-continue: New file.
54322         * modules/unictype/property-other-id-continue: New file.
54323         * modules/unictype/property-xid-start: New file.
54324         * modules/unictype/property-xid-continue: New file.
54325         * modules/unictype/property-pattern-white-space: New file.
54326         * modules/unictype/property-pattern-syntax: New file.
54327         * modules/unictype/property-join-control: New file.
54328         * modules/unictype/property-grapheme-base: New file.
54329         * modules/unictype/property-grapheme-extend: New file.
54330         * modules/unictype/property-other-grapheme-extend: New file.
54331         * modules/unictype/property-grapheme-link: New file.
54332         * modules/unictype/property-bidi-control: New file.
54333         * modules/unictype/property-bidi-left-to-right: New file.
54334         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54335         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54336         * modules/unictype/property-bidi-european-digit: New file.
54337         * modules/unictype/property-bidi-eur-num-separator: New file.
54338         * modules/unictype/property-bidi-eur-num-terminator: New file.
54339         * modules/unictype/property-bidi-arabic-digit: New file.
54340         * modules/unictype/property-bidi-common-separator: New file.
54341         * modules/unictype/property-bidi-block-separator: New file.
54342         * modules/unictype/property-bidi-segment-separator: New file.
54343         * modules/unictype/property-bidi-whitespace: New file.
54344         * modules/unictype/property-bidi-non-spacing-mark: New file.
54345         * modules/unictype/property-bidi-boundary-neutral: New file.
54346         * modules/unictype/property-bidi-pdf: New file.
54347         * modules/unictype/property-bidi-embedding-or-override: New file.
54348         * modules/unictype/property-bidi-other-neutral: New file.
54349         * modules/unictype/property-hex-digit: New file.
54350         * modules/unictype/property-ascii-hex-digit: New file.
54351         * modules/unictype/property-ideographic: New file.
54352         * modules/unictype/property-unified-ideograph: New file.
54353         * modules/unictype/property-radical: New file.
54354         * modules/unictype/property-ids-binary-operator: New file.
54355         * modules/unictype/property-ids-trinary-operator: New file.
54356         * modules/unictype/property-zero-width: New file.
54357         * modules/unictype/property-space: New file.
54358         * modules/unictype/property-non-break: New file.
54359         * modules/unictype/property-iso-control: New file.
54360         * modules/unictype/property-format-control: New file.
54361         * modules/unictype/property-dash: New file.
54362         * modules/unictype/property-hyphen: New file.
54363         * modules/unictype/property-punctuation: New file.
54364         * modules/unictype/property-line-separator: New file.
54365         * modules/unictype/property-paragraph-separator: New file.
54366         * modules/unictype/property-quotation-mark: New file.
54367         * modules/unictype/property-sentence-terminal: New file.
54368         * modules/unictype/property-terminal-punctuation: New file.
54369         * modules/unictype/property-currency-symbol: New file.
54370         * modules/unictype/property-math: New file.
54371         * modules/unictype/property-other-math: New file.
54372         * modules/unictype/property-paired-punctuation: New file.
54373         * modules/unictype/property-left-of-pair: New file.
54374         * modules/unictype/property-combining: New file.
54375         * modules/unictype/property-composite: New file.
54376         * modules/unictype/property-decimal-digit: New file.
54377         * modules/unictype/property-numeric: New file.
54378         * modules/unictype/property-diacritic: New file.
54379         * modules/unictype/property-extender: New file.
54380         * modules/unictype/property-ignorable-control: New file.
54381         * modules/unictype/property-test: New file.
54382         * modules/unictype/property-byname: New file.
54383         * modules/unictype/property-all: New file.
54384         * modules/unictype/scripts: New file.
54385         * modules/unictype/scripts-all: New file.
54386         * modules/unictype/block-of: New file.
54387         * modules/unictype/block-test: New file.
54388         * modules/unictype/block-list: New file.
54389         * modules/unictype/block-all: New file.
54390         * modules/unictype/syntax-c-whitespace: New file.
54391         * modules/unictype/syntax-java-whitespace: New file.
54392         * modules/unictype/syntax-c-ident: New file.
54393         * modules/unictype/syntax-java-ident: New file.
54394         * modules/unictype/ctype-alnum: New file.
54395         * modules/unictype/ctype-alpha: New file.
54396         * modules/unictype/ctype-cntrl: New file.
54397         * modules/unictype/ctype-digit: New file.
54398         * modules/unictype/ctype-graph: New file.
54399         * modules/unictype/ctype-lower: New file.
54400         * modules/unictype/ctype-print: New file.
54401         * modules/unictype/ctype-punct: New file.
54402         * modules/unictype/ctype-space: New file.
54403         * modules/unictype/ctype-upper: New file.
54404         * modules/unictype/ctype-xdigit: New file.
54405         * modules/unictype/ctype-blank: New file.
54406         * lib/unictype/bidi_byname.c: New file.
54407         * lib/unictype/bidi_name.c: New file.
54408         * lib/unictype/bidi_of.c: New file.
54409         * lib/unictype/bidi_test.c: New file.
54410         * lib/unictype/bitmap.h: New file.
54411         * lib/unictype/block_test.c: New file.
54412         * lib/unictype/blocks.c: New file.
54413         * lib/unictype/categ_C.c: New file.
54414         * lib/unictype/categ_Cc.c: New file.
54415         * lib/unictype/categ_Cf.c: New file.
54416         * lib/unictype/categ_Cn.c: New file.
54417         * lib/unictype/categ_Co.c: New file.
54418         * lib/unictype/categ_Cs.c: New file.
54419         * lib/unictype/categ_L.c: New file.
54420         * lib/unictype/categ_Ll.c: New file.
54421         * lib/unictype/categ_Lm.c: New file.
54422         * lib/unictype/categ_Lo.c: New file.
54423         * lib/unictype/categ_Lt.c: New file.
54424         * lib/unictype/categ_Lu.c: New file.
54425         * lib/unictype/categ_M.c: New file.
54426         * lib/unictype/categ_Mc.c: New file.
54427         * lib/unictype/categ_Me.c: New file.
54428         * lib/unictype/categ_Mn.c: New file.
54429         * lib/unictype/categ_N.c: New file.
54430         * lib/unictype/categ_Nd.c: New file.
54431         * lib/unictype/categ_Nl.c: New file.
54432         * lib/unictype/categ_No.c: New file.
54433         * lib/unictype/categ_P.c: New file.
54434         * lib/unictype/categ_Pc.c: New file.
54435         * lib/unictype/categ_Pd.c: New file.
54436         * lib/unictype/categ_Pe.c: New file.
54437         * lib/unictype/categ_Pf.c: New file.
54438         * lib/unictype/categ_Pi.c: New file.
54439         * lib/unictype/categ_Po.c: New file.
54440         * lib/unictype/categ_Ps.c: New file.
54441         * lib/unictype/categ_S.c: New file.
54442         * lib/unictype/categ_Sc.c: New file.
54443         * lib/unictype/categ_Sk.c: New file.
54444         * lib/unictype/categ_Sm.c: New file.
54445         * lib/unictype/categ_So.c: New file.
54446         * lib/unictype/categ_Z.c: New file.
54447         * lib/unictype/categ_Zl.c: New file.
54448         * lib/unictype/categ_Zp.c: New file.
54449         * lib/unictype/categ_Zs.c: New file.
54450         * lib/unictype/categ_and.c: New file.
54451         * lib/unictype/categ_and_not.c: New file.
54452         * lib/unictype/categ_byname.c: New file.
54453         * lib/unictype/categ_name.c: New file.
54454         * lib/unictype/categ_none.c: New file.
54455         * lib/unictype/categ_of.c: New file.
54456         * lib/unictype/categ_or.c: New file.
54457         * lib/unictype/categ_test.c: New file.
54458         * lib/unictype/combining.c: New file.
54459         * lib/unictype/ctype_alnum.c: New file.
54460         * lib/unictype/ctype_alpha.c: New file.
54461         * lib/unictype/ctype_blank.c: New file.
54462         * lib/unictype/ctype_cntrl.c: New file.
54463         * lib/unictype/ctype_digit.c: New file.
54464         * lib/unictype/ctype_graph.c: New file.
54465         * lib/unictype/ctype_lower.c: New file.
54466         * lib/unictype/ctype_print.c: New file.
54467         * lib/unictype/ctype_punct.c: New file.
54468         * lib/unictype/ctype_space.c: New file.
54469         * lib/unictype/ctype_upper.c: New file.
54470         * lib/unictype/ctype_xdigit.c: New file.
54471         * lib/unictype/decdigit.c: New file.
54472         * lib/unictype/digit.c: New file.
54473         * lib/unictype/identsyntaxmap.h: New file.
54474         * lib/unictype/mirror.c: New file.
54475         * lib/unictype/numeric.c: New file.
54476         * lib/unictype/pr_alphabetic.c: New file.
54477         * lib/unictype/pr_ascii_hex_digit.c: New file.
54478         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54479         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54480         * lib/unictype/pr_bidi_block_separator.c: New file.
54481         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54482         * lib/unictype/pr_bidi_common_separator.c: New file.
54483         * lib/unictype/pr_bidi_control.c: New file.
54484         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54485         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54486         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54487         * lib/unictype/pr_bidi_european_digit.c: New file.
54488         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54489         * lib/unictype/pr_bidi_left_to_right.c: New file.
54490         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54491         * lib/unictype/pr_bidi_other_neutral.c: New file.
54492         * lib/unictype/pr_bidi_pdf.c: New file.
54493         * lib/unictype/pr_bidi_segment_separator.c: New file.
54494         * lib/unictype/pr_bidi_whitespace.c: New file.
54495         * lib/unictype/pr_byname.c: New file.
54496         * lib/unictype/pr_byname.gperf: New file.
54497         * lib/unictype/pr_combining.c: New file.
54498         * lib/unictype/pr_composite.c: New file.
54499         * lib/unictype/pr_currency_symbol.c: New file.
54500         * lib/unictype/pr_dash.c: New file.
54501         * lib/unictype/pr_decimal_digit.c: New file.
54502         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54503         * lib/unictype/pr_deprecated.c: New file.
54504         * lib/unictype/pr_diacritic.c: New file.
54505         * lib/unictype/pr_extender.c: New file.
54506         * lib/unictype/pr_format_control.c: New file.
54507         * lib/unictype/pr_grapheme_base.c: New file.
54508         * lib/unictype/pr_grapheme_extend.c: New file.
54509         * lib/unictype/pr_grapheme_link.c: New file.
54510         * lib/unictype/pr_hex_digit.c: New file.
54511         * lib/unictype/pr_hyphen.c: New file.
54512         * lib/unictype/pr_id_continue.c: New file.
54513         * lib/unictype/pr_id_start.c: New file.
54514         * lib/unictype/pr_ideographic.c: New file.
54515         * lib/unictype/pr_ids_binary_operator.c: New file.
54516         * lib/unictype/pr_ids_trinary_operator.c: New file.
54517         * lib/unictype/pr_ignorable_control.c: New file.
54518         * lib/unictype/pr_iso_control.c: New file.
54519         * lib/unictype/pr_join_control.c: New file.
54520         * lib/unictype/pr_left_of_pair.c: New file.
54521         * lib/unictype/pr_line_separator.c: New file.
54522         * lib/unictype/pr_logical_order_exception.c: New file.
54523         * lib/unictype/pr_lowercase.c: New file.
54524         * lib/unictype/pr_math.c: New file.
54525         * lib/unictype/pr_non_break.c: New file.
54526         * lib/unictype/pr_not_a_character.c: New file.
54527         * lib/unictype/pr_numeric.c: New file.
54528         * lib/unictype/pr_other_alphabetic.c: New file.
54529         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54530         * lib/unictype/pr_other_grapheme_extend.c: New file.
54531         * lib/unictype/pr_other_id_continue.c: New file.
54532         * lib/unictype/pr_other_id_start.c: New file.
54533         * lib/unictype/pr_other_lowercase.c: New file.
54534         * lib/unictype/pr_other_math.c: New file.
54535         * lib/unictype/pr_other_uppercase.c: New file.
54536         * lib/unictype/pr_paired_punctuation.c: New file.
54537         * lib/unictype/pr_paragraph_separator.c: New file.
54538         * lib/unictype/pr_pattern_syntax.c: New file.
54539         * lib/unictype/pr_pattern_white_space.c: New file.
54540         * lib/unictype/pr_private_use.c: New file.
54541         * lib/unictype/pr_punctuation.c: New file.
54542         * lib/unictype/pr_quotation_mark.c: New file.
54543         * lib/unictype/pr_radical.c: New file.
54544         * lib/unictype/pr_sentence_terminal.c: New file.
54545         * lib/unictype/pr_soft_dotted.c: New file.
54546         * lib/unictype/pr_space.c: New file.
54547         * lib/unictype/pr_terminal_punctuation.c: New file.
54548         * lib/unictype/pr_test.c: New file.
54549         * lib/unictype/pr_titlecase.c: New file.
54550         * lib/unictype/pr_unassigned_code_value.c: New file.
54551         * lib/unictype/pr_unified_ideograph.c: New file.
54552         * lib/unictype/pr_uppercase.c: New file.
54553         * lib/unictype/pr_variation_selector.c: New file.
54554         * lib/unictype/pr_white_space.c: New file.
54555         * lib/unictype/pr_xid_continue.c: New file.
54556         * lib/unictype/pr_xid_start.c: New file.
54557         * lib/unictype/pr_zero_width.c: New file.
54558         * lib/unictype/scripts.c: New file.
54559         * lib/unictype/sy_c_ident.c: New file.
54560         * lib/unictype/sy_c_whitespace.c: New file.
54561         * lib/unictype/sy_java_ident.c: New file.
54562         * lib/unictype/sy_java_whitespace.c: New file.
54563
54564         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54565         Unicode 5.0.0.
54566         * lib/unictype/blocks.h: Likewise.
54567         * lib/unictype/categ_C.h: Likewise.
54568         * lib/unictype/categ_Cc.h: Likewise.
54569         * lib/unictype/categ_Cf.h: Likewise.
54570         * lib/unictype/categ_Cn.h: Likewise.
54571         * lib/unictype/categ_Co.h: Likewise.
54572         * lib/unictype/categ_Cs.h: Likewise.
54573         * lib/unictype/categ_L.h: Likewise.
54574         * lib/unictype/categ_Ll.h: Likewise.
54575         * lib/unictype/categ_Lm.h: Likewise.
54576         * lib/unictype/categ_Lo.h: Likewise.
54577         * lib/unictype/categ_Lt.h: Likewise.
54578         * lib/unictype/categ_Lu.h: Likewise.
54579         * lib/unictype/categ_M.h: Likewise.
54580         * lib/unictype/categ_Mc.h: Likewise.
54581         * lib/unictype/categ_Me.h: Likewise.
54582         * lib/unictype/categ_Mn.h: Likewise.
54583         * lib/unictype/categ_N.h: Likewise.
54584         * lib/unictype/categ_Nd.h: Likewise.
54585         * lib/unictype/categ_Nl.h: Likewise.
54586         * lib/unictype/categ_No.h: Likewise.
54587         * lib/unictype/categ_P.h: Likewise.
54588         * lib/unictype/categ_Pc.h: Likewise.
54589         * lib/unictype/categ_Pd.h: Likewise.
54590         * lib/unictype/categ_Pe.h: Likewise.
54591         * lib/unictype/categ_Pf.h: Likewise.
54592         * lib/unictype/categ_Pi.h: Likewise.
54593         * lib/unictype/categ_Po.h: Likewise.
54594         * lib/unictype/categ_Ps.h: Likewise.
54595         * lib/unictype/categ_S.h: Likewise.
54596         * lib/unictype/categ_Sc.h: Likewise.
54597         * lib/unictype/categ_Sk.h: Likewise.
54598         * lib/unictype/categ_Sm.h: Likewise.
54599         * lib/unictype/categ_So.h: Likewise.
54600         * lib/unictype/categ_Z.h: Likewise.
54601         * lib/unictype/categ_Zl.h: Likewise.
54602         * lib/unictype/categ_Zp.h: Likewise.
54603         * lib/unictype/categ_Zs.h: Likewise.
54604         * lib/unictype/categ_of.h: Likewise.
54605         * lib/unictype/combining.h: Likewise.
54606         * lib/unictype/ctype_alnum.h: Likewise.
54607         * lib/unictype/ctype_alpha.h: Likewise.
54608         * lib/unictype/ctype_blank.h: Likewise.
54609         * lib/unictype/ctype_cntrl.h: Likewise.
54610         * lib/unictype/ctype_digit.h: Likewise.
54611         * lib/unictype/ctype_graph.h: Likewise.
54612         * lib/unictype/ctype_lower.h: Likewise.
54613         * lib/unictype/ctype_print.h: Likewise.
54614         * lib/unictype/ctype_punct.h: Likewise.
54615         * lib/unictype/ctype_space.h: Likewise.
54616         * lib/unictype/ctype_upper.h: Likewise.
54617         * lib/unictype/ctype_xdigit.h: Likewise.
54618         * lib/unictype/decdigit.h: Likewise.
54619         * lib/unictype/digit.h: Likewise.
54620         * lib/unictype/mirror.h: Likewise.
54621         * lib/unictype/numeric.h: Likewise.
54622         * lib/unictype/pr_alphabetic.h: Likewise.
54623         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54624         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54625         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54626         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54627         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54628         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54629         * lib/unictype/pr_bidi_control.h: Likewise.
54630         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54631         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54632         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54633         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54634         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54635         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54636         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54637         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54638         * lib/unictype/pr_bidi_pdf.h: Likewise.
54639         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54640         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54641         * lib/unictype/pr_combining.h: Likewise.
54642         * lib/unictype/pr_composite.h: Likewise.
54643         * lib/unictype/pr_currency_symbol.h: Likewise.
54644         * lib/unictype/pr_dash.h: Likewise.
54645         * lib/unictype/pr_decimal_digit.h: Likewise.
54646         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54647         * lib/unictype/pr_deprecated.h: Likewise.
54648         * lib/unictype/pr_diacritic.h: Likewise.
54649         * lib/unictype/pr_extender.h: Likewise.
54650         * lib/unictype/pr_format_control.h: Likewise.
54651         * lib/unictype/pr_grapheme_base.h: Likewise.
54652         * lib/unictype/pr_grapheme_extend.h: Likewise.
54653         * lib/unictype/pr_grapheme_link.h: Likewise.
54654         * lib/unictype/pr_hex_digit.h: Likewise.
54655         * lib/unictype/pr_hyphen.h: Likewise.
54656         * lib/unictype/pr_id_continue.h: Likewise.
54657         * lib/unictype/pr_id_start.h: Likewise.
54658         * lib/unictype/pr_ideographic.h: Likewise.
54659         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54660         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54661         * lib/unictype/pr_ignorable_control.h: Likewise.
54662         * lib/unictype/pr_iso_control.h: Likewise.
54663         * lib/unictype/pr_join_control.h: Likewise.
54664         * lib/unictype/pr_left_of_pair.h: Likewise.
54665         * lib/unictype/pr_line_separator.h: Likewise.
54666         * lib/unictype/pr_logical_order_exception.h: Likewise.
54667         * lib/unictype/pr_lowercase.h: Likewise.
54668         * lib/unictype/pr_math.h: Likewise.
54669         * lib/unictype/pr_non_break.h: Likewise.
54670         * lib/unictype/pr_not_a_character.h: Likewise.
54671         * lib/unictype/pr_numeric.h: Likewise.
54672         * lib/unictype/pr_other_alphabetic.h: Likewise.
54673         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54674         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54675         * lib/unictype/pr_other_id_continue.h: Likewise.
54676         * lib/unictype/pr_other_id_start.h: Likewise.
54677         * lib/unictype/pr_other_lowercase.h: Likewise.
54678         * lib/unictype/pr_other_math.h: Likewise.
54679         * lib/unictype/pr_other_uppercase.h: Likewise.
54680         * lib/unictype/pr_paired_punctuation.h: Likewise.
54681         * lib/unictype/pr_paragraph_separator.h: Likewise.
54682         * lib/unictype/pr_pattern_syntax.h: Likewise.
54683         * lib/unictype/pr_pattern_white_space.h: Likewise.
54684         * lib/unictype/pr_private_use.h: Likewise.
54685         * lib/unictype/pr_punctuation.h: Likewise.
54686         * lib/unictype/pr_quotation_mark.h: Likewise.
54687         * lib/unictype/pr_radical.h: Likewise.
54688         * lib/unictype/pr_sentence_terminal.h: Likewise.
54689         * lib/unictype/pr_soft_dotted.h: Likewise.
54690         * lib/unictype/pr_space.h: Likewise.
54691         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54692         * lib/unictype/pr_titlecase.h: Likewise.
54693         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54694         * lib/unictype/pr_unified_ideograph.h: Likewise.
54695         * lib/unictype/pr_uppercase.h: Likewise.
54696         * lib/unictype/pr_variation_selector.h: Likewise.
54697         * lib/unictype/pr_white_space.h: Likewise.
54698         * lib/unictype/pr_xid_continue.h: Likewise.
54699         * lib/unictype/pr_xid_start.h: Likewise.
54700         * lib/unictype/pr_zero_width.h: Likewise.
54701         * lib/unictype/scripts.h: Likewise.
54702         * lib/unictype/scripts_byname.gperf: Likewise.
54703         * lib/unictype/sy_c_ident.h: Likewise.
54704         * lib/unictype/sy_c_whitespace.h: Likewise.
54705         * lib/unictype/sy_java_ident.h: Likewise.
54706         * lib/unictype/sy_java_whitespace.h: Likewise.
54707
54708         * lib/unictype/Makefile: New file.
54709         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54710         glibc.
54711         * lib/unictype/3level.h: New file, copied from glibc.
54712         * lib/unictype/3levelbit.h: New file.
54713
54714 2007-11-11  Bruno Haible  <bruno@clisp.org>
54715
54716         * modules/gperf: New file.
54717         * modules/iconv_open (Depends-on): Add it.
54718         (Makefile.am): Remove the GPERF definition.
54719
54720 2007-11-11  Bruno Haible  <bruno@clisp.org>
54721
54722         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54723         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54724
54725 2007-11-11  Bruno Haible  <bruno@clisp.org>
54726
54727         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54728         (usage): Remove function.
54729
54730 2007-11-11  Bruno Haible  <bruno@clisp.org>
54731
54732         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54733         gl_FUNC_CEILF_LIBS.
54734         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54735         gl_FUNC_CEIL_LIBS.
54736         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54737         gl_FUNC_CEILL_LIBS.
54738         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54739         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54740         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54741
54742 2007-11-11  Bruno Haible  <bruno@clisp.org>
54743
54744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54745         roundf were declared but do not exist on functions.
54746         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54747         roundl were declared but do not exist on functions.
54748         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54749         HAVE_FLOORL_AND_CEILL, respectively.
54750         Needed for Sun C on Solaris 10.
54751
54752 2007-11-11  Bruno Haible  <bruno@clisp.org>
54753
54754         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54755         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54756         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54757         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54758         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54759         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54760         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54761         HAVE_DECL_ROUNDF.
54762         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54763         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54765         of HAVE_DECL_ROUND*.
54766         * modules/math (Makefile.am): Update.
54767
54768 2007-11-10  Bruno Haible  <bruno@clisp.org>
54769
54770         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54771         ptrdiff_t as m4/intl.m4.
54772
54773 2007-11-10  Jim Meyering  <meyering@redhat.com>
54774
54775         Avoid link failure for the argmatch test.
54776         * tests/test-argmatch.c (usage): Define function to avoid a link
54777         failure: argmatch_die requires a usage function.
54778
54779 2007-11-09  Bruno Haible  <bruno@clisp.org>
54780
54781         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54782         * doc/functions/vsnprintf.texi: Likewise.
54783         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54784         with a size argument < 2.
54785
54786 2007-11-09  Bruno Haible  <bruno@clisp.org>
54787
54788         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54789         buffer. Fixes an inefficiency introduced on 2007-11-03.
54790
54791 2007-11-09  Bruno Haible  <bruno@clisp.org>
54792
54793         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54794         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54795
54796 2007-11-08  Jim Meyering  <meyering@redhat.com>
54797
54798         Change cache variable name prefix "jm_" to "gl_" everywhere.
54799         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54800         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54801         * m4/uptime.m4: s/gl_/jm_/
54802
54803 2007-11-07  Bruno Haible  <bruno@clisp.org>
54804
54805         Update to GNU gettext 0.17.
54806         * m4/intl.m4: Update to GNU gettext 0.17.
54807         * m4/po.m4: Likewise.
54808         * modules/gettext (Files): Remove m4/ulonglong.m4.
54809         (configure.ac): Require gettext infrastructure from version 0.17.
54810
54811 2007-11-06  Bruno Haible  <bruno@clisp.org>
54812
54813         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54814         symbolic values are not defined in a public header.
54815         * lib/freadable.c (freadable) [QNX]: Likewise.
54816         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54817         * lib/freading.c (freading) [QNX]: Likewise.
54818         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54819         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54820         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54821         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54822         Reported by Alain Magloire.
54823
54824         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54825
54826 2007-11-05  Bruno Haible  <bruno@clisp.org>
54827
54828         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54829         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54830         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54831         Reported by Eric Blake.
54832
54833 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54834             Bruno Haible  <bruno@clisp.org>
54835
54836         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54837         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54838         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54839         (malloc): Undefine also before including <stdlib.h>.
54840         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54841         Needed on OSF/1 4.0.
54842
54843 2007-11-05  Jim Meyering  <meyering@redhat.com>
54844
54845         git-version-gen: sync from coreutils.
54846         * build-aux/git-version-gen: Add comments.
54847         Change the first '-' to '.' in the snapshot version string,
54848         e.g., 6.9-377-08144 -> 6.9.377-08144
54849         Remove first parameter.
54850         Don't declare a version "-dirty" merely because a time
54851         stamp has changed.
54852
54853 2007-11-04  Bruno Haible  <bruno@clisp.org>
54854
54855         * lib/lock.h: Protect all macro definitions containing an 'if'
54856         statement through a "do { ... } while (0)".
54857         * lib/tls.h: Likewise.
54858
54859 2007-11-04  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54862
54863 2007-11-04  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54866         * modules/fprintf-posix (Depends-on): Add nocrash.
54867         * modules/snprintf-posix (Depends-on): Likewise.
54868         * modules/sprintf-posix (Depends-on): Likewise.
54869         * modules/vasnprintf-posix (Depends-on): Likewise.
54870         * modules/vasprintf-posix (Depends-on): Likewise.
54871         * modules/vfprintf-posix (Depends-on): Likewise.
54872         * modules/vsnprintf-posix (Depends-on): Likewise.
54873         * modules/vsprintf-posix (Depends-on): Likewise.
54874         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54875         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54876         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54877         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54878         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54879         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54880         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54881
54882 2007-11-04  Bruno Haible  <bruno@clisp.org>
54883
54884         * modules/nocrash: New file.
54885         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54886         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54887
54888 2007-11-04  Bruno Haible  <bruno@clisp.org>
54889
54890         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54891         precision handling.
54892         * tests/test-vasprintf-posix.c (test_function): Likewise.
54893         * tests/test-snprintf-posix.h (test_function): Likewise.
54894         * tests/test-sprintf-posix.h (test_function): Likewise.
54895
54896         Fix *printf behaviour for large precisions on mingw and BeOS.
54897         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54898         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54900         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54902         gl_PRINTF_PRECISION and test its result. Invoke
54903         gl_PREREQ_VASNPRINTF_PRECISION.
54904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54911         * doc/functions/fprintf.texi: Update.
54912         * doc/functions/printf.texi: Update.
54913         * doc/functions/snprintf.texi: Update.
54914         * doc/functions/sprintf.texi: Update.
54915         * doc/functions/vfprintf.texi: Update.
54916         * doc/functions/vprintf.texi: Update.
54917         * doc/functions/vsnprintf.texi: Update.
54918         * doc/functions/vsprintf.texi: Update.
54919
54920 2007-11-04  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54923
54924 2007-11-04  Bruno Haible  <bruno@clisp.org>
54925
54926         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54927         Reported by Sylvain Beucler <beuc@gnu.org>.
54928
54929 2007-11-03  Bruno Haible  <bruno@clisp.org>
54930
54931         * tests/test-fprintf-posix2.sh: New file.
54932         * tests/test-fprintf-posix2.c: New file.
54933         * modules/fprintf-posix-tests (Files): Add them.
54934         (TESTS): Add test-fprintf-posix2.sh.
54935         (configure.ac): Check for getrlimit and setrlimit.
54936         (check_PROGRAMS): Add test-fprintf-posix2.
54937
54938         * tests/test-printf-posix2.sh: New file.
54939         * tests/test-printf-posix2.c: New file.
54940         * modules/printf-posix-tests (Files): Add them.
54941         (TESTS): Add test-printf-posix2.sh.
54942         (configure.ac): Check for getrlimit and setrlimit.
54943         (check_PROGRAMS): Add test-printf-posix2.
54944
54945         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54946         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54947         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54948         (decode_double): New function, copied from decode_long_double.
54949         (scale10_round_decimal_decoded): New function, extracted from
54950         scale10_round_decimal_long_double.
54951         (scale10_round_decimal_long_double): Use it.
54952         (scale10_round_decimal_double): New function.
54953         (floorlog10): New function.
54954         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54956         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54957         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54958         gl_PRINTF_ENOMEM and test its result. Invoke
54959         gl_PREREQ_VASNPRINTF_ENOMEM.
54960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54961         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54962         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54965         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54966         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54967         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54968         * modules/snprintf-posix (Depends-on): Likewise.
54969         * modules/sprintf-posix (Depends-on): Likewise.
54970         * modules/vasnprintf-posix (Depends-on): Likewise.
54971         * modules/vasprintf-posix (Depends-on): Likewise.
54972         * modules/vfprintf-posix (Depends-on): Likewise.
54973         * modules/vsnprintf-posix (Depends-on): Likewise.
54974         * modules/vsprintf-posix (Depends-on): Likewise.
54975         * doc/functions/fprintf.texi: Update.
54976         * doc/functions/printf.texi: Update.
54977         * doc/functions/snprintf.texi: Update.
54978         * doc/functions/sprintf.texi: Update.
54979         * doc/functions/vfprintf.texi: Update.
54980         * doc/functions/vprintf.texi: Update.
54981         * doc/functions/vsnprintf.texi: Update.
54982         * doc/functions/vsprintf.texi: Update.
54983
54984 2007-11-03  Bruno Haible  <bruno@clisp.org>
54985
54986         * modules/frexp-nolibm-tests: New file.
54987
54988         * modules/frexp-nolibm: New file.
54989         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54990
54991 2007-11-03  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54994         value is C99 compliant.
54995         Needed for OSF/1 5.1.
54996
54997 2007-11-03  Bruno Haible  <bruno@clisp.org>
54998
54999         Fix out-of-memory handling of vasnprintf.
55000         * lib/printf-parse.c: Include <errno.h>.
55001         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55002         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55003         is already set.
55004
55005 2007-11-02  Eric Blake  <ebb9@byu.net>
55006
55007         Fix tests on cygwin.
55008         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55009
55010 2007-11-01  Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55013         warning.
55014         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55015         needed for POSIX compatibility.
55016
55017 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55018
55019         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55020         for compatibility with GNU.
55021
55022 2007-11-01  Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55025         (putenv): Renamed from rpl_putenv. Change argument type from
55026         'const char *' to 'char *'.
55027         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55028         of defining putenv in config.h, just set REPLACE_PUTENV.
55029         * modules/putenv (Depends-on): Add stdlib.
55030         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55031         (Include): Use <stdlib.h>.
55032         * lib/stdlib.in.h (putenv): New declaration.
55033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55034         REPLACE_PUTENV.
55035         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55036         REPLACE_PUTENV.
55037         Needed for MacOS X 10.5.0.
55038         Reported by Peter O'Gorman <peter@pogma.com>.
55039
55040 2007-11-01  Jim Meyering  <meyering@redhat.com>
55041
55042         Treat an empty date string exactly like "0".
55043         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55044         if the remaining date string (to be parsed) is empty, use "0".
55045         Reported by Mischa Molhoek and discussed in this thread:
55046         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55047
55048 2007-10-31  Bruno Haible  <bruno@clisp.org>
55049
55050         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55051         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55052         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55053         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55054         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55055         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55056
55057 2007-10-31  Bruno Haible  <bruno@clisp.org>
55058
55059         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55060         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55061         (AC_TYPE_LONG_LONG_INT): Use it.
55062         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55063         it as well.
55064         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55065         to m4/longlong.m4.
55066         * modules/stdint (Files): Remove m4/ulonglong.m4.
55067         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55068         m4/ulonglong.m4.
55069         * modules/strtoumax (Files): Likewise.
55070
55071 2007-10-30  Bruno Haible  <bruno@clisp.org>
55072
55073         * modules/xvasprintf-posix: New file.
55074         Suggested by Eric Blake.
55075
55076 2007-10-30  Bruno Haible  <bruno@clisp.org>
55077
55078         * modules/xprintf-posix-tests: New file.
55079         * tests/test-xprintf-posix.sh: New file.
55080         * tests/test-xprintf-posix.c: New file.
55081         * tests/test-xfprintf-posix.c: New file.
55082
55083         * modules/xprintf-posix: New file.
55084
55085 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55086
55087         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55088         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55089         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55090
55091 2007-10-29  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55094         contain the special marker '_cv_'.
55095         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55096         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55097         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55098         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55099         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55100         Reported by Ralf Wildenhues.
55101
55102 2007-10-29  Bruno Haible  <bruno@clisp.org>
55103
55104         * gnulib-tool (func_import): When --lgpl is not specified, set
55105         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55106         GPLv3.
55107         Reported by Simon Josefsson.
55108
55109 2007-10-28  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55112         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55113         HAVE_DECL_ISFINITE.
55114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55115         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55116         HAVE_DECL_ISFINITE.
55117
55118 2007-10-28  Bruno Haible  <bruno@clisp.org>
55119
55120         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55121         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55122
55123 2007-10-28  Bruno Haible  <bruno@clisp.org>
55124
55125         Fix link errors with Sun C 5.0 on Solaris 10.
55126         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55127         function is declared but not present in the compiler's libm.
55128         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55129         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55130         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55131         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55132         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55133         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55134         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55136         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55137         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55138         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55139         HAVE_DECL_FLOORL.
55140
55141 2007-10-28  Bruno Haible  <bruno@clisp.org>
55142
55143         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55144         gl_FUNC_FLOORL. Cache the result.
55145         (gl_FUNC_FLOORL): Use it.
55146         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55147         gl_FUNC_CEILL. Cache the result.
55148         (gl_FUNC_CEILL): Use it.
55149
55150         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55151         gl_FUNC_FLOOR. Cache the result.
55152         (gl_FUNC_FLOOR): Use it.
55153         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55154         gl_FUNC_CEIL. Cache the result.
55155         (gl_FUNC_CEIL): Use it.
55156
55157         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55158         gl_FUNC_FLOORF. Cache the result.
55159         (gl_FUNC_FLOORF): Use it.
55160         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55161         gl_FUNC_CEILF. Cache the result.
55162         (gl_FUNC_CEILF): Use it.
55163
55164 2007-10-28  Bruno Haible  <bruno@clisp.org>
55165
55166         * gnulib-tool: Allow specifying the LGPL version number through
55167         --lgpl=2 or --lgpl=3.
55168         (func_usage): Document --lgpl with argument.
55169         Handle --lgpl=... arguments.
55170         (func_import): Recognize also gl_LGPL calls with an argument. When
55171         --lgpl=2 is used and the module's license is just LGPL, report an
55172         error. Set sed_transform_lib_file according to the lgpl variable. In
55173         the generated files, use --lgpl or gl_LGPL invocations with argument,
55174         if necessary.
55175         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55176         an LGPv2+ license.
55177         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55178         gl_LGPL macro.
55179
55180 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55181             Bruno Haible  <bruno@clisp.org>
55182
55183         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55184         (u16_uctomb_aux): Likewise.
55185         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55186         !HAVE_INLINE.
55187         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55188
55189 2007-10-28  Bruno Haible  <bruno@clisp.org>
55190
55191         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55192         Invoke AM_GETTEXT_OPTION if it exists.
55193         * modules/vasprintf: Likewise.
55194         * modules/verror: Likewise.
55195         * modules/xprintf: Likewise.
55196         * modules/xvasprintf: Likewise.
55197
55198 2007-10-27  Ben Pfaff  <blp@gnu.org>
55199
55200         * lib/math.in.h: Define isfinite macro and prototypes for
55201         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55202         implementations.
55203         * m4/math_h.m4: New substitutions for isfinite module.
55204         * lib/isfinite.c: New file.
55205         * m4/isfinite.m4: New file.
55206         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55207         * modules/isfinite: New file.
55208         * modules/isfinite-tests: New file.
55209         * tests/tests-isfinite.c: New file.
55210         * doc/functions/isfinite.texi: Mention isfinite module.
55211         * MODULES.html.sh: Mention new module.
55212
55213 2007-10-27  Ben Pfaff  <blp@gnu.org>
55214
55215         Ralf Wildenhues reported that Tru64 4.0D declares the round
55216         functions but does not have definitions.
55217         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55218         cannot be found in any library, set the output variable to
55219         "missing" instead of "".
55220         * m4/round.m4: Also use our substitute if we cannot find round in
55221         any library, even if it is declared.
55222         * m4/roundf.m4: Likewise for roundf.
55223         * m4/roundl.m4: Likewise for roundl.
55224         * lib/math.in.h: Undefine roundf, round, roundl before defining
55225         their replacements, to allow for hypothetical systems where these
55226         may be defined as macros but not available in libraries.
55227
55228 2007-10-27  Bruno Haible  <bruno@clisp.org>
55229
55230         * doc/gnulib.texi: Invoke @firstparagraphindent.
55231         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55232         changes in gnulib.
55233         (Source changes): New section.
55234
55235 2007-10-26  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55238         borrowed from autoconf.
55239
55240 2007-10-26  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55243         strerror returned the empty string. Needed on HP-UX 11.00.
55244
55245 2007-10-24  Micah Cowan  <micah@cowan.name>
55246
55247         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55248         * build-aux/bootstrap: Remove support for now-unnecessary option,
55249         --cvs-user, and envvars CVS_USER, CVS_RSH.
55250
55251 2007-10-24  Jim Meyering  <meyering@redhat.com>
55252
55253         Avoid diagnostics from sha1sum when there is no cached checksum.
55254         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55255         if the po.s1 file hasn't been created yet.
55256
55257         * build-aux/bootstrap: Sync from coreutils:
55258         2007-10-24  Jim Meyering  <meyering@redhat.com>
55259         Get gnulib from the git repository, not from an obsolete cvs one.
55260         * build-aux/bootstrap: Suggestion from Micah Cowan.
55261         2007-10-04  Jim Meyering  <jim@meyering.net>
55262         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55263         (update_po_files): Work also when there are no .po files in po/.
55264
55265 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * README: Append ".git" to git and cg examples.
55268         Problem reported by Benoit Sigoure.
55269
55270 2007-10-23  Micah Cowan  <micah@cowan.name>
55271
55272         * users.txt: Add wget.
55273
55274 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55275
55276         Fix linking of some unistdio tests on FreeBSD.
55277         * modules/unistdio/u16-vsnprintf-tests
55278         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55279         * modules/unistdio/u16-vsprintf-tests
55280         (test_u16_vsnprintf1_LDADD): Likewise.
55281         * modules/unistdio/u32-vsnprintf-tests
55282         (test_u32_vsnprintf1_LDADD): Likewise.
55283         * modules/unistdio/u32-vsprintf-tests
55284         (test_u32_vsprintf1_LDADD): Likewise.
55285         * modules/unistdio/u8-vsnprintf-tests
55286         (test_u8_vsnprintf1_LDADD): Likewise.
55287         * modules/unistdio/u8-vsprintf-tests
55288         (test_u8_vsprintf1_LDADD): Likewise.
55289         * modules/unistdio/ulc-vsnprintf-tests
55290         (test_ulc_vsnprintf1_LDADD): Likewise.
55291         * modules/unistdio/ulc-vsprintf-tests
55292         (test_ulc_vsprintf1_LDADD): Likewise.
55293
55294         Fix linking of some uniconv tests on FreeBSD.
55295         * modules/uniconv/u16-conv-from-enc-tests
55296         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55297         * modules/uniconv/u16-conv-to-enc-tests
55298         (test_u16_conv_to_enc_LDADD): Likewise.
55299         * modules/uniconv/u16-strconv-from-enc-tests
55300         (test_u16_strconv_from_enc_LDADD): Likewise.
55301         * modules/uniconv/u16-strconv-to-enc-tests
55302         (test_u16_strconv_to_enc_LDADD): Likewise.
55303         * modules/uniconv/u32-conv-from-enc-tests
55304         (test_u32_conv_from_enc_LDADD): Likewise.
55305         * modules/uniconv/u32-conv-to-enc-tests
55306         (test_u32_conv_to_enc_LDADD): Likewise.
55307         * modules/uniconv/u32-strconv-from-enc-tests
55308         (test_u32_strconv_from_enc_LDADD): Likewise.
55309         * modules/uniconv/u32-strconv-to-enc-tests
55310         (test_u32_strconv_to_enc_LDADD): Likewise.
55311         * modules/uniconv/u8-conv-from-enc-tests
55312         (test_u8_conv_from_enc_LDADD): Likewise.
55313         * modules/uniconv/u8-conv-to-enc-tests
55314         (test_u8_conv_to_enc_LDADD): Likewise.
55315         * modules/uniconv/u8-strconv-from-enc-tests
55316         (test_u8_strconv_from_enc_LDADD): Likewise.
55317         * modules/uniconv/u8-strconv-to-enc-tests
55318         (test_u8_strconv_to_enc_LDADD): Likewise.
55319
55320 2007-10-22  Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55323         size.
55324
55325 2007-10-22  Eric Blake  <ebb9@byu.net>
55326
55327         Tweak x*printf documentation.
55328         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55329         variable name and comments.
55330         Suggested by Bruno Haible.
55331
55332 2007-10-22  Bruno Haible  <bruno@clisp.org>
55333
55334         * lib/acl.c (copy_acl): Fix file name in comment.
55335
55336 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55337
55338         Fix Tru64 problem with stdbool.h.
55339         * lib/stdbool.in.h (false, true):
55340         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55341         Don't declare as an enum in this situation; it runs afoul of Tru64.
55342         Problem reported by Steven M. Schweda in
55343         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55344
55345 2007-10-22  Eric Blake  <ebb9@byu.net>
55346
55347         Also wrap vf?printf.
55348         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55349         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55350         (xvprintf, xvfprintf): New functions.
55351
55352 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55353
55354         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55355         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55356
55357         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55358         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55359
55360 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55361
55362         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55363         by Bruno Haible.
55364
55365 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55366
55367         * lib/getloadavg.c
55368         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55369         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55370
55371         * tests/test-i-ring.c: Work for C89.
55372
55373 2007-10-22  Bruno Haible  <bruno@clisp.org>
55374
55375         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55376         -1u, in preprocessor expression, so that we don't test for the bug
55377         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55379
55380 2007-10-22  Eric Blake  <ebb9@byu.net>
55381
55382         * tests/test-yesno.sh: Silence stderr during test.
55383
55384 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55385
55386         * modules/crypto/gc-camellia: New file.
55387
55388         * m4/gc-camellia.m4: New file.
55389
55390         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55391
55392         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55393
55394 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55395
55396         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55397         --help to stdout.  Reported by sms@antinode.org (Steven
55398         M. Schweda).
55399
55400 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55401
55402         * users.txt: Fix link to libksba.
55403
55404 2007-10-21  Ben Pfaff  <blp@gnu.org>
55405
55406         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55407         round.c roundf implementation that depends on floorf and ceilf to
55408         be tested unconditionally.
55409
55410 2007-10-21  Ben Pfaff  <blp@gnu.org>
55411
55412         * m4/check-libm-func.m4: Removed.
55413         * m4/check-math-lib.m4: New file.
55414         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55415         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55416         definition and lack of AC_LIBOBJ([roundf]).
55417         * m4/roundl.m4: Ditto, and similarly for roundl.
55418         * modules/round: Reference new m4 file.
55419         * modules/roundf: Ditto.
55420         * modules/roundl: Ditto.
55421         * tests/test-round2.c (main): Use ROUND instead of round.
55422         Bug report from Bruno Haible.
55423
55424 2007-10-21  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55427         context.
55428
55429 2007-10-21  Bruno Haible  <bruno@clisp.org>
55430
55431         * tests/test-wcwidth.c (main): Allow negative result for some control
55432         characters.
55433
55434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55435         Needed on OSF/1 5.1.
55436
55437 2007-10-21  Bruno Haible  <bruno@clisp.org>
55438
55439         * tests/test-floorf1.c: Include isnanf.h.
55440         (main): Use isnanf() instead of isnan().
55441         * tests/test-ceilf1.c: Include isnanf.h.
55442         (main): Use isnanf() instead of isnan().
55443         * tests/test-truncf1.c: Include isnanf.h.
55444         (main): Use isnanf() instead of isnan().
55445         * tests/test-roundf1.c: Include isnanf.h.
55446         (main): Use isnanf() instead of isnan().
55447
55448 2007-10-21  Eric Blake  <ebb9@byu.net>
55449
55450         * users.txt: Update URL for m4.
55451
55452 2007-10-21  Bruno Haible  <bruno@clisp.org>
55453
55454         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55455
55456 2007-10-21  Bruno Haible  <bruno@clisp.org>
55457
55458         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55459         Git's management files if the CVS files are not present.
55460
55461 2007-10-20  Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55464         gcc-3.4.x.
55465
55466 2007-10-20  Ben Pfaff  <blp@gnu.org>
55467
55468         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55469         implementations.
55470         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55471         * lib/round.c: New file.
55472         * lib/roundf.c: New file.
55473         * lib/roundl.c: New file.
55474         * m4/round.m4: New file.
55475         * m4/roundf.m4: New file.
55476         * m4/roundl.m4: New file.
55477         * m4/check-libm-func-m4: New file.
55478         * modules/math: Replace round, roundf, roundl related @VARS@ in
55479         math.in.h.
55480         * modules/round: New file.
55481         * modules/round-tests: New file.
55482         * modules/roundf: New file.
55483         * modules/roundf-tests: New file.
55484         * modules/roundl: New file.
55485         * modules/roundl-tests: New file.
55486         * tests/test-round1.c: New file.
55487         * tests/test-round2.c: New file.
55488         * tests/test-roundf1.c: New file.
55489         * tests/test-roundf2.c: New file.
55490         * tests/test-roundl.c: New file.
55491         * doc/functions/round.texi: Mention round module.
55492         * doc/functions/roundf.texi: Mention roundf module.
55493         * doc/functions/roundl.texi: Mention roundl module.
55494         * MODULES.html.sh: Mention new modules.
55495         Thanks to Bruno Haible for suggestions.
55496
55497 2007-10-20  Jim Meyering  <meyering@redhat.com>
55498
55499         * lib/xprintf.c: Include <config.h> unconditionally.
55500
55501         Change xprintf's license to GPL.
55502         * modules/xprintf (License): s/LGPL/GPL/, since this module
55503         depends on modules (exit and exitfail) which are GPL.
55504         Suggestion from Bruno Haible.
55505
55506         xprintf fixes.
55507         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55508         Use a clearer diagnostic.
55509         Patch from Bruno Haible.
55510
55511 2007-10-20  Bruno Haible  <bruno@clisp.org>
55512
55513         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55514         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55516
55517 2007-10-20  Bruno Haible  <bruno@clisp.org>
55518
55519         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55520         precision in the comparison result > x - 1 or similar.
55521         * tests/test-ceilf2.c (correct_result_p): Likewise.
55522         * tests/test-truncf2.c (correct_result_p): Likewise.
55523         * tests/test-trunc2.c (correct_result_p): Likewise.
55524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55525
55526 2007-10-20  Bruno Haible  <bruno@clisp.org>
55527
55528         * modules/ceil: New file.
55529         * m4/ceil.m4: New file.
55530         * doc/functions/ceil.texi: Mention the 'ceil' module.
55531
55532 2007-10-20  Bruno Haible  <bruno@clisp.org>
55533
55534         * modules/floor: New file.
55535         * m4/floor.m4: New file.
55536         * doc/functions/floor.texi: Mention the 'floor' module.
55537
55538 2007-10-20  Bruno Haible  <bruno@clisp.org>
55539
55540         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55541         of %a.
55542         * modules/floorf-tests (Depends-on): Likewise.
55543         * modules/truncf-tests (Depends-on): Likewise.
55544         * modules/trunc-tests (Depends-on): Likewise.
55545         Reported by Ben Pfaff.
55546
55547 2007-10-19  Jim Meyering  <meyering@redhat.com>
55548
55549         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55550         Don't bother testing specific errno values.  Just test ferror.
55551
55552         New module: xprintf
55553         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55554
55555 2007-10-19  Bruno Haible  <bruno@clisp.org>
55556
55557         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55558         syntax.
55559         * modules/javaexec (Makefile.am): Likewise.
55560         * modules/relocatable-prog (Makefile.am): Likewise.
55561         Suggested by Jim Meyering.
55562
55563 2007-10-18  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55566         Reported by Jim Meyering.
55567
55568 2007-10-18  Eric Blake  <ebb9@byu.net>
55569
55570         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55571
55572 2007-10-18  Bruno Haible  <bruno@clisp.org>
55573
55574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55575         the format string into writable memory. Needed in Fortify conditions.
55576
55577 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55578             Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55581         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55582         * modules/trim (Depends-on): Add mbchar.
55583         (configure.ac): Add gl_FUNC_MBRTOWC.
55584         (Makefile.am): Augment lib_SOURCES.
55585
55586 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55587
55588         Modify glob.c to use fstatat and dirfd, to simplify it.
55589         Suggested by Eric Blake.
55590         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55591         Don't include <stdbool.h>; not used.
55592         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55593         (link_exists_p): Simplify implementation, since we can now assume
55594         dirfd and fstatat.
55595         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55596
55597 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55598
55599         * gnulib-tool (func_get_dependencies): Fix sed script to
55600         match only tests.
55601
55602 2007-10-17  Bruno Haible  <bruno@clisp.org>
55603
55604         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55605         allow locale names without encoding suffix.
55606         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55607         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55608
55609 2007-10-16  Bruno Haible  <bruno@clisp.org>
55610
55611         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55612         * lib/getgroups.c (getgroups): Likewise.
55613         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55614
55615 2007-10-16  Bruno Haible  <bruno@clisp.org>
55616
55617         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55618         * modules/malloc-posix (License): Likewise.
55619         * modules/realloc-posix (License): Likewise.
55620         * modules/calloc-posix (License): Likewise.
55621         * modules/intprops (License): Change from GPL to LGPL, with
55622         Paul Eggert's approval.
55623
55624 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55625
55626         Merge glibc changes into lib/glob.c.
55627
55628         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55629         2007-10-15 04:59:03 UTC.  Here are the changes:
55630
55631         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55632
55633         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55634
55635         * lib/glob.c: Add some branch prediction throughout.
55636
55637         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55638
55639         [BZ #5103]
55640         * lib/glob.c (glob): Recognize patterns starting \/.
55641
55642         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55643
55644         [BZ #3996]
55645         * lib/glob.c (attribute_hidden): Define if not defined.
55646         (glob): Unescape dirname, filename or username when needed and not
55647         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55648         is NULL.  Handle unescaped [ in pattern without closing ].
55649         Don't pass GLOB_CHECK down to recursive glob for directories.
55650         (__glob_pattern_type): New function.
55651         (__glob_pattern_p): Implement using __glob_pattern_type.
55652         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55653         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55654         Remove unreachable code.
55655
55656         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55657
55658         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55659         explain why there are no leaks.
55660
55661         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55662
55663         [BZ #3253]
55664         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55665         time, rather allocate increasingly bigger arrays of pointers, if
55666         possible with alloca, if too large with malloc.
55667
55668 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55669
55670         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55671         Problem reported by H.Merijn Brand in
55672         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55673         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55674         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55675
55676 2007-10-15  Bruno Haible  <bruno@clisp.org>
55677
55678         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55679         with explicit rpl_ prefix.
55680         * lib/fopen.c (fopen): Likewise.
55681         * lib/freopen.c (freopen): Likewise.
55682         * lib/iconv.c (iconv): Likewise.
55683         * lib/iconv_close.c (iconv_close): Likewise.
55684
55685 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55686
55687         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55688
55689 2007-10-15  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55692         <stddef.h> instead of <stdlib.h> since we only need NULL.
55693         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55694
55695 2007-10-15  Bruno Haible  <bruno@clisp.org>
55696
55697         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55698         Replace paragraph talking about LIBOBJS.
55699         Reported by Colin Watson <cjwatson@debian.org>.
55700
55701 2007-10-15  Bruno Haible  <bruno@clisp.org>
55702
55703         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55704         <stdlib.h> before using NULL.
55705
55706 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55707
55708         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55709         Reported by Albert Chin <china@thewrittenword.com>.
55710
55711 2007-10-14  Bruno Haible  <bruno@clisp.org>
55712
55713         * modules/iconv_open-utf-tests: New file.
55714         * tests/test-iconv-utf.c: New file.
55715
55716         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55717         * modules/iconv_open-utf: New file.
55718         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55719         (iconv, iconv_close): New declarations.
55720         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55721         be defined.
55722         (iconv_open): Add special handling of conversion between UTF-8 and
55723         UTF-{16,32}{BE,LE}.
55724         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55725         * lib/iconv_close.c: New file.
55726         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55727         gl_FUNC_ICONV_OPEN.
55728         (gl_FUNC_ICONV_OPEN): Use it.
55729         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55730         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55731         and REPLACE_ICONV_UTF.
55732         * modules/iconv_open (Depends-on): Add c-strcase.
55733         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55734         ICONV_CONST.
55735         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55736
55737 2007-10-13  Albert Chin  <china@thewrittenword.com>
55738             Bruno Haible  <bruno@clisp.org>
55739
55740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55741         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55742
55743 2007-10-13  Bruno Haible  <bruno@clisp.org>
55744
55745         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55746         defined, use the ISO C99 inline semantics.
55747         * lib/argp.h (ARGP_EI): Likewise.
55748
55749 2007-10-13  Bruno Haible  <bruno@clisp.org>
55750
55751         Handle 'inline' change in gcc 4.3.0.
55752         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55753         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55754         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55755         argp_fmtstream_point): Disable 'extern' declaration if the function
55756         definition is going to be provided inline.
55757         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55758         semantics, not the ISO C99 inline semantics.
55759         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55760         'extern' declaration if the function definition is going to be provided
55761         inline.
55762         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55763         the GNU C inline semantics, not the ISO C99 inline semantics. With
55764         GCC 4.2, avoid a warning.
55765
55766 2007-10-13  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/freading.h (freading): Enable the use of __freading for
55769         glibc >= 2.7.
55770         * lib/freading.c (freading): Likewise.
55771
55772 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55773
55774         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55775         "warning: C99 inline functions are not supported; using GNU89".
55776
55777 2007-10-12  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55780         of 2.
55781         * tests/test-ceilf2.c: New file.
55782         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55783
55784         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55785         * modules/ceilf-tests: Update.
55786
55787 2007-10-12  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55790         of 2.
55791         * tests/test-floorf2.c: New file.
55792         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55793
55794         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55795         * modules/floorf-tests: Update.
55796
55797 2007-10-12  Bruno Haible  <bruno@clisp.org>
55798
55799         * tests/test-trunc2.c: New file.
55800         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55801
55802         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55803         * modules/trunc-tests: Update.
55804
55805 2007-10-12  Bruno Haible  <bruno@clisp.org>
55806
55807         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55808         of 2.
55809         * tests/test-truncf2.c: New file.
55810         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55811
55812         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55813         * modules/truncf-tests: Update.
55814
55815 2007-10-11  Eric Blake  <ebb9@byu.net>
55816
55817         Don't claim strerror is broken on Interix.
55818         * doc/functions/strerror.texi (strerror): Known broken systems are
55819         now Solaris 8, and not Interix.
55820         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55821         Interix on cross-compile.
55822         Reported by Martin Koeppe in
55823         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55824
55825 2007-10-11  Bruno Haible  <bruno@clisp.org>
55826
55827         * modules/i-ring-tests: New file.
55828         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55829         instead of assert.
55830
55831 2007-10-11  Bruno Haible  <bruno@clisp.org>
55832
55833         * modules/filenamecat-tests: New file.
55834         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55835         * lib/filenamecat.c: Remove test code.
55836
55837 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55838
55839         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55840
55841         * lib/strerror.c: Include <string.h> always, to test interface,
55842         and to remove the need for the dummy.
55843         Include intprops.h to compute width instead of doing it ourselves
55844         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55845         (strerror): Define it to return NULL if there's no system strerror.
55846         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55847         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55848         ancient pre-strerror Unix systems well any more.  Saying "unknown
55849         system error" is enough.
55850         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55851         simpler strerror.c implementation.
55852         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55853         Simplify the tests to reflect the simpler strerror implementation.
55854         * modules/strerror (Depends-on): Add intprops.
55855
55856 2007-10-09  Eric Blake  <ebb9@byu.net>
55857
55858         Silence test-fpending.
55859         * modules/fpending-tests (Files): Add wrapper script.
55860         * tests/test-fpending.sh: New file.
55861
55862 2007-10-09  Bruno Haible  <bruno@clisp.org>
55863
55864         * MODULES.html.sh (func_module): Don't create a hyperlink for
55865         function names like 'printf_frexp'.
55866         (Misc): Add crc, memxor.
55867         (Characteristics of floating types): New section.
55868         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55869         isnanf-nolibm, signbit, trunc, truncf, truncl.
55870         (Enhancements for ISO C 99 functions): New subsection Input/output.
55871         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55872         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55873         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55874         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55875         (Enhancements for POSIX:2001 functions): Add chdir-long.
55876         (File system functions): Add areadlink, chdir-safer, read-file.
55877         Remove cycle-check.
55878         (File system as inode set): New section.
55879         (Date and time): Add gethrxtime.
55880         (Multithreading): Add openmp.
55881         (Internationalization functions): Add localename.
55882         (Unicode string functions): Add unistr/u*-mbsnlen.
55883         (Support for maintaining and releasing projects): Add git-version-gen.
55884         (Lone files): Remove directories.
55885
55886 2007-10-08  Ben Pfaff  <blp@gnu.org>
55887
55888         * lib/xmalloca.h: Fix typo in comment.
55889
55890 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55893         when avoiding problems with integer overflow.  Use a portable test
55894         instead.
55895
55896 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55897
55898         * modules/dummy (License): Change to LGPLv2+.
55899         * modules/float (License): Likewise
55900         * modules/realloc (License): Likewise
55901         * modules/stdlib (License): Likewise
55902
55903 2007-10-07  Bruno Haible  <bruno@clisp.org>
55904
55905         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55906         * floor.c (TWO_MANT_DIG): Likewise.
55907         * ceil.c (TWO_MANT_DIG): Likewise.
55908         Reported by Ben Pfaff.
55909
55910 2007-10-07  Bruno Haible  <bruno@clisp.org>
55911
55912         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55913         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55914         * lib/frexp.c (FUNC): Likewise.
55915         * lib/printf-frexp.h (printf_frexp): Likewise.
55916         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55917         * lib/printf-frexp.c (FUNC): Likewise.
55918         Suggested by Jim Meyering.
55919
55920 2007-10-07  Jim Meyering  <meyering@redhat.com>
55921
55922         Make xnanosleep's integer overflow test more robust.
55923         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55924         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55925
55926 2007-10-07  Bruno Haible  <bruno@clisp.org>
55927
55928         * NEWS: Mention the license change.
55929
55930         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55931         abbreviations in the modules files.
55932
55933         Change copyright notice from GPLv2+ to GPLv3+.
55934         * README: Change copyright notice.
55935         * MODULES.html.sh: Likewise.
55936         * build-aux/bootstrap.conf: Likewise.
55937         * build-aux/config.libpath: Likewise.
55938         * build-aux/csharpcomp.sh.in: Likewise.
55939         * build-aux/csharpexec.sh.in: Likewise.
55940         * build-aux/install-reloc: Likewise.
55941         * build-aux/javacomp.sh.in: Likewise.
55942         * build-aux/javaexec.sh.in: Likewise.
55943         * build-aux/ldd.sh.in: Likewise.
55944         * build-aux/reloc-ldflags: Likewise.
55945         * build-aux/relocatable.sh.in: Likewise.
55946         * build-aux/x-to-1.in: Likewise.
55947         * check-module: Likewise.
55948         * config/srclistvars.sh: Likewise.
55949         * gnulib-tool: Likewise.
55950         * lib/acl-internal.h: Likewise.
55951         * lib/acl.c: Likewise.
55952         * lib/acl.h: Likewise.
55953         * lib/acl_entries.c: Likewise.
55954         * lib/areadlink-with-size.c: Likewise.
55955         * lib/areadlink.c: Likewise.
55956         * lib/areadlink.h: Likewise.
55957         * lib/argmatch.c: Likewise.
55958         * lib/argmatch.h: Likewise.
55959         * lib/argp-ba.c: Likewise.
55960         * lib/argp-eexst.c: Likewise.
55961         * lib/argp-fmtstream.c: Likewise.
55962         * lib/argp-fmtstream.h: Likewise.
55963         * lib/argp-fs-xinl.c: Likewise.
55964         * lib/argp-help.c: Likewise.
55965         * lib/argp-namefrob.h: Likewise.
55966         * lib/argp-parse.c: Likewise.
55967         * lib/argp-pin.c: Likewise.
55968         * lib/argp-pv.c: Likewise.
55969         * lib/argp-pvh.c: Likewise.
55970         * lib/argp-xinl.c: Likewise.
55971         * lib/argp.h: Likewise.
55972         * lib/at-func.c: Likewise.
55973         * lib/atanl.c: Likewise.
55974         * lib/backupfile.c: Likewise.
55975         * lib/backupfile.h: Likewise.
55976         * lib/basename.c: Likewise.
55977         * lib/binary-io.h: Likewise.
55978         * lib/byteswap.in.h: Likewise.
55979         * lib/c-stack.c: Likewise.
55980         * lib/c-stack.h: Likewise.
55981         * lib/c-strcasestr.c: Likewise.
55982         * lib/c-strcasestr.h: Likewise.
55983         * lib/c-strstr.c: Likewise.
55984         * lib/c-strstr.h: Likewise.
55985         * lib/c-strtod.c: Likewise.
55986         * lib/calloc.c: Likewise.
55987         * lib/canon-host.c: Likewise.
55988         * lib/canon-host.h: Likewise.
55989         * lib/canonicalize-lgpl.c: Likewise.
55990         * lib/canonicalize.c: Likewise.
55991         * lib/canonicalize.h: Likewise.
55992         * lib/ceil.c: Likewise.
55993         * lib/ceilf.c: Likewise.
55994         * lib/ceill.c: Likewise.
55995         * lib/chdir-long.c: Likewise.
55996         * lib/chdir-long.h: Likewise.
55997         * lib/chdir-safer.c: Likewise.
55998         * lib/chdir-safer.h: Likewise.
55999         * lib/chown.c: Likewise.
56000         * lib/classpath.c: Likewise.
56001         * lib/classpath.h: Likewise.
56002         * lib/clean-temp.c: Likewise.
56003         * lib/clean-temp.h: Likewise.
56004         * lib/cloexec.c: Likewise.
56005         * lib/close-stream.c: Likewise.
56006         * lib/closein.c: Likewise.
56007         * lib/closein.h: Likewise.
56008         * lib/closeout.c: Likewise.
56009         * lib/closeout.h: Likewise.
56010         * lib/concat-filename.c: Likewise.
56011         * lib/copy-file.c: Likewise.
56012         * lib/copy-file.h: Likewise.
56013         * lib/count-one-bits.h: Likewise.
56014         * lib/crc.c: Likewise.
56015         * lib/crc.h: Likewise.
56016         * lib/creat-safer.c: Likewise.
56017         * lib/csharpcomp.c: Likewise.
56018         * lib/csharpcomp.h: Likewise.
56019         * lib/csharpexec.c: Likewise.
56020         * lib/csharpexec.h: Likewise.
56021         * lib/cycle-check.c: Likewise.
56022         * lib/cycle-check.h: Likewise.
56023         * lib/diacrit.c: Likewise.
56024         * lib/diacrit.h: Likewise.
56025         * lib/diffseq.h: Likewise.
56026         * lib/dirchownmod.c: Likewise.
56027         * lib/dirent.in.h: Likewise.
56028         * lib/dirfd.c: Likewise.
56029         * lib/dirfd.h: Likewise.
56030         * lib/dirname.c: Likewise.
56031         * lib/dirname.h: Likewise.
56032         * lib/dummy.c: Likewise.
56033         * lib/dup-safer.c: Likewise.
56034         * lib/dup2.c: Likewise.
56035         * lib/eealloc.h: Likewise.
56036         * lib/error.c: Likewise.
56037         * lib/error.h: Likewise.
56038         * lib/euidaccess.c: Likewise.
56039         * lib/exclude.c: Likewise.
56040         * lib/exclude.h: Likewise.
56041         * lib/execute.c: Likewise.
56042         * lib/execute.h: Likewise.
56043         * lib/exitfail.c: Likewise.
56044         * lib/exitfail.h: Likewise.
56045         * lib/expl.c: Likewise.
56046         * lib/fatal-signal.c: Likewise.
56047         * lib/fatal-signal.h: Likewise.
56048         * lib/fbufmode.c: Likewise.
56049         * lib/fbufmode.h: Likewise.
56050         * lib/fchdir.c: Likewise.
56051         * lib/fchmodat.c: Likewise.
56052         * lib/fchownat.c: Likewise.
56053         * lib/fcntl--.h: Likewise.
56054         * lib/fcntl-safer.h: Likewise.
56055         * lib/fcntl.in.h: Likewise.
56056         * lib/fd-safer.c: Likewise.
56057         * lib/fflush.c: Likewise.
56058         * lib/file-has-acl.c: Likewise.
56059         * lib/file-set.c: Likewise.
56060         * lib/file-type.c: Likewise.
56061         * lib/file-type.h: Likewise.
56062         * lib/fileblocks.c: Likewise.
56063         * lib/filemode.c: Likewise.
56064         * lib/filemode.h: Likewise.
56065         * lib/filename.h: Likewise.
56066         * lib/filenamecat.c: Likewise.
56067         * lib/filenamecat.h: Likewise.
56068         * lib/findprog.c: Likewise.
56069         * lib/findprog.h: Likewise.
56070         * lib/float.in.h: Likewise.
56071         * lib/floor.c: Likewise.
56072         * lib/floorf.c: Likewise.
56073         * lib/floorl.c: Likewise.
56074         * lib/fopen-safer.c: Likewise.
56075         * lib/fopen.c: Likewise.
56076         * lib/fpending.c: Likewise.
56077         * lib/fpending.h: Likewise.
56078         * lib/fprintf.c: Likewise.
56079         * lib/fprintftime.h: Likewise.
56080         * lib/fpucw.h: Likewise.
56081         * lib/fpurge.c: Likewise.
56082         * lib/fpurge.h: Likewise.
56083         * lib/freadable.c: Likewise.
56084         * lib/freadable.h: Likewise.
56085         * lib/freadahead.c: Likewise.
56086         * lib/freadahead.h: Likewise.
56087         * lib/freading.c: Likewise.
56088         * lib/freading.h: Likewise.
56089         * lib/free.c: Likewise.
56090         * lib/freopen.c: Likewise.
56091         * lib/frexp.c: Likewise.
56092         * lib/frexpl.c: Likewise.
56093         * lib/fseek.c: Likewise.
56094         * lib/fseterr.c: Likewise.
56095         * lib/fseterr.h: Likewise.
56096         * lib/fstatat.c: Likewise.
56097         * lib/fstrcmp.c: Likewise.
56098         * lib/fstrcmp.h: Likewise.
56099         * lib/fsusage.c: Likewise.
56100         * lib/fsusage.h: Likewise.
56101         * lib/ftell.c: Likewise.
56102         * lib/ftello.c: Likewise.
56103         * lib/fts-cycle.c: Likewise.
56104         * lib/fts.c: Likewise.
56105         * lib/fts_.h: Likewise.
56106         * lib/full-read.c: Likewise.
56107         * lib/full-read.h: Likewise.
56108         * lib/full-write.c: Likewise.
56109         * lib/full-write.h: Likewise.
56110         * lib/fwritable.c: Likewise.
56111         * lib/fwritable.h: Likewise.
56112         * lib/fwriteerror.c: Likewise.
56113         * lib/fwriteerror.h: Likewise.
56114         * lib/fwriting.c: Likewise.
56115         * lib/fwriting.h: Likewise.
56116         * lib/gcd.c: Likewise.
56117         * lib/gcd.h: Likewise.
56118         * lib/getcwd.c: Likewise.
56119         * lib/getdate.h: Likewise.
56120         * lib/getdate.y: Likewise.
56121         * lib/getdomainname.c: Likewise.
56122         * lib/getdomainname.h: Likewise.
56123         * lib/getgroups.c: Likewise.
56124         * lib/gethostname.c: Likewise.
56125         * lib/gethrxtime.c: Likewise.
56126         * lib/gethrxtime.h: Likewise.
56127         * lib/getloadavg.c: Likewise.
56128         * lib/getndelim2.c: Likewise.
56129         * lib/getndelim2.h: Likewise.
56130         * lib/getnline.c: Likewise.
56131         * lib/getnline.h: Likewise.
56132         * lib/getopt.c: Likewise.
56133         * lib/getopt.in.h: Likewise.
56134         * lib/getopt1.c: Likewise.
56135         * lib/getopt_int.h: Likewise.
56136         * lib/getpagesize.h: Likewise.
56137         * lib/getsubopt.c: Likewise.
56138         * lib/gettime.c: Likewise.
56139         * lib/getugroups.c: Likewise.
56140         * lib/getugroups.h: Likewise.
56141         * lib/getusershell.c: Likewise.
56142         * lib/gl_anyavltree_list1.h: Likewise.
56143         * lib/gl_anyavltree_list2.h: Likewise.
56144         * lib/gl_anyhash_list1.h: Likewise.
56145         * lib/gl_anyhash_list2.h: Likewise.
56146         * lib/gl_anylinked_list1.h: Likewise.
56147         * lib/gl_anylinked_list2.h: Likewise.
56148         * lib/gl_anyrbtree_list1.h: Likewise.
56149         * lib/gl_anyrbtree_list2.h: Likewise.
56150         * lib/gl_anytree_list1.h: Likewise.
56151         * lib/gl_anytree_list2.h: Likewise.
56152         * lib/gl_anytree_oset.h: Likewise.
56153         * lib/gl_anytreehash_list1.h: Likewise.
56154         * lib/gl_anytreehash_list2.h: Likewise.
56155         * lib/gl_array_list.c: Likewise.
56156         * lib/gl_array_list.h: Likewise.
56157         * lib/gl_array_oset.c: Likewise.
56158         * lib/gl_array_oset.h: Likewise.
56159         * lib/gl_avltree_list.c: Likewise.
56160         * lib/gl_avltree_list.h: Likewise.
56161         * lib/gl_avltree_oset.c: Likewise.
56162         * lib/gl_avltree_oset.h: Likewise.
56163         * lib/gl_avltreehash_list.c: Likewise.
56164         * lib/gl_avltreehash_list.h: Likewise.
56165         * lib/gl_carray_list.c: Likewise.
56166         * lib/gl_carray_list.h: Likewise.
56167         * lib/gl_linked_list.c: Likewise.
56168         * lib/gl_linked_list.h: Likewise.
56169         * lib/gl_linkedhash_list.c: Likewise.
56170         * lib/gl_linkedhash_list.h: Likewise.
56171         * lib/gl_list.c: Likewise.
56172         * lib/gl_list.h: Likewise.
56173         * lib/gl_oset.c: Likewise.
56174         * lib/gl_oset.h: Likewise.
56175         * lib/gl_rbtree_list.c: Likewise.
56176         * lib/gl_rbtree_list.h: Likewise.
56177         * lib/gl_rbtree_oset.c: Likewise.
56178         * lib/gl_rbtree_oset.h: Likewise.
56179         * lib/gl_rbtreehash_list.c: Likewise.
56180         * lib/gl_rbtreehash_list.h: Likewise.
56181         * lib/gl_sublist.c: Likewise.
56182         * lib/gl_sublist.h: Likewise.
56183         * lib/group-member.c: Likewise.
56184         * lib/group-member.h: Likewise.
56185         * lib/hard-locale.c: Likewise.
56186         * lib/hard-locale.h: Likewise.
56187         * lib/hash-pjw.c: Likewise.
56188         * lib/hash-pjw.h: Likewise.
56189         * lib/hash-triple.c: Likewise.
56190         * lib/hash.c: Likewise.
56191         * lib/hash.h: Likewise.
56192         * lib/human.c: Likewise.
56193         * lib/human.h: Likewise.
56194         * lib/i-ring.c: Likewise.
56195         * lib/i-ring.h: Likewise.
56196         * lib/idcache.c: Likewise.
56197         * lib/imaxabs.c: Likewise.
56198         * lib/imaxdiv.c: Likewise.
56199         * lib/inet_pton.c: Likewise.
56200         * lib/inet_pton.h: Likewise.
56201         * lib/intprops.h: Likewise.
56202         * lib/inttostr.c: Likewise.
56203         * lib/inttostr.h: Likewise.
56204         * lib/inttypes.in.h: Likewise.
56205         * lib/isapipe.c: Likewise.
56206         * lib/isdir.c: Likewise.
56207         * lib/isnan.c: Likewise.
56208         * lib/isnan.h: Likewise.
56209         * lib/isnanf.c: Likewise.
56210         * lib/isnanf.h: Likewise.
56211         * lib/isnanl-nolibm.h: Likewise.
56212         * lib/isnanl.c: Likewise.
56213         * lib/isnanl.h: Likewise.
56214         * lib/javacomp.c: Likewise.
56215         * lib/javacomp.h: Likewise.
56216         * lib/javaexec.c: Likewise.
56217         * lib/javaexec.h: Likewise.
56218         * lib/javaversion.c: Likewise.
56219         * lib/javaversion.h: Likewise.
56220         * lib/javaversion.java: Likewise.
56221         * lib/lbrkprop.h: Likewise.
56222         * lib/lchmod.h: Likewise.
56223         * lib/lchown.c: Likewise.
56224         * lib/ldexpl.c: Likewise.
56225         * lib/linebreak.c: Likewise.
56226         * lib/linebreak.h: Likewise.
56227         * lib/linebuffer.c: Likewise.
56228         * lib/linebuffer.h: Likewise.
56229         * lib/locale.in.h: Likewise.
56230         * lib/logl.c: Likewise.
56231         * lib/long-options.c: Likewise.
56232         * lib/long-options.h: Likewise.
56233         * lib/lstat.c: Likewise.
56234         * lib/lstat.h: Likewise.
56235         * lib/math.in.h: Likewise.
56236         * lib/mbchar.c: Likewise.
56237         * lib/mbchar.h: Likewise.
56238         * lib/mbfile.h: Likewise.
56239         * lib/mbiter.h: Likewise.
56240         * lib/mbscasecmp.c: Likewise.
56241         * lib/mbscasestr.c: Likewise.
56242         * lib/mbschr.c: Likewise.
56243         * lib/mbscspn.c: Likewise.
56244         * lib/mbslen.c: Likewise.
56245         * lib/mbsncasecmp.c: Likewise.
56246         * lib/mbsnlen.c: Likewise.
56247         * lib/mbspbrk.c: Likewise.
56248         * lib/mbspcasecmp.c: Likewise.
56249         * lib/mbsrchr.c: Likewise.
56250         * lib/mbssep.c: Likewise.
56251         * lib/mbsspn.c: Likewise.
56252         * lib/mbsstr.c: Likewise.
56253         * lib/mbstok_r.c: Likewise.
56254         * lib/mbswidth.c: Likewise.
56255         * lib/mbswidth.h: Likewise.
56256         * lib/mbuiter.h: Likewise.
56257         * lib/memcasecmp.c: Likewise.
56258         * lib/memcasecmp.h: Likewise.
56259         * lib/memchr.c: Likewise.
56260         * lib/memcmp.c: Likewise.
56261         * lib/memcoll.c: Likewise.
56262         * lib/memcoll.h: Likewise.
56263         * lib/memcpy.c: Likewise.
56264         * lib/memrchr.c: Likewise.
56265         * lib/mkancesdirs.c: Likewise.
56266         * lib/mkdir-p.c: Likewise.
56267         * lib/mkdir-p.h: Likewise.
56268         * lib/mkdir.c: Likewise.
56269         * lib/mkdirat.c: Likewise.
56270         * lib/mkdtemp.c: Likewise.
56271         * lib/mkstemp-safer.c: Likewise.
56272         * lib/mkstemp.c: Likewise.
56273         * lib/modechange.c: Likewise.
56274         * lib/modechange.h: Likewise.
56275         * lib/mountlist.c: Likewise.
56276         * lib/mountlist.h: Likewise.
56277         * lib/mpsort.c: Likewise.
56278         * lib/nanosleep.c: Likewise.
56279         * lib/obstack.c: Likewise.
56280         * lib/obstack.h: Likewise.
56281         * lib/open-safer.c: Likewise.
56282         * lib/open.c: Likewise.
56283         * lib/openat-die.c: Likewise.
56284         * lib/openat-priv.h: Likewise.
56285         * lib/openat-proc.c: Likewise.
56286         * lib/openat.c: Likewise.
56287         * lib/openat.h: Likewise.
56288         * lib/pagealign_alloc.c: Likewise.
56289         * lib/pagealign_alloc.h: Likewise.
56290         * lib/physmem.c: Likewise.
56291         * lib/physmem.h: Likewise.
56292         * lib/pipe-safer.c: Likewise.
56293         * lib/pipe.c: Likewise.
56294         * lib/pipe.h: Likewise.
56295         * lib/posixtm.c: Likewise.
56296         * lib/posixtm.h: Likewise.
56297         * lib/posixver.c: Likewise.
56298         * lib/printf-frexp.c: Likewise.
56299         * lib/printf-frexp.h: Likewise.
56300         * lib/printf-frexpl.c: Likewise.
56301         * lib/printf-frexpl.h: Likewise.
56302         * lib/printf.c: Likewise.
56303         * lib/progname.c: Likewise.
56304         * lib/progname.h: Likewise.
56305         * lib/progreloc.c: Likewise.
56306         * lib/putenv.c: Likewise.
56307         * lib/quote.c: Likewise.
56308         * lib/quote.h: Likewise.
56309         * lib/quotearg.c: Likewise.
56310         * lib/quotearg.h: Likewise.
56311         * lib/raise.c: Likewise.
56312         * lib/readline.c: Likewise.
56313         * lib/readline.h: Likewise.
56314         * lib/readlink.c: Likewise.
56315         * lib/readtokens.c: Likewise.
56316         * lib/readtokens.h: Likewise.
56317         * lib/readtokens0.c: Likewise.
56318         * lib/readtokens0.h: Likewise.
56319         * lib/readutmp.c: Likewise.
56320         * lib/readutmp.h: Likewise.
56321         * lib/realloc.c: Likewise.
56322         * lib/relocwrapper.c: Likewise.
56323         * lib/rename-dest-slash.c: Likewise.
56324         * lib/rename.c: Likewise.
56325         * lib/rmdir.c: Likewise.
56326         * lib/rpmatch.c: Likewise.
56327         * lib/safe-read.c: Likewise.
56328         * lib/safe-read.h: Likewise.
56329         * lib/safe-write.c: Likewise.
56330         * lib/safe-write.h: Likewise.
56331         * lib/same-inode.h: Likewise.
56332         * lib/same.c: Likewise.
56333         * lib/same.h: Likewise.
56334         * lib/save-cwd.c: Likewise.
56335         * lib/save-cwd.h: Likewise.
56336         * lib/savedir.c: Likewise.
56337         * lib/savedir.h: Likewise.
56338         * lib/savewd.c: Likewise.
56339         * lib/savewd.h: Likewise.
56340         * lib/search.in.h: Likewise.
56341         * lib/setenv.c: Likewise.
56342         * lib/setenv.h: Likewise.
56343         * lib/settime.c: Likewise.
56344         * lib/sh-quote.c: Likewise.
56345         * lib/sh-quote.h: Likewise.
56346         * lib/sig2str.c: Likewise.
56347         * lib/sig2str.h: Likewise.
56348         * lib/signal.in.h: Likewise.
56349         * lib/signbitd.c: Likewise.
56350         * lib/signbitf.c: Likewise.
56351         * lib/signbitl.c: Likewise.
56352         * lib/sigprocmask.c: Likewise.
56353         * lib/sincosl.c: Likewise.
56354         * lib/sleep.c: Likewise.
56355         * lib/sprintf.c: Likewise.
56356         * lib/sqrtl.c: Likewise.
56357         * lib/stat-time.h: Likewise.
56358         * lib/stdio--.h: Likewise.
56359         * lib/stdio-safer.h: Likewise.
56360         * lib/stdlib--.h: Likewise.
56361         * lib/stdlib-safer.h: Likewise.
56362         * lib/stdlib.in.h: Likewise.
56363         * lib/stpcpy.c: Likewise.
56364         * lib/stpncpy.c: Likewise.
56365         * lib/strchrnul.c: Likewise.
56366         * lib/strcspn.c: Likewise.
56367         * lib/strerror.c: Likewise.
56368         * lib/strftime.c: Likewise.
56369         * lib/strftime.h: Likewise.
56370         * lib/striconveh.c: Likewise.
56371         * lib/striconveh.h: Likewise.
56372         * lib/striconveha.c: Likewise.
56373         * lib/striconveha.h: Likewise.
56374         * lib/stripslash.c: Likewise.
56375         * lib/strnlen1.c: Likewise.
56376         * lib/strnlen1.h: Likewise.
56377         * lib/strtod.c: Likewise.
56378         * lib/strtoimax.c: Likewise.
56379         * lib/strtok_r.c: Likewise.
56380         * lib/strtol.c: Likewise.
56381         * lib/strtoll.c: Likewise.
56382         * lib/strtoul.c: Likewise.
56383         * lib/strtoull.c: Likewise.
56384         * lib/sysexits.in.h: Likewise.
56385         * lib/tempname.c: Likewise.
56386         * lib/tempname.h: Likewise.
56387         * lib/timespec.h: Likewise.
56388         * lib/tls.c: Likewise.
56389         * lib/tls.h: Likewise.
56390         * lib/tmpdir.c: Likewise.
56391         * lib/tmpdir.h: Likewise.
56392         * lib/tmpfile-safer.c: Likewise.
56393         * lib/tmpfile.c: Likewise.
56394         * lib/trigl.c: Likewise.
56395         * lib/trigl.h: Likewise.
56396         * lib/trim.c: Likewise.
56397         * lib/trim.h: Likewise.
56398         * lib/trunc.c: Likewise.
56399         * lib/truncf.c: Likewise.
56400         * lib/truncl.c: Likewise.
56401         * lib/tsearch.c: Likewise.
56402         * lib/unicodeio.c: Likewise.
56403         * lib/unicodeio.h: Likewise.
56404         * lib/unistd--.h: Likewise.
56405         * lib/unistd-safer.h: Likewise.
56406         * lib/unistdio/ulc-fprintf.c: Likewise.
56407         * lib/unistdio/ulc-vfprintf.c: Likewise.
56408         * lib/unlinkdir.c: Likewise.
56409         * lib/unlinkdir.h: Likewise.
56410         * lib/unlocked-io.h: Likewise.
56411         * lib/unsetenv.c: Likewise.
56412         * lib/userspec.c: Likewise.
56413         * lib/utime.c: Likewise.
56414         * lib/utimecmp.c: Likewise.
56415         * lib/utimecmp.h: Likewise.
56416         * lib/utimens.c: Likewise.
56417         * lib/verify.h: Likewise.
56418         * lib/verror.c: Likewise.
56419         * lib/verror.h: Likewise.
56420         * lib/version-etc-fsf.c: Likewise.
56421         * lib/version-etc.c: Likewise.
56422         * lib/version-etc.h: Likewise.
56423         * lib/vfprintf.c: Likewise.
56424         * lib/vprintf.c: Likewise.
56425         * lib/vsprintf.c: Likewise.
56426         * lib/w32spawn.h: Likewise.
56427         * lib/wait-process.c: Likewise.
56428         * lib/wait-process.h: Likewise.
56429         * lib/wcwidth.c: Likewise.
56430         * lib/write-any-file.c: Likewise.
56431         * lib/xalloc-die.c: Likewise.
56432         * lib/xalloc.h: Likewise.
56433         * lib/xasprintf.c: Likewise.
56434         * lib/xgetcwd.c: Likewise.
56435         * lib/xgetcwd.h: Likewise.
56436         * lib/xgetdomainname.c: Likewise.
56437         * lib/xgetdomainname.h: Likewise.
56438         * lib/xgethostname.c: Likewise.
56439         * lib/xmalloc.c: Likewise.
56440         * lib/xmalloca.c: Likewise.
56441         * lib/xmalloca.h: Likewise.
56442         * lib/xmemcoll.c: Likewise.
56443         * lib/xnanosleep.c: Likewise.
56444         * lib/xreadlink.c: Likewise.
56445         * lib/xreadlink.h: Likewise.
56446         * lib/xsetenv.c: Likewise.
56447         * lib/xsetenv.h: Likewise.
56448         * lib/xstriconv.c: Likewise.
56449         * lib/xstriconv.h: Likewise.
56450         * lib/xstrndup.c: Likewise.
56451         * lib/xstrndup.h: Likewise.
56452         * lib/xstrtod.c: Likewise.
56453         * lib/xstrtod.h: Likewise.
56454         * lib/xstrtol-error.c: Likewise.
56455         * lib/xstrtol.c: Likewise.
56456         * lib/xstrtol.h: Likewise.
56457         * lib/xtime.h: Likewise.
56458         * lib/xvasprintf.c: Likewise.
56459         * lib/xvasprintf.h: Likewise.
56460         * lib/yesno.c: Likewise.
56461         * lib/yesno.h: Likewise.
56462         * posix-modules: Likewise.
56463         * tests/test-alloca-opt.c: Likewise.
56464         * tests/test-arcfour.c: Likewise.
56465         * tests/test-arctwo.c: Likewise.
56466         * tests/test-argmatch.c: Likewise.
56467         * tests/test-argp-2.sh: Likewise.
56468         * tests/test-argp.c: Likewise.
56469         * tests/test-arpa_inet.c: Likewise.
56470         * tests/test-array_list.c: Likewise.
56471         * tests/test-array_oset.c: Likewise.
56472         * tests/test-atexit.c: Likewise.
56473         * tests/test-avltree_list.c: Likewise.
56474         * tests/test-avltree_oset.c: Likewise.
56475         * tests/test-avltreehash_list.c: Likewise.
56476         * tests/test-base64.c: Likewise.
56477         * tests/test-binary-io.c: Likewise.
56478         * tests/test-byteswap.c: Likewise.
56479         * tests/test-c-ctype.c: Likewise.
56480         * tests/test-c-strcasecmp.c: Likewise.
56481         * tests/test-c-strcasestr.c: Likewise.
56482         * tests/test-c-strncasecmp.c: Likewise.
56483         * tests/test-c-strstr.c: Likewise.
56484         * tests/test-canonicalize-lgpl.c: Likewise.
56485         * tests/test-canonicalize.c: Likewise.
56486         * tests/test-carray_list.c: Likewise.
56487         * tests/test-ceilf.c: Likewise.
56488         * tests/test-ceill.c: Likewise.
56489         * tests/test-count-one-bits.c: Likewise.
56490         * tests/test-crc.c: Likewise.
56491         * tests/test-dirname.c: Likewise.
56492         * tests/test-fbufmode.c: Likewise.
56493         * tests/test-fcntl.c: Likewise.
56494         * tests/test-fflush.c: Likewise.
56495         * tests/test-floorf.c: Likewise.
56496         * tests/test-floorl.c: Likewise.
56497         * tests/test-fopen.c: Likewise.
56498         * tests/test-fprintf-posix.c: Likewise.
56499         * tests/test-fprintf-posix.h: Likewise.
56500         * tests/test-fpurge.c: Likewise.
56501         * tests/test-freadable.c: Likewise.
56502         * tests/test-freadahead.c: Likewise.
56503         * tests/test-freading.c: Likewise.
56504         * tests/test-freopen.c: Likewise.
56505         * tests/test-frexp.c: Likewise.
56506         * tests/test-frexpl.c: Likewise.
56507         * tests/test-fseek.c: Likewise.
56508         * tests/test-fseeko.c: Likewise.
56509         * tests/test-fseterr.c: Likewise.
56510         * tests/test-fstrcmp.c: Likewise.
56511         * tests/test-ftell.c: Likewise.
56512         * tests/test-ftello.c: Likewise.
56513         * tests/test-fwritable.c: Likewise.
56514         * tests/test-fwriting.c: Likewise.
56515         * tests/test-getaddrinfo.c: Likewise.
56516         * tests/test-getpass.c: Likewise.
56517         * tests/test-gettimeofday.c: Likewise.
56518         * tests/test-hmac-md5.c: Likewise.
56519         * tests/test-hmac-sha1.c: Likewise.
56520         * tests/test-iconv.c: Likewise.
56521         * tests/test-iconvme.c: Likewise.
56522         * tests/test-inttypes.c: Likewise.
56523         * tests/test-isnan.c: Likewise.
56524         * tests/test-isnanf.c: Likewise.
56525         * tests/test-isnanl-nolibm.c: Likewise.
56526         * tests/test-isnanl.c: Likewise.
56527         * tests/test-isnanl.h: Likewise.
56528         * tests/test-ldexpl.c: Likewise.
56529         * tests/test-linked_list.c: Likewise.
56530         * tests/test-linkedhash_list.c: Likewise.
56531         * tests/test-locale.c: Likewise.
56532         * tests/test-localename.c: Likewise.
56533         * tests/test-lock.c: Likewise.
56534         * tests/test-lseek.c: Likewise.
56535         * tests/test-malloca.c: Likewise.
56536         * tests/test-math.c: Likewise.
56537         * tests/test-mbscasecmp.c: Likewise.
56538         * tests/test-mbscasestr1.c: Likewise.
56539         * tests/test-mbscasestr2.c: Likewise.
56540         * tests/test-mbscasestr3.c: Likewise.
56541         * tests/test-mbscasestr4.c: Likewise.
56542         * tests/test-mbschr.c: Likewise.
56543         * tests/test-mbscspn.c: Likewise.
56544         * tests/test-mbsncasecmp.c: Likewise.
56545         * tests/test-mbspbrk.c: Likewise.
56546         * tests/test-mbspcasecmp.c: Likewise.
56547         * tests/test-mbsrchr.c: Likewise.
56548         * tests/test-mbsspn.c: Likewise.
56549         * tests/test-mbsstr1.c: Likewise.
56550         * tests/test-mbsstr2.c: Likewise.
56551         * tests/test-mbsstr3.c: Likewise.
56552         * tests/test-md5.c: Likewise.
56553         * tests/test-memmem.c: Likewise.
56554         * tests/test-netinet_in.c: Likewise.
56555         * tests/test-open.c: Likewise.
56556         * tests/test-printf-frexp.c: Likewise.
56557         * tests/test-printf-frexpl.c: Likewise.
56558         * tests/test-printf-posix.c: Likewise.
56559         * tests/test-printf-posix.h: Likewise.
56560         * tests/test-rbtree_list.c: Likewise.
56561         * tests/test-rbtree_oset.c: Likewise.
56562         * tests/test-rbtreehash_list.c: Likewise.
56563         * tests/test-read-file.c: Likewise.
56564         * tests/test-rijndael.c: Likewise.
56565         * tests/test-search.c: Likewise.
56566         * tests/test-signbit.c: Likewise.
56567         * tests/test-sleep.c: Likewise.
56568         * tests/test-snprintf-posix.c: Likewise.
56569         * tests/test-snprintf-posix.h: Likewise.
56570         * tests/test-snprintf.c: Likewise.
56571         * tests/test-sprintf-posix.c: Likewise.
56572         * tests/test-sprintf-posix.h: Likewise.
56573         * tests/test-stat-time.c: Likewise.
56574         * tests/test-stdbool.c: Likewise.
56575         * tests/test-stdint.c: Likewise.
56576         * tests/test-stdio.c: Likewise.
56577         * tests/test-stdlib.c: Likewise.
56578         * tests/test-stpncpy.c: Likewise.
56579         * tests/test-strcasestr.c: Likewise.
56580         * tests/test-striconv.c: Likewise.
56581         * tests/test-striconveh.c: Likewise.
56582         * tests/test-striconveha.c: Likewise.
56583         * tests/test-string.c: Likewise.
56584         * tests/test-sys_select.c: Likewise.
56585         * tests/test-sys_socket.c: Likewise.
56586         * tests/test-sys_stat.c: Likewise.
56587         * tests/test-sys_time.c: Likewise.
56588         * tests/test-sysexits.c: Likewise.
56589         * tests/test-time.c: Likewise.
56590         * tests/test-tls.c: Likewise.
56591         * tests/test-trunc.c: Likewise.
56592         * tests/test-truncf.c: Likewise.
56593         * tests/test-truncl.c: Likewise.
56594         * tests/test-unistd.c: Likewise.
56595         * tests/test-vasnprintf-posix.c: Likewise.
56596         * tests/test-vasnprintf-posix2.c: Likewise.
56597         * tests/test-vasnprintf.c: Likewise.
56598         * tests/test-vasprintf-posix.c: Likewise.
56599         * tests/test-vasprintf.c: Likewise.
56600         * tests/test-verify.c: Likewise.
56601         * tests/test-vfprintf-posix.c: Likewise.
56602         * tests/test-vprintf-posix.c: Likewise.
56603         * tests/test-vsnprintf-posix.c: Likewise.
56604         * tests/test-vsnprintf.c: Likewise.
56605         * tests/test-vsprintf-posix.c: Likewise.
56606         * tests/test-wchar.c: Likewise.
56607         * tests/test-wctype.c: Likewise.
56608         * tests/test-wcwidth.c: Likewise.
56609         * tests/test-xstrtol.c: Likewise.
56610         * tests/test-xvasprintf.c: Likewise.
56611         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56612         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56613         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56614         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56615         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56616         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56617         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56618         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56619         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56620         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56621         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56622         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56623         * tests/uniname/test-uninames.c: Likewise.
56624         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56625         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56626         * tests/unistdio/test-u16-printf1.h: Likewise.
56627         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56628         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56629         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56630         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56631         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56632         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56633         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56634         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56635         * tests/unistdio/test-u32-printf1.h: Likewise.
56636         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56637         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56638         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56639         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56640         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56641         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56642         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56643         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56644         * tests/unistdio/test-u8-printf1.h: Likewise.
56645         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56646         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56647         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56648         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56649         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56650         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56651         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56652         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56653         * tests/unistdio/test-ulc-printf1.h: Likewise.
56654         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56655         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56656         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56657         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56658         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56659         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56660         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56661         * tests/uniwidth/test-u16-width.c: Likewise.
56662         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56663         * tests/uniwidth/test-u32-width.c: Likewise.
56664         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56665         * tests/uniwidth/test-u8-width.c: Likewise.
56666         * tests/uniwidth/test-uc_width.c: Likewise.
56667         * config/srclist-update: Likewise.
56668         (fixlicense): Update to GPLv3+.
56669
56670         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56671         * tests/test-tsearch.c: Change copyright notice.
56672
56673         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56674         * lib/c-strcaseeq.h: Change copyright notice.
56675         * lib/streq.h: Likewise.
56676         * lib/uniconv.h: Likewise.
56677         * lib/uniconv/u-conv-from-enc.h: Likewise.
56678         * lib/uniconv/u-conv-to-enc.h: Likewise.
56679         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56680         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56681         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56682         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56683         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56684         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56685         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56686         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56687         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56688         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56689         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56690         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56691         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56692         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56693         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56694         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56695         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56696         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56697         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56698         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56699         * lib/uniname.h: Likewise.
56700         * lib/uniname/uniname.c: Likewise.
56701         * lib/unistdio.h: Likewise.
56702         * lib/unistdio/u-asnprintf.h: Likewise.
56703         * lib/unistdio/u-asprintf.h: Likewise.
56704         * lib/unistdio/u-printf-args.c: Likewise.
56705         * lib/unistdio/u-printf-args.h: Likewise.
56706         * lib/unistdio/u-printf-parse.h: Likewise.
56707         * lib/unistdio/u-snprintf.h: Likewise.
56708         * lib/unistdio/u-sprintf.h: Likewise.
56709         * lib/unistdio/u-vasprintf.h: Likewise.
56710         * lib/unistdio/u-vsnprintf.h: Likewise.
56711         * lib/unistdio/u-vsprintf.h: Likewise.
56712         * lib/unistdio/u16-asnprintf.c: Likewise.
56713         * lib/unistdio/u16-asprintf.c: Likewise.
56714         * lib/unistdio/u16-printf-parse.c: Likewise.
56715         * lib/unistdio/u16-snprintf.c: Likewise.
56716         * lib/unistdio/u16-sprintf.c: Likewise.
56717         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56718         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56719         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56720         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56721         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56722         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56723         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56724         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56725         * lib/unistdio/u16-vasnprintf.c: Likewise.
56726         * lib/unistdio/u16-vasprintf.c: Likewise.
56727         * lib/unistdio/u16-vsnprintf.c: Likewise.
56728         * lib/unistdio/u16-vsprintf.c: Likewise.
56729         * lib/unistdio/u32-asnprintf.c: Likewise.
56730         * lib/unistdio/u32-asprintf.c: Likewise.
56731         * lib/unistdio/u32-printf-parse.c: Likewise.
56732         * lib/unistdio/u32-snprintf.c: Likewise.
56733         * lib/unistdio/u32-sprintf.c: Likewise.
56734         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56735         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56736         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56737         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56738         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56739         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56740         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56741         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56742         * lib/unistdio/u32-vasnprintf.c: Likewise.
56743         * lib/unistdio/u32-vasprintf.c: Likewise.
56744         * lib/unistdio/u32-vsnprintf.c: Likewise.
56745         * lib/unistdio/u32-vsprintf.c: Likewise.
56746         * lib/unistdio/u8-asnprintf.c: Likewise.
56747         * lib/unistdio/u8-asprintf.c: Likewise.
56748         * lib/unistdio/u8-printf-parse.c: Likewise.
56749         * lib/unistdio/u8-snprintf.c: Likewise.
56750         * lib/unistdio/u8-sprintf.c: Likewise.
56751         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56752         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56753         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56754         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56755         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56756         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56757         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56758         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56759         * lib/unistdio/u8-vasnprintf.c: Likewise.
56760         * lib/unistdio/u8-vasprintf.c: Likewise.
56761         * lib/unistdio/u8-vsnprintf.c: Likewise.
56762         * lib/unistdio/u8-vsprintf.c: Likewise.
56763         * lib/unistdio/ulc-asnprintf.c: Likewise.
56764         * lib/unistdio/ulc-asprintf.c: Likewise.
56765         * lib/unistdio/ulc-printf-parse.c: Likewise.
56766         * lib/unistdio/ulc-snprintf.c: Likewise.
56767         * lib/unistdio/ulc-sprintf.c: Likewise.
56768         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56769         * lib/unistdio/ulc-vasprintf.c: Likewise.
56770         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56771         * lib/unistdio/ulc-vsprintf.c: Likewise.
56772         * lib/unistr.h: Likewise.
56773         * lib/unistr/u-cpy-alloc.h: Likewise.
56774         * lib/unistr/u-cpy.h: Likewise.
56775         * lib/unistr/u-endswith.h: Likewise.
56776         * lib/unistr/u-move.h: Likewise.
56777         * lib/unistr/u-set.h: Likewise.
56778         * lib/unistr/u-startswith.h: Likewise.
56779         * lib/unistr/u-stpcpy.h: Likewise.
56780         * lib/unistr/u-stpncpy.h: Likewise.
56781         * lib/unistr/u-strcat.h: Likewise.
56782         * lib/unistr/u-strcpy.h: Likewise.
56783         * lib/unistr/u-strcspn.h: Likewise.
56784         * lib/unistr/u-strdup.h: Likewise.
56785         * lib/unistr/u-strlen.h: Likewise.
56786         * lib/unistr/u-strncat.h: Likewise.
56787         * lib/unistr/u-strncpy.h: Likewise.
56788         * lib/unistr/u-strnlen.h: Likewise.
56789         * lib/unistr/u-strpbrk.h: Likewise.
56790         * lib/unistr/u-strspn.h: Likewise.
56791         * lib/unistr/u-strstr.h: Likewise.
56792         * lib/unistr/u-strtok.h: Likewise.
56793         * lib/unistr/u16-check.c: Likewise.
56794         * lib/unistr/u16-chr.c: Likewise.
56795         * lib/unistr/u16-cmp.c: Likewise.
56796         * lib/unistr/u16-cpy-alloc.c: Likewise.
56797         * lib/unistr/u16-cpy.c: Likewise.
56798         * lib/unistr/u16-endswith.c: Likewise.
56799         * lib/unistr/u16-mblen.c: Likewise.
56800         * lib/unistr/u16-mbsnlen.c: Likewise.
56801         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56802         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56803         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56804         * lib/unistr/u16-mbtouc.c: Likewise.
56805         * lib/unistr/u16-mbtoucr.c: Likewise.
56806         * lib/unistr/u16-move.c: Likewise.
56807         * lib/unistr/u16-next.c: Likewise.
56808         * lib/unistr/u16-prev.c: Likewise.
56809         * lib/unistr/u16-set.c: Likewise.
56810         * lib/unistr/u16-startswith.c: Likewise.
56811         * lib/unistr/u16-stpcpy.c: Likewise.
56812         * lib/unistr/u16-stpncpy.c: Likewise.
56813         * lib/unistr/u16-strcat.c: Likewise.
56814         * lib/unistr/u16-strchr.c: Likewise.
56815         * lib/unistr/u16-strcmp.c: Likewise.
56816         * lib/unistr/u16-strcpy.c: Likewise.
56817         * lib/unistr/u16-strcspn.c: Likewise.
56818         * lib/unistr/u16-strdup.c: Likewise.
56819         * lib/unistr/u16-strlen.c: Likewise.
56820         * lib/unistr/u16-strmblen.c: Likewise.
56821         * lib/unistr/u16-strmbtouc.c: Likewise.
56822         * lib/unistr/u16-strncat.c: Likewise.
56823         * lib/unistr/u16-strncmp.c: Likewise.
56824         * lib/unistr/u16-strncpy.c: Likewise.
56825         * lib/unistr/u16-strnlen.c: Likewise.
56826         * lib/unistr/u16-strpbrk.c: Likewise.
56827         * lib/unistr/u16-strrchr.c: Likewise.
56828         * lib/unistr/u16-strspn.c: Likewise.
56829         * lib/unistr/u16-strstr.c: Likewise.
56830         * lib/unistr/u16-strtok.c: Likewise.
56831         * lib/unistr/u16-to-u32.c: Likewise.
56832         * lib/unistr/u16-to-u8.c: Likewise.
56833         * lib/unistr/u16-uctomb-aux.c: Likewise.
56834         * lib/unistr/u16-uctomb.c: Likewise.
56835         * lib/unistr/u32-check.c: Likewise.
56836         * lib/unistr/u32-chr.c: Likewise.
56837         * lib/unistr/u32-cmp.c: Likewise.
56838         * lib/unistr/u32-cpy-alloc.c: Likewise.
56839         * lib/unistr/u32-cpy.c: Likewise.
56840         * lib/unistr/u32-endswith.c: Likewise.
56841         * lib/unistr/u32-mblen.c: Likewise.
56842         * lib/unistr/u32-mbsnlen.c: Likewise.
56843         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56844         * lib/unistr/u32-mbtouc.c: Likewise.
56845         * lib/unistr/u32-mbtoucr.c: Likewise.
56846         * lib/unistr/u32-move.c: Likewise.
56847         * lib/unistr/u32-next.c: Likewise.
56848         * lib/unistr/u32-prev.c: Likewise.
56849         * lib/unistr/u32-set.c: Likewise.
56850         * lib/unistr/u32-startswith.c: Likewise.
56851         * lib/unistr/u32-stpcpy.c: Likewise.
56852         * lib/unistr/u32-stpncpy.c: Likewise.
56853         * lib/unistr/u32-strcat.c: Likewise.
56854         * lib/unistr/u32-strchr.c: Likewise.
56855         * lib/unistr/u32-strcmp.c: Likewise.
56856         * lib/unistr/u32-strcpy.c: Likewise.
56857         * lib/unistr/u32-strcspn.c: Likewise.
56858         * lib/unistr/u32-strdup.c: Likewise.
56859         * lib/unistr/u32-strlen.c: Likewise.
56860         * lib/unistr/u32-strmblen.c: Likewise.
56861         * lib/unistr/u32-strmbtouc.c: Likewise.
56862         * lib/unistr/u32-strncat.c: Likewise.
56863         * lib/unistr/u32-strncmp.c: Likewise.
56864         * lib/unistr/u32-strncpy.c: Likewise.
56865         * lib/unistr/u32-strnlen.c: Likewise.
56866         * lib/unistr/u32-strpbrk.c: Likewise.
56867         * lib/unistr/u32-strrchr.c: Likewise.
56868         * lib/unistr/u32-strspn.c: Likewise.
56869         * lib/unistr/u32-strstr.c: Likewise.
56870         * lib/unistr/u32-strtok.c: Likewise.
56871         * lib/unistr/u32-to-u16.c: Likewise.
56872         * lib/unistr/u32-to-u8.c: Likewise.
56873         * lib/unistr/u32-uctomb.c: Likewise.
56874         * lib/unistr/u8-check.c: Likewise.
56875         * lib/unistr/u8-chr.c: Likewise.
56876         * lib/unistr/u8-cmp.c: Likewise.
56877         * lib/unistr/u8-cpy-alloc.c: Likewise.
56878         * lib/unistr/u8-cpy.c: Likewise.
56879         * lib/unistr/u8-endswith.c: Likewise.
56880         * lib/unistr/u8-mblen.c: Likewise.
56881         * lib/unistr/u8-mbsnlen.c: Likewise.
56882         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56883         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56884         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56885         * lib/unistr/u8-mbtouc.c: Likewise.
56886         * lib/unistr/u8-mbtoucr.c: Likewise.
56887         * lib/unistr/u8-move.c: Likewise.
56888         * lib/unistr/u8-next.c: Likewise.
56889         * lib/unistr/u8-prev.c: Likewise.
56890         * lib/unistr/u8-set.c: Likewise.
56891         * lib/unistr/u8-startswith.c: Likewise.
56892         * lib/unistr/u8-stpcpy.c: Likewise.
56893         * lib/unistr/u8-stpncpy.c: Likewise.
56894         * lib/unistr/u8-strcat.c: Likewise.
56895         * lib/unistr/u8-strchr.c: Likewise.
56896         * lib/unistr/u8-strcmp.c: Likewise.
56897         * lib/unistr/u8-strcpy.c: Likewise.
56898         * lib/unistr/u8-strcspn.c: Likewise.
56899         * lib/unistr/u8-strdup.c: Likewise.
56900         * lib/unistr/u8-strlen.c: Likewise.
56901         * lib/unistr/u8-strmblen.c: Likewise.
56902         * lib/unistr/u8-strmbtouc.c: Likewise.
56903         * lib/unistr/u8-strncat.c: Likewise.
56904         * lib/unistr/u8-strncmp.c: Likewise.
56905         * lib/unistr/u8-strncpy.c: Likewise.
56906         * lib/unistr/u8-strnlen.c: Likewise.
56907         * lib/unistr/u8-strpbrk.c: Likewise.
56908         * lib/unistr/u8-strrchr.c: Likewise.
56909         * lib/unistr/u8-strspn.c: Likewise.
56910         * lib/unistr/u8-strstr.c: Likewise.
56911         * lib/unistr/u8-strtok.c: Likewise.
56912         * lib/unistr/u8-to-u16.c: Likewise.
56913         * lib/unistr/u8-to-u32.c: Likewise.
56914         * lib/unistr/u8-uctomb-aux.c: Likewise.
56915         * lib/unistr/u8-uctomb.c: Likewise.
56916         * lib/unitypes.h: Likewise.
56917         * lib/uniwidth.h: Likewise.
56918         * lib/uniwidth/cjk.h: Likewise.
56919         * lib/uniwidth/u16-strwidth.c: Likewise.
56920         * lib/uniwidth/u16-width.c: Likewise.
56921         * lib/uniwidth/u32-strwidth.c: Likewise.
56922         * lib/uniwidth/u32-width.c: Likewise.
56923         * lib/uniwidth/u8-strwidth.c: Likewise.
56924         * lib/uniwidth/u8-width.c: Likewise.
56925         * lib/uniwidth/width.c: Likewise.
56926
56927 2007-10-07  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56930         The file is still under LGPL (see modules/inttypes).
56931
56932 2007-10-06  Bruno Haible  <bruno@clisp.org>
56933
56934         * modules/trunc (Dependencies): Add 'extensions'.
56935         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56936         Reported by Ben Pfaff <blp@gnu.org>.
56937
56938 2007-10-06  Bruno Haible  <bruno@clisp.org>
56939
56940         * modules/freopen-tests: New file.
56941         * tests/test-freopen.c: New file.
56942
56943         * modules/fopen-tests: New file.
56944         * tests/test-fopen.c: New file.
56945
56946         * modules/fopen: New file.
56947         * lib/fopen.c: New file.
56948         * m4/fopen.m4: New file.
56949         * modules/freopen: New file.
56950         * lib/freopen.c: New file.
56951         * m4/freopen.m4: New file.
56952         * lib/stdio.in.h (fopen, freopen): New declarations.
56953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56954         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56955         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56956         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56957         * doc/functions/fopen.texi: Mention the 'fopen' module.
56958         * doc/functions/freopen.texi: Mention the 'freopen' module.
56959
56960 2007-10-06  Bruno Haible  <bruno@clisp.org>
56961
56962         * modules/open-tests: New file.
56963         * tests/test-open.c: New file.
56964
56965         * modules/open: New file.
56966         * lib/open.c: New file.
56967         * m4/open.m4: New file.
56968         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56969         lib/open.c does.
56970         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56971         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56972         macros.
56973         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56974         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56975         REPLACE_OPEN.
56976         * doc/functions/open.texi: Mention the 'open' module.
56977
56978 2007-10-04  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/ceill-tests: New file.
56981         * tests/test-ceill.c: New file.
56982
56983         * modules/ceill: New file.
56984         * lib/ceill.c: Replace entire file.
56985         * m4/ceill.m4: New file.
56986         * lib/math.in.h (ceill): Replace declaration.
56987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56988         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56989         * doc/functions/ceill.texi: Mention the 'ceill' module.
56990         * modules/mathl (Files): Remove lib/ceill.c.
56991         (Depends-on): Add ceill.
56992
56993 2007-10-04  Bruno Haible  <bruno@clisp.org>
56994
56995         * modules/ceilf-tests: New file.
56996         * tests/test-ceilf.c: New file.
56997
56998         * modules/ceilf: New file.
56999         * lib/ceil.c: New file.
57000         * lib/ceilf.c: New file.
57001         * m4/ceilf.m4: New file.
57002         * lib/math.in.h (ceilf): New declaration.
57003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57004         HAVE_DECL_CEILF.
57005         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57006         HAVE_DECL_CEILF.
57007         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57008
57009 2007-10-04  Bruno Haible  <bruno@clisp.org>
57010
57011         * modules/floorl-tests: New file.
57012         * tests/test-floorl.c: New file.
57013
57014         * modules/floorl: New file.
57015         * lib/floorl.c: Replace entire file.
57016         * m4/floorl.m4: New file.
57017         * lib/math.in.h (floorl): Replace declaration.
57018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57019         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57020         * doc/functions/floorl.texi: Mention the 'floorl' module.
57021         * modules/mathl (Files): Remove lib/floorl.c.
57022         (Depends-on): Add floorl.
57023
57024 2007-10-04  Bruno Haible  <bruno@clisp.org>
57025
57026         * modules/floorf-tests: New file.
57027         * tests/test-floorf.c: New file.
57028
57029         * modules/floorf: New file.
57030         * lib/floor.c: New file.
57031         * lib/floorf.c: New file.
57032         * m4/floorf.m4: New file.
57033         * lib/math.in.h (floorf): New declaration.
57034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57035         HAVE_DECL_FLOORF.
57036         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57037         HAVE_DECL_FLOORF.
57038         * doc/functions/floorf.texi: Mention the 'floorf' module.
57039
57040 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57041             Bruno Haible  <bruno@clisp.org>
57042
57043         Advertise for the Git server instead of the CVS server.
57044         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57045         repository instead of the CVS one.
57046         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57047         about all VCS systems generically.
57048         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57049
57050 2007-10-04  Bruno Haible  <bruno@clisp.org>
57051
57052         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57053         means.
57054         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57055
57056 2007-10-04  Bruno Haible  <bruno@clisp.org>
57057
57058         * modules/truncl-tests: New file.
57059         * tests/test-truncl.c: New file.
57060
57061         * modules/truncl: New file.
57062         * lib/truncl.c: New file.
57063         * m4/truncl.m4: New file.
57064         * lib/math.in.h (truncl): New declaration.
57065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57066         HAVE_DECL_TRUNCL.
57067         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57068         HAVE_DECL_TRUNCL.
57069         * doc/functions/truncl.texi: Mention the 'truncl' module.
57070
57071 2007-10-04  Bruno Haible  <bruno@clisp.org>
57072
57073         * modules/truncf-tests: New file.
57074         * tests/test-truncf.c: New file.
57075
57076         * modules/truncf: New file.
57077         * lib/trunc.c: Make paramerizable through USE_* macros.
57078         * lib/truncf.c: New file.
57079         * m4/truncf.m4: New file.
57080         * lib/math.in.h (truncf): New declaration.
57081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57082         HAVE_DECL_TRUNCF.
57083         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57084         HAVE_DECL_TRUNCF.
57085         * doc/functions/truncf.texi: Mention the 'truncf' module.
57086
57087 2007-10-03  Bruno Haible  <bruno@clisp.org>
57088
57089         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57090         augmentation also for tests modules.
57091         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57092         * modules/atexit-tests (Makefile.am): Likewise.
57093         * modules/binary-io-tests (Makefile.am): Likewise.
57094         * modules/c-strcase-tests (Makefile.am): Likewise.
57095         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57096         * modules/canonicalize-tests (Makefile.am): Likewise.
57097         * modules/closein-tests (Makefile.am): Likewise.
57098         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57099         * modules/freadahead-tests (Makefile.am): Likewise.
57100         * modules/fseek-tests (Makefile.am): Likewise.
57101         * modules/fseeko-tests (Makefile.am): Likewise.
57102         * modules/ftell-tests (Makefile.am): Likewise.
57103         * modules/ftello-tests (Makefile.am): Likewise.
57104         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57105         * modules/isnanl-tests (Makefile.am): Likewise.
57106         * modules/lseek-tests (Makefile.am): Likewise.
57107         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57108         * modules/mbscasestr-tests (Makefile.am): Likewise.
57109         * modules/mbschr-tests (Makefile.am): Likewise.
57110         * modules/mbscspn-tests (Makefile.am): Likewise.
57111         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57112         * modules/mbspbrk-tests (Makefile.am): Likewise.
57113         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57114         * modules/mbsrchr-tests (Makefile.am): Likewise.
57115         * modules/mbsspn-tests (Makefile.am): Likewise.
57116         * modules/mbsstr-tests (Makefile.am): Likewise.
57117         * modules/printf-posix-tests (Makefile.am): Likewise.
57118         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57119         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57120         * modules/tsearch-tests (Makefile.am): Likewise.
57121         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57122         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57123         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57124         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57125         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57126         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57127         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57128         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57129         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57130         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57131         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57132         * modules/xstrtol-tests (Makefile.am): Likewise.
57133         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57134         * modules/yesno-tests (Makefile.am): Likewise.
57135
57136 2007-10-03  Bruno Haible  <bruno@clisp.org>
57137
57138         * modules/trunc-tests: New file.
57139         * tests/test-trunc.c: New file.
57140
57141         * modules/trunc: New file.
57142         * lib/trunc.c: New file.
57143         * m4/trunc.m4: New file.
57144         * lib/math.in.h (trunc): New declaration.
57145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57146         HAVE_DECL_TRUNC.
57147         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57148         HAVE_DECL_TRUNC.
57149         * doc/functions/trunc.texi: Mention the 'trunc' module.
57150
57151 2007-10-03  Bruno Haible  <bruno@clisp.org>
57152
57153         * tests/test-fpending.c: New file, mostly copied
57154         from coreutils/lib/t-fpending.c.
57155         * modules/fpending-tests: New file.
57156
57157 2007-10-03  Bruno Haible  <bruno@clisp.org>
57158
57159         Port the stdio extensions to QNX (untested).
57160         * lib/fseterr.c (fseterr): Add support for QNX.
57161         * lib/fbufmode.c (fbufmode): Likewise.
57162         * lib/freadable.c (freadable): Likewise.
57163         * lib/fwritable.c (fwritable): Likewise.
57164         * lib/freading.c (freading): Likewise.
57165         * lib/fwriting.c (fwriting): Likewise.
57166         * lib/freadahead.c (freadahed): Likewise.
57167         * lib/fpurge.c (fpurge): Likewise.
57168         * lib/fseeko.c (rpl_fseeko): Likewise.
57169
57170 2007-10-03  Bruno Haible  <bruno@clisp.org>
57171             Jim Meyering  <jim@meyering.net>
57172             Eric Blake  <ebb9@byu.net>
57173
57174         * doc/relocatable.texi: Use @command instead of @program.
57175
57176 2007-10-02  Jim Meyering  <jim@meyering.net>
57177
57178         Perform one more "_.h" -> ".in.h" substitution.
57179         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57180         instead of unistd_.h here, too.
57181
57182 2007-10-01  Bruno Haible  <bruno@clisp.org>
57183
57184         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57185         Needed for the alloca-opt module.
57186
57187 2007-09-30  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57190         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57191         alloca_.h.
57192         * lib/argz.in.h: Renamed from lib/argz_.h.
57193         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57194         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57195         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57196         byteswap_.h.
57197         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57198         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57199         dirent_.h.
57200         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57201         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57202         fcntl_.h.
57203         * lib/float.in.h: Renamed from lib/float_.h.
57204         * modules/float (Files, Makefile.am): Use float.in.h instead of
57205         float_.h.
57206         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57207         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57208         fnmatch_.h.
57209         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57210         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57211         getopt_.h.
57212         * lib/glob.in.h: Renamed from lib/glob_.h.
57213         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57214         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57215         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57216         iconv_.h.
57217         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57218         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57219         inttypes_.h.
57220         * lib/locale.in.h: Renamed from lib/locale_.h.
57221         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57222         locale_.h.
57223         * lib/math.in.h: Renamed from lib/math_.h.
57224         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57225         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57226         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57227         of netinet_in_.h. Add dependency.
57228         * lib/poll.in.h: Renamed from lib/poll_.h.
57229         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57230         * lib/search.in.h: Renamed from lib/search_.h.
57231         * modules/search (Files, Makefile.am): Use search.in.h instead of
57232         search_.h.
57233         * lib/signal.in.h: Renamed from lib/signal_.h.
57234         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57235         _signal.h.
57236         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57237         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57238         stdbool_.h.
57239         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57240         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57241         stdint_.h.
57242         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57243         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57244         stdio_.h.
57245         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57246         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57247         stdlib_.h.
57248         * lib/string.in.h: Renamed from lib/string_.h.
57249         * modules/string (Files, Makefile.am): Use string.in.h instead of
57250         string_.h.
57251         * doc/gnulib-tool.texi (Initial import): Update.
57252         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57253         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57254         of sys_select_.h. Add dependency.
57255         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57256         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57257         of sys_socket_.h.
57258         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57259         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57260         sys_stat_.h.
57261         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57262         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57263         sys_time_.h.
57264         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57265         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57266         sysexits_.h.
57267         * lib/time.in.h: Renamed from lib/time_.h.
57268         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57269         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57270         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57271         unistd_.h.
57272         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57273         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57274         wchar_.h.
57275         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57276         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57277         wctype_.h.
57278         * build-aux/bootstrap (slurp): Update.
57279         * lib/.cppi-disable: Update.
57280
57281 2007-09-30  Bruno Haible  <bruno@clisp.org>
57282
57283         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57284         Needed on BeOS.
57285
57286 2007-09-30  Bruno Haible  <bruno@clisp.org>
57287
57288         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57289
57290 2007-09-29  Bruno Haible  <bruno@clisp.org>
57291
57292         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57293
57294 2007-09-29  Bruno Haible  <bruno@clisp.org>
57295
57296         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57297         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57298         * build-aux/install-reloc: Compile also areadlink.c.
57299         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57300
57301 2007-09-29  Bruno Haible  <bruno@clisp.org>
57302
57303         * gnulib-tool (func_emit_initmacro_done): Indentation.
57304
57305 2007-09-29  Bruno Haible  <bruno@clisp.org>
57306
57307         * README: Add CVS checkout update instructions.
57308         Info from Bob Proulx <bob@proulx.com>.
57309
57310 2007-09-28  Eric Blake  <ebb9@byu.net>
57311
57312         Provide move-if-change.
57313         * build-aux/move-if-change: New file, based on best practice
57314         rather than any canonical upstream location.
57315
57316 2007-09-28  Jim Meyering  <jim@meyering.net>
57317
57318         Fix canonicalize loop-detection corner case.
57319         Do not attempt to stat the symlink values stored via seen_triple.
57320         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57321         on linux-2.6.18, (but not 2.6.22).
57322         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57323         triple_compare.  The former compares dev,ino,filename, while the latter
57324         would actually stat dirname(filename) when dev and ino were equal.
57325         * lib/hash-triple.c: Install <string.h>.
57326         (STREQ): Define.
57327         (triple_compare_ino_str): New function.
57328         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57329
57330 2007-09-28  Eric Blake  <ebb9@byu.net>
57331
57332         Enforce that AC_REPLACE_FUNCS files exist.
57333         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57334         override check for typos.
57335
57336         Fix test-closein on Solaris 10.
57337         * tests/test-closein.c (main): Don't assume stdin can be inherited
57338         closed on all systems.
57339         * tests/test-closein.sh: Likewise.
57340         Reported by Piotr Tarnowski.
57341
57342 2007-09-28  Jim Meyering  <jim@meyering.net>
57343
57344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57345
57346 2007-09-27  Jim Meyering  <jim@meyering.net>
57347
57348         canonicalize: Avoid a false-positive cycle failure.
57349         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57350         Sort.  Remove cycle-check.
57351         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57352         not cycle-check.h.
57353         (seen_triple): New function.
57354         (canonicalize_filename_mode): Use it instead of cycle-check.
57355         * tests/test-canonicalize.c: Add a test for this bug.
57356         * tests/test-canonicalize.sh: Set up and run the test.
57357
57358         New module, file-set, from coreutils.
57359         * modules/file-set: Define it.
57360         * lib/file-set.c, lib/file-set.h: Implement.
57361
57362         New module, hash-triple, from coreutils.
57363         * modules/hash-triple: Define it.
57364         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57365
57366 2007-09-25  Eric Blake  <ebb9@byu.net>
57367
57368         Fix strerror on Interix.
57369         * lib/string_.h (strerror): Declare replacement.
57370         * doc/functions/strerror.texi (strerror): Document the Interix
57371         shortcoming.
57372         * modules/string (Makefile.am): Support new hooks.
57373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57374         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57375         gl_FUNC_STRERROR_SEPARATE.
57376         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57377         * lib/strerror.c (rpl_strerror): Provide replacement.
57378         * modules/strerror (Depends-on): Add string.
57379         (configure.ac): Detect use of module.
57380         * tests/test-strerror.c: New file.
57381         * modules/strerror-tests: New test module.
57382         * modules/argp (Depends-on): Add strerror.
57383         * modules/error (Depends-on): Likewise.
57384         Reported by Martin Koeppe.
57385
57386 2007-09-24  Bruno Haible  <bruno@clisp.org>
57387
57388         * README: Update git instructions.
57389
57390 2007-09-24  Eric Blake  <ebb9@byu.net>
57391
57392         Revert fpending breakage from 2007-09-08.
57393         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57394         __fpending.c.
57395
57396 2007-09-24  Jim Meyering  <jim@meyering.net>
57397
57398         filenamecat.c: Add a test.
57399         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57400         showing how the function works when DIR is the empty string.
57401
57402 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57403
57404         * tests/test-canonicalize.sh: Turn on executable bit.
57405
57406 2007-09-19  Eric Blake  <ebb9@byu.net>
57407
57408         * README: Update CVS instructions.
57409
57410 2007-09-18  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/areadlink: New file.
57413         * lib/areadlink.h (areadlink): New declaration.
57414         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57415
57416 2007-09-17  Jim Meyering  <jim@meyering.net>
57417
57418         * lib/savewd.c (ESTALE) [!defined]: Define.
57419         Reported to be required on Interix by Martin Koeppe.
57420
57421 2007-09-17  Bruno Haible  <bruno@clisp.org>
57422
57423         * gnulib-tool (func_version): Use $version.
57424
57425 2007-09-16  Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57428         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57429         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57430         Reported by Greg Schafer <gschafer@zip.com.au>.
57431
57432 2007-09-15  Bruno Haible  <bruno@clisp.org>
57433
57434         * gnulib-tool (sed): Try a little harder to make bash understand the
57435         alias.
57436         Reported by Bruce Korb <bruce.korb@gmail.com>.
57437
57438 2007-09-13  Eric Blake  <ebb9@byu.net>
57439
57440         * ChangeLog: Remove conflict markers.
57441
57442 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57443
57444         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57445         Reported by Bruno Haible <bruno@clisp.org>.
57446
57447 2007-09-12  Bruno Haible  <bruno@clisp.org>
57448
57449         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57450         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57451         is not defined.
57452
57453 2007-09-12  Eric Blake  <ebb9@byu.net>
57454
57455         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57456         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57457         Autoconf definition.
57458         * modules/euidaccess (Depends-on): Add extensions, for
57459         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57460         * modules/fnmatch (Depends-on): Likewise.
57461         * modules/getaddrinfo (Depends-on): Likewise.
57462         * modules/getdelim (Depends-on): Likewise.
57463         * modules/getline (Depends-on): Likewise.
57464         * modules/getsubopt (Depends-on): Likewise.
57465         * modules/gettext (Depends-on): Likewise.
57466         * modules/group-member (Depends-on): Likewise.
57467         * modules/mbchar (Depends-on): Likewise.
57468         * modules/memmem (Depends-on): Likewise.
57469         * modules/mempcpy (Depends-on): Likewise.
57470         * modules/memrchr (Depends-on): Likewise.
57471         * modules/pagealign_alloc (Depends-on): Likewise.
57472         * modules/readutmp (Depends-on): Likewise.
57473         * modules/stpcpy (Depends-on): Likewise.
57474         * modules/stpncpy (Depends-on): Likewise.
57475         * modules/strchrnul (Depends-on): Likewise.
57476         * modules/strndup (Depends-on): Likewise.
57477         * modules/strsep (Depends-on): Likewise.
57478         * modules/strverscmp (Depends-on): Likewise.
57479         * modules/vasprintf (Depends-on): Likewise.
57480         * modules/wcwidth (Depends-on): Likewise.
57481         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57482         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57483         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57485         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57486         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57487         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57488         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57489         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57490         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57492         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57493         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57494         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57495         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57496         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57497         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57498         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57499         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57500         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57501         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57502         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57503         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57504         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57505         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57507         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57508         so that lock.m4 can be used in gettext without extensions module.
57509
57510 2007-09-11  Bruno Haible  <bruno@clisp.org>
57511
57512         * m4/isc-posix.m4: Remove file.
57513         Suggested by Eric Blake.
57514
57515 2007-09-11  Eric Blake  <ebb9@byu.net>
57516
57517         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57518
57519 2007-09-10  Bruno Haible  <bruno@clisp.org>
57520
57521         * posix-modules: Fix typo in error message.
57522         Reported by Matt <mkraai@beckman.com>.
57523
57524 2007-09-09  Bruno Haible  <bruno@clisp.org>
57525
57526         * doc/functions/getdelim.texi: Update list of platforms lacking the
57527         function.
57528         * doc/functions/getline.texi: Likewise.
57529
57530 2007-09-09  Jim Meyering  <jim@meyering.net>
57531
57532         * lib/hash.c (hash_initialize): Detect calloc failure.
57533         Reported by Bruno Haible.
57534
57535 2007-09-09  Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57538         malloc or realloc fails.
57539
57540 2007-09-09  Bruno Haible  <bruno@clisp.org>
57541
57542         * modules/getcwd (Depends-on): Add malloc-posix.
57543         * modules/glob (Depends-on): Likewise.
57544         * modules/putenv (Depends-on): Likewise.
57545         * modules/strdup (Depends-on): Likewise.
57546         * modules/getdelim (Depends-on): Add realloc-posix.
57547         * modules/read-file (Depends-on): Likewise.
57548
57549 2007-09-09  Bruno Haible  <bruno@clisp.org>
57550
57551         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57552         (gl_FUNC_MALLOC_POSIX): Require it.
57553         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57554         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57555         * modules/realloc (Files): Add m4/malloc.m4.
57556         * modules/calloc (Files): Likewise.
57557
57558 2007-09-09  Bruno Haible  <bruno@clisp.org>
57559
57560         * modules/malloc-posix: New file.
57561         * modules/malloc (Depends-on): Add malloc-posix.
57562         * lib/malloc.c: Include errno.h.
57563         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57564         and a POSIX-compatible malloc into a single function. Set ENOMEM
57565         when returning NULL.
57566         * m4/malloc.m4: New file.
57567         * doc/functions/malloc.texi: Mention the malloc-posix module.
57568         * lib/stdlib_.h (malloc): New declaration.
57569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57570         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57571         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57572         and HAVE_MALLOC_POSIX.
57573
57574 2007-09-09  Bruno Haible  <bruno@clisp.org>
57575
57576         * modules/realloc-posix: New file.
57577         * modules/realloc (Depends-on): Add realloc-posix.
57578         * lib/realloc.c: Include errno.h.
57579         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57580         and a POSIX-compatible realloc into a single function. Set ENOMEM
57581         when returning NULL.
57582         * m4/realloc.m4: New file.
57583         * doc/functions/realloc.texi: Mention the realloc-posix module.
57584         * lib/stdlib_.h (realloc): New declaration.
57585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57586         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57587         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57588         and HAVE_REALLOC_POSIX.
57589
57590 2007-09-09  Bruno Haible  <bruno@clisp.org>
57591
57592         * modules/calloc-posix: New file.
57593         * modules/calloc (Depends-on): Add calloc-posix.
57594         * lib/calloc.c: Include errno.h.
57595         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57596         and a POSIX-compatible calloc into a single function. Set ENOMEM
57597         when returning NULL.
57598         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57599         * doc/functions/calloc.texi: Mention the calloc-posix module.
57600         * lib/stdlib_.h (calloc): New declaration.
57601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57602         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57603         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57604         and HAVE_CALLOC_POSIX.
57605
57606 2007-09-09  Bruno Haible  <bruno@clisp.org>
57607
57608         Allow for modules to show an arbitrary notice.
57609         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57610         * gnulib-tool: New option --extract-notice.
57611         (func_usage): Document it.
57612         (sed_extract_prog): Update.
57613         (func_get_notice): New function.
57614         (func_modules_notice): New function.
57615         (func_import, func_create_testdir): Invoke it.
57616         Suggested by Jim Meyering.
57617
57618 2007-09-09  Bruno Haible  <bruno@clisp.org>
57619
57620         * gnulib-tool: New options --verbose, --quiet.
57621         (func_usage): Document them.
57622         (verbose): New variable.
57623         (func_execute_command): New function.
57624         (func_import): Don't show the module list and the file list if
57625         $verbose < 0.
57626         (func_create_testdir): Likewise. Use func_execute_command.
57627         (func_create_megatestdir): Use func_execute_command.
57628
57629 2007-09-08  Bruno Haible  <bruno@clisp.org>
57630
57631         * gnulib-tool (func_import): Prefer rsync over wget when available,
57632         for fetching the PO files.
57633
57634 2007-09-08  Bruno Haible  <bruno@clisp.org>
57635
57636         * posix-modules: New file. Portions copied from gnulib-tool.
57637         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57638
57639 2007-09-08  Jim Meyering  <jim@meyering.net>
57640
57641         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57642         * lib/fpending.h: Rename from __fpending.h.
57643         * lib/fpending.c: Rename from __fpending.c.
57644         Include "fpending.h", not "__fpending.h".
57645         * lib/__fpending.h, lib/__fpending.c: Remove files.
57646         * modules/fpending (Files): Reflect new file names.
57647         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57648
57649 2007-09-08  Bruno Haible  <bruno@clisp.org>
57650
57651         * m4/inttypes-h.m4: Remove stub file.
57652
57653 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57654
57655         * doc/headers/stdint.texi: Discuss #include_next issue.
57656
57657 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57660
57661 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57662
57663         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57664         in variable name.
57665
57666 2007-09-03  Jim Meyering  <jim@meyering.net>
57667
57668         New module: git-version-gen.
57669         * modules/git-version-gen: New file.
57670
57671         Import changes from coreutils for bootstrap script.
57672
57673         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57674
57675         bootstrap: uses rsync to download the .po files
57676         * build-aux/bootstrap (po_download_command_format): New global.
57677         (download_po_files): Use rsync.
57678         (update_po_files): Don't remove .po files after download,
57679         so future rsync runs can take advantage of the copies.
57680
57681         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57682
57683         Solve the unnecessary-.po-file-regeneration problem once and for all.
57684         * build-aux/bootstrap (download_po_files): New function, renamed from
57685         get_translations.  Now, downloads, but doesn't update LINGUAS.
57686         (update_po_files): New function.
57687
57688         bootstrap: Ignore more.
57689         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57690         uniwidth to e.g., lib/.gitignore.
57691         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57692
57693         * build-aux/bootstrap: New setting: vc_ignore.
57694         (insert_sorted_if_absent): Create $file if absent.
57695         Adapt to new, possibly empty, list: $vc_ignore.
57696
57697         bootstrap: generate more ignorable names
57698         * build-aux/bootstrap (slurp): When generating ignorable names,
57699         also map .sin to .sed, .gperf to .c, and .y to .c.
57700
57701 2007-09-03  Jim Meyering  <jim@meyering.net>
57702
57703         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57704         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57705
57706 2007-09-02  Bruno Haible  <bruno@clisp.org>
57707
57708         Fix mis-recognition of 'mcs' on QNX 6.
57709         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57710         output contains the string "Mono".
57711         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57712         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57713
57714 2007-09-01  Bruno Haible  <bruno@clisp.org>
57715
57716         Fix collision between uniwidth/* and linebreak modules.
57717         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57718         u32_width): Remove declarations.
57719         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57720         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57721         streq3, streq2, streq1, streq0): Remove functions.
57722         (STREQ): Remove macro.
57723         (is_cjk_encoding): Remove function.
57724         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57725         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57726         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57727         * NEWS: Document the change.
57728
57729 2007-09-01  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/streq.h: Add double-inclusion guard.
57732
57733 2007-09-01  Karl Berry  <karl@gnu.org>
57734
57735         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57736
57737 2007-08-28  Jim Meyering  <jim@meyering.net>
57738
57739         Rename mreadlink_with_size to areadlink_with_size.
57740         * NEWS: Document the change.
57741         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57742         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57743         * lib/mreadlink.h: Rename this to...
57744         * lib/areadlink.h: ...this.
57745         * modules/mreadlink-with-size: Rename this to...
57746         * modules/areadlink-with-size: ...this.
57747         * lib/canonicalize.c: Reflect the renaming.
57748         * modules/canonicalize: Likewise.
57749
57750 2007-08-26  Bruno Haible  <bruno@clisp.org>
57751
57752         * gnulib-tool (func_import): When deciding which files to remove,
57753         consider also dangling symbolic links.
57754         Reported by Eric Blake.
57755
57756 2007-08-26  Bruno Haible  <bruno@clisp.org>
57757
57758         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57759
57760 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57761
57762         * lib/readline.c: Don't include getline.h, the prototype is now
57763         found in stdio.h.
57764
57765 2007-08-23  Jim Meyering  <jim@meyering.net>
57766
57767         Getdelim touchup.
57768         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57769         around the funlockfile call, since funlockfile never sets errno.
57770         Don't set errno upon failed realloc.
57771
57772 2007-08-22  Eric Blake  <ebb9@byu.net>
57773
57774         Getline touchups.
57775         * lib/getdelim.c (getdelim): Revert regression that required *n to
57776         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57777         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57778         getdelim, rather than whether implementation is missing.
57779         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57780         * lib/stdio_.h (getline): Also declare if replacement is
57781         required.
57782         * doc/functions/getdelim.texi: New file.
57783         * doc/functions/getline.texi: Likewise.
57784         * doc/gnulib.texi (Function Substitutes): Add new files.
57785         Reported by Bruno Haible.
57786
57787 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57788
57789         * users.txt: Add Guile.
57790
57791 2007-08-22  Eric Blake  <ebb9@byu.net>
57792
57793         * tests/test-getdelim.c (main): Use remove, not unlink.
57794         * tests/test-getline.c (main): Likewise.
57795
57796         Move getline and getdelim into stdio.h, per POSIX 200x.
57797         * modules/getline (Files): Remove getline.h.
57798         (Depends-on): Add stdio.
57799         (configure.ac): Add module indicator.
57800         * modules/getdelim (Files): Remove getdelim.h.
57801         (Depends-on): Add stdio.
57802         (configure.ac): Add module indicator.
57803         * modules/stdio (Makefile.am): Work with new indicators.
57804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57805         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57806         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57807         * lib/getdelim.h: Delete.
57808         * lib/getline.h: Delete.
57809         * lib/stdio_.h (getdelim, getline): Declare.
57810         * modules/getdelim-tests: New module.
57811         * modules/getline-tests: Likewise.
57812         * tests/test-getdelim.c: New file.
57813         * tests/test-getline.c: Likewise.
57814         * NEWS: Document the change.
57815         * lib/getline.c: Update choice of header.
57816         * lib/csharpcomp.c: Likewise.
57817         * lib/getpass.c: Likewise.
57818         * lib/javacomp.c: Likewise.
57819         * lib/javaversion.c: Likewise.
57820         * lib/yesno.c: Likewise.
57821         * lib/getdelim.c: Likewise.
57822         (getdelim): Set errno on failure, and avoid memory leak.
57823
57824 2007-08-19  Bruno Haible  <bruno@clisp.org>
57825
57826         * modules/closein (Depends-on): Add freadahead.
57827         * lib/closein.c: Include freadahead.h.
57828         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57829         is zero.
57830
57831 2007-08-19  Bruno Haible  <bruno@clisp.org>
57832
57833         * modules/freadahead-tests: New file.
57834         * tests/test-freadahead.sh: New file.
57835         * tests/test-freadahead.c: New file.
57836
57837         * modules/freadahead: New file.
57838         * lib/freadahead.h: New file.
57839         * lib/freadahead.c: New file.
57840         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57841         fbufmode, fpurge, freadable, fwritable.
57842
57843 2007-08-19  Eric Blake  <ebb9@byu.net>
57844
57845         Test yesno in combination with closein.
57846         * lib/yesno.c (yesno): Document use of stdin.
57847         * modules/yesno-tests (Files): New module.
57848         * tests/test-yesno.c (main): New file.
57849         * tests/test-yesno.sh: Likewise.
57850
57851 2007-08-19  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57854         * lib/fseeko.c (rpl_fseeko): Likewise.
57855         * lib/fseterr.c (fseterr): Likewise.
57856
57857 2007-08-19  Bruno Haible  <bruno@clisp.org>
57858
57859         * tests/test-lseek.c (main): Disable a test for BeOS.
57860         * doc/functions/lseek.texi: Document the BeOS bug.
57861
57862 2007-08-19  Bruno Haible  <bruno@clisp.org>
57863             Eric Blake  <ebb9@byu.net>
57864
57865         * lib/lseek.c: Include <sys/stat.h>.
57866         (rpl_lseek): Add workaround code also for Unix platforms.
57867         Needed for BeOS.
57868         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57869         * doc/functions/lseek.texi: Document BeOS definiency.
57870
57871 2007-08-18  Bruno Haible  <bruno@clisp.org>
57872
57873         * modules/fstrcmp-tests: New file.
57874         * tests/test-fstrcmp.c: New file.
57875
57876 2007-08-18  Bruno Haible  <bruno@clisp.org>
57877
57878         * modules/fstrcmp: New file, from GNU gettext with modifications.
57879         * lib/fstrcmp.h: New file, from GNU gettext.
57880         * lib/fstrcmp.c: New file, from GNU gettext.
57881         * MODULES.html.sh (String handling): Add fstrcmp.
57882
57883 2007-08-18  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57886         'bool'.
57887         (diag, compareseq): Remove const from the ctxt argument.
57888         (USE_HEURISTIC): Undefine at the end.
57889
57890 2007-08-18  Jim Meyering  <jim@meyering.net>
57891
57892         New file: lib/idcache.h
57893         * NEWS: Mention the addition.
57894         * modules/idcache (Files): Add lib/idcache.h
57895         * lib/idcache.c: Include "idcache.h".
57896         Don't include <sys/types.h>.
57897         Add a FIXME comment.
57898         Move file-scoped "static" declarations to the top.
57899         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57900
57901 2007-08-17  Bruno Haible  <bruno@clisp.org>
57902         and Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * MODULES.html.sh: Add diffseq.
57905         * modules/diffseq: New file.
57906         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57907         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57908
57909 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57910
57911         Import changes from coreutils for bootstrap script.
57912
57913         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57914
57915         * build-aux/bootstrap (slurp): Work even in environments where
57916         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57917         current code does not slurp files whose names start with ".", and
57918         this looks like it might be a troublesome area.
57919
57920         2007-07-11  Jim Meyering  <jim@meyering.net>
57921
57922         If there's a GPL vN copyright comment, require that N == 3.
57923
57924         2007-07-08  Jim Meyering  <jim@meyering.net>
57925
57926         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57927         * build-aux/bootstrap (mam_template): Move definition out of loop.
57928
57929         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57930
57931         * build-aux/bootstrap (symlink_to_dir): Rename function from
57932         symlink_to_gnulib.  Add a directory parameter.  Update all
57933         callers.
57934         (cp_mark_as_generated): Also check for -- and link to -- files in
57935         gl/.
57936
57937         2007-07-08  Jim Meyering  <jim@meyering.net>
57938
57939         Adapt to deeper hierarchy in gnulib.
57940         * build-aux/bootstrap (symlink_to_dir): If the destination
57941         directory doesn't exist, create it. This is required at least for
57942         "lib/uniwidth/cjk.h".
57943
57944         2007-05-15  Jim Meyering  <jim@meyering.net>
57945
57946         * build-aux/bootstrap: Now that generated Makefile.am files
57947         are no longer under version control, they must be created at
57948         bootstrap time.
57949
57950 2007-08-14  Ben Pfaff  <blp@gnu.org>
57951
57952         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57953
57954 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57955
57956         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57957         given the changes below.
57958         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57959         even on hosts that have padding bits beyond the supported 64.
57960
57961 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57962
57963         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57964         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57965         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57966         depends on it.
57967         (xstrtol_error): Remove.
57968         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57969         but with a different signature.
57970         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57971         * lib/xstrtol-error.c: Include exitfail.h.
57972         (xstrtol_fatal): New function, with a different signature from the
57973         old xstrtol_error, so that the caller need not worry about passing
57974         in an exit status, or about storage management of the option argument.
57975         (xstrtol_error): Now a static function.  Redo signature to
57976         implement xstrtol_fatal.  Output the correct number of hyphens in
57977         front of the option so that the caller need not worry about
57978         storage management.
57979         (N_): New macro.
57980         (_): Remove; not used now.
57981         * modules/xstrtol: Depend on getopt.
57982         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57983         of old STRTOL_FATAL_ERROR macro.
57984         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57985         of test program.
57986         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57987         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57988
57989 2007-08-08  Eric Blake  <ebb9@byu.net>
57990
57991         * lib/xstrtol-error.c: Add missing include.
57992
57993         Move xstrtol messages into gnulib domain, when --pobase is used.
57994         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57995         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57996         * modules/xstrtol (Files): Distribute new file.
57997         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57998         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57999         * tests/test-xstrtol.c: ...into new file.
58000         * tests/test-xstrtoul.c: Also test xstrtoul.
58001         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58002         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58003         * tests/test-xstrtol.sh: Drive the tests.
58004         * tests/test-xstrtoimax.sh: Likewise.
58005         * tests/test-xstrtoumax.sh: Likewise.
58006         * modules/xstrtol-tests: New module.
58007         * modules/xstrtoimax-tests: Likewise.
58008         * modules/xstrtoumax-tests: Likewise.
58009
58010 2007-08-08  Jim Meyering  <jim@meyering.net>
58011
58012         New function: mfile_name_concat.
58013         * lib/filenamecat.c (mfile_name_concat): New function, just like
58014         file_name_concat, but return NULL upon failure rather than exiting
58015         with a diagnostic.
58016         * lib/filenamecat.h: Declare it.
58017
58018 2007-08-07  Bruno Haible  <bruno@clisp.org>
58019
58020         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58021         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58022         warning from gcc.
58023         Reported by Eric Blake.
58024
58025 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58026
58027         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58028         * modules/crypto/arcfour (License): Likewise.
58029         * modules/crypto/des-tests (License): Likewise.
58030         * modules/crypto/gc-arctwo-tests (License): Likewise.
58031         * modules/crypto/gc-des-tests (License): Likewise.
58032         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58033         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58034         * modules/crypto/gc-md2-tests (License): Likewise.
58035         * modules/crypto/gc-md4-tests (License): Likewise.
58036         * modules/crypto/gc-md5-tests (License): Likewise.
58037         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58038         * modules/crypto/gc-rijndael-tests (License): Likewise.
58039         * modules/crypto/gc-sha1-tests (License): Likewise.
58040         * modules/crypto/gc-tests (License): Likewise.
58041         * modules/crypto/hmac-md5 (License): Likewise.
58042         * modules/crypto/hmac-sha1 (License): Likewise.
58043         * modules/crypto/md2-tests (License): Likewise.
58044         * modules/crypto/md4-tests (License): Likewise.
58045         * modules/crypto/md5 (License): Likewise.
58046         * modules/crypto/rijndael (License): Likewise.
58047         * modules/crypto/sha1 (License): Likewise.
58048         * modules/memxor (License): Likewise.
58049
58050 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58051         and Bruno Haible  <bruno@clisp.org>
58052
58053         * NEWS: Describe interface changes to human, xstrtol.
58054         * lib/human.h: Include <xstrtol.h>.
58055         (human_options): Return enum strtol_error, not int.  Remove
58056         bool arg; take int * instead.
58057         * lib/human.c: Don't include "gettext.h".
58058         (_): Remove; no longer used.
58059         Don't include <xstrtol.h>, since human.h does it.
58060         (human_options): Adjust to abovementioned interface changes.
58061         Do not report error to stderr; that's now the caller's
58062         responsibility.
58063         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58064         interface change.
58065         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58066         Str, Argument_type_string.  All uses changed.  Put " argument"
58067         in diagnostics to make them clearer.  Change wording of suffix
58068         message for clarity.
58069         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58070         Argument_type_string.
58071         (STRTOL_FATAL_WARN): Remove; no longer used.
58072         * modules/human (Depends-on): Remove gettext-h.
58073
58074 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58075
58076         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58077
58078 2007-07-31  Bruno Haible  <bruno@clisp.org>
58079
58080         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58081         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58082         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58083
58084 2007-07-31  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58087         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58088
58089 2007-07-30  Bruno Haible  <bruno@clisp.org>
58090
58091         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58092         * modules/c-ctype (License): Likewise.
58093         * modules/c-strcase (License): Likewise.
58094         * modules/check-version (License): Likewise.
58095         * modules/iconv (License): Likewise.
58096         * modules/iconv_open (License): Likewise.
58097         * modules/read-file (License): Likewise.
58098         * modules/striconv (License): Likewise.
58099         * modules/strverscmp (License): Likewise.
58100         * modules/vasprintf (License): Likewise.
58101         * modules/crypto/des (License): Likewise.
58102         * modules/crypto/gc (License): Likewise.
58103         * modules/crypto/gc-arcfour (License): Likewise.
58104         * modules/crypto/gc-arctwo (License): Likewise.
58105         * modules/crypto/gc-des (License): Likewise.
58106         * modules/crypto/gc-hmac-md5 (License): Likewise.
58107         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58108         * modules/crypto/gc-md2 (License): Likewise.
58109         * modules/crypto/gc-md4 (License): Likewise.
58110         * modules/crypto/gc-md5 (License): Likewise.
58111         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58112         * modules/crypto/gc-random (License): Likewise.
58113         * modules/crypto/gc-rijndael (License): Likewise.
58114         * modules/crypto/gc-sha1 (License): Likewise.
58115         * modules/crypto/md2 (License): Likewise.
58116         * modules/crypto/md4 (License): Likewise.
58117
58118 2007-07-30  Jim Meyering  <jim@meyering.net>
58119
58120         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58121         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58122         it has valid stat data.  This bug would cause du not to count the
58123         sizes of inaccessible directories.
58124         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58125         in <http://bugzilla.redhat.com/250077>.
58126
58127 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58128             Bruno Haible  <bruno@clisp.org>
58129
58130         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58131         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58132         #include_next, gives a diagnostic about it, but reports no error in
58133         the exit code.
58134         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58135
58136 2007-07-24  Ben Pfaff  <blp@gnu.org>
58137
58138         Improve name: "count-one-bits" is better than "popcount".
58139         * MODULES.html.sh: Update name.
58140         * lib/popcount.h: Renamed lib/count-one-bits.h.
58141         (popcount): Renamed count_one_bits.
58142         (popcountl): Renamed count_one_bits_l.
58143         (popcountll): Renamed count_one_bits_ll.
58144         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58145         * modules/popcount: Renamed module/count-one-bits.
58146         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58147         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58148
58149 2007-07-23  Ben Pfaff  <blp@gnu.org>
58150
58151         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58152         better code generation, and add U to large constants to avoid
58153         warnings, in non-GCC case.
58154         Suggested by Bruno Haible.
58155
58156 2007-07-23  Ben Pfaff  <blp@gnu.org>
58157
58158         * lib/popcount.h: Use verify_true instead of if...abort.
58159         * modules/popcount: Depend on verify module.
58160         Suggested by Jim Meyering.
58161
58162 2007-07-23  Bruno Haible  <bruno@clisp.org>
58163
58164         * gnulib-tool (func_import): Create a .cvsignore file also when the
58165         directory is not yet in CVS but the toplevel directory is. When
58166         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58167         Reported by Karl Berry.
58168
58169 2007-07-22  Ben Pfaff  <blp@gnu.org>
58170
58171         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58172         case.
58173         Suggested by Eric Blake.
58174
58175 2007-07-22  Ben Pfaff  <blp@gnu.org>
58176
58177         New module: popcount.
58178         * MODULES.html.sh: Add popcount.
58179         * modules/popcount: New file.
58180         * modules/popcount-tests: New file.
58181         * tests/test-popcount.c: New file.
58182         * lib/popcount.h: New file.
58183         * m4/popcount.m4: New file.
58184
58185 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58186
58187         * build-aux/announce-gen: Update to GPLv3.
58188
58189         * build-aux/config.guess: Update from config.
58190
58191 2007-07-21  Bruno Haible  <bruno@clisp.org>
58192
58193         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58194         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58195
58196 2007-07-20  Jim Meyering  <jim@meyering.net>
58197
58198         * check-module: Diagnose a self-dependency.
58199
58200 2007-07-19  Bruno Haible  <bruno@clisp.org>
58201
58202         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58203         empty.
58204         Reported by Eric Blake.
58205
58206 2007-07-18  Bruno Haible  <bruno@clisp.org>
58207
58208         * gnulib-tool: New options --po-base, --po-domain.
58209         (func_usage): Document them.
58210         (pobase, po_domain): New variables.
58211         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58212         DEFAULT_TEXT_DOMAIN.
58213         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58214         (func_import): Consider pobase and po_domain. Create a po/ directory.
58215         (func_create_testdir): Set pobase and po_domain to empty.
58216         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58217         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58218
58219 2007-07-18  Bruno Haible  <bruno@clisp.org>
58220
58221         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58222         EXTRA_DIST augmentation for files in build-aux/.
58223
58224 2007-07-16  Bruno Haible  <bruno@clisp.org>
58225
58226         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58227         * modules/getdelim (License): Likewise.
58228
58229 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58230
58231         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58232         * modules/d-type (License): Likewise.
58233         * modules/extensions (License): Likewise.
58234         * modules/fnmatch (License): Likewise.
58235         * modules/fseeko (License): Likewise.
58236         * modules/getaddrinfo (License): Likewise.
58237         * modules/getline (License): Likewise.
58238         * modules/getlogin_r (License): Likewise.
58239         * modules/getpass (License): Likewise.
58240         * modules/gettimeofday (License): Likewise.
58241         * modules/glob (License): Likewise.
58242         * modules/inet_ntop (License): Likewise.
58243         * modules/malloc (License): Likewise.
58244         * modules/malloca (License): Likewise.
58245         * modules/memmem (License): Likewise.
58246         * modules/mempcpy (License): Likewise.
58247         * modules/memset (License): Likewise.
58248         * modules/minmax (License): Likewise.
58249         * modules/mktime (License): Likewise.
58250         * modules/netinet_in (License): Likewise.
58251         * modules/pathmax (License): Likewise.
58252         * modules/poll (License): Likewise.
58253         * modules/regex (License): Likewise.
58254         * modules/snprintf (License): Likewise.
58255         * modules/stdbool (License): Likewise.
58256         * modules/stdint (License): Likewise.
58257         * modules/stdio (License): Likewise.
58258         * modules/strcase (License): Likewise.
58259         * modules/strcasestr (License): Likewise.
58260         * modules/strdup (License): Likewise.
58261         * modules/string (License): Likewise.
58262         * modules/strndup (License): Likewise.
58263         * modules/strnlen (License): Likewise.
58264         * modules/strpbrk (License): Likewise.
58265         * modules/strptime (License): Likewise.
58266         * modules/strsep (License): Likewise.
58267         * modules/sys_select (License): Likewise.
58268         * modules/sys_socket (License): Likewise.
58269         * modules/sys_stat (License): Likewise.
58270         * modules/sys_time (License): Likewise.
58271         * modules/time (License): Likewise.
58272         * modules/time_r (License): Likewise.
58273         * modules/timegm (License): Likewise.
58274         * modules/unistd (License): Likewise.
58275         * modules/vsnprintf (License): Likewise.
58276         * modules/wctype (License): Likewise.
58277
58278 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58279
58280         * modules/argz (License): LGPLv2+.
58281
58282 2007-07-15  Karl Berry  <karl@gnu.org>
58283
58284         * doc/gnulib.texi: revise node structure per new fdl.texi.
58285
58286 2007-07-14  Bruno Haible  <bruno@clisp.org>
58287
58288         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58289         the output file.
58290         * lib/uniname/uninames.h: Regenerated.
58291
58292 2007-07-14  Karl Berry  <karl@gnu.org>
58293
58294         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58295         omitting sectioning and index commands.
58296
58297 2007-07-13  Bruno Haible  <bruno@clisp.org>
58298
58299         New gnulib-tool option --more-symlinks.
58300         * gnulib-tool (func_usage): Document --more-symlinks.
58301         (do_copyrights): New variable.
58302         Recognize option --more-symlinks.
58303         (func_import): Don't add a copyright notice transform to
58304         sed_transform_lib_file if do_copyrights is empty.
58305
58306 2007-07-13  Bruno Haible  <bruno@clisp.org>
58307
58308         * lib/vasnprintf.c (decimal_point_char): Define also if
58309         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58310         && !NEED_PRINTF_DIRECTIVE_A.
58311         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58312         Gary V. Vaughan <gary@gnu.org>.
58313
58314 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58315
58316         * lib/inttypes_.h: Undo previous change, since it was fixed
58317         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58318
58319 2007-07-13  Bruno Haible  <bruno@clisp.org>
58320
58321         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58322         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58323
58324 2007-07-13  Jim Meyering  <jim@meyering.net>
58325
58326         df: Don't fail for Tru64's "file-on-file mount".
58327         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58328         so we fall through and use statfs instead.  Details here:
58329         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58330         Reported by Albert Chin.
58331
58332 2007-07-13  Bruno Haible  <bruno@clisp.org>
58333
58334         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58335         * modules/configmake (License): Likewise.
58336         * modules/gettext (License): Likewise.
58337         * modules/gettext-h (License): Likewise.
58338         * modules/include_next (License): Likewise.
58339         * modules/link-warning (License): Likewise.
58340         * modules/localcharset (License): Likewise.
58341         * modules/localename (License): Likewise.
58342         * modules/lock (License): Likewise.
58343         * modules/relocatable-lib-lgpl (License): Likewise.
58344         * modules/size_max (License): Likewise.
58345         * modules/vasnprintf (License): Likewise.
58346         * modules/wchar (License): Likewise.
58347         * modules/xsize (License): Likewise.
58348
58349 2007-07-13  Bruno Haible  <bruno@clisp.org>
58350
58351         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58352         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58353
58354 2007-07-12  Bruno Haible  <bruno@clisp.org>
58355
58356         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58357         in the modules files.
58358
58359 2007-07-11  Karl Berry  <karl@gnu.org>
58360
58361         * MODULES.html.sh (func_module): use
58362          sed -e '\|^'"${includefile}"'$|d'
58363          instead of /.../d, to avoid errors on $includefile's containing /.
58364
58365 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58366
58367         * gnulib-tool (func_import): Avoid duplication of --avoid
58368         statements
58369         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58370         names to `_' in variable names.
58371
58372 2007-07-10  Eric Blake  <ebb9@byu.net>
58373
58374         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58375         * NEWS: Document this change.
58376
58377 2007-07-08  Bruno Haible  <bruno@clisp.org>
58378
58379         Update to Unicode 5.0.
58380         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58381         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58382         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58383         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58384         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58385         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58386         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58387         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58388         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58389         U+10A3F, U+1D242..U+1D244.
58390         (nonspacing_table_ind): Update.
58391         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58392         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58393
58394 2007-07-08  Bruno Haible  <bruno@clisp.org>
58395
58396         Update to Unicode 5.0.
58397         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58398         code transform. Extend the name index field of unicode_name_to_code and
58399         unicode_code_to_name from 16 to 24 bits.
58400         * lib/uniname/uniname.c (unicode_character_name,
58401         unicode_name_character): Add the range 0x12xxx to the code transform.
58402         * lib/uniname/uninames.h: Regenerated.
58403         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58404
58405 2007-07-07  Bruno Haible  <bruno@clisp.org>
58406
58407         * modules/wcwidth-tests: New file.
58408         * tests/test-wcwidth.c: New file.
58409
58410         Work around MacOS X wcwidth() bug.
58411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58412         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58413         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58414         original wcwidth in non-UTF-8 locales.
58415         * modules/wcwidth (Depends-on): Add localcharset, streq,
58416         uniwidth/width.
58417         * doc/functions/wcwidth.texi: Update.
58418
58419 2007-07-07  Bruno Haible  <bruno@clisp.org>
58420
58421         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58422         (wcwidth): New declaration.
58423         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58424         macros.
58425         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58426         here. Prepare for creating <wchar.h> unconditionally.
58427         * modules/wchar (Depends-on): Add link-warning.
58428         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58429         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58430         * lib/wcwidth.h: Remove file.
58431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58432         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58433         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58434         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58435         (Include): Replace wcwidth.h with <wchar.h>.
58436         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58437         * lib/mbchar.h: Don't include wcwidth.h.
58438         * lib/mbswidth.c: Likewise.
58439         * NEWS: Mention the change.
58440
58441 2007-07-07  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58444         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58445         definition with an external declaration.
58446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58447         defined as a function. Remove AC_C_INLINE requirement.
58448         * modules/wcwidth (Files): Add lib/wcwidth.c.
58449         (Makefile.am): Remove redundant statement.
58450
58451 2007-07-07  Bruno Haible  <bruno@clisp.org>
58452
58453         * MODULES.html.sh (Unicode string functions): Add the new modules.
58454
58455         * tests/uniwidth/test-u32-strwidth.c: New file.
58456         * modules/uniwidth/u32-strwidth-tests: New file.
58457
58458         * lib/uniwidth/u32-strwidth.c: New file.
58459         * modules/uniwidth/u32-strwidth: New file.
58460
58461         * tests/uniwidth/test-u16-strwidth.c: New file.
58462         * modules/uniwidth/u16-strwidth-tests: New file.
58463
58464         * lib/uniwidth/u16-strwidth.c: New file.
58465         * modules/uniwidth/u16-strwidth: New file.
58466
58467         * tests/uniwidth/test-u8-strwidth.c: New file.
58468         * modules/uniwidth/u8-strwidth-tests: New file.
58469
58470         * lib/uniwidth/u8-strwidth.c: New file.
58471         * modules/uniwidth/u8-strwidth: New file.
58472
58473         * tests/uniwidth/test-u32-width.c: New file.
58474         * modules/uniwidth/u32-width-tests: New file.
58475
58476         * lib/uniwidth/u32-width.c: New file.
58477         * modules/uniwidth/u32-width: New file.
58478
58479         * tests/uniwidth/test-u16-width.c: New file.
58480         * modules/uniwidth/u16-width-tests: New file.
58481
58482         * lib/uniwidth/u16-width.c: New file.
58483         * modules/uniwidth/u16-width: New file.
58484
58485         * tests/uniwidth/test-u8-width.c: New file.
58486         * modules/uniwidth/u8-width-tests: New file.
58487
58488         * lib/uniwidth/u8-width.c: New file.
58489         * modules/uniwidth/u8-width: New file.
58490
58491         * tests/uniwidth/test-uc_width.c: New file.
58492         * modules/uniwidth/width-tests: New file.
58493
58494         * lib/uniwidth/width.c: New file, from GNU libiconv.
58495         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58496         * modules/uniwidth/width: New file.
58497
58498         * lib/uniwidth.h: New file, from GNU libiconv.
58499         * modules/uniwidth/base: New file.
58500
58501 2007-07-07  Bruno Haible  <bruno@clisp.org>
58502
58503         * lib/uniname.h: New file, from GNU gettext.
58504         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58505         * lib/uniname/uninames.h: New file, from GNU gettext.
58506         * lib/uniname/uniname.c: New file, from GNU gettext.
58507         * tests/uniname/test-uninames.sh: New file.
58508         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58509         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58510         * modules/uniname/base: New file.
58511         * modules/uniname/uniname: New file.
58512         * modules/uniname/uniname-tests: New file.
58513         * MODULES.html.sh (Unicode string functions): Add the new modules.
58514
58515 2007-07-06  Bruno Haible  <bruno@clisp.org>
58516
58517         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58518
58519 2007-07-06  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58522         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58523         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58524         include <sys/time.h>.
58525         Reported by Eric Blake.
58526
58527 2007-07-06  Eric Blake  <ebb9@byu.net>
58528
58529         Fix testing canonicalize on cygwin.
58530         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58531         Revert patch from 2007-06-19.
58532         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58533         canonicalize module is also in use.
58534         * tests/test-canonicalize.c: New file.
58535         * tests/test-canonicalize.sh: Likewise.
58536         * modules/canonicalize-tests: Likewise.
58537
58538 2007-07-06  Jim Meyering  <jim@meyering.net>
58539
58540         * lib/getugroups.c (getugroups): Detect getgrent failure.
58541         Adjust comment to reflect reality: this function may return -1.
58542
58543 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58544
58545         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58546         the new TP address.
58547         (usage): Fix typo
58548         (gnulib_mk): New variable.
58549
58550 2007-07-05  Jim Meyering  <jim@meyering.net>
58551
58552         Don't let endgrent clobber errno, no matter how improbable.
58553         * lib/getugroups.c (getugroups): Save and restore errno around
58554         endgrent call.
58555
58556         Close the group DB even when failing with 2^31 or more members.
58557         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58558
58559 2007-07-04  Jim Meyering  <jim@meyering.net>
58560
58561         * lib/getugroups.h: New file.
58562         * lib/getugroups.c: Include "getugroups.h".
58563         Remove uses of "register" keyword.
58564         Move local variable, "cp", down into scope where used.
58565         Give "username" parameter the "const" attribute.
58566         * modules/getugroups (Files): Add lib/getugroups.h
58567
58568 2007-07-04  Karl Berry  <karl@gnu.org>
58569
58570         * MODULES.html.sh (func_all_modules): Complete rename of
58571         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58572
58573 2007-07-02  Bruno Haible  <bruno@clisp.org>
58574
58575         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58576         mode, when inttypes.h comes from gnulib.
58577         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58578
58579 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58580
58581         * NEWS: Mention lgpl module name change.
58582
58583         * modules/lgpl-2.1: Renamed from lgpl.
58584
58585         * NEWS: Mention gpl module name change.
58586
58587         * modules/gpl-3.0: New file, based on gpl-2.0.
58588
58589         * modules/gpl-2.0: Renamed from gpl.
58590
58591         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58592         doc/gpl-2.0.texi.
58593
58594 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58597         #define __STDC_LIMIT_MACROS temporarily while including
58598         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58599         Problem reported by Joel E. Denny in
58600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58601
58602 2007-07-01  Bruno Haible  <bruno@clisp.org>
58603
58604         * lib/unistdio.h: New file.
58605         * lib/unistdio/u-asnprintf.h: New file.
58606         * lib/unistdio/u-asprintf.h: New file.
58607         * lib/unistdio/u-printf-args.c: New file.
58608         * lib/unistdio/u-printf-args.h: New file.
58609         * lib/unistdio/u-printf-parse.h: New file.
58610         * lib/unistdio/u-snprintf.h: New file.
58611         * lib/unistdio/u-sprintf.h: New file.
58612         * lib/unistdio/u-vasprintf.h: New file.
58613         * lib/unistdio/u-vsnprintf.h: New file.
58614         * lib/unistdio/u-vsprintf.h: New file.
58615         * lib/unistdio/ulc-asnprintf.c: New file.
58616         * lib/unistdio/ulc-asprintf.c: New file.
58617         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58618         * lib/unistdio/ulc-printf-parse.c: New file.
58619         * lib/unistdio/ulc-snprintf.c: New file.
58620         * lib/unistdio/ulc-sprintf.c: New file.
58621         * lib/unistdio/ulc-vasnprintf.c: New file.
58622         * lib/unistdio/ulc-vasprintf.c: New file.
58623         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58624         * lib/unistdio/ulc-vsnprintf.c: New file.
58625         * lib/unistdio/ulc-vsprintf.c: New file.
58626         * lib/unistdio/u8-asnprintf.c: New file.
58627         * lib/unistdio/u8-asprintf.c: New file.
58628         * lib/unistdio/u8-printf-parse.c: New file.
58629         * lib/unistdio/u8-snprintf.c: New file.
58630         * lib/unistdio/u8-sprintf.c: New file.
58631         * lib/unistdio/u8-vasnprintf.c: New file.
58632         * lib/unistdio/u8-vasprintf.c: New file.
58633         * lib/unistdio/u8-vsnprintf.c: New file.
58634         * lib/unistdio/u8-vsprintf.c: New file.
58635         * lib/unistdio/u8-u8-asnprintf.c: New file.
58636         * lib/unistdio/u8-u8-asprintf.c: New file.
58637         * lib/unistdio/u8-u8-snprintf.c: New file.
58638         * lib/unistdio/u8-u8-sprintf.c: New file.
58639         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58640         * lib/unistdio/u8-u8-vasprintf.c: New file.
58641         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58642         * lib/unistdio/u8-u8-vsprintf.c: New file.
58643         * lib/unistdio/u16-asnprintf.c: New file.
58644         * lib/unistdio/u16-asprintf.c: New file.
58645         * lib/unistdio/u16-printf-parse.c: New file.
58646         * lib/unistdio/u16-snprintf.c: New file.
58647         * lib/unistdio/u16-sprintf.c: New file.
58648         * lib/unistdio/u16-vasnprintf.c: New file.
58649         * lib/unistdio/u16-vasprintf.c: New file.
58650         * lib/unistdio/u16-vsnprintf.c: New file.
58651         * lib/unistdio/u16-vsprintf.c: New file.
58652         * lib/unistdio/u16-u16-asnprintf.c: New file.
58653         * lib/unistdio/u16-u16-asprintf.c: New file.
58654         * lib/unistdio/u16-u16-snprintf.c: New file.
58655         * lib/unistdio/u16-u16-sprintf.c: New file.
58656         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58657         * lib/unistdio/u16-u16-vasprintf.c: New file.
58658         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58659         * lib/unistdio/u16-u16-vsprintf.c: New file.
58660         * lib/unistdio/u32-asnprintf.c: New file.
58661         * lib/unistdio/u32-asprintf.c: New file.
58662         * lib/unistdio/u32-printf-parse.c: New file.
58663         * lib/unistdio/u32-snprintf.c: New file.
58664         * lib/unistdio/u32-sprintf.c: New file.
58665         * lib/unistdio/u32-vasnprintf.c: New file.
58666         * lib/unistdio/u32-vasprintf.c: New file.
58667         * lib/unistdio/u32-vsnprintf.c: New file.
58668         * lib/unistdio/u32-vsprintf.c: New file.
58669         * lib/unistdio/u32-u32-asnprintf.c: New file.
58670         * lib/unistdio/u32-u32-asprintf.c: New file.
58671         * lib/unistdio/u32-u32-snprintf.c: New file.
58672         * lib/unistdio/u32-u32-sprintf.c: New file.
58673         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58674         * lib/unistdio/u32-u32-vasprintf.c: New file.
58675         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58676         * lib/unistdio/u32-u32-vsprintf.c: New file.
58677         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58678         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58679         * tests/unistdio/test-ulc-printf1.h: New file.
58680         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58681         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58682         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58683         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58684         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58685         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58686         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58687         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58688         * tests/unistdio/test-u8-asnprintf1.c: New file.
58689         * tests/unistdio/test-u8-asnprintf1.h: New file.
58690         * tests/unistdio/test-u8-printf1.h: New file.
58691         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58692         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58693         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58694         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58695         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58696         * tests/unistdio/test-u8-vasprintf1.c: New file.
58697         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58698         * tests/unistdio/test-u8-vsprintf1.c: New file.
58699         * tests/unistdio/test-u16-asnprintf1.c: New file.
58700         * tests/unistdio/test-u16-asnprintf1.h: New file.
58701         * tests/unistdio/test-u16-printf1.h: New file.
58702         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58703         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58704         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58705         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58706         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58707         * tests/unistdio/test-u16-vasprintf1.c: New file.
58708         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58709         * tests/unistdio/test-u16-vsprintf1.c: New file.
58710         * tests/unistdio/test-u32-asnprintf1.c: New file.
58711         * tests/unistdio/test-u32-asnprintf1.h: New file.
58712         * tests/unistdio/test-u32-printf1.h: New file.
58713         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58714         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58715         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58716         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58717         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58718         * tests/unistdio/test-u32-vasprintf1.c: New file.
58719         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58720         * tests/unistdio/test-u32-vsprintf1.c: New file.
58721         * modules/unistdio/base: New file.
58722         * modules/unistdio/u-printf-args: New file.
58723         * modules/unistdio/ulc-asnprintf: New file.
58724         * modules/unistdio/ulc-asprintf: New file.
58725         * modules/unistdio/ulc-fprintf: New file.
58726         * modules/unistdio/ulc-printf-parse: New file.
58727         * modules/unistdio/ulc-snprintf: New file.
58728         * modules/unistdio/ulc-sprintf: New file.
58729         * modules/unistdio/ulc-vasnprintf: New file.
58730         * modules/unistdio/ulc-vasprintf: New file.
58731         * modules/unistdio/ulc-vfprintf: New file.
58732         * modules/unistdio/ulc-vsnprintf: New file.
58733         * modules/unistdio/ulc-vsprintf: New file.
58734         * modules/unistdio/u8-asnprintf: New file.
58735         * modules/unistdio/u8-asprintf: New file.
58736         * modules/unistdio/u8-printf-parse: New file.
58737         * modules/unistdio/u8-snprintf: New file.
58738         * modules/unistdio/u8-sprintf: New file.
58739         * modules/unistdio/u8-vasnprintf: New file.
58740         * modules/unistdio/u8-vasprintf: New file.
58741         * modules/unistdio/u8-vsnprintf: New file.
58742         * modules/unistdio/u8-vsprintf: New file.
58743         * modules/unistdio/u8-u8-asnprintf: New file.
58744         * modules/unistdio/u8-u8-asprintf: New file.
58745         * modules/unistdio/u8-u8-snprintf: New file.
58746         * modules/unistdio/u8-u8-sprintf: New file.
58747         * modules/unistdio/u8-u8-vasnprintf: New file.
58748         * modules/unistdio/u8-u8-vasprintf: New file.
58749         * modules/unistdio/u8-u8-vsnprintf: New file.
58750         * modules/unistdio/u8-u8-vsprintf: New file.
58751         * modules/unistdio/u16-asnprintf: New file.
58752         * modules/unistdio/u16-asprintf: New file.
58753         * modules/unistdio/u16-printf-parse: New file.
58754         * modules/unistdio/u16-snprintf: New file.
58755         * modules/unistdio/u16-sprintf: New file.
58756         * modules/unistdio/u16-vasnprintf: New file.
58757         * modules/unistdio/u16-vasprintf: New file.
58758         * modules/unistdio/u16-vsnprintf: New file.
58759         * modules/unistdio/u16-vsprintf: New file.
58760         * modules/unistdio/u16-u16-asnprintf: New file.
58761         * modules/unistdio/u16-u16-asprintf: New file.
58762         * modules/unistdio/u16-u16-snprintf: New file.
58763         * modules/unistdio/u16-u16-sprintf: New file.
58764         * modules/unistdio/u16-u16-vasnprintf: New file.
58765         * modules/unistdio/u16-u16-vasprintf: New file.
58766         * modules/unistdio/u16-u16-vsnprintf: New file.
58767         * modules/unistdio/u16-u16-vsprintf: New file.
58768         * modules/unistdio/u32-asnprintf: New file.
58769         * modules/unistdio/u32-asprintf: New file.
58770         * modules/unistdio/u32-printf-parse: New file.
58771         * modules/unistdio/u32-snprintf: New file.
58772         * modules/unistdio/u32-sprintf: New file.
58773         * modules/unistdio/u32-vasnprintf: New file.
58774         * modules/unistdio/u32-vasprintf: New file.
58775         * modules/unistdio/u32-vsnprintf: New file.
58776         * modules/unistdio/u32-vsprintf: New file.
58777         * modules/unistdio/u32-u32-asnprintf: New file.
58778         * modules/unistdio/u32-u32-asprintf: New file.
58779         * modules/unistdio/u32-u32-snprintf: New file.
58780         * modules/unistdio/u32-u32-sprintf: New file.
58781         * modules/unistdio/u32-u32-vasnprintf: New file.
58782         * modules/unistdio/u32-u32-vasprintf: New file.
58783         * modules/unistdio/u32-u32-vsnprintf: New file.
58784         * modules/unistdio/u32-u32-vsprintf: New file.
58785         * modules/unistdio/ulc-asnprintf-tests: New file.
58786         * modules/unistdio/ulc-vasnprintf-tests: New file.
58787         * modules/unistdio/ulc-vasprintf-tests: New file.
58788         * modules/unistdio/ulc-vsnprintf-tests: New file.
58789         * modules/unistdio/ulc-vsprintf-tests: New file.
58790         * modules/unistdio/u8-asnprintf-tests: New file.
58791         * modules/unistdio/u8-vasnprintf-tests: New file.
58792         * modules/unistdio/u8-vasprintf-tests: New file.
58793         * modules/unistdio/u8-vsnprintf-tests: New file.
58794         * modules/unistdio/u8-vsprintf-tests: New file.
58795         * modules/unistdio/u16-asnprintf-tests: New file.
58796         * modules/unistdio/u16-vasnprintf-tests: New file.
58797         * modules/unistdio/u16-vasprintf-tests: New file.
58798         * modules/unistdio/u16-vsnprintf-tests: New file.
58799         * modules/unistdio/u16-vsprintf-tests: New file.
58800         * modules/unistdio/u32-asnprintf-tests: New file.
58801         * modules/unistdio/u32-vasnprintf-tests: New file.
58802         * modules/unistdio/u32-vasprintf-tests: New file.
58803         * modules/unistdio/u32-vsnprintf-tests: New file.
58804         * modules/unistdio/u32-vsprintf-tests: New file.
58805         * MODULES.html.sh (Unicode string functions): Add the new modules.
58806
58807 2007-07-01  Bruno Haible  <bruno@clisp.org>
58808
58809         * lib/sprintf.c (sprintf): Limit the available length estimation,
58810         to avoid address wraparound.
58811         * lib/vsprintf.c (vsprintf): Likewise.
58812         * modules/sprintf-posix (Dependencies): Add stdint.
58813         * modules/vsprintf-posix (Dependencies): Likewise.
58814
58815 2007-07-01  Bruno Haible  <bruno@clisp.org>
58816
58817         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58818         Windows PATH as well. Conservative double-quoting. Comments.
58819
58820 2007-07-01  Bruno Haible  <bruno@clisp.org>
58821             Eric Blake  <ebb9@byu.net>
58822             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58823
58824         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58825         empty components in $PATH, denoting '.'.
58826
58827 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58828
58829         * gnulib-tool: Fix indentation.
58830         (func_create_megatestdir): Likewise.
58831         Report by Bruno Haible.
58832
58833 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58834
58835         Sync from Automake.
58836         * build-aux/gnupload: Fix shell portability issues with for loops.
58837         Report by Karl Berry.
58838
58839 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58840
58841         * build-aux/maint.mk (POURL): Use translationproject.org.
58842
58843 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58844             Bruno Haible  <bruno@clisp.org>
58845
58846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58847         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58848         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58849         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58850         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58851
58852 2007-06-27  Bruno Haible  <bruno@clisp.org>
58853
58854         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58855         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58856
58857 2007-06-26  Karl Berry  <karl@gnu.org>
58858
58859         * MODULES.html.sh: remove xreadlink-with-size.
58860
58861 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58864         method that I hope also handles the double-include problem noted
58865         by Bruno Haible in
58866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58867
58868 2007-06-23  Bruno Haible  <bruno@clisp.org>
58869
58870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58871         Don't let the 'mostlyclean' target fail if the last subdirectory could
58872         not be removed.
58873         Reported by Karl Berry.
58874
58875 2007-06-23  Bruno Haible  <bruno@clisp.org>
58876
58877         * gnulib-tool (echo): Add a speedier workaround for ksh.
58878         * tests/test-echo.sh: Likewise.
58879
58880 2007-06-23  Bruno Haible  <bruno@clisp.org>
58881
58882         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58883         * tests/test-echo.sh: Likewise.
58884
58885 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58886
58887         * gnulib-tool (IFS): Initialize early, so we don't set it to
58888         empty later.
58889         (self_abspathname): Rewrite algorithm to set it, reindent.
58890         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58891         (func_create_megatestdir): Merge some sed scripts.
58892
58893 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58896         exposed by Sun Studio 11 cc on Solaris 8.
58897
58898 2007-06-22  Bruno Haible  <bruno@clisp.org>
58899
58900         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58901         backslashes.
58902         * tests/test-echo.sh: New file.
58903
58904 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58905
58906         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58907         simplify `sed_replace_build_aux' scripts, they are portable but
58908         echoing them with `echo' is not.
58909         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58910
58911 2007-06-21  Karl Berry  <karl@gnu.org>
58912
58913         * config/srclist.txt: guess we can't handle the licenses via
58914         srclist at the moment.
58915
58916 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * MODULES.html.sh: Add include_next.
58919         * modules/include_next: New file.
58920
58921 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58924         INCLUDE_NEXT.
58925         (gl_CHECK_NEXT_HEADERS): New macro.
58926         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58927         the obsolescent gl_ABSOLUTE_HEADER.
58928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58929         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58930         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58931         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58932         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58933         * m4/math_h.m4 (gl_MATH_H): Likewise.
58934         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58935         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58936         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58937         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58938         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58939         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58940         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58941         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58942         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58944         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58945         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58946         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58947         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58948         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58949         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58950         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58951         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58952         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58953         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58954         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58955         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58956         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58957         * lib/float_.h: Likewise.
58958         * lib/inttypes_.h: Likewise.
58959         * lib/math_.h: Likewise.
58960         * lib/search_.h: Likewise.
58961         * lib/signal_.h: Likewise.
58962         * lib/stdint_.h: Likewise.
58963         * lib/stdio_.h: Likewise.
58964         * lib/stdlib_.h: Likewise.
58965         * lib/string_.h: Likewise.
58966         * lib/sys_stat_.h: Likewise.
58967         * lib/sys_time_.h: Likewise.
58968         * lib/time_.h: Likewise.
58969         * lib/unistd_.h: Likewise.
58970         * lib/wchar_.h: Likewise.
58971         * lib/wctype_.h: Likewise.
58972         * lib/dirent_.h: Likewise.
58973         * lib/iconv_.h: Likewise.
58974         * lib/locale_.h: Likewise.
58975         * lib/netinet_in_.h: Likewise.
58976         * lib/sys_select_.h: Likewise.
58977         * lib/sys_socket_.h: Likewise.
58978         * lib/sysexits_.h: Likewise.
58979         * modules/fcntl (Depends-on): Depend on include_next, not
58980         absolute_header.
58981         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58982         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58983         * modules/fchdir: Likewise.
58984         * modules/float: Likewise.
58985         * modules/iconv_open: Likewise.
58986         * modules/inttypes: Likewise.
58987         * modules/locale: Likewise.
58988         * modules/math: Likewise.
58989         * modules/netinet_in: Likewise.
58990         * modules/search: Likewise.
58991         * modules/signal: Likewise.
58992         * modules/stdint: Likewise.
58993         * modules/stdio: Likewise.
58994         * modules/stdlib: Likewise.
58995         * modules/string: Likewise.
58996         * modules/sys_select: Likewise.
58997         * modules/sys_socket: Likewise.
58998         * modules/sys_stat: Likewise.
58999         * modules/sys_time: Likewise.
59000         * modules/sysexits: Likewise.
59001         * modules/time: Likewise.
59002         * modules/unistd: Likewise.
59003         * modules/wchar: Likewise.
59004         * modules/wctype: Likewise.
59005         * modules/sys_stat: Change maintainer to "all".
59006         * modules/unistd: Likewise.
59007
59008 2007-06-20  Karl Berry  <karl@gnu.org>
59009
59010         * config/srclist.txt: track www changes in license files.
59011
59012 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59013
59014         * build-aux/bootstrap: Remove stray dot.
59015         Make sure build_aux settings are honored when linking
59016         gnulib_extra_files.
59017
59018 2007-06-19  Eric Blake  <ebb9@byu.net>
59019
59020         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59021         Allow compilation on cygwin.
59022
59023 2007-06-19  Jim Meyering  <jim@meyering.net>
59024
59025         xreadlink-with-size: Remove module.  No longer used.
59026         Ex-callers now use xreadlink or mreadlink-with-size.
59027         * modules/xreadlink-with-size: Remove module.
59028         * lib/xreadlink-with-size.c: Remove file.
59029         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59030         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59031         just before the function definition *is* accurate.
59032
59033         Eliminate one way canonicalize_filename_mode could exit.
59034         * lib/canonicalize.c (canonicalize_filename_mode):
59035         Use mreadlink_with_size, not xreadlink_with_size.
59036
59037 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59038
59039         Detect porting problems to FreeBSD/arm, which has time_t wider than
59040         long int.  Original problem reported for GNU diff by Xin Li in
59041         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59042         * modules/getdate (Depends-on): Add intprops, verify.
59043         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59044         is an integer type no wider than long int.
59045
59046 2007-06-18  Jim Meyering  <jim@meyering.net>
59047
59048         New module: mreadlink-with-size.
59049         * MODULES.html.sh: Add mreadlink-with-size.
59050         * modules/mreadlink-with-size: New module
59051         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59052         not xreadlink-with-size.
59053         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59054
59055 2007-06-16  Bruno Haible  <bruno@clisp.org>
59056
59057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59058         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59059         Reported by Gary V. Vaughan <gary@gnu.org>.
59060
59061 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59062
59063         Revamp lchown so that it lives in unistd.h where it belongs.
59064         * lib/lchown.h: Remove.
59065         * lib/dirchownmod.c: Don't include lib/lchown.h.
59066         * lib/fchownat.c: Likewise.
59067         * lib/openat.c: Likewise.
59068         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59069         does not follow symlinks.
59070         (EOPNOTSUPP): Define if not defined.
59071         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59072         is defined to 0.
59073         (lchown): New decl.
59074         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59075         Do not check for lchown decl.
59076         Set REPLACE_LCHOWN.
59077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59078         REPLACE_LCHOWN.
59079         * modules/chown: Make it clear it follows symlinks.
59080         * modules/lchown: Make it clear it doesn't follow symlinks.
59081         (Files): Remove lib/lchown.h
59082         (Depends-on): Add unistd.
59083         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59084         (Include): Include <unistd.h>, not "lchown.h".
59085         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59086         REPLACE_LCHOWN.
59087
59088 2007-06-15  Jim Meyering  <jim@meyering.net>
59089
59090         Change license (GPL to LGPL) of fsusage and dependents.
59091         * modules/fsusage (License): Change to LGPL.
59092         * modules/full-read (License): Likewise.
59093         * modules/full-write (License): Likewise.
59094         * modules/safe-read (License): Likewise.
59095         * modules/safe-write (License): Likewise.
59096
59097 2007-06-14  Ben Pfaff  <blp@gnu.org>
59098
59099         Missing part of allocsa -> malloca transition.
59100         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59101         gl_MALLOCA.
59102
59103 2007-06-12  Bruno Haible  <bruno@clisp.org>
59104
59105         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59106         to ia64, x86_64, i386.
59107         Reported by Eric Blake.
59108
59109 2007-06-12  Bruno Haible  <bruno@clisp.org>
59110
59111         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59112         cross-compiling to x86_64.
59113
59114 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59117         glitch reported by Ralf Wildenhues in
59118         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59119
59120         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59121         Vin Shelton.
59122
59123 2007-06-11  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59126         replacement string.
59127         Reported by Eric Blake.
59128
59129 2007-06-10  Bruno Haible  <bruno@clisp.org>
59130
59131         Prepare vasnprintf code for use with Unicode strings.
59132         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59133         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59134         TYPE_U32_STRING.
59135         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59136         a_u32_string variants.
59137         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59138         * lib/printf-args.c: Don't include config.h and the specification
59139         header if PRINTF_FETCHARGS is already defined.
59140         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59141         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59142         TYPE_U16_STRING, TYPE_U32_STRING.
59143         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59144         u16_directive, u16_directives, u32_directive, u32_directives): New
59145         types.
59146         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59147         New declarations.
59148         * lib/printf-parse.c: Don't include config.h and the specification
59149         header if PRINTF_PARSE is already defined. Eliminate the set of
59150         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59151         them now. Include c-ctype.h.
59152         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59153         directive and CHAR_T_ONLY_ASCII.
59154         * lib/vasnprintf.c: Don't include config.h and the specification header
59155         if VASNPRINTF is already defined.
59156         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59157         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59158         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59159         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59160         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59161         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59162         code accordingly.
59163         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59164         pad_ourselves also in this case, with the 'c' and 's' directives, and
59165         with a different notion of "width".
59166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59167
59168 2007-06-10  Bruno Haible  <bruno@clisp.org>
59169
59170         * modules/unistr/u32-mbsnlen: New file.
59171         * lib/unistr/u32-mbsnlen.c: New file.
59172
59173         * modules/unistr/u16-mbsnlen: New file.
59174         * lib/unistr/u16-mbsnlen.c: New file.
59175
59176         * modules/unistr/u8-mbsnlen: New file.
59177         * lib/unistr/u8-mbsnlen.c: New file.
59178
59179         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59180         declarations.
59181
59182 2007-06-10  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/string_.h (mbsnlen): New declaration.
59185         * lib/mbsnlen.c: New file.
59186         * m4/mbsnlen.m4: New file.
59187         * modules/mbsnlen: New file.
59188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59189         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59190         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59191
59192 2007-06-10  Bruno Haible  <bruno@clisp.org>
59193
59194         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59195
59196 2007-06-10  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59199         * lib/mbuiter.h: Likewise.
59200
59201 2007-06-10  Bruno Haible  <bruno@clisp.org>
59202
59203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59204         declaration.
59205
59206 2007-06-10  Karl Berry  <karl@gnu.org>
59207
59208         * config/srclist.txt: remove gettext entries, Bruno prefers
59209         to update individually.
59210
59211 2007-06-10  Bruno Haible  <bruno@clisp.org>
59212
59213         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59214         'maxlen'. Ensure only length + width bytes are allocated, not
59215         length + 1 + width.
59216
59217 2007-06-09  Bruno Haible  <bruno@clisp.org>
59218
59219         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59220         (CHAR_T): Remove macro.
59221         (VASNPRINTF): Update.
59222
59223 2007-06-09  Bruno Haible  <bruno@clisp.org>
59224
59225         * MODULES.html.sh (Unicode string functions): Add the new modules.
59226
59227         * modules/uniconv/u32-conv-to-enc: New file.
59228         * lib/uniconv/u32-conv-to-enc.c: New file.
59229         * modules/uniconv/u32-conv-to-enc-tests: New file.
59230         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59231
59232         * modules/uniconv/u16-conv-to-enc: New file.
59233         * lib/uniconv/u16-conv-to-enc.c: New file.
59234         * lib/uniconv/u-conv-to-enc.h: New file.
59235         * modules/uniconv/u16-conv-to-enc-tests: New file.
59236         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59237
59238         * modules/uniconv/u8-conv-to-enc: New file.
59239         * lib/uniconv/u8-conv-to-enc.c: New file.
59240         * modules/uniconv/u8-conv-to-enc-tests: New file.
59241         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59242
59243         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59244         u32_conv_to_encoding): New declarations.
59245
59246 2007-06-09  Bruno Haible  <bruno@clisp.org>
59247
59248         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59249
59250 2007-06-09  Bruno Haible  <bruno@clisp.org>
59251
59252         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59253         * modules/malloca: Renamed from modules/allocsa, updated.
59254         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59255         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59256         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59257         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59258         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59259         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59260         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59261         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59262         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59263         * modules/c-strcasestr (Depends-on): Update.
59264         * lib/c-strcasestr.c: Update.
59265         * modules/c-strstr (Depends-on): Update.
59266         * lib/c-strstr.c: Update.
59267         * modules/canonicalize-lgpl (Depends-on): Update.
59268         * lib/canonicalize-lgpl.c: Update.
59269         * modules/clean-temp (Depends-on): Update.
59270         * lib/clean-temp.c: Update.
59271         * modules/csharpcomp (Depends-on): Update.
59272         * lib/csharpcomp.c: Update.
59273         * modules/csharpexec (Depends-on): Update.
59274         * lib/csharpexec.c: Update.
59275         * modules/javacomp (Depends-on): Update.
59276         * lib/javacomp.c: Update.
59277         * modules/javaexec (Depends-on): Update.
59278         * lib/javaexec.c: Update.
59279         * modules/mbscasestr (Depends-on): Update.
59280         * lib/mbscasestr.c: Update.
59281         * modules/mbsstr (Depends-on): Update.
59282         * lib/mbsstr.c: Update.
59283         * modules/setenv (Depends-on): Update.
59284         * lib/setenv.c: Update.
59285         * modules/strcasestr (Depends-on): Update.
59286         * lib/strcasestr.c: Update.
59287         * modules/striconveha (Depends-on): Update.
59288         * lib/striconveha.c: Update.
59289         * modules/relocatable-prog-wrapper (Files): Update.
59290         * lib/relocwrapper.c: Update.
59291         * build-aux/install-reloc: Update.
59292         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59293
59294 2007-06-08  Bruno Haible  <bruno@clisp.org>
59295
59296         Port to uClibc.
59297         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59298         * lib/fpurge.c (fpurge): Likewise.
59299         * lib/freading.c (freading): Likewise.
59300         * lib/fseeko.c (rpl_fseeko): Likewise.
59301         * lib/fseterr.c (fseterr): Likewise.
59302         * lib/fwriting.c (fwriting): Likewise.
59303         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59304
59305 2007-06-08  Bruno Haible  <bruno@clisp.org>
59306
59307         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59308         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59309         * modules/gettext (Files): Add m4/intlmacosx.m4.
59310
59311 2007-06-07  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/localename-tests: New file.
59314         * tests/test-localename.c: New file.
59315
59316         New module 'localename'.
59317         * lib/localename.h: New file.
59318         * lib/localename.c: New file, from GNU gettext.
59319         * m4/localename.m4: New file.
59320         * modules/localename: New file.
59321
59322 2007-06-07  Bruno Haible  <bruno@clisp.org>
59323
59324         Work around the lack of <wchar.h> on some builds of uClibc.
59325         * doc/headers/wchar.texi: Update.
59326         * lib/wchar_.h: Include <wchar.h> only if it exists.
59327         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59328         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59329         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59330         doesn't exist.
59331         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59332         * modules/mbfile (Depends-on): Add wchar.
59333         * modules/mbiter (Depends-on): Likewise.
59334         * modules/mbuiter (Depends-on): Likewise.
59335         Reported by Simon Josefsson.
59336
59337 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59338
59339         Work around problem reported by Steven M. Schweda in
59340         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59341         Tru64 5.1B with the Compaq compiler environment installed declares
59342         an 'isblank' function but does not define it in the C library.
59343         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59344         * lib/regex_internal.h (isblank): Likewise.
59345         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59346         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59347
59348 2007-06-05  Bruno Haible  <bruno@clisp.org>
59349
59350         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59351         ia64.
59352         * modules/printf-safe: New file.
59353         * modules/fprintf-posix (Depends-on): Add printf-safe.
59354         * modules/printf-posix (Depends-on): Likewise.
59355         * modules/snprintf-posix (Depends-on): Likewise.
59356         * modules/sprintf-posix (Depends-on): Likewise.
59357         * modules/vasnprintf-posix (Depends-on): Likewise.
59358         * modules/vasprintf-posix (Depends-on): Likewise.
59359         * modules/vfprintf-posix (Depends-on): Likewise.
59360         * modules/vprintf-posix (Depends-on): Likewise.
59361         * modules/vsnprintf-posix (Depends-on): Likewise.
59362         * modules/vsprintf-posix (Depends-on): Likewise.
59363         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59364         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59365         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59366         "no" on i386, x86_64, ia64.
59367         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59368         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59369         on i386, x86_64, ia64.
59370         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59371         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59372         on i386, x86_64, ia64.
59373         * tests/test-vasnprintf-posix.c: Include float.h.
59374         (LDBL80_WORDS): New macro.
59375         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59376         on i386, x86_64, ia64.
59377         * tests/test-vasprintf-posix.c: Include float.h.
59378         (LDBL80_WORDS): New macro.
59379         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59380         on i386, x86_64, ia64.
59381         * tests/test-snprintf-posix.c: Include float.h.
59382         * tests/test-sprintf-posix.c: Likewise.
59383         * tests/test-vsnprintf-posix.c: Likewise.
59384         * tests/test-vsprintf-posix.c: Likewise.
59385
59386 2007-06-05  Bruno Haible  <bruno@clisp.org>
59387
59388         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59389         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59390         non-IEEE numbers on i386, x86_64, ia64.
59391         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59392         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59393         * tests/test-isnanl.h: Include float.h.
59394         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59395
59396 2007-06-05  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59399         also the %a / %A. Handle the %a / %A code before this extra handling.
59400
59401 2007-06-05  Bruno Haible  <bruno@clisp.org>
59402
59403         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59404         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59405
59406 2007-06-05  Bruno Haible  <bruno@clisp.org>
59407
59408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59409         typo in variable name.
59410
59411 2007-06-05  Eric Blake  <ebb9@byu.net>
59412
59413         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59414         Reported by Simon Josefsson.
59415
59416 2007-06-04  Bruno Haible  <bruno@clisp.org>
59417
59418         Avoid test failures on some PowerPC platforms.
59419         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59420         Define differently for PowerPC.
59421         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59422         Reported by Gary V. Vaughan <gary@gnu.org>.
59423
59424 2007-06-02  Bruno Haible  <bruno@clisp.org>
59425
59426         Fix test-stdint failure on FreeBSD/ia64.
59427         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59428         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59429         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59430         * doc/headers/stdint.texi: Update.
59431
59432 2007-06-01  Bruno Haible  <bruno@clisp.org>
59433
59434         * tests/test-binary-io.c (main): Pass a third argument to open().
59435         Reported by Gary V. Vaughan <gary@gnu.org>.
59436
59437 2007-06-01  Bruno Haible  <bruno@clisp.org>
59438
59439         * doc/functions/frexpl.texi: Update for mingw.
59440
59441 2007-06-01  Bruno Haible  <bruno@clisp.org>
59442
59443         * tests/test-lseek.c (main): Disable test of errno for invalid third
59444         argument.
59445         * doc/functions/lseek.texi: Update.
59446         Reported by Gary V. Vaughan <gary@gnu.org>.
59447
59448 2007-05-28  Bruno Haible  <bruno@clisp.org>
59449
59450         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59451
59452 2007-05-31  Eric Blake  <ebb9@byu.net>
59453
59454         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59455         cross compiling.
59456
59457 2007-05-30  Eric Blake  <ebb9@byu.net>
59458         and Bruno Haible  <bruno@clisp.org>
59459
59460         Work around mingw test failures exposed by m4-1.4.9b.
59461         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59462         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59463         moment.
59464
59465 2007-05-30  Bruno Haible  <bruno@clisp.org>
59466
59467         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59468         assuming that they are closed. Needed on HP-UX 11.
59469
59470 2007-05-29  Bruno Haible  <bruno@clisp.org>
59471
59472         Fix a problem with #include_next.
59473         * lib/dirent_.h: Split the double-inclusion guard.
59474         * lib/fcntl_.h: Likewise.
59475         * lib/float_.h: Likewise.
59476         * lib/iconv_.h: Likewise.
59477         * lib/inttypes_.h: Likewise.
59478         * lib/locale_.h: Likewise.
59479         * lib/math_.h: Likewise.
59480         * lib/netinet_in_.h: Likewise.
59481         * lib/search_.h: Likewise.
59482         * lib/signal_.h: Likewise.
59483         * lib/stdint_.h: Likewise.
59484         * lib/stdio_.h: Likewise.
59485         * lib/stdlib_.h: Likewise.
59486         * lib/string_.h: Likewise.
59487         * lib/sys_select_.h: Likewise.
59488         * lib/sys_socket_.h: Likewise.
59489         * lib/sys_stat_.h: Likewise.
59490         * lib/sys_time_.h: Likewise.
59491         * lib/sysexits_.h: Likewise.
59492         * lib/time_.h: Likewise.
59493         * lib/unistd_.h: Likewise.
59494         * lib/wchar_.h: Likewise.
59495         * lib/wctype_.h: Likewise.
59496
59497 2007-05-29  Bruno Haible  <bruno@clisp.org>
59498
59499         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59500         for the moment.
59501
59502 2007-05-29  Bruno Haible  <bruno@clisp.org>
59503
59504         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59505         invocation.
59506         Reported by Eric Blake.
59507
59508 2007-05-29  Bruno Haible  <bruno@clisp.org>
59509
59510         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59511         compiling case.
59512
59513 2007-05-29  Eric Blake  <ebb9@byu.net>
59514             Bruno Haible  <bruno@clisp.org>
59515
59516         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59517         cross compiles.
59518
59519 2007-05-28  Eric Blake  <ebb9@byu.net>
59520
59521         * modules/closein-tests (test_closein_LDADD): Support test on
59522         cygwin with libtool.
59523
59524 2007-05-28  Bruno Haible  <bruno@clisp.org>
59525
59526         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59527         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59528         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59529         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59530         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59531         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59532         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59533         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59534         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59535
59536 2007-05-28  Eric Blake  <ebb9@byu.net>
59537
59538         Unconditionally include <config.h> in unit tests.
59539         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59540         * tests/test-allocsa.c, tests/test-arcfour.c,
59541         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59542         tests/test-array_list.c, tests/test-array_oset.c,
59543         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59544         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59545         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59546         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59547         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59548         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59549         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59550         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59551         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59552         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59553         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59554         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59555         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59556         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59557         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59558         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59559         test-md5.c, test-memmem.c, test-printf-posix.c,
59560         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59561         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59562         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59563         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59564         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59565         test-vasnprintf-posix2.c, test-vasnprintf.c,
59566         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59567         test-vfprintf-posix.c, test-vprintf-posix.c,
59568         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59569         test-xvasprintf.c: Likewise.
59570
59571 2007-05-28  Bruno Haible  <bruno@clisp.org>
59572
59573         * gnulib-tool (func_import): Remember the --with-tests command-line
59574         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59575         Reported by Eric Blake.
59576
59577 2007-05-28  Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/ftell-tests: New file.
59580         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59581         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59582
59583         * lib/ftell.c: New file.
59584         * modules/ftell: New file.
59585         * m4/ftell.m4: New file.
59586         * doc/functions/ftell.texi: Update.
59587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59588         REPLACE_FTELL.
59589         * lib/stdio_.h (rpl_ftell): New declaration.
59590         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59591         REPLACE_FTELL.
59592
59593 2007-05-28  Eric Blake  <ebb9@byu.net>
59594
59595         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59596
59597 2007-05-28  Bruno Haible  <bruno@clisp.org>
59598
59599         * modules/fseek-tests: New file.
59600         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59601         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59602
59603         * lib/fseek.c: New file.
59604         * modules/fseek: New file.
59605         * m4/fseek.m4: New file.
59606         * doc/functions/fseek.texi: Update.
59607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59608         REPLACE_FSEEK.
59609         * lib/stdio_.h (rpl_fseek): New declaration.
59610         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59611         REPLACE_FSEEK.
59612
59613 2007-05-28  Bruno Haible  <bruno@clisp.org>
59614
59615         * lib/stdio_.h (fflush): More comments.
59616
59617 2007-05-28  Bruno Haible  <bruno@clisp.org>
59618
59619         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59620         runtime test.
59621
59622 2007-05-28  Eric Blake  <ebb9@byu.net>
59623
59624         Improve lseek module.
59625         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59626         * lib/unistd_.h (lseek): Scale back link warning message.
59627         * tests/test-lseek.c: Beef up test.
59628         * tests/test-lseek.sh: Exercise more facets of lseek.
59629         Reported by Bruno Haible.
59630
59631 2007-05-28  Bruno Haible  <bruno@clisp.org>
59632
59633         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59634         to define.
59635
59636 2007-05-27  Bruno Haible  <bruno@clisp.org>
59637
59638         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59639
59640 2007-05-27  Bruno Haible  <bruno@clisp.org>
59641
59642         * modules/openmp: New file.
59643         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59644         Noah Misch.
59645
59646 2007-05-26  Bruno Haible  <bruno@clisp.org>
59647
59648         * modules/chdir-long (Depends-on): Add fchdir.
59649         * modules/chdir-safer (Depends-on): Likewise.
59650         * modules/fts (Depends-on): Likewise.
59651         * modules/fts-lgpl (Depends-on): Likewise.
59652         * modules/openat (Depends-on): Likewise.
59653         * modules/savewd (Depends-on): Likewise.
59654
59655 2007-05-24  Eric Blake  <ebb9@byu.net>
59656
59657         Fix lseek on mingw.
59658         * modules/lseek: New module.
59659         * m4/lseek.m4: New file.
59660         * lib/lseek.c: New file.
59661         * modules/lseek-tests: New file.
59662         * tests/test-lseek.c: New file.
59663         * tests/test-lseek.sh: New file.
59664         * MODULES.html.sh: Document lseek module.
59665         * modules/fflush (Depends-on): Add lseek, fseeko.
59666         * modules/fseeko (Depends-on): Likewise.
59667         * modules/ftello (Depends-on): Likewise.
59668         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59669         broken.
59670         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59671         broken.
59672         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59673         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59674         * lib/ftello.c (rpl_ftello): Likewise.
59675         * tests/test-fseeko.c (main): Test this.
59676         * tests/test-fseeko.sh: Likewise.
59677         * tests/test-ftello.c (main): Likewise.
59678         * tests/test-ftello.sh: Likewise.
59679         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59680         implies replacing fseek.
59681         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59682         HAVE_FTELLO.
59683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59684         * modules/unistd (Makefile.am): Likewise.
59685         * lib/unistd_.h (lseek): Declare a replacement.
59686         * doc/functions/lseek.texi (lseek): Document this fix.
59687         * doc/functions/fseek.texi (fseek): Likewise.
59688         * doc/functions/ftell.texi (ftell): Likewise.
59689
59690 2007-05-24  Bruno Haible  <bruno@clisp.org>
59691
59692         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59693         in the printed representation of a NaN.
59694         * tests/test-vasprintf-posix.c (test_function): Likewise.
59695         * tests/test-snprintf-posix.h (test_function): Likewise.
59696         * tests/test-sprintf-posix.h (test_function): Likewise.
59697         Reported by Eric Blake.
59698
59699 2007-05-23  Eric Blake  <ebb9@byu.net>
59700
59701         Fix fseeko/ftello on cygwin 1.5.24.
59702         * doc/functions/fseeko.texi (fseeko): Document the fix.
59703         * doc/functions/ftello.texi (ftello): Document the fix.
59704         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59705         * doc/functions/stdout.text (stdout): New file.
59706         * doc/functions/stderr.text (stderr): New file.
59707         * doc/gnulib.texi (Function Substitutes): Use new files.
59708         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59709         prior to 1.7.0.
59710         * tests/test-ftello.c (main): Likewise for ftello.
59711         * tests/test-fseeko.sh: New file.
59712         * tests/test-ftello.sh: New file.
59713         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59714         with seekable stdin.
59715         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59716         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59717         (gl_REPLACE_FSEEKO): New macro.
59718         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59719         * modules/fseeko (Files): Distribute fseeko.c.
59720         * modules/ftello (Files): Distribute ftello.c.
59721         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59722         mode.
59723         * lib/ftello.c (rpl_ftello): New file.
59724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59725         fseeko, ftello.
59726         (gl_STDIN_LARGE_OFFSET): New macro.
59727         * modules/stdio (Makefile.am): Perform the replacement.
59728         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59729
59730 2007-05-23  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59733         GNULIB_POSIXCHECK is defined.
59734
59735 2007-05-21  Bruno Haible  <bruno@clisp.org>
59736
59737         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59738         Check also the output for NaN arguments. When cross-compiling, guess
59739         no on IRIX.
59740         * lib/vasnprintf.c: Update comments.
59741         * tests/test-vasnprintf-posix.c (strisnan): New function.
59742         (test_function): Use it.
59743         * tests/test-vasprintf-posix.c (strisnan): New function.
59744         (test_function): Use it.
59745         * tests/test-snprintf-posix.h (strisnan): New function.
59746         (test_function): Use it.
59747         * tests/test-sprintf-posix.h (strisnan): New function.
59748         (test_function): Use it.
59749         Reported by Eric Blake.
59750
59751 2007-05-20  Bruno Haible  <bruno@clisp.org>
59752
59753         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59754         numbers that fails on BeOS.
59755         * doc/functions/frexpl.texi: Update.
59756
59757 2007-05-20  Jim Meyering  <jim@meyering.net>
59758
59759         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59760         forced upon us by glibc-2.6.
59761
59762 2007-05-20  Bruno Haible  <bruno@clisp.org>
59763
59764         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59765         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59766         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59767         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59768         NEED_PRINTF_INFINITE.
59769         (is_infinitel): New function.
59770         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59772         gl_PREREQ_VASNPRINTF_INFINITE.
59773         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59775         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59776         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59777         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59778         gl_PREREQ_VASNPRINTF_INFINITE.
59779         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59780         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59782         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59786         * doc/functions/fprintf.texi: Update.
59787         * doc/functions/printf.texi: Update.
59788         * doc/functions/snprintf.texi: Update.
59789         * doc/functions/sprintf.texi: Update.
59790         * doc/functions/vfprintf.texi: Update.
59791         * doc/functions/vprintf.texi: Update.
59792         * doc/functions/vsnprintf.texi: Update.
59793         * doc/functions/vsprintf.texi: Update.
59794
59795 2007-05-20  Bruno Haible  <bruno@clisp.org>
59796
59797         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59798         was not found in libc.
59799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59800
59801 2007-05-20  Bruno Haible  <bruno@clisp.org>
59802
59803         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59804         printed as "-nan" instead of "nan".
59805         * tests/test-vasprintf-posix.c (test_function): Likewise.
59806         * tests/test-snprintf-posix.h (test_function): Likewise.
59807         * tests/test-sprintf-posix.h (test_function): Likewise.
59808         Needed for HP-UX 11.
59809
59810 2007-05-20  Jim Meyering  <jim@meyering.net>
59811
59812         Fix buggy test for the fchownat-deref bug.
59813         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59814         symlink required for the run-test.  Without it, this test would
59815         always declare that fchownat doesn't work, and client code would
59816         unnecessarily use the replacement function with fixed libc.
59817         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59818         Reported by Greg Schafer.
59819
59820 2007-05-19  Bruno Haible  <bruno@clisp.org>
59821
59822         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59823         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59824         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59825         Needed for IRIX 6.5 and Solaris 2.5.1.
59826
59827 2007-05-19  Bruno Haible  <bruno@clisp.org>
59828
59829         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59830         (test_function): Skip tests involving -0.0 on platforms where
59831         -0.0 = 0.0.
59832         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59833         (test_function): Skip tests involving -0.0 on platforms where
59834         -0.0 = 0.0.
59835         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59836         (test_function): Skip tests involving -0.0 on platforms where
59837         -0.0 = 0.0.
59838         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59839         (test_function): Skip tests involving -0.0 on platforms where
59840         -0.0 = 0.0.
59841         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59842         tests.
59843         * tests/test-printf-posix.h (test_function): Likewise.
59844         * tests/test-printf-posix.output: Remove all -0.0 related results.
59845         Needed for IRIX 6.5.
59846
59847 2007-05-19  Bruno Haible  <bruno@clisp.org>
59848
59849         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59850         printed as "nan0x7fffffff" instead of "nan".
59851         * tests/test-vasprintf-posix.c (test_function): Likewise.
59852         * tests/test-snprintf-posix.h (test_function): Likewise.
59853         * tests/test-sprintf-posix.h (test_function): Likewise.
59854         * tests/test-fprintf-posix.h (NaN): Remove macro.
59855         (test_function): Remove all NaN related tests.
59856         * tests/test-printf-posix.h (NaN): Remove macro.
59857         (test_function): Remove all NaN related tests.
59858         * tests/test-printf-posix.output: Remove all NaN related results.
59859         Needed for IRIX 6.5.
59860
59861 2007-05-19  Bruno Haible  <bruno@clisp.org>
59862
59863         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59865
59866 2007-05-19  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/float_.h: New file.
59869         * m4/float_h.m4: New file.
59870         * modules/float: New file.
59871         * modules/isnanl (Dependencies): Add float.
59872         * modules/isnanl-nolibm (Dependencies): Likewise.
59873         * modules/mathl (Dependencies): Likewise.
59874         * modules/printf-frexpl (Dependencies): Likewise.
59875         * modules/signbit (Dependencies): Likewise.
59876         * modules/vasnprintf (Dependencies): Likewise.
59877         * doc/headers/float.texi: Update.
59878
59879 2007-05-19  Jim Meyering  <jim@meyering.net>
59880
59881         * lib/utimens.c (gl_futimens): Rename from futimens,
59882         now that glibc-2.6 declares futimens.
59883         * lib/utimens.h: Likewise.
59884
59885 2007-05-19  Bruno Haible  <bruno@clisp.org>
59886
59887         Avoid test failures on mingw.
59888         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59889         * tests/test-printf-posix.sh: Likewise.
59890         * tests/test-vfprintf-posix.sh: Likewise.
59891         * tests/test-vprintf-posix.sh: Likewise.
59892
59893 2007-05-19  Bruno Haible  <bruno@clisp.org>
59894
59895         Fix *printf result for NaN, Inf, -0.0 on mingw.
59896         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59897         * lib/vasnprintf.c: Include math.h and isnan.h.
59898         (is_infinite_or_zero): New function.
59899         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59900         values in the %f, %F, %e, %E, %g, %G directives.
59901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59903         gl_PRINTF_INFINITE and test its result. Invoke
59904         gl_PREREQ_VASNPRINTF_INFINITE.
59905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59909         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59912         * doc/functions/fprintf.texi: Update.
59913         * doc/functions/printf.texi: Update.
59914         * doc/functions/snprintf.texi: Update.
59915         * doc/functions/sprintf.texi: Update.
59916         * doc/functions/vfprintf.texi: Update.
59917         * doc/functions/vprintf.texi: Update.
59918         * doc/functions/vsnprintf.texi: Update.
59919         * doc/functions/vsprintf.texi: Update.
59920
59921 2007-05-19  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59924         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59925         Instead of multiplying with 10^k, set extra_zeroes to k.
59926         (scale10_round_long_double): Remove function.
59927
59928 2007-05-18  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59931         introduced on 2007-05-06.
59932
59933 2007-05-18  Bruno Haible  <bruno@clisp.org>
59934
59935         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59936         %g directives.
59937         * tests/test-vasprintf-posix.c (test_function): Likewise.
59938         * tests/test-snprintf-posix.h (test_function): Likewise.
59939         * tests/test-sprintf-posix.h (test_function): Likewise.
59940
59941 2007-05-18  Bruno Haible  <bruno@clisp.org>
59942
59943         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59944         (strmatch): New function.
59945         (test_function): Test the %f directive on numbers of various exponents.
59946         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59947         (strmatch): New function.
59948         (test_function): Test the %f directive on numbers of various exponents.
59949         * tests/test-snprintf-posix.h (strmatch): New function.
59950         (test_function): Test the %f directive on numbers of various exponents.
59951         * tests/test-sprintf-posix.h (strmatch): New function.
59952         (test_function): Test the %f directive on numbers of various exponents.
59953         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59954         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59955         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59956         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59957
59958 2007-05-18  Bruno Haible  <bruno@clisp.org>
59959
59960         Add support for 'long double' number output.
59961         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59962         * lib/vasnprintf.c: Include math.h and float+.h.
59963         (mp_limb_t): New type.
59964         (GMP_LIMB_BITS): New macro.
59965         (mp_twolimb_t): New type.
59966         (GMP_TWOLIMB_BITS): New macro.
59967         (mpn_t): New type.
59968         (multiply, divide, convert_to_decimal, decode_long_double,
59969         scale10_round_long_double, scale10_round_decimal_long_double,
59970         floorlog10l): New functions.
59971         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59972         for the %f, %F, %e, %E, %g, %G directives.
59973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59974         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59975         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59976         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59977         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59980         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59981         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59982         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59983         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59984         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59985         * modules/snprintf-posix (Depends-on): Likewise.
59986         * modules/sprintf-posix (Depends-on): Likewise.
59987         * modules/vasnprintf-posix (Depends-on): Likewise.
59988         * modules/vasprintf-posix (Depends-on): Likewise.
59989         * modules/vfprintf-posix (Depends-on): Likewise.
59990         * modules/vsnprintf-posix (Depends-on): Likewise.
59991         * modules/vsprintf-posix (Depends-on): Likewise.
59992         * modules/vasnprintf (Files): Add lib/float+.h.
59993         * doc/functions/fprintf.texi: Update.
59994         * doc/functions/printf.texi: Update.
59995         * doc/functions/snprintf.texi: Update.
59996         * doc/functions/sprintf.texi: Update.
59997         * doc/functions/vfprintf.texi: Update.
59998         * doc/functions/vprintf.texi: Update.
59999         * doc/functions/vsnprintf.texi: Update.
60000         * doc/functions/vsprintf.texi: Update.
60001
60002 2007-05-18  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60005
60006 2007-05-18  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60009         for printing 64-bit integers. Needed for mingw.
60010
60011 2007-05-18  Bruno Haible  <bruno@clisp.org>
60012
60013         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60014         gl_FUNC_FREXPL_WORKS.
60015         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60016
60017 2007-05-18  Bruno Haible  <bruno@clisp.org>
60018
60019         * modules/frexpl-nolibm-tests: New file.
60020
60021         * modules/frexpl-nolibm: New file.
60022         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60023
60024 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60025
60026         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60027         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60028         GCC 4.2, which otherwise issues a lot of warnings.
60029         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60030         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60031         Likewise.
60032         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60033         * modules/iconv_open (iconv.h): Likewise.
60034         * modules/locale (locale.h): Likewise.
60035         * modules/netinet_in (netinet/in.h): Likewise.
60036         * modules/sys_select (sys_select.h): Likewise.
60037         * modules/sys_socket (sys/socket.h): Likewise.
60038         * modules/sys_stat (sys/stat.h): Likewise.
60039         * modules/sysexits (sysexits.h): Likewise.
60040         * modules/unistd (unistd.h): Likewise.
60041
60042 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60043
60044         * modules/closein-tests (Makefile.am): Distribute
60045         `test-closein.sh'.
60046
60047 2007-05-17  Bruno Haible  <bruno@clisp.org>
60048
60049         * tests/test-printf-posix.output: Renamed from
60050         tests/test-fprintf-posix.out.
60051         * modules/fprintf-posix-tests: Update.
60052         * modules/printf-posix-tests: Update.
60053         * modules/vfprintf-posix-tests: Update.
60054         * modules/vprintf-posix-tests: Update.
60055         * tests/test-fprintf-posix.sh: Update.
60056         * tests/test-printf-posix.sh: Update.
60057         * tests/test-vfprintf-posix.sh: Update.
60058         * tests/test-vprintf-posix.sh: Update.
60059         Reported by Ralf Wildenhues.
60060
60061 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60062
60063         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60064         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60065         GCC 4.2, which otherwise issues a lot of warnings.
60066         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60067         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60068         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60069         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60070         it should no longer be needed.
60071         * lib/string_.h: Likewise.
60072         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60073         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60074         * modules/inttypes (inttypes.h): Likewise.
60075         * modules/math (math.h): Likewise.
60076         * modules/search (search.h): Likewise.
60077         * modules/signal (signal.h): Likewise.
60078         * modules/stdint (stdint.h): Likewise.
60079         * modules/stdio (stdio.h): Likewise.
60080         * modules/stdlib (stdlib.h): Likewise.
60081         * modules/string (string.h): Likewise.
60082         * modules/sys_time (sys/time.h): Likewise.
60083         * modules/time (time.h): Likewise.
60084         * modules/wchar (wchar.h): Likewise.
60085         * modules/wctype (wtype.h): Likewise.
60086
60087 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60088
60089         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60090
60091 2007-05-13  Bruno Haible  <bruno@clisp.org>
60092
60093         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60094         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60095         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60096         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60097         (gl_PREREQ_STRTOK_R): Don't require it here.
60098
60099 2007-05-13  Bruno Haible  <bruno@clisp.org>
60100
60101         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60102         when used in C++ mode.
60103
60104 2007-05-12  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/linebuffer.h: Tweak doc.
60107         * lib/linebuffer.c: Likewise.
60108
60109 2007-05-12  James Youngman  <jay@gnu.org>
60110
60111         * lib/linebuffer.c (readlinebuffer_delim): New function,
60112         like readlinebuffer, but use a caller-specified delimiter.
60113         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60114         as the delimiter.
60115         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60116
60117 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60118
60119         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60120         * modules/openat (Files): Remove openat-die.c.
60121         (Depends-on): Add openat-die.
60122         * modules/openat-die: New module.
60123
60124 2007-05-06  Bruno Haible  <bruno@clisp.org>
60125
60126         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60127         Update with info about Cygwin.
60128         * doc/functions/fprintf.texi: Update.
60129         * doc/functions/printf.texi: Update.
60130         * doc/functions/snprintf.texi: Update.
60131         * doc/functions/sprintf.texi: Update.
60132         * doc/functions/vfprintf.texi: Update.
60133         * doc/functions/vprintf.texi: Update.
60134         * doc/functions/vsnprintf.texi: Update.
60135         * doc/functions/vsprintf.texi: Update.
60136         Reported by Eric Blake.
60137
60138 2007-05-06  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60141         padding ourselves for the floating-point directives.
60142         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60145         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60146         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60149         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60152         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60154         * tests/test-snprintf-posix.h (test_function): Also check the width
60155         and some flags in the %f directive.
60156         * tests/test-sprintf-posix.h (test_function): Likewise.
60157         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60158         * tests/test-vasprintf-posix.c (test_function): Likewise.
60159         * doc/functions/fprintf.texi: Update.
60160         * doc/functions/printf.texi: Update.
60161         * doc/functions/snprintf.texi: Update.
60162         * doc/functions/sprintf.texi: Update.
60163         * doc/functions/vfprintf.texi: Update.
60164         * doc/functions/vprintf.texi: Update.
60165         * doc/functions/vsnprintf.texi: Update.
60166         * doc/functions/vsprintf.texi: Update.
60167
60168 2007-05-06  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60171         pass the ' flag character to sprintf or snprintf.
60172         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60174         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60175         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60176         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60178         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60184         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60185         flag.
60186         * tests/test-sprintf-posix.h (test_function): Likewise.
60187         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60188         * tests/test-vasprintf-posix.c (test_function): Likewise.
60189         * doc/functions/fprintf.texi: Update.
60190         * doc/functions/printf.texi: Update.
60191         * doc/functions/snprintf.texi: Update.
60192         * doc/functions/sprintf.texi: Update.
60193         * doc/functions/vfprintf.texi: Update.
60194         * doc/functions/vprintf.texi: Update.
60195         * doc/functions/vsnprintf.texi: Update.
60196         * doc/functions/vsprintf.texi: Update.
60197
60198 2007-05-01  Bruno Haible  <bruno@clisp.org>
60199
60200         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60201
60202 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60203
60204         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60205         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60206
60207 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60208
60209         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60210         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60212
60213 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60214
60215         * lib/argp-help.c (struct hol_entry): New member `ord'.
60216         (HOL_ENTRY_PTRCMP): Use ord for comparison
60217         (hol_sort): Initialize ord.
60218
60219 2007-05-01  Bruno Haible  <bruno@clisp.org>
60220
60221         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60222         Reported by Eric Blake.
60223         * doc/gnulib.texi (Function Substitutes): Update.
60224
60225 2007-05-01  Bruno Haible  <bruno@clisp.org>
60226
60227         * doc/functions.texi: Remove file, now redundant through
60228         doc/functions/*.texi.
60229
60230 2007-05-01  Bruno Haible  <bruno@clisp.org>
60231
60232         * modules/argp (Depends-on): Add sleep.
60233
60234 2007-05-01  Bruno Haible  <bruno@clisp.org>
60235
60236         * modules/sleep-tests: New file.
60237         * tests/test-sleep.c: New file.
60238
60239         * modules/sleep: New file.
60240         * lib/sleep.c: New file.
60241         * m4/sleep.m4: New file.
60242         * lib/unistd_.h (sleep): New declaration.
60243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60244         HAVE_SLEEP.
60245         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60246         * doc/functions/sleep.texi: Document the sleep module.
60247
60248 2007-05-01  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/sigprocmask.h: Remove file.
60251         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60252         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60253         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60254         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60255         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60256         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60257         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60258         HAVE_SIGSET_T as a shell variable.
60259         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60260         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60261         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60262         (Depends-on): Add signal. Remove verify.
60263         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60264         (Include): Mention <signal.h> instead of sigprocmask.h.
60265         * NEWS: Mention the change.
60266         * lib/fatal-signal.c: Don't include sigprocmask.h.
60267
60268 2007-05-01  Bruno Haible  <bruno@clisp.org>
60269
60270         * modules/signal: New file.
60271         * lib/signal_.h: New file.
60272         * m4/signal_h.m4: New file.
60273
60274 2007-05-01  Bruno Haible  <bruno@clisp.org>
60275
60276         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60277         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60278         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60279         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60280
60281 2007-05-01  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60284         configure time.
60285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60286         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60287         * modules/sys_stat (Makefile.am): Substitute their values into
60288         sys/stat.h.
60289
60290 2007-05-01  Bruno Haible  <bruno@clisp.org>
60291
60292         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60293         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60294         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60295
60296 2007-05-01  Bruno Haible  <bruno@clisp.org>
60297
60298         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60299         'assert' module here.
60300
60301 2007-05-01  Bruno Haible  <bruno@clisp.org>
60302
60303         * doc/functions/*.texi: New files.
60304         * doc/functions/google-ranking.txt: New file.
60305         * doc/gnulib.texi (Function Substitutes): New chapter.
60306         (ctime, inet_ntoa): Remove sections.
60307         * doc/ctime.texi: Remove file.
60308         * doc/inet_ntoa.texi: Remove file.
60309         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60310         dependencies.
60311         (%.info): New rule, specifying a --reference-limit.
60312
60313 2007-05-01  Bruno Haible  <bruno@clisp.org>
60314
60315         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60316
60317 2007-05-01  Bruno Haible  <bruno@clisp.org>
60318
60319         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60320         the portability of 'mkdir' to mingw systems.
60321
60322 2007-05-01  Bruno Haible  <bruno@clisp.org>
60323
60324         * doc/headers/google-ranking.txt: New file.
60325
60326 2007-04-30  Eric Blake  <ebb9@byu.net>
60327
60328         Prefer fseeko to fseek.
60329         * modules/getpass (Depends-on): Add fseeko.
60330         * lib/getpass.c (getpass): Use fseeko, not fseek.
60331
60332 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60333
60334         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60335         assumes the sorting is stable, while most qsort implementations
60336         are not.  Use argument addresses to ensure they never compare as
60337         equal.
60338
60339         * tests/test-argp-2.sh (usage-indent test): Fix output
60340         (func_compare): Restore diff options
60341         * tests/test-argp.c: Restore #include "progname.h"
60342
60343 2007-04-29  Bruno Haible  <bruno@clisp.org>
60344
60345         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60346         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60347         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60349         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60350         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60351         (TESTS, check_PROGRAMS): Add test-snprintf.
60352         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60353         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60354         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60355         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60356         assertions that fail on HP-UX, OSF/1, or IRIX.
60357         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60358
60359 2007-04-29  Bruno Haible  <bruno@clisp.org>
60360
60361         * MODULES.html.sh (posix_functions): Remove 'contents'.
60362
60363 2007-04-29  Karl Berry  <karl@gnu.org>
60364
60365         * config/srclist.txt (gendocs_template_min): new entry.
60366
60367 2007-04-29  Bruno Haible  <bruno@clisp.org>
60368
60369         Work around fpurge bug on BSD systems.
60370         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60371         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60372         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60373         fpurge to rpl_fpurge if the system already has this function.
60374         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60375         the case where the system already has this function. Correct invariants
60376         on BSD systems.
60377         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60378         BSD systems.
60379
60380 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60381
60382         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60383         proposed by Sven Verdoolaege.
60384
60385         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60386         options.
60387         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60388         (usage and help tests): Update
60389
60390 2007-04-29  Bruno Haible  <bruno@clisp.org>
60391
60392         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60393         Print more information in case of failure. Disable a test on BeOS.
60394
60395 2007-04-29  Bruno Haible  <bruno@clisp.org>
60396
60397         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60398         This helps debugging on systems on which no gdb is available.
60399
60400 2007-04-29  Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/freading.h: Improve comments.
60403         * lib/fwriting.h: Likewise.
60404         * tests/test-freading.c (main): Don't check freading immediately after
60405         repositioning. Needed for glibc.
60406
60407 2007-04-29  Bruno Haible  <bruno@clisp.org>
60408
60409         * lib/freading.c (freading): Trivial simplification.
60410
60411 2007-04-28  Bruno Haible  <bruno@clisp.org>
60412
60413         * tests/test-fwriting.c (main): Also test the interaction between
60414         fflush and fwriting.
60415         * modules/fwriting-tests (Depends-on): Add fflush.
60416
60417         * tests/test-freading.c (main): Also test the interaction between
60418         fflush and freading.
60419         * modules/freading-tests (Depends-on): Add fflush.
60420
60421 2007-04-28  Bruno Haible  <bruno@clisp.org>
60422
60423         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60424         fseeko and ftello.
60425         Suggested by Eric Blake.
60426
60427 2007-04-28  Jim Meyering  <jim@meyering.net>
60428
60429         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60430         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60431         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60432
60433 2007-04-27  Eric Blake  <ebb9@byu.net>
60434
60435         * doc/headers/assert.texi (assert.h): Document assert module use.
60436
60437 2007-04-27  Bruno Haible  <bruno@clisp.org>
60438
60439         * doc/headers/*.texi: New files.
60440         * doc/gnulib.texi (Header File Substitutes): New chapter.
60441         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60442         dependencies.
60443         (standards.info ,standards.html, standards.dvi): Update dependencies.
60444         (mostlyclean, clean): New targets.
60445
60446 2007-04-27  Bruno Haible  <bruno@clisp.org>
60447
60448         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60449         * modules/sysexits (Files, Makefile.am): Update.
60450
60451         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60452         * modules/sys_socket (Files, Makefile.am): Update.
60453
60454         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60455         * modules/sys_stat (Files, Makefile.am): Update.
60456
60457 2007-04-27  Eric Blake  <ebb9@byu.net>
60458
60459         * lib/freading.h: Improve comments.
60460         * lib/fwriting.h: Likewise.
60461         * lib/fflush.c: Likewise.
60462
60463         Fix closein for mingw.
60464         * modules/closein-tests: Add tests for closein.
60465         * tests/test-closein.c: New file.
60466         * tests/test-closein.sh: Likewise.
60467         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60468         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60469
60470 2007-04-27  Bruno Haible  <bruno@clisp.org>
60471
60472         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60473         version is < 6.
60474         * lib/math_.h [__DECC]: Likewise.
60475         * lib/stdio_.h [__DECC]: Likewise.
60476         * lib/stdlib_.h [__DECC]: Likewise.
60477         * lib/string_.h [__DECC]: Likewise.
60478         * lib/time_.h [__DECC]: Likewise.
60479         * lib/wchar_.h [__DECC]: Likewise.
60480         * lib/wctype_.h [__DECC]: Likewise.
60481
60482 2007-04-27  Bruno Haible  <bruno@clisp.org>
60483
60484         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60485
60486 2007-04-27  Bruno Haible  <bruno@clisp.org>
60487
60488         * lib/fflush.c: Add comments.
60489         * modules/fpurge-tests (Depends-on): Add fflush.
60490         * modules/freadable-tests (Depends-on): Likewise.
60491         * modules/fwritable-tests (Depends-on): Likewise.
60492
60493 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60494
60495         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60496         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60497         Report by Bruno Haible <bruno@clisp.org>.
60498
60499 2007-04-26  Eric Blake  <ebb9@byu.net>
60500
60501         Fix fflush on mingw.
60502         * modules/fflush (Depends-on): Add freading.
60503         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60504         but unread data.
60505
60506 2007-04-26  Eric Blake  <ebb9@byu.net>
60507         and Bruno Haible  <bruno@clisp.org>
60508
60509         Implement freading and fwriting.
60510         * lib/freading.c: New file.
60511         * lib/freading.h: Likewise.
60512         * m4/freading.m4: Likewise.
60513         * modules/freading: Likewise.
60514         * modules/freading-tests: Likewise.
60515         * tests/test-freading.c: Likewise.
60516         * lib/fwriting.c: New file.
60517         * lib/fwriting.h: Likewise.
60518         * m4/fwriting.m4: Likewise.
60519         * modules/fwriting: Likewise.
60520         * modules/fwriting-tests: Likewise.
60521         * tests/test-fwriting.c: Likewise.
60522         * MODULES.html.sh (File stream based Input/Output): Mention them.
60523
60524 2007-04-26  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60527         'long' when we assume it.
60528         Suggested by Eric Blake.
60529
60530 2007-04-26  Bruno Haible  <bruno@clisp.org>
60531
60532         Ensure fseeko, ftello are declared on glibc systems.
60533         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60534         * modules/fseeko (configure.ac-early): Likewise.
60535         * modules/ftello (configure.ac-early): Likewise.
60536         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60537         AC_FUNC_FSEEKO for this.
60538         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60539         (gl_CHECK_FSEEKO): Remove macro.
60540
60541 2007-04-26  Bruno Haible  <bruno@clisp.org>
60542
60543         * tests/test-fflush.c (main): Also check the ftell result after
60544         fflush and fseek/fseeko.
60545         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60546         file descriptor position cache in the stream.
60547         * lib/fseeko.c (rpl_fseeko): Likewise.
60548
60549 2007-04-26  Bruno Haible  <bruno@clisp.org>
60550
60551         * modules/fflush-tests (Depends-on): Add fseeko.
60552
60553 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60554             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60555
60556         * lib/argz_.h: ensure error_t definition is obtained in same
60557         mechanism system argz.h would have.
60558         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60559         argz facilities are known bad.  Err on the side of caution if
60560         cross-compiling.
60561
60562 2007-04-25  Eric Blake  <ebb9@byu.net>
60563
60564         * lib/fpurge.c (includes): Use stdlib.h for free.
60565         * tests/test-fflush.c (main): Also test fflush-fseeko.
60566
60567 2007-04-25  Bruno Haible  <bruno@clisp.org>
60568
60569         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60570         * lib/fseeko.c: New file.
60571         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60572         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60573         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60574         gl_FUNC_FSEEKO.
60575         (gl_FUNC_FSEEKO): Invoke it.
60576         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60577         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60578         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60579
60580 2007-04-25  Bruno Haible  <bruno@clisp.org>
60581
60582         * modules/fflush (Depends-on): Add ftello.
60583
60584 2007-04-25  Bruno Haible  <bruno@clisp.org>
60585
60586         * modules/ftello-tests: New file.
60587         * tests/test-ftello.c: New file.
60588
60589         * modules/ftello: New file.
60590         * m4/ftello.m4: New file.
60591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60592         HAVE_FTELLO.
60593         * lib/stdio_.h (ftello): New declaration.
60594         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60595         HAVE_FTELLO.
60596
60597 2007-04-25  Bruno Haible  <bruno@clisp.org>
60598
60599         * modules/fseeko-tests: New file.
60600         * tests/test-fseeko.c: New file.
60601
60602         * modules/fseeko: New file.
60603         * m4/fseeko.m4: New file.
60604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60605         HAVE_FSEEKO.
60606         * lib/stdio_.h (fseeko): New declaration.
60607         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60608         HAVE_FSEEKO.
60609
60610 2007-04-25  Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60613
60614 2007-04-25  Bruno Haible  <bruno@clisp.org>
60615
60616         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60617         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60618         * tests/test-unistd.c: Likewise.
60619         * tests/test-fcntl.c: Likewise.
60620
60621 2007-04-23  Eric Blake  <ebb9@byu.net>
60622
60623         * lib/fflush.c: Fix missing include.
60624         Reported by Bruno Haible.
60625
60626 2007-04-23  Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60629         Reported by Eric Blake.
60630
60631 2007-04-23  Bruno Haible  <bruno@clisp.org>
60632
60633         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60634
60635 2007-04-23  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60638
60639 2007-04-23  Bruno Haible  <bruno@clisp.org>
60640
60641         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60642         Needed on HP-UX 11.
60643
60644 2007-04-16  Eric Blake  <ebb9@byu.net>
60645
60646         Make fflush rely on fpurge.
60647         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60648         open coding all variants.
60649         * modules/fflush (Depends-on): Add fpurge and unistd.
60650         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60651         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60652
60653         Fix --with-tests compilation on cygwin.
60654         * modules/argmatch-tests (Makefile.am): List gnulib library first
60655         in LDADD.
60656         * modules/argp-tests (Makefile.am): Likewise.
60657         * modules/array-list-tests (Makefile.am): Likewise.
60658         * modules/array-oset-tests (Makefile.am): Likewise.
60659         * modules/avltree-list-tests (Makefile.am): Likewise.
60660         * modules/avltree-oset-tests (Makefile.am): Likewise.
60661         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60662         * modules/carray-list-tests (Makefile.am): Likewise.
60663         * modules/dirname-tests (Makefile.am): Likewise.
60664         * modules/frexp-tests (Makefile.am): Likewise.
60665         * modules/isnanl-tests (Makefile.am): Likewise.
60666         * modules/linked-list-tests (Makefile.am): Likewise.
60667         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60668         * modules/lock-tests (Makefile.am): Likewise.
60669         * modules/rbtree-list-tests (Makefile.am): Likewise.
60670         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60671         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60672         * modules/tls-tests (Makefile.am): Likewise.
60673         * modules/tsearch-tests (Makefile.am): Likewise.
60674         * modules/xvasprintf-tests (Makefile.am): Likewise.
60675
60676         Fix fpurge for cygwin.
60677         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60678         value.
60679         * modules/fpurge-tests (Depends-on): Clean up trash.
60680
60681 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60682
60683         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60684
60685         * m4/autobuild.m4: Re-indent.
60686
60687 2007-04-13  Bruno Haible  <bruno@clisp.org>
60688
60689         * modules/fpurge-tests: New file.
60690         * tests/test-fpurge.c: New file.
60691
60692         * modules/fpurge: New file.
60693         * lib/fpurge.h: New file.
60694         * lib/fpurge.c: New file.
60695         * m4/fpurge.m4: New file.
60696
60697 2007-04-13  Bruno Haible  <bruno@clisp.org>
60698
60699         * modules/fbufmode-tests: New file.
60700         * tests/test-fbufmode.c: New file.
60701
60702         * modules/fbufmode: New file.
60703         * lib/fbufmode.h: New file.
60704         * lib/fbufmode.c: New file.
60705         * m4/fbufmode.m4: New file.
60706
60707 2007-04-13  Bruno Haible  <bruno@clisp.org>
60708
60709         * modules/fwritable-tests: New file.
60710         * tests/test-fwritable.c: New file.
60711
60712         * modules/fwritable: New file.
60713         * lib/fwritable.h: New file.
60714         * lib/fwritable.c: New file.
60715         * m4/fwritable.m4: New file.
60716
60717 2007-04-13  Bruno Haible  <bruno@clisp.org>
60718
60719         * modules/freadable-tests: New file.
60720         * tests/test-freadable.c: New file.
60721
60722         * modules/freadable: New file.
60723         * lib/freadable.h: New file.
60724         * lib/freadable.c: New file.
60725         * m4/freadable.m4: New file.
60726
60727 2007-04-13  Bruno Haible  <bruno@clisp.org>
60728
60729         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60730         MOSTLYCLEANFILES.
60731
60732 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60733
60734         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60735         gzip bootstrap.conf to avoid dragging in i18n machinery.
60736         (gnulib_tool_option): Use it.
60737
60738 2007-04-13  Bruno Haible  <bruno@clisp.org>
60739
60740         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60741         %F directives.
60742         * tests/test-vasprintf-posix.c (test_function): Likewise.
60743         * tests/test-snprintf-posix.h (test_function): Likewise.
60744         * tests/test-sprintf-posix.h (test_function): Likewise.
60745         * tests/test-fprintf-posix.h (test_function): Likewise.
60746         * tests/test-printf-posix.h (test_function): Likewise.
60747         * tests/test-fprintf-posix.out: Likewise.
60748
60749 2007-04-13  Bruno Haible  <bruno@clisp.org>
60750
60751         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60752         * modules/tls-tests (configure.ac): Likewise.
60753         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60754
60755 2007-04-13  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/tls.c (glthread_tls_get): Fix return type.
60758         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60759
60760 2007-04-12  Eric Blake  <ebb9@byu.net>
60761
60762         * modules/gettime (Depends-on): Remove gettime.
60763         Reported by Dmitry V. Levin.
60764
60765 2007-04-12  Bruno Haible  <bruno@clisp.org>
60766
60767         * modules/fflush (Include): Mention <stdio.h>.
60768         * modules/strtoimax (Include): Mention <inttypes.h>.
60769         * modules/strtoumax (Include): Likewise.
60770
60771 2007-04-12  Eric Blake  <ebb9@byu.net>
60772
60773         * .cvsignore: New file.
60774         * .gitignore: Likewise.
60775
60776 2007-04-12  Bruno Haible  <bruno@clisp.org>
60777
60778         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60779         not before, since $(LDADD) often contains libgnu.a.
60780         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60781         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60782         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60783         Needed on Cygwin.
60784
60785 2007-04-12  Eric Blake  <ebb9@byu.net>
60786
60787         Work around glibc's failure to flush stdin on fclose.
60788         * lib/closein.c (close_stdin): Flush stdin before closing.
60789
60790         Work around glibc's failure to reset seekable stdin on exit.
60791         * modules/closein: New module.
60792         * lib/closein.c: New file.
60793         * lib/closein.h: Likewise.
60794         * m4/closein.m4: Likewise.
60795         * MODULES.html.sh (File stream based Input/Output): Document it.
60796
60797 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60798
60799         * gnulib-tool: Rename generated 'autobuild' script to
60800         'do-autobuild' in --create-megatestdir output.
60801
60802         * doc/gnulib.texi (Build robot for gnulib): Fix.
60803
60804 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60805
60806         * modules/sysexits (Depends-on): Add absolute-header.
60807
60808 2007-04-12  Eric Blake  <ebb9@byu.net>
60809
60810         No need to preserve errno on success.
60811         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60812         Reported by Bruno Haible.
60813
60814 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60815
60816         * MODULES.html.sh (Support for maintaining and releasing
60817         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60818
60819 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60820
60821         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60822
60823 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60824
60825         * modules/autobuild: New module.
60826
60827         * m4/autobuild.m4: New file.
60828
60829 2007-04-11  Bruno Haible  <bruno@clisp.org>
60830
60831         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60832         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60836         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60837         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60839         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60840         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60842         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60843         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60844         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60845         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60846         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60848         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60849         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60851         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60852         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60854         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60855         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60856         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60857         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60858         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60859         Reported by Eric Blake.
60860
60861 2007-04-11  Bruno Haible  <bruno@clisp.org>
60862
60863         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60864
60865 2007-04-10  Bruno Haible  <bruno@clisp.org>
60866
60867         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60868         for NaN and Infinity. Needed on FreeBSD 6.1.
60869         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60870         regarding results for "%010a" of Infinity and NaN.
60871         * tests/test-vasprintf-posix.c (test_function): Likewise.
60872         * tests/test-snprintf-posix.h (test_function): Likewise.
60873         * tests/test-sprintf-posix.h (test_function): Likewise.
60874         * tests/test-fprintf-posix.h (test_function): Likewise.
60875         * tests/test-printf-posix.h (test_function): Likewise.
60876         * tests/test-fprintf-posix.out: Likewise.
60877
60878 2007-04-10  Bruno Haible  <bruno@clisp.org>
60879
60880         * modules/locale-tests: New file.
60881         * tests/test-locale.c: New file.
60882
60883         * modules/locale: New file.
60884         * lib/locale_.h: New file.
60885         * m4/locale_h.m4: New file.
60886
60887 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60888             Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60891         be determined, test for availability of the copysignf, copysign,
60892         copysignl functions.
60893         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60894         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60895         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60896
60897 2007-04-09  Eric Blake  <ebb9@byu.net>
60898
60899         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60900         * modules/stdio (Makefile.am): Support fflush.
60901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60902         * modules/fflush: New file.
60903         * lib/fflush.c: Likewise.
60904         * m4/fflush.m4: Likewise.
60905         * modules/fflush-tests: New test.
60906         * tests/test-fflush.c: Likewise.
60907         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60908
60909 2007-04-06  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60912         (VASNPRINTF): Use signbit for faster determination whether to print a
60913         minus sign.
60914         * modules/vasnprintf (Files): Remove lib/float+.h.
60915         * modules/fprintf-posix (Depends-on): Add signbit.
60916         * modules/snprintf-posix (Depends-on): Likewise.
60917         * modules/sprintf-posix (Depends-on): Likewise.
60918         * modules/vasnprintf-posix (Depends-on): Likewise.
60919         * modules/vasprintf-posix (Depends-on): Likewise.
60920         * modules/vfprintf-posix (Depends-on): Likewise.
60921         * modules/vsnprintf-posix (Depends-on): Likewise.
60922         * modules/vsprintf-posix (Depends-on): Likewise.
60923
60924 2007-04-06  Bruno Haible  <bruno@clisp.org>
60925
60926         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60927         * tests/test-frexpl.c (main): Likewise.
60928         * tests/test-ldexpl.c (main): Likewise.
60929         * modules/frexp-tests (Depends-on): Add signbit.
60930         * modules/frexpl-tests (Depdends-on): Likewise.
60931         * modules/ldexpl-tests (Depdends-on): Likewise.
60932
60933 2007-04-06  Bruno Haible  <bruno@clisp.org>
60934
60935         * modules/signbit-tests: New file.
60936         * tests/test-signbit.c: New file.
60937
60938         * modules/signbit: New file.
60939         * lib/signbitf.c: New file.
60940         * lib/signbitd.c: New file.
60941         * lib/signbitl.c: New file.
60942         * m4/signbit.m4: New file.
60943         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60944         (signbit): New macro.
60945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60946         REPLACE_SIGNBIT.
60947         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60948         REPLACE_FREXPL into math.h.
60949
60950 2007-04-06  Bruno Haible  <bruno@clisp.org>
60951
60952         * modules/isnanf-nolibm-tests: New file.
60953         * tests/test-isnanf.c: New file.
60954
60955         * modules/isnanf-nolibm: New file.
60956         * lib/isnanf.h: New file.
60957         * lib/isnanf.c: New file.
60958         * lib/isnan.c: Consider the USE_FLOAT macro.
60959         * m4/isnanf.m4: New file.
60960
60961 2007-04-06  Bruno Haible  <bruno@clisp.org>
60962
60963         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60964         (Link): New section.
60965
60966         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60967
60968 2007-04-06  Bruno Haible  <bruno@clisp.org>
60969
60970         Assume the 'long double' type.
60971         * m4/longdouble.m4: Remove file.
60972         * config/srclist.txt: Don't mention longdouble.m4.
60973         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60974         * lib/float+.h: Likewise.
60975         * lib/frexp.c: Likewise.
60976         * lib/printf-args.h: Likewise.
60977         * lib/printf-args.c: Likewise.
60978         * lib/printf-frexp.c: Likewise.
60979         * lib/printf-parse.c: Likewise.
60980         * lib/vasnprintf.c: Likewise.
60981         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60982         * m4/intl.m4: Likewise.
60983         * m4/isnanl.m4: Likewise.
60984         * m4/printf.m4: Likewise.
60985         * m4/printf-frexpl.m4: Likewise.
60986         * m4/vasnprintf.m4: Likewise.
60987         * modules/allocsa (Files): Remove m4/longdouble.m4.
60988         * modules/gettext (Files): Likewise.
60989         * modules/relocatable-prog-wrapper (Files): Likewise.
60990         * modules/vasnprintf (Files): Likewise.
60991         * modules/isnanl (Files): Likewise.
60992         (Include): Simplify.
60993         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60994         (Include): Simplify.
60995         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60996         (Include): Simplify.
60997         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60998         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60999         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61000         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61001         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61002         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61003         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61004         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61005         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61006         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61007         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61008         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61009         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61010         * tests/test-isnanl.c: Likewise.
61011         * tests/test-snprintf-posix.h: Likewise.
61012         * tests/test-sprintf-posix.h: Likewise.
61013         * tests/test-vasnprintf-posix.c: Likewise.
61014         * tests/test-vasnprintf-posix2.c: Likewise.
61015         * tests/test-vasprintf-posix.c: Likewise.
61016
61017 2007-04-06  Bruno Haible  <bruno@clisp.org>
61018
61019         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61020         * lib/math_.h [__DECC]: Include the overridden include file through
61021         #include_next, outside the double-inclusion guard.
61022         * lib/stdio_.h [__DECC]: Likewise.
61023         * lib/stdlib_.h [__DECC]: Likewise.
61024         * lib/string_.h [__DECC]: Likewise.
61025         * lib/time_.h [__DECC]: Likewise.
61026         * lib/wchar_.h [__DECC]: Likewise.
61027         * lib/wctype_.h [__DECC]: Likewise.
61028         * lib/inttypes_.h [__DECC]: Likewise.
61029         Reported by Albert Chin <china@thewrittenword.com> in
61030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61031
61032 2007-04-04  Eric Blake  <ebb9@byu.net>
61033
61034         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61035         1.5.x.
61036
61037 2007-04-04  Bruno Haible  <bruno@clisp.org>
61038
61039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61040         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61041
61042 2007-04-04  Bruno Haible  <bruno@clisp.org>
61043
61044         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61045         results for "%010a" of Infinity and NaN.
61046         * tests/test-vasprintf-posix.c (test_function): Likewise.
61047         * tests/test-snprintf-posix.h (test_function): Likewise.
61048         * tests/test-sprintf-posix.h (test_function): Likewise.
61049         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61050         * tests/test-printf-posix.h (test_function): Likewise.
61051         * tests/test-fprintf-posix.out: Update.
61052         Needed for FreeBSD 6.1.
61053
61054 2007-04-04  Bruno Haible  <bruno@clisp.org>
61055
61056         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61057         directly used by the gnulib modules nor by gnulib-tool.
61058
61059 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         * DEPENDENCIES: Give overall description of version dependency
61062         desirability.  Use more-typical names for apps.
61063         Add shell, coreutils, diffutils, grep, tar, gzip.
61064
61065 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61066
61067         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61068
61069 2007-04-04  Karl Berry  <karl@gnu.org>
61070
61071         * MODULES.html.sh (func_module): missing '.
61072
61073 2007-04-03  Bruno Haible  <bruno@clisp.org>
61074
61075         * modules/argmatch-tests (Makefile.am): New variable
61076         test_argmatch_LDADD.
61077         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61078         * modules/array-list-tests (Makefile.am): New variable
61079         test_array_list_LDADD.
61080         * modules/array-oset-tests (Makefile.am): New variable
61081         test_array_oset_LDADD.
61082         * modules/avltree-list-tests (Makefile.am): New variable
61083         test_avltree_list_LDADD.
61084         * modules/avltree-oset-tests (Makefile.am): New variable
61085         test_avltree_oset_LDADD.
61086         * modules/avltreehash-list-tests (Makefile.am): New variable
61087         test_avltreehash_list_LDADD.
61088         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61089         test_canonicalize_lgpl_LDADD.
61090         * modules/carray-list-tests (Makefile.am): New variable
61091         test_carray_list_LDADD.
61092         * modules/dirname-tests (Makefile.am): New variable
61093         test_dirname_LDADD.
61094         * modules/linked-list-tests (Makefile.am): New variable
61095         test_linked_list_LDADD.
61096         * modules/linkedhash-list-tests (Makefile.am): New variable
61097         test_linkedhash_list_LDADD.
61098         * modules/rbtree-list-tests (Makefile.am): New variable
61099         test_rbtree_list_LDADD.
61100         * modules/rbtree-oset-tests (Makefile.am): New variable
61101         test_rbtree_oset_LDADD.
61102         * modules/rbtreehash-list-tests (Makefile.am): New variable
61103         test_rbtreehash_list_LDADD.
61104         * modules/xvasprintf-tests (Makefile.am): New variable
61105         test_xvasprintf_LDADD.
61106         Reported by Eric Blake.
61107
61108 2007-04-03  Eric Blake  <ebb9@byu.net>
61109
61110         * DEPENDENCIES: Weaken m4 requirements.
61111
61112 2007-04-03  Bruno Haible  <bruno@clisp.org>
61113
61114         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61115         * modules/isnanl-tests (configure.ac): Likewise.
61116
61117 2007-04-03  Ben Pfaff  <blp@gnu.org>
61118
61119         * modules/iconv_open: Add $(srcdir)/ to source directory
61120         references in Makefile fragments that call gperf, to fix VPATH
61121         builds.
61122
61123 2007-04-03  Bruno Haible  <bruno@clisp.org>
61124
61125         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61126         * lib/ldexpl.c: Undo last change.
61127
61128 2007-04-03  Bruno Haible  <bruno@clisp.org>
61129
61130         * modules/printf-frexpl (Depends-on): Undo last change.
61131         (Files): Add m4/ldexpl.m4.
61132
61133 2007-04-03  Bruno Haible  <bruno@clisp.org>
61134
61135         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61136         * modules/isnanl (Link): New section.
61137
61138         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61139         * modules/frexp (Link): New section.
61140
61141         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61142         * modules/frexpl (Link): New section.
61143
61144         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61145         * modules/ldexpl (Link): New section.
61146
61147 2007-04-03  Bruno Haible  <bruno@clisp.org>
61148
61149         * modules/TEMPLATE-EXTENDED: New file.
61150         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61151
61152 2007-04-03  Bruno Haible  <bruno@clisp.org>
61153
61154         * DEPENDENCIES: New file.
61155         Suggested by Simon Josefsson.
61156
61157 2007-04-03  Bruno Haible  <bruno@clisp.org>
61158
61159         * doc/gnulib.texi: Escape @.
61160
61161 2007-04-03  James Youngman  <jay@gnu.org>
61162         and Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61165         birthtime on all systems that have birthtime, not just those which
61166         use st_birthtimensec rather than st_birthtim.  Putting zero in
61167         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61168         that the birth time is not available for files on an NFS mount.
61169
61170 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61171
61172         * modules/memxor: Move back from crypto/, suggested by Bruno.
61173         * modules/crypto/hmac-sha1: Fix memxor dependency.
61174
61175         * modules/crypto/gc: Moved from ../.
61176
61177 2007-04-02  Eric Blake  <ebb9@byu.net>
61178
61179         * lib/ldexpl.c (includes): Avoid libm.
61180
61181         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61182
61183 2007-04-02  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61186         on IRIX.
61187
61188 2007-04-02  Bruno Haible  <bruno@clisp.org>
61189
61190         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61191         x86 or x86_64 platforms running MacOS X.
61192         Reported by Ryan Schmidt <@ryandesign.com>.
61193
61194 2007-04-02  Bruno Haible  <bruno@clisp.org>
61195
61196         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61197         i386.
61198
61199 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61200
61201         * modules/crypto/arcfour: Moved from ../.
61202         * modules/crypto/arcfour-tests: Moved from ../.
61203         * modules/crypto/arctwo: Moved from ../.
61204         * modules/crypto/arctwo-tests: Moved from ../.
61205         * modules/crypto/des: Moved from ../.
61206         * modules/crypto/des-tests: Moved from ../.
61207         * modules/crypto/gc-arcfour: Moved from ../.
61208         * modules/crypto/gc-arcfour-tests: Moved from ../.
61209         * modules/crypto/gc-arctwo: Moved from ../.
61210         * modules/crypto/gc-arctwo-tests: Moved from ../.
61211         * modules/crypto/gc-des: Moved from ../.
61212         * modules/crypto/gc-des-tests: Moved from ../.
61213         * modules/crypto/gc-hmac-md5: Moved from ../.
61214         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61215         * modules/crypto/gc-hmac-sha1: Moved from ../.
61216         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61217         * modules/crypto/gc-md2: Moved from ../.
61218         * modules/crypto/gc-md2-tests: Moved from ../.
61219         * modules/crypto/gc-md4: Moved from ../.
61220         * modules/crypto/gc-md4-tests: Moved from ../.
61221         * modules/crypto/gc-md5: Moved from ../.
61222         * modules/crypto/gc-md5-tests: Moved from ../.
61223         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61224         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61225         * modules/crypto/gc-random: Moved from ../.
61226         * modules/crypto/gc-rijndael: Moved from ../.
61227         * modules/crypto/gc-rijndael-tests: Moved from ../.
61228         * modules/crypto/gc-sha1: Moved from ../.
61229         * modules/crypto/gc-sha1-tests: Moved from ../.
61230         * modules/crypto/gc-tests: Moved from ../.
61231         * modules/crypto/hmac-md5: Moved from ../.
61232         * modules/crypto/hmac-md5-tests: Moved from ../.
61233         * modules/crypto/hmac-sha1: Moved from ../.
61234         * modules/crypto/hmac-sha1-tests: Moved from ../.
61235         * modules/crypto/md2: Moved from ../.
61236         * modules/crypto/md2-tests: Moved from ../.
61237         * modules/crypto/md4: Moved from ../.
61238         * modules/crypto/md4-tests: Moved from ../.
61239         * modules/crypto/md5: Moved from ../.
61240         * modules/crypto/md5-tests: Moved from ../.
61241         * modules/crypto/memxor: Moved from ../.
61242         * modules/crypto/rijndael: Moved from ../.
61243         * modules/crypto/rijndael-tests: Moved from ../.
61244         * modules/crypto/sha1: Moved from ../.
61245
61246 2007-03-30  James Youngman  <jay@gnu.org>
61247
61248         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61249         rename() to change the ctime of a file (because ctime is unaffected
61250         by rename on jfs2 on AIX 5.1).
61251         (main): Start by doing cleanup, in case a previous run failed leaving
61252         test files behind.
61253
61254 2007-03-31  Bruno Haible  <bruno@clisp.org>
61255
61256         Support old proprietary implementations of iconv.
61257         * modules/iconv_open: New file.
61258         * lib/iconv_.h: New file.
61259         * m4/iconv_h.m4: New file.
61260         * lib/iconv_open.c: New file.
61261         * lib/iconv_open-aix.gperf: New file.
61262         * lib/iconv_open-hpux.gperf: New file.
61263         * lib/iconv_open-irix.gperf: New file.
61264         * lib/iconv_open-osf.gperf: New file.
61265         * m4/iconv_open.m4: New file.
61266         * modules/linebreak (Depends-on): Add iconv_open.
61267         * modules/striconv (Depends-on): Likewise.
61268         * modules/striconveh (Depends-on): Likewise.
61269         * modules/unicodeio (Depends-on): Likewise.
61270         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61271         (iconv_t)(-1).
61272         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61273         conversion if cd is (iconv_t)(-1).
61274         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61275         is not possible.
61276
61277 2007-03-31  Bruno Haible  <bruno@clisp.org>
61278
61279         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61280         work on Solaris either. Protect also second use of "autodetect_jp".
61281
61282 2007-03-31  Bruno Haible  <bruno@clisp.org>
61283
61284         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61285         the function is not present.
61286
61287 2007-03-31  Bruno Haible  <bruno@clisp.org>
61288
61289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61290         the function is not present.
61291
61292 2007-03-31  Bruno Haible  <bruno@clisp.org>
61293
61294         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61295         a bug in HP-UX iconv_open().
61296
61297 2007-03-31  Bruno Haible  <bruno@clisp.org>
61298
61299         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61300         (Mathematics <math.h>): New section, add fpieee.
61301         (Input/output <stdio.h>): Add fseterr.
61302         (Mathematics <math.h>): New section, add printf-frexp.
61303         (Container data structures): Add sublist.
61304         (Core language properties): Add fpucw, inline.
61305         (Functions for greatest-width integer types <inttypes.h>): Add
61306         imaxabs, imaxdiv, inttypes.
61307         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61308         isnanl-nolibm, ldexp.
61309         (Mathematics <math.h>): New section, add printf-frexpl.
61310         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61311         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61312         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61313         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61314         (Unicode string functions): Add unistr/u*-mbtoucr.
61315         (Java): Add javacomp-script, javaexec-script.
61316         (C#): Add csharpcomp-script, csharpexec-script.
61317         (Support for building libraries and executables): Add havelib,
61318         relocatable-*.
61319         (Support for maintaining and releasing projects): Renamed from
61320         'Support for maintaining and release projects'. Add announce-gen.
61321
61322 2007-03-31  Bruno Haible  <bruno@clisp.org>
61323
61324         * README: Talk primarily about git.
61325         (git and CVS): Renamed from CVS.
61326         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61327         gnulib is available through git.
61328         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61329
61330 2007-03-30  Bruno Haible  <bruno@clisp.org>
61331
61332         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61333         * lib/poll_.h: Likewise.
61334         * lib/stat_.h: Likewise.
61335         * lib/sys_time_.h: Likewise.
61336         * lib/sysexit_.h: Likewise.
61337         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61338         * lib/stdbool_.h: Likewise.
61339         * lib/byteswap_.h: Add double-inclusion guard.
61340
61341 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61342
61343         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61344
61345 2007-03-30  Karl Berry  <karl@gnu.org>
61346
61347         * config/srclist-update: double space after USA in the license
61348         substitution, since that's how it's usually (?) written.
61349
61350 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61353         reported by Bruno Haible.
61354
61355 2007-03-29  Bruno Haible  <bruno@clisp.org>
61356
61357         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61358         a bug in AIX iconv().
61359
61360 2007-03-29  Bruno Haible  <bruno@clisp.org>
61361
61362         * modules/ldexpl-tests: New file.
61363         * tests/test-ldexpl.c: New file.
61364
61365 2007-03-29  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/ldexpl.c: Include fpucw.h.
61368         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61369         multiplication.
61370         * modules/ldexpl (Depends-on): Add fpucw.
61371
61372 2007-03-29  Bruno Haible  <bruno@clisp.org>
61373
61374         * modules/ldexpl: New file.
61375         * m4/ldexpl.m4: New file.
61376         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61377         set.
61378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61379         REPLACE_LDEXPL.
61380         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61381         REPLACE_LDEXPL.
61382         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61383         gl_FUNC_LDEXPL_WORKS.
61384         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61385         * modules/mathl (Files): Remove lib/ldexpl.c.
61386         (Depends-on): Add ldexpl.
61387
61388 2007-03-29  Bruno Haible  <bruno@clisp.org>
61389
61390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61391
61392 2007-03-29  Bruno Haible  <bruno@clisp.org>
61393
61394         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61395         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61396         and possibly also HP-UX.
61397         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61398         work on AIX, IRIX, HP-UX, OSF/1.
61399         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61400         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61401         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61402         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61403         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61404         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61405
61406 2007-03-29  Bruno Haible  <bruno@clisp.org>
61407
61408         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61409
61410 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61411
61412         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61413         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61414
61415 2007-03-29  Eric Blake  <ebb9@byu.net>
61416
61417         * lib/acl-internal.h: Remove redundant include.
61418         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61419         Cygwin when a file is locked.
61420
61421 2007-03-29  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61424         file.
61425         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61426
61427 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61428
61429         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61430         try to remove a parent directory if the child couldn't be removed
61431         (except for the first rmdir, which could fail because the child
61432         doesn't exist).  Problem reported by Jeff Blaine in
61433         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61434
61435 2007-03-28  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/striconveh.c (utf8conv_carefully): New function.
61438         (mem_cd_iconveh_internal): Invoke it.
61439
61440 2007-03-28  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61443         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61444         input.
61445         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61446         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61447         unistr/u8-uctomb.
61448
61449 2007-03-28  Bruno Haible  <bruno@clisp.org>
61450
61451         * modules/unistr/u8-mbtoucr: New file.
61452         * lib/unistr/u8-mbtoucr.c: New file.
61453         * modules/unistr/u16-mbtoucr: New file.
61454         * lib/unistr/u16-mbtoucr.c: New file.
61455         * modules/unistr/u16-mbtoucr: New file.
61456         * lib/unistr/u16-mbtoucr.c: New file.
61457         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61458
61459 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61460             Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61463         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61464         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61465
61466         * m4/stdio_h.m4: Add stubs for vasprintf too.
61467
61468         * modules/stdio: Support vasprintf in sed command.
61469
61470         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61471         vasprintf.h.  Add stdio module indicator.
61472
61473         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61474         vasprintf.h.
61475
61476         * lib/vasprintf.h: File removed.
61477
61478         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61479         * lib/vasprintf.c: Ditto.
61480         * lib/xvasprintf.c: Ditto.
61481         * tests/test-vasprintf-posix.c: Ditto.
61482         * tests/test-vasprintf.c: Ditto.
61483
61484 2007-03-27  Bruno Haible  <bruno@clisp.org>
61485
61486         Make vasnprintf multithread-safe.
61487         * lib/vasnprintf.c (decimal_point_char): New function.
61488         (VASNPRINTF): Use it.
61489         Suggested by Simon Josefsson.
61490
61491 2007-03-27  Eric Blake  <ebb9@byu.net>
61492
61493         Support sub-second birthtime on cygwin.
61494         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61495         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61496         (get_stat_birthtime): Also work with st_birthtim.
61497
61498 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61501         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61502         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61503         (get_stat_birthtime_ns): Simplify compile-time tests.
61504         (get_stat_birthtime): Change the API to look like
61505         get_stat_mtime etc., except return a negative tv_nsec on error.
61506         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61507         Don't check for "spare" fields.
61508         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61509         or for struct stat.st_birthtime, as these tests aren't used.
61510         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61511
61512 2007-03-27  Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/stat-time.h: Include <sys/stat.h>.
61515
61516 2007-03-27  James Youngman  <jay@gnu.org>
61517
61518         * lib/stat-time.h (get_stat_birthtime): New function for
61519           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61520         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61521           and its variants.
61522         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61523         * modules/stat-time-test: New file.
61524         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61525
61526 2007-03-26  Bruno Haible  <bruno@clisp.org>
61527
61528         Better support of signalling NaNs.
61529         * lib/atanl.c: Include isnanl.h.
61530         (atanl): Perform test for NaN at the beginning of the function and
61531         through a call to isnanl.
61532         * lib/cosl.c: Include isnanl.h.
61533         (cosl): Perform test for NaN at the beginning of the function and
61534         through a call to isnanl.
61535         * lib/ldexpl.c: Include isnanl.h.
61536         (ldexpl): Perform test for NaN through a call to isnanl.
61537         * lib/logl.c: Include isnanl.h.
61538         (logl): Perform test for NaN at the beginning of the function and
61539         through a call to isnanl.
61540         * lib/sinl.c: Include isnanl.h.
61541         (sinl): Perform test for NaN at the beginning of the function and
61542         through a call to isnanl.
61543         * lib/sqrtl.c: Include isnanl.h.
61544         (sqrtl): Perform test for NaN at the beginning of the function and
61545         through a call to isnanl.
61546         * lib/tanl.c: Include isnanl.h.
61547         (tanl): Perform test for NaN at the beginning of the function and
61548         through a call to isnanl.
61549         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61550         * modules/mathl (Depends-on): Add isnanl.
61551
61552 2007-03-26  Eric Blake  <ebb9@byu.net>
61553
61554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61555         regression in logic sense of previous patch.
61556
61557 2007-03-26  Bruno Haible  <bruno@clisp.org>
61558
61559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61560         unportable shell command "if ! ...".
61561         Reported by Ralf Wildenhues.
61562
61563 2007-03-25  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61566         <sysexits.h> file, and only add EX_CONFIG.
61567         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61568         absolute file name and whether it is sufficient. Substitute also
61569         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61570         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61571         ABSOLUTE_SYSEXITS_H into sysexits.h.
61572
61573 2007-03-25  Bruno Haible  <bruno@clisp.org>
61574
61575         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61576         hints is NULL.
61577
61578 2007-03-25  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61581         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61582
61583 2007-03-25  Bruno Haible  <bruno@clisp.org>
61584
61585         * lib/vasnprintf.c: Include langinfo.h.
61586         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61587         multithread-safe.
61588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61589         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61590         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61591         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61592         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61593         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61594         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61595         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61596         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61597         Reported by Simon Josefsson.
61598
61599 2007-03-25  Bruno Haible  <bruno@clisp.org>
61600
61601         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61602         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61603         * modules/vasnprintf (Depends-on): Add stdint.
61604
61605 2007-03-25  Bruno Haible  <bruno@clisp.org>
61606
61607         * modules/fpieee: New file.
61608         * m4/fpieee.m4: New file.
61609         * modules/isnan-nolibm (Depends-on): Add fpieee.
61610         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61611         * modules/isnanl (Depends-on): Add fpieee.
61612
61613 2007-03-25  Bruno Haible  <bruno@clisp.org>
61614
61615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61616
61617 2007-03-25  Bruno Haible  <bruno@clisp.org>
61618
61619         Avoid test failures on IRIX 6.5.
61620         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61621         (main): Use it.
61622         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61623         macros.
61624         (main): Use them.
61625
61626 2007-03-25  Bruno Haible  <bruno@clisp.org>
61627
61628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61629         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61630         exists but doesn't work.
61631         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61632         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61634         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61635         math.h.
61636
61637 2007-03-25  Bruno Haible  <bruno@clisp.org>
61638
61639         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61640         returns inf. Needed on IRIX 6.5.
61641
61642 2007-03-25  Bruno Haible  <bruno@clisp.org>
61643
61644         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61645         (main): Use isnanl instead of x != x idiom.
61646         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61647
61648         * tests/test-frexp.c: Include isnan.h.
61649         (main): Use isnan instead of x != x idiom.
61650         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61651
61652 2007-03-25  Bruno Haible  <bruno@clisp.org>
61653
61654         * tests/test-frexp.c (NaN): New function/macro.
61655         (main): Use it instead of 0.0 / 0.0.
61656         * tests/test-isnan.c (NaN): New function/macro.
61657         (main): Use it instead of 0.0 / 0.0.
61658         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61659         (test_function): Use it instead of 0.0 / 0.0.
61660         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61661         (test_function): Use it instead of 0.0 / 0.0.
61662         * tests/test-snprintf-posix.h (NaN): New function/macro.
61663         (test_function): Use it instead of 0.0 / 0.0.
61664         * tests/test-sprintf-posix.h (NaN): New function/macro.
61665         (test_function): Use it instead of 0.0 / 0.0.
61666         * tests/test-fprintf-posix.h (NaN): New function/macro.
61667         (test_function): Use it instead of 0.0 / 0.0.
61668         * tests/test-printf-posix.h (NaN): New function/macro.
61669         (test_function): Use it instead of 0.0 / 0.0.
61670
61671         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61672
61673 2007-03-25  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61676
61677 2007-03-25  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/regexec.c (merge_state_with_log): Make static.
61680
61681 2007-03-25  Bruno Haible  <bruno@clisp.org>
61682
61683         * lib/trigl.c (kernel_rem_pio2): Make static.
61684
61685 2007-03-25  Bruno Haible  <bruno@clisp.org>
61686
61687         * lib/sincosl.c (sincosl_table): Make static.
61688
61689 2007-03-25  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61692         if the compiler does not support C99.
61693
61694 2007-03-25  Bruno Haible  <bruno@clisp.org>
61695
61696         * modules/time (Makefile.am): Ensure all rule action lines start with a
61697         tab.
61698
61699 2007-03-24  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/tsearch-tests: New file.
61702         * tests/test-tsearch.sh: New file.
61703         * tests/test-tsearch.c: New file, mostly copied from glibc.
61704
61705         * modules/search-tests: New file.
61706         * tests/test-search.c: New file.
61707
61708         * modules/search: New file.
61709         * lib/search_.h: New file, incorporating lib/tsearch.h.
61710         * m4/search_h.m4: New file.
61711         * lib/tsearch.h: Remove file.
61712         * lib/tsearch.c: Include search.h instead of tsearch.h.
61713         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61714         HAVE_TSEARCH.
61715         * modules/tsearch (Files): Remove lib/tsearch.h.
61716         (Depends-on): Add search.
61717         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61718         (Include): Change tsearch.h into search.h.
61719
61720 2007-03-24  Bruno Haible  <bruno@clisp.org>
61721
61722         * modules/fpucw: New file.
61723         * lib/fpucw.h: New file.
61724         * lib/frexp.c: Include fpucw.h.
61725         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61726         (FUNC): Use them.
61727         * lib/printf-frexp.c: Include fpucw.h.
61728         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61729         (FUNC): Use them.
61730         * lib/vasnprintf.c: Include fpucw.h.
61731         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61732         'long double' calculations.
61733         * tests/test-frexpl.c: Include fpucw.h.
61734         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61735         * tests/test-printf-frexpl.c: Include fpucw.h.
61736         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61737         * modules/frexpl (Depends-on): Add fpucw.
61738         * modules/printf-frexpl (Depends-on): Likewise.
61739         * modules/fprintf-posix (Depends-on): Likewise.
61740         * modules/snprintf-posix (Depends-on): Likewise.
61741         * modules/sprintf-posix (Depends-on): Likewise.
61742         * modules/vasnprintf-posix (Depends-on): Likewise.
61743         * modules/vasprintf-posix (Depends-on): Likewise.
61744         * modules/vfprintf-posix (Depends-on): Likewise.
61745         * modules/vsnprintf-posix (Depends-on): Likewise.
61746         * modules/vsprintf-posix (Depends-on): Likewise.
61747         * modules/frexpl-tests (Depends-on): Likewise.
61748         * modules/printf-frexpl-tests (Depends-on): Likewise.
61749
61750 2007-03-24  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/float+.h: New file.
61753         * lib/isnan.c: Include float+.h.
61754         (SIZE): New macro.
61755         (FUNC): Compare only SIZE bytes of the value.
61756         * lib/vasnprintf.c: Include float+.h.
61757         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61758         SIZEOF_LDBL or SIZEOF_DBL bytes.
61759         * modules/isnan-nolibm (Files): Add lib/float+.h.
61760         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61761         * modules/isnanl (Files): Add lib/float+.h.
61762         * modules/vasnprintf (Files): Add lib/float+.h.
61763
61764 2007-03-24  Bruno Haible  <bruno@clisp.org>
61765
61766         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61767         include isnanl-nolibm.h.
61768
61769 2007-03-24  Bruno Haible  <bruno@clisp.org>
61770
61771         * tests/test-read-file.c (main): Don't produce spurious output for
61772         expected situations. Make the test fail if it encountered unexpected
61773         results.
61774
61775 2007-03-24  Bruno Haible  <bruno@clisp.org>
61776
61777         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61778         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61779
61780 2007-03-24  Bruno Haible  <bruno@clisp.org>
61781
61782         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61783
61784 2007-03-24  Bruno Haible  <bruno@clisp.org>
61785
61786         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61787         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61788
61789         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61790         * modules/utf8-ucs4: Turn into a symbolic link to module
61791         unistr/u8-mbtouc.
61792
61793         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61794         utf8-ucs4-unsafe.
61795         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61796         unistr/u8-mbtouc-unsafe.
61797
61798         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61799         * modules/utf16-ucs4: Turn into a symbolic link to module
61800         unistr/u16-mbtouc.
61801
61802         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61803         utf16-ucs4-unsafe.
61804         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61805         unistr/u16-mbtouc-unsafe.
61806
61807         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61808         * modules/ucs4-utf8: Turn into a symbolic link to module
61809         unistr/u8-ubtomb.
61810
61811         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61812         * modules/ucs4-utf16: Turn into a symbolic link to module
61813         unistr/u16-ubtomb.
61814
61815 2007-03-24  Bruno Haible  <bruno@clisp.org>
61816
61817         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61818         Enable the function only if HAVE_INLINE.
61819         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61820         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61821         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61822         Enable the function only if HAVE_INLINE.
61823         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61824         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61825         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61826         Enable the function only if HAVE_INLINE.
61827         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61828         Enable the function only if HAVE_INLINE.
61829         * modules/utf8-ucs4: Update.
61830         * modules/utf8-ucs4-unsafe: Update.
61831         * modules/utf16-ucs4: Update.
61832         * modules/utf16-ucs4-unsafe: Update.
61833         * modules/ucs4-utf8: Update.
61834         * modules/ucs4-utf16: Update.
61835
61836 2007-03-24  Bruno Haible  <bruno@clisp.org>
61837
61838         * lib/utf8-ucs4.h: Remove file.
61839         * lib/utf8-ucs4-unsafe.h: Remove file.
61840         * lib/utf16-ucs4.h: Remove file.
61841         * lib/utf16-ucs4-unsafe.h: Remove file.
61842         * lib/ucs4-utf8.h: Remove file.
61843         * lib/ucs4-utf16.h: Remove file.
61844         * lib/unistr.h: Include their previous contents.
61845         * m4/utf-ucs4.m4: Remove file.
61846         * m4/ucs4-utf.m4: Remove file.
61847         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61848         (Depends-on): Add unistr/base.
61849         (configure.ac): Remove gl_UTF_UCS4.
61850         (Makefile.am): Update.
61851         (Include): Change to unistr.h.
61852         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61853         (Depends-on): Add unistr/base.
61854         (configure.ac): Remove gl_UTF_UCS4.
61855         (Makefile.am): Update.
61856         (Include): Change to unistr.h.
61857         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61858         (Depends-on): Add unistr/base.
61859         (configure.ac): Remove gl_UTF_UCS4.
61860         (Makefile.am): Update.
61861         (Include): Change to unistr.h.
61862         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61863         (Depends-on): Add unistr/base.
61864         (configure.ac): Remove gl_UTF_UCS4.
61865         (Makefile.am): Update.
61866         (Include): Change to unistr.h.
61867         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61868         (Depends-on): Add unistr/base.
61869         (configure.ac): Remove gl_UCS4_UTF.
61870         (Makefile.am): Update.
61871         (Include): Change to unistr.h.
61872         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61873         (Depends-on): Add unistr/base.
61874         (configure.ac): Remove gl_UCS4_UTF.
61875         (Makefile.am): Update.
61876         (Include): Change to unistr.h.
61877         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61878         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61879         utf8-ucs4-unsafe.h.
61880         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61881         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61882         utf16-ucs4-unsafe.h.
61883         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61884         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61885         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61886         * lib/unistr/u8-strchr.c: Likewise.
61887         * lib/unistr/u8-strrchr.c: Likewise.
61888         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61889         * lib/unistr/u16-strchr.c: Likewise.
61890         * lib/unistr/u16-strrchr.c: Likewise.
61891         * lib/striconveh.c: Update.
61892         * lib/linebreak.c: Update.
61893
61894 2007-03-24  Bruno Haible  <bruno@clisp.org>
61895
61896         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61897         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61898
61899 2007-03-22  Bruno Haible  <bruno@clisp.org>
61900
61901         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61902
61903 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         * MODULES.html.sh (File system functions): New module write-any-file.
61906         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61907         * m4/write-any-file.m4: New files.
61908
61909 2007-03-23  Eric Blake  <ebb9@byu.net>
61910
61911         * gnulib-tool: Rearrange space-tab sequences, since some editors
61912         like to eat them.
61913
61914 2007-03-23  Eric Blake  <ebb9@byu.net>
61915
61916         * lib/version-etc.c (version_etc_va): Update license wording to
61917         be more concise.  Recommended by Richard Stallman.
61918
61919 2007-03-22  Bruno Haible  <bruno@clisp.org>
61920
61921         * lib/poll.c (MSG_PEEK): New fallback definition.
61922
61923 2007-03-22  Bruno Haible  <bruno@clisp.org>
61924
61925         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61926         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61927         (main): Update.
61928         Fixes a compilation error on BeOS.
61929
61930 2007-03-22  Bruno Haible  <bruno@clisp.org>
61931
61932         * modules/frexpl-tests: New file.
61933         * tests/test-frexpl.c: New file.
61934
61935         * modules/frexpl: New file.
61936         * m4/frexpl.m4: New file.
61937         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61938         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61940         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61941         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61942         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61943
61944 2007-03-22  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/frexpl.c: Share code with lib/frexp.c.
61947         * modules/mathl (Files): Add lib/frexp.c.
61948         (Depends-on): Add isnanl-nolibm.
61949
61950 2007-03-22  Bruno Haible  <bruno@clisp.org>
61951
61952         * modules/printf-frexp (Files): Add m4/frexp.m4.
61953         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61954         only if the found frexp function actually works.
61955
61956 2007-03-22  Bruno Haible  <bruno@clisp.org>
61957
61958         * lib/frexp.c: Remove older implementation that uses divisions.
61959
61960 2007-03-21  Bruno Haible  <bruno@clisp.org>
61961
61962         * modules/frexp-tests: New file.
61963         * tests/test-frexp.c: New file.
61964
61965         * modules/frexp: New file.
61966         * lib/frexp.c: New file.
61967         * m4/frexp.m4: New file.
61968         * lib/math_.h (frexp): New declaration.
61969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61970         REPLACE_FREXP.
61971         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61972
61973 2007-03-21  Bruno Haible  <bruno@clisp.org>
61974
61975         * modules/isnanl-tests: New file.
61976         * tests/test-isnanl.c: New file.
61977
61978         * modules/isnanl: New file.
61979         * lib/isnanl.h: New file.
61980         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61981         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61982         gl_FUNC_ISNANL_WORKS.
61983         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61984         New macros.
61985
61986 2007-03-21  Bruno Haible  <bruno@clisp.org>
61987
61988         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61989         lib/isnanl.h.
61990         (Include): Update.
61991         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61992         * lib/vasnprintf.c: Update.
61993         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61994         tests/test-isnanl.h, remove tests/test-isnanl.c.
61995         (Makefile.am): Update.
61996         * tests/test-isnanl-nolibm.c: New file.
61997         * tests/test-isnanl.h: New file.
61998         * tests/test-isnanl.c: Remove file.
61999
62000 2007-03-21  Jim Meyering  <jim@meyering.net>
62001
62002         When trying to open ".", treat ESTALE like EACCES.
62003         * lib/savewd.c (savewd_save): Resort to forking not just upon
62004         failure with EACCES, but also when errno is ESTALE.
62005
62006 2007-03-20  Bruno Haible  <bruno@clisp.org>
62007
62008         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62009         Needed on AIX 5.1. Reported by Matthew Woehlke.
62010
62011 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         Suggestions by Bruno Haible:
62014         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62015         our own.
62016         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62017         * modules/acl (Depends-on): Add gettext.
62018
62019 2007-03-19  Bruno Haible  <bruno@clisp.org>
62020
62021         * modules/iconvme: Remove file.
62022         * lib/iconvme.h: Remove file.
62023         * lib/iconvme.c: Remove file.
62024         * m4/iconvme.m4: Remove file.
62025
62026 2007-03-19  Bruno Haible  <bruno@clisp.org>
62027
62028         * doc/relocatable-maint.texi: Break long shell script line.
62029         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62030
62031 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62032
62033         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62034         handle file_has_acl.
62035         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62036         * lib/acl.c: Move header inclusions and related macro defns into
62037         lib/acl-internal.h.
62038         (S_ISLNK): Remove defn, since that's now done for us.
62039         (file_has_acl): Move to lib/file-has-acl.c.
62040         Call acl_trivial if available.  This is the crucial part of the fix.
62041         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62042         shared within the library.  Rewrite a bit, partly to make it compatible
62043         with the GNU coding style.
62044         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62045         Remove unnecessary double-quotes.
62046         Don't test for acl_to_text; the build will catch that.
62047         Replace acl_entries if it doesn't exist and it is needed.
62048         Check for -lsec and acl_trivial (as used on Solaris 10).
62049         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62050         lib/file-has-acl.c.
62051         (Depends-on): Add sys_stat, for S_ISLNK.
62052
62053 2007-03-19  Ben Pfaff  <blp@gnu.org>
62054
62055         * doc/gnulib.texi: Fix typos.
62056         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62057
62058 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62061         If size is zero here, buf must be zero.
62062
62063 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62064
62065         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62066         <bruno@clisp.org>.
62067
62068 2007-03-18  Bruno Haible  <bruno@clisp.org>
62069
62070         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62071         Suggested by Eric Blake.
62072
62073 2007-03-18  Ben Pfaff  <blp@gnu.org>
62074
62075         * doc/relocatable.texi: Recommend using as prefix a directory
62076         that does not exist and will never be created.  Based on
62077         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62078         and others.
62079
62080 2007-03-17  Bruno Haible  <bruno@clisp.org>
62081
62082         * lib/fchownat.c: Include lchown.h.
62083
62084 2007-03-17  Bruno Haible  <bruno@clisp.org>
62085
62086         Fix endless loop when the given allocated size was > INT_MAX.
62087         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62088         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62089         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62090         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62091         * lib/sprintf.c (sprintf): Likewise.
62092
62093 2007-03-17  Bruno Haible  <bruno@clisp.org>
62094
62095         * tests/test-argp-2.sh (func_compare): Output a context diff.
62096
62097 2007-03-17  Bruno Haible  <bruno@clisp.org>
62098
62099         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62100         locale's decimal-point character.
62101
62102 2007-03-17  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62105         before comparing it. Needed because on some platforms (e.g. x86) a
62106         'long double' occupies less bytes than sizeof (long double).
62107
62108 2007-03-17  Bruno Haible  <bruno@clisp.org>
62109
62110         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62111         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62112         * tests/test-getaddrinfo.c (simple): Likewise.
62113         * tests/test-read-file.c (main): Likewise.
62114
62115 2007-03-17  Bruno Haible  <bruno@clisp.org>
62116
62117         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62118
62119 2007-03-17  Bruno Haible  <bruno@clisp.org>
62120
62121         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62122         unused variable.
62123
62124 2007-03-17  Bruno Haible  <bruno@clisp.org>
62125
62126         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62127         * tests/test-c-strncasecmp.c: Likewise.
62128
62129 2007-03-17  Bruno Haible  <bruno@clisp.org>
62130
62131         * modules/stdlib (Depends-on): Add unistd.
62132         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62133         Needed for MacOS X 10.3.
62134
62135 2007-03-17  Bruno Haible  <bruno@clisp.org>
62136
62137         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62138
62139 2007-03-17  Bruno Haible  <bruno@clisp.org>
62140
62141         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62142
62143 2007-03-17  Bruno Haible  <bruno@clisp.org>
62144
62145         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62146         to reflect files copied from gnulib (with or without modifications).
62147         Suggested by Jim Meyering.
62148
62149 2007-03-17  Eric Blake  <ebb9@byu.net>
62150
62151         * NEWS: Document stdlib change from 2007-02-18.
62152
62153 2007-03-17  Jim Meyering  <jim@meyering.net>
62154
62155         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62156         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62157         someone uses a name containing shell meta-characters.
62158         Reported by Alfred M. Szmidt.
62159
62160         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62161
62162 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62163
62164         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62165         and copy gettext configuration files only if configure.ac contains
62166         a use of AM_GNU_GETTEXT_VERSION.
62167
62168 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62169
62170         * build-aux/bootstrap (gnulib_name): New variable.
62171         (gnulib_tool_options): Use it.
62172
62173 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62174
62175         * tests/test-des.c: Use new namespace.
62176
62177 2007-03-15  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62180         Reported by James Youngman <jay@gnu.org>.
62181
62182 2007-03-15  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62185         declared prototype. Needed with cc on OSF/1 5.1.
62186
62187 2007-03-15  Bruno Haible  <bruno@clisp.org>
62188
62189         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62190         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62191         (struct gl_list_implementation): Add dispose_fn argument to the
62192         'create_empty', 'create' methods.
62193         (struct gl_list_impl_base): Add field 'dispose_fn'.
62194         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62195         argument.
62196         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62197         dispose_fn argument.
62198         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62199         dispose_fn on the dropped values.
62200         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62201         dispose_fn argument.
62202         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62203         dropped values.
62204         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62205         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62206         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62207         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62208         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62209         argument.
62210         (gl_tree_list_free): Call dispose_fn on the dropped values.
62211         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62212         the dropped values.
62213         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62214         Add dispose_fn argument.
62215         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62216         Call dispose_fn on the dropped values.
62217         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62218         Add dispose_fn argument.
62219         (gl_sublist_create): Initialize the 'dispose_fn' field.
62220         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62221         * tests/test-array_list.c (main): Update.
62222         * tests/test-carray_list.c (main): Update.
62223         * tests/test-avltree_list.c (main): Update.
62224         * tests/test-rbtree_list.c (main): Update.
62225         * tests/test-avltreehash_list.c (main): Update.
62226         * tests/test-rbtreehash_list.c (main): Update.
62227         * tests/test-linked_list.c (main): Update.
62228         * tests/test-linkedhash_list.c (main): Update.
62229         * tests/test-array_oset.c (main): Update.
62230
62231 2007-03-15  Bruno Haible  <bruno@clisp.org>
62232
62233         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62234         (gl_oset_create_empty): Add dispose_fn argument.
62235         (struct gl_oset_implementation): Add dispose_fn argument to
62236         'create_empty' method.
62237         (struct gl_oset_impl_base): Add dispose_fn field.
62238         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62239         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62240         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62241         values.
62242         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62243         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62244         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62245         dropped value.
62246         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62247         dropped value.
62248         * tests/test-array_oset.c (main): Update.
62249         * tests/test-avltree_oset.c (main): Update.
62250         * tests/test-rbtree_oset.c (main): Update.
62251         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62252
62253 2007-03-13  Bruno Haible  <bruno@clisp.org>
62254
62255         * tests/test-stdbool.c (i): Update after last patch.
62256
62257 2007-03-12  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62260         the iswprint macro. Needed on Solaris 2.5.1.
62261
62262 2007-03-12  Bruno Haible  <bruno@clisp.org>
62263
62264         * tests/test-printf-frexp.c (main): Declare x as volatile.
62265
62266 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62267
62268         * doc/gnulib.texi (Build robot for gnulib): New section.
62269
62270 2007-03-12  Jim Meyering  <jim@meyering.net>
62271
62272         * build-aux/bootstrap: New file.
62273         * build-aux/bootstrap.conf: New file, from coreutils.
62274
62275 2007-03-11  Bruno Haible  <bruno@clisp.org>
62276
62277         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62278
62279 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62280
62281         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62282         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62283         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62284
62285 2007-03-11  Bruno Haible  <bruno@clisp.org>
62286
62287         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62288         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62289
62290 2007-03-11  Bruno Haible  <bruno@clisp.org>
62291
62292         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62293         formula. Needed for SunPRO C 5.0.
62294
62295 2007-03-11  Bruno Haible  <bruno@clisp.org>
62296
62297         * modules/long-options (Depends-on): Add getopt.
62298
62299 2007-03-11  Bruno Haible  <bruno@clisp.org>
62300
62301         * modules/modechange (Depends-on): Add stdbool.
62302
62303 2007-03-11  Bruno Haible  <bruno@clisp.org>
62304
62305         * modules/i-ring (Depends-on): Add stdbool.
62306
62307 2007-03-11  Bruno Haible  <bruno@clisp.org>
62308
62309         * modules/gc-des (Depends-on): Add stdbool.
62310
62311 2007-03-11  Bruno Haible  <bruno@clisp.org>
62312
62313         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62314
62315 2007-03-11  Bruno Haible  <bruno@clisp.org>
62316
62317         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62318
62319 2007-03-11  Bruno Haible  <bruno@clisp.org>
62320
62321         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62322
62323 2007-03-11  Bruno Haible  <bruno@clisp.org>
62324
62325         * lib/vasnprintf.c (sprintf): Undefine.
62326
62327 2007-03-11  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62330         initializers in SunPRO C and Compaq C compilers.
62331
62332 2007-03-11  Bruno Haible  <bruno@clisp.org>
62333
62334         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62335         decrementing code ANSI C compliant.
62336
62337 2007-03-11  Bruno Haible  <bruno@clisp.org>
62338
62339         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62340         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62341
62342 2007-03-11  Bruno Haible  <bruno@clisp.org>
62343
62344         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62345         <stdbool.h> substitute doesn't pass.
62346
62347 2007-03-11  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62350
62351 2007-03-11  Bruno Haible  <bruno@clisp.org>
62352
62353         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62354         script, for submission to autobuild.josefsson.org.
62355
62356 2007-03-10  Bruno Haible  <bruno@clisp.org>
62357
62358         * modules/canonicalize-lgpl-tests: New file.
62359         * tests/test-canonicalize-lgpl.sh: New file.
62360         * tests/test-canonicalize-lgpl.c: New file.
62361
62362         * modules/c-strcase-tests: New file.
62363         * tests/test-c-strcase.sh: New file.
62364         * tests/test-c-strcasecmp.c: New file.
62365         * tests/test-c-strncasecmp.c: New file.
62366
62367         * modules/atexit-tests: New file.
62368         * tests/test-atexit.sh: New file.
62369         * tests/test-atexit.c: New file.
62370
62371 2007-03-10  Bruno Haible  <bruno@clisp.org>
62372
62373         * tests/test-binary-io.sh: Use temporary filenames that are not so
62374         likely to clash with those of other tests (in a parallel make).
62375         * tests/test-binary-io.c: Likewise.
62376
62377 2007-03-10  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62380         fallback; use #error instead.
62381         Suggested by Simon Josefsson.
62382
62383 2007-03-10  Bruno Haible  <bruno@clisp.org>
62384
62385         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62386         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62387         first and the last.
62388
62389 2007-03-10  Bruno Haible  <bruno@clisp.org>
62390
62391         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62392
62393 2007-03-10  Bruno Haible  <bruno@clisp.org>
62394
62395         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62396         "make distcheck".
62397         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62398         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62399         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62400
62401 2007-03-10  Bruno Haible  <bruno@clisp.org>
62402
62403         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62404         variable.
62405         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62406         variable.
62407
62408 2007-03-09  Eric Blake  <ebb9@byu.net>
62409         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62410
62411         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62412         types are not being provided by gnulib.
62413         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62414         types are supported.
62415
62416 2007-03-10  Bruno Haible  <bruno@clisp.org>
62417
62418         * lib/stdio_.h (__attribute__): New macro.
62419         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62420         vsprintf): Specify __attribute__ __format__ for GCC.
62421         Suggested by Eric Blake.
62422
62423 2007-03-09  Bruno Haible  <bruno@clisp.org>
62424
62425         * modules/printf-posix-tests: New file.
62426         * tests/test-printf-posix.sh: New file.
62427         * tests/test-printf-posix.c: New file.
62428
62429         * modules/printf-posix: New file.
62430         * lib/printf.c: New file.
62431         * m4/printf-posix-rpl.m4: New file.
62432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62433         REPLACE_PRINTF.
62434         * lib/stdio_.h (printf): New declaration.
62435         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62436         ____strfmon____): New macros.
62437         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62438         REPLACE_PRINTF.
62439
62440 2007-03-09  Bruno Haible  <bruno@clisp.org>
62441
62442         * tests/test-vasnprintf-posix2.sh: New file.
62443         * tests/test-vasnprintf-posix2.c: New file.
62444         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62445         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62446         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62447
62448         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62449         a locale dependent decimal point, rather than always '.'.
62450
62451 2007-03-09  Eric Blake  <ebb9@byu.net>
62452
62453         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62454         spite of platforms like Tandem/NSK that define it to -1.
62455
62456 2007-03-08  Bruno Haible  <bruno@clisp.org>
62457
62458         * modules/vprintf-posix-tests: New file.
62459         * tests/test-vprintf-posix.sh: New file.
62460         * tests/test-vprintf-posix.c: New file.
62461         * tests/test-printf-posix.h: New file.
62462
62463         * modules/vprintf-posix: New file.
62464         * lib/vprintf.c: New file.
62465         * m4/vprintf-posix.m4: New file.
62466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62467         REPLACE_VPRINTF.
62468         * lib/stdio_.h (vprintf): New declaration.
62469         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62470         REPLACE_VPRINTF.
62471
62472 2007-03-08  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/fprintf-posix-tests: New file.
62475         * tests/test-fprintf-posix.sh: New file.
62476         * tests/test-fprintf-posix.c: New file.
62477
62478         * modules/fprintf-posix: New file.
62479         * lib/fprintf.c: New file.
62480         * m4/fprintf-posix.m4: New file.
62481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62482         REPLACE_FPRINTF.
62483         * lib/stdio_.h (fprintf): New declaration.
62484         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62485         REPLACE_FPRINTF.
62486
62487 2007-03-08  Bruno Haible  <bruno@clisp.org>
62488
62489         * modules/vfprintf-posix-tests: New file.
62490         * tests/test-vfprintf-posix.sh: New file.
62491         * tests/test-vfprintf-posix.c: New file.
62492         * tests/test-fprintf-posix.h: New file.
62493         * tests/test-fprintf-posix.out: New file.
62494
62495         * modules/vfprintf-posix: New file.
62496         * lib/vfprintf.c: New file.
62497         * m4/vfprintf-posix.m4: New file.
62498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62499         REPLACE_VFPRINTF.
62500         * lib/stdio_.h (vfprintf): New declaration.
62501         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62502         REPLACE_VFPRINTF.
62503
62504 2007-03-08  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62507
62508 2007-03-08  Bruno Haible  <bruno@clisp.org>
62509
62510         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62511         instead of 'expr' invocations.
62512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62515         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62516         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62517         Suggested by Paul Eggert.
62518
62519 2007-03-08  Bruno Haible  <bruno@clisp.org>
62520
62521         * modules/fseterr-tests: New file.
62522         * tests/test-fseterr.c: New file.
62523
62524         * modules/fseterr: New file.
62525         * lib/fseterr.h: New file.
62526         * lib/fseterr.c: New file.
62527
62528 2007-03-08  Bruno Haible  <bruno@clisp.org>
62529
62530         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62531         * lib/getopt_.h: Likewise.
62532         * lib/mbswidth.h: Likewise.
62533         * lib/setenv.h: Likewise.
62534         * lib/vasnprintf.h: Likewise.
62535         * lib/vasprintf.h: Likewise.
62536         * lib/verror.h: Likewise.
62537         * lib/xsetenv.h: Likewise.
62538         * lib/xvasprintf.h: Likewise.
62539
62540 2007-03-08  Jim Meyering  <jim@meyering.net>
62541
62542         * users.txt: Add parted.
62543
62544         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62545
62546 2007-03-07  Bruno Haible  <bruno@clisp.org>
62547
62548         * m4/printf.m4: Make the shell script snippets copy&pastable.
62549
62550 2007-03-02  Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/netinet_in_.h: New file.
62553         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62554         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62555         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62556         (Depends-on): Add absolute-header.
62557         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62558         into netinet/in.h.
62559
62560 2007-03-03  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/sys_select_.h: New file.
62563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62564         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62565         * modules/sys_select (Files): Add lib/sys_select_.h.
62566         (Depends-on): Add absolute-header.
62567         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62568         into sys/select.h.
62569
62570 2007-03-02  Bruno Haible  <bruno@clisp.org>
62571
62572         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62573         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62574         values.
62575         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62576         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62577         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62578         * modules/sys_socket (Depends-on): Add absolute-header.
62579         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62580         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62581         (Include): Remove requirement of inclusion of <sys/types.h>.
62582
62583 2007-03-02  Bruno Haible  <bruno@clisp.org>
62584
62585         * lib/byteswap_.h (bswap_32): Fix formula.
62586
62587 2007-03-06  Bruno Haible  <bruno@clisp.org>
62588
62589         * modules/sprintf-posix-tests: New file.
62590         * tests/test-sprintf-posix.c: New file.
62591
62592         * modules/sprintf-posix: New file.
62593         * lib/sprintf.c: New file.
62594         * m4/sprintf-posix.m4: New file.
62595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62596         REPLACE_SPRINTF.
62597         * lib/stdio_.h (sprintf): New declaration.
62598         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62599         REPLACE_SPRINTF.
62600
62601 2007-03-06  Bruno Haible  <bruno@clisp.org>
62602
62603         * modules/vsprintf-posix-tests: New file.
62604         * tests/test-vsprintf-posix.c: New file.
62605         * tests/test-sprintf-posix.h: New file.
62606
62607         * modules/vsprintf-posix: New file.
62608         * lib/vsprintf.c: New file.
62609         * m4/vsprintf-posix.m4: New file.
62610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62611         REPLACE_VSPRINTF.
62612         * lib/stdio_.h (vsprintf): New declaration.
62613         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62614         REPLACE_VSPRINTF.
62615
62616 2007-03-06  Bruno Haible  <bruno@clisp.org>
62617
62618         * modules/vsnprintf (Depend-on): Remove minmax.
62619
62620 2007-03-06  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/snprintf-posix-tests: New file.
62623         * tests/test-snprintf-posix.c: New file.
62624
62625         * modules/snprintf-posix: New file.
62626         * m4/snprintf-posix.m4: New file.
62627         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62628         gl_FUNC_SNPRINTF.
62629         (gl_FUNC_SNPRINTF): Invoke it.
62630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62631         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62632         is set.
62633         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62634
62635 2007-03-06  Bruno Haible  <bruno@clisp.org>
62636
62637         * modules/vsnprintf-posix-tests: New file.
62638         * tests/test-vsnprintf-posix.c: New file.
62639         * tests/test-snprintf-posix.h: New file.
62640
62641         * modules/vsnprintf-posix: New file.
62642         * m4/vsnprintf-posix.m4: New file.
62643         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62644         gl_FUNC_VSNPRINTF.
62645         (gl_FUNC_VSNPRINTF): Invoke it.
62646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62647         * lib/stdio_.h (vsnprintf): Define as a replacement if
62648         REPLACE_VSNPRINTF is set.
62649         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62650
62651 2007-03-06  Bruno Haible  <bruno@clisp.org>
62652
62653         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62655
62656 2007-03-06  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62659         (asinl): Declare also if HAVE_DECL_ASINL is set.
62660         (atanl): Declare also if HAVE_DECL_ATANL is set.
62661         (ceill): Declare also if HAVE_DECL_CEILL is set.
62662         (cosl): Declare also if HAVE_DECL_COSL is set.
62663         (expl): Declare also if HAVE_DECL_EXPL is set.
62664         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62665         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62666         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62667         (logl): Declare also if HAVE_DECL_LOGL is set.
62668         (sinl): Declare also if HAVE_DECL_SINL is set.
62669         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62670         (tanl): Declare also if HAVE_DECL_TANL is set.
62671         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62673         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62674         declaration of frexpl, ldexpl.
62675         * modules/printf-frexpl (Depends-on): Add math.
62676         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62677
62678 2007-03-05  Bruno Haible  <bruno@clisp.org>
62679
62680         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62681         frexpl and ldexpl are declared.
62682         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62683
62684 2007-03-05  Bruno Haible  <bruno@clisp.org>
62685
62686         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62687         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62688
62689 2007-03-05  Bruno Haible  <bruno@clisp.org>
62690
62691         * lib/stdio_.h: Include <stddef.h>.
62692
62693 2007-03-05  Bruno Haible  <bruno@clisp.org>
62694
62695         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62696
62697 2007-03-05  Bruno Haible  <bruno@clisp.org>
62698
62699         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62700         NetBSD 4, from Ralf Wildenhues.
62701
62702 2007-03-04  Bruno Haible  <bruno@clisp.org>
62703
62704         * lib/vasprintf.h: Update #if logic for the case when the functions
62705         exist but are overridden.
62706
62707 2007-03-04  Bruno Haible  <bruno@clisp.org>
62708
62709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62710         implementations: glibc-2.4 and MacOS X 10.3.
62711         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62712         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62713         * tests/test-vasprintf-posix.c (test_function): Likewise.
62714
62715 2007-03-04  Bruno Haible  <bruno@clisp.org>
62716
62717         * modules/vasprintf-posix-tests: New file.
62718         * tests/test-vasprintf-posix.c: New file.
62719
62720         * modules/vasprintf-posix: New file.
62721         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62722         defined.
62723         * m4/vasprintf-posix.m4: New file.
62724         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62725         gl_FUNC_VASPRINTF.
62726         (gl_FUNC_VASPRINTF): Invoke it.
62727         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62728         here.
62729         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62730
62731 2007-03-04  Bruno Haible  <bruno@clisp.org>
62732
62733         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62734         REPLACE_GETTIMEOFDAY.
62735         * modules/sys_time (Makefile.am): Likewise.
62736         * m4/sys_time_h.m4: Likewise.
62737         * m4/gettimeofday.m4: Likewise.
62738
62739 2007-03-04  Bruno Haible  <bruno@clisp.org>
62740
62741         * modules/vasnprintf-posix-tests: New file.
62742         * tests/test-vasnprintf-posix.c: New file.
62743
62744         * modules/vasnprintf-posix: New file.
62745         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62746         printf-frexpl.h.
62747         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62748         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62749         REPLACE_VASNPRINTF is defined.
62750         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62751         gl_FUNC_VASNPRINTF.
62752         (gl_FUNC_VASNPRINTF): Invoke it.
62753         * m4/vasnprintf-posix.m4: New file.
62754         * m4/printf.m4: New file.
62755
62756 2007-03-04  Bruno Haible  <bruno@clisp.org>
62757
62758         Compile progreloc.c only if --enable-relocatable is specified.
62759         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62760         if --enable-relocatable was specified.
62761         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62762         lib_SOURCES.
62763
62764 2007-03-04  Jim Meyering  <jim@meyering.net>
62765
62766         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62767         Use it consistently, rather than enumerating errno constants.
62768
62769 2007-03-04  Bruno Haible  <bruno@clisp.org>
62770
62771         * modules/xvasprintf-tests: New file.
62772         * tests/test-xvasprintf.c: New file.
62773
62774         * modules/vasprintf-tests: New file.
62775         * tests/test-vasprintf.c: New file.
62776
62777         * modules/vasnprintf-tests: New file.
62778         * tests/test-vasnprintf.c: New file.
62779
62780         * modules/vsnprintf-tests: New file.
62781         * tests/test-vsnprintf.c: New file.
62782
62783         * modules/snprintf-tests: New file.
62784         * tests/test-snprintf.c: New file.
62785
62786 2007-03-04  Bruno Haible  <bruno@clisp.org>
62787
62788         Compile relocatable.c only if --enable-relocatable is specified.
62789         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62790         gl_RELOCATABLE_LIBRARY.
62791         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62792         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62793         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62794         gl_RELOCATABLE_LIBRARY.
62795         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62796         (Makefile.am): Remove lib_SOURCES.
62797         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62798         gl_RELOCATABLE_LIBRARY.
62799         (Makefile.am): Remove lib_SOURCES.
62800         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62801         always.
62802         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62803         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62804
62805 2007-03-04  Bruno Haible  <bruno@clisp.org>
62806
62807         * modules/argmatch-tests: New file.
62808         * tests/test-argmatch.c: New file.
62809
62810         * tests/test-allocsa.c (main): Halve the number of loop runs.
62811
62812         * modules/alloca-opt-tests: New file.
62813         * tests/test-alloca-opt.c: New file.
62814
62815 2007-03-04  Jim Meyering  <jim@meyering.net>
62816
62817         Work around difference between Linux ACLs and Solaris 10 ZFS.
62818         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62819         for EINVAL.
62820
62821 2007-03-03  Bruno Haible  <bruno@clisp.org>
62822
62823         * modules/relocatable-prog (Depends-on): Add back progreloc's
62824         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62825
62826 2007-03-03  Bruno Haible  <bruno@clisp.org>
62827
62828         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62829         * modules/relocatable-lib: New file.
62830
62831 2007-03-03  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/relocatable-prog: Renamed from modules/relocatable.
62834         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62835
62836 2007-03-03  Bruno Haible  <bruno@clisp.org>
62837
62838         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62839         m4/relocatable-lib.m4.
62840         (Depends-on): Remove 'relocatable'.
62841         (configure.ac): Add gl_RELOCATABLE_NOP.
62842
62843 2007-03-03  Bruno Haible  <bruno@clisp.org>
62844
62845         * modules/relocatable-prog-wrapper: New file.
62846         * modules/relocatable (Depends-on): Add it. Remove all other
62847         dependencies except progname.
62848         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62849
62850         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62851         (gl_FUNC_STRERROR): Nop.
62852         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62853
62854         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62855         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62856
62857         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62858         (gl_FUNC_READLINK): Update.
62859
62860         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62861
62862 2007-03-03  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62865         * modules/xreadlink (Depends-on): Add unistd.
62866         * modules/xreadlink-with-size (Depends-on): Likewise.
62867
62868 2007-03-03  Bruno Haible  <bruno@clisp.org>
62869
62870         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62871         extracted from gt_FUNC_SETENV.
62872         (gt_FUNC_SETENV): Remove macro.
62873         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62874         remove gt_FUNC_SETENV.
62875
62876 2007-03-03  Bruno Haible  <bruno@clisp.org>
62877
62878         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62879         ENABLE_RELOCATABLE here.
62880         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62881
62882 2007-03-03  Bruno Haible  <bruno@clisp.org>
62883
62884         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62885         * tests/test-rbtreehash_list.c: Include progname.h.
62886         (main): Call set_program_name.
62887
62888         * modules/rbtree-oset-tests (Depends-on): Add progname.
62889         * tests/test-rbtree_oset.c: Include progname.h.
62890         (main): Call set_program_name.
62891
62892         * modules/rbtree-list-tests (Depends-on): Add progname.
62893         * tests/test-rbtree_list.c: Include progname.h.
62894         (main): Call set_program_name.
62895
62896         * modules/linked-list-tests (Depends-on): Add progname.
62897         * tests/test-linked_list.c: Include progname.h.
62898         (main): Call set_program_name.
62899
62900 2007-03-03  Bruno Haible  <bruno@clisp.org>
62901
62902         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62903         All uses of __restrict changed to _Restrict_.
62904         * lib/glob_.h (__restrict): Remove macro.
62905
62906 2007-03-02  Bruno Haible  <bruno@clisp.org>
62907
62908         * modules/gettext (configure.ac): Require gettext infrastructure
62909         from version 0.16.1.
62910
62911 2007-03-02  Bruno Haible  <bruno@clisp.org>
62912
62913         * modules/linkedhash-list-tests (Depends-on): Add progname.
62914         * tests/test-linkedhash_list.c: Include progname.h.
62915         (main): Call set_program_name.
62916
62917         * modules/carray-list-tests (Depends-on): Add progname.
62918         * tests/test-carray_list.c: Include progname.h.
62919         (main): Call set_program_name.
62920
62921         * modules/avltreehash-list-tests (Depends-on): Add progname.
62922         * tests/test-avltreehash_list.c: Include progname.h.
62923         (main): Call set_program_name.
62924
62925         * modules/avltree-oset-tests (Depends-on): Add progname.
62926         * tests/test-avltree_oset.c: Include progname.h.
62927         (main): Call set_program_name.
62928
62929         * modules/avltree-list-tests (Depends-on): Add progname.
62930         * tests/test-avltree_list.c: Include progname.h.
62931         (main): Call set_program_name.
62932
62933         * modules/array-oset-tests (Depends-on): Add progname.
62934         * tests/test-array_oset.c: Include progname.h.
62935         (main): Call set_program_name.
62936
62937         * modules/array-list-tests (Depends-on): Add progname.
62938         * tests/test-array_list.c: Include progname.h.
62939         (main): Call set_program_name.
62940
62941         * modules/argp-tests (Depends-on): Add progname.
62942         * tests/test-argp.c: Include argp.h first. Include progname.h.
62943         (main): Call set_program_name.
62944
62945 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * doc/gnulib-tool.texi (Initial import): Reword description of
62948         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62949         limited effect even if defined after the first system include.
62950
62951 2007-03-01  Bruno Haible  <bruno@clisp.org>
62952
62953         * build-aux/config.libpath: Update to libtool-1.5.22.
62954         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62955
62956 2007-03-01  Bruno Haible  <bruno@clisp.org>
62957
62958         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62959         foo_CFLAGS.
62960         Reported by Ralf Wildenhues.
62961
62962 2007-03-01  Bruno Haible  <bruno@clisp.org>
62963
62964         * build-aux/install-reloc: Remove object files left over by some
62965         compilers.
62966         Reported by Ralf Wildenhues.
62967
62968 2007-03-01  Bruno Haible  <bruno@clisp.org>
62969
62970         * build-aux/install-reloc: Break long lines.
62971
62972 2007-03-01  Bruno Haible  <bruno@clisp.org>
62973
62974         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62975         Reported by Ralf Wildenhues.
62976
62977 2007-03-01  Bruno Haible  <bruno@clisp.org>
62978
62979         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62980         include ordering constraints.
62981
62982 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62983
62984         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62986         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62987         as another example.
62988         * lib/time_.h: Fix misspelling.
62989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62990         Require gl_HEADER_TIME_H_DEFAULTS.
62991         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62992         * m4/time_r.m4 (gl_TIME_R): Likewise.
62993         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62994
62995 2007-03-01  Bruno Haible  <bruno@clisp.org>
62996
62997         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62998         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62999
63000 2007-03-01  Jim Meyering  <jim@meyering.net>
63001
63002         * modules/xreadlink (Maintainer): Add my name.
63003         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63004
63005 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63006             Bruno Haible  <bruno@clisp.org>
63007
63008         * build-aux/install-reloc: Compile also c-ctype.c.
63009         * build-aux/relocatable.sh.in: New file.
63010         * doc/relocatable.texi: New file.
63011         * doc/relocatable-maint.texi: New file.
63012         * doc/gnulib.texi: Include relocatable-maint.texi.
63013         * lib/progreloc.c: Include unistd.h unconditionally.
63014         * lib/relocwrapper.c: Include unistd.h unconditionally.
63015         Include c-ctype.h.
63016         (add_dotbin): Use c_tolower.
63017         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63018         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63019         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63020         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63021         to m4/relocatable-lib.m4.
63022         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63023         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63024         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63025         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63026         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63027         * modules/relocatable: New file.
63028         * modules/relocatable-lib: New file.
63029         * modules/relocatable-script: New file.
63030
63031 2007-02-28  Bruno Haible  <bruno@clisp.org>
63032
63033         Import --enable-relocatable infrastructure.
63034         * build-aux/config.libpath: New file, from GNU gettext.
63035         * build-aux/install-reloc: New file, from GNU gettext.
63036         * build-aux/reloc-ldflags: New file, from GNU gettext.
63037         * lib/relocatable.h: New file, from GNU gettext.
63038         * lib/relocatable.c: New file, from GNU gettext.
63039         * lib/relocwrapper.c: New file, from GNU gettext.
63040         * m4/relocatable.m4: New file, from GNU gettext.
63041
63042 2007-02-28  Bruno Haible  <bruno@clisp.org>
63043
63044         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63045
63046         * modules/xreadlink: New file, from GNU gettext with modifications.
63047         * lib/xreadlink.c: New file, from GNU gettext.
63048         * lib/xreadlink.h: Add comments.
63049         (xreadlink): New declaration.
63050
63051         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63052         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63053         lib/xreadlink-with-size.c.
63054         (configure.ac): Remove gl_XREADLINK invocation.
63055         (Makefile.am): Augment lib_SOURCES.
63056         * m4/xreadlink.m4: Remove file.
63057         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63058         (xreadlink_with_size): Renamed from xreadink.
63059         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63060         * modules/canonicalize (Depends-on): Replace xreadlink with
63061         xreadlink-with-size.
63062         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63063
63064 2007-02-25  Jim Meyering  <jim@meyering.net>
63065
63066         * build-aux/announce-gen: When complaining about excess arguments,
63067         list them.
63068
63069 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63070
63071         * README: Document signed integer overflow situation more
63072         accurately.
63073
63074 2007-02-25  Bruno Haible  <bruno@clisp.org>
63075
63076         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63077         'a' or 'A' conversion.
63078
63079 2007-02-25  Bruno Haible  <bruno@clisp.org>
63080
63081         * modules/filename: Renamed from modules/pathname.
63082         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63083         lib/concatpath.c with lib/concat-filename.c.
63084         (Makefile.am): Update.
63085         (Include): Replace pathname.h with filename.h.
63086         * lib/filename.h: Renamed from lib/pathname.h.
63087         (concatenated_filename): Renamed from concatenated_pathname.
63088         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63089         (concatenated_filename): Renamed from concatenated_pathname.
63090         * lib/findprog.c: Include filename.h instead of pathname.h.
63091         (find_in_path): Update.
63092         * lib/javacomp.c: Include filename.h instead of pathname.h.
63093         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63094         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63095         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63096         is_oldgcj_14_13_usable, is_javac_usable): Update.
63097         * lib/javaexec.c: Include filename.h instead of pathname.h.
63098         (execute_java_class): Update.
63099         * modules/findprog: Update.
63100         * modules/javacomp: Update.
63101         * modules/javaexec: Update.
63102         * MODULES.html.sh (File system functions): Add 'filename', remove
63103         'pathname'.
63104
63105 2007-02-25  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/printf-frexpl-tests: New file.
63108         * tests/test-printf-frexpl.c: New file.
63109
63110         * modules/printf-frexpl: New file.
63111         * lib/printf-frexpl.h: New file.
63112         * lib/printf-frexpl.c: New file.
63113         * m4/printf-frexpl.m4: New file.
63114
63115 2007-02-25  Bruno Haible  <bruno@clisp.org>
63116
63117         * modules/printf-frexp-tests: New file.
63118         * tests/test-printf-frexp.c: New file.
63119
63120         * modules/printf-frexp: New file.
63121         * lib/printf-frexp.h: New file.
63122         * lib/printf-frexp.c: New file.
63123         * m4/printf-frexp.m4: New file.
63124
63125 2007-02-25  Bruno Haible  <bruno@clisp.org>
63126
63127         Assume automake >= 1.10 for the tests.
63128         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63129         * modules/arctwo-tests: Likewise.
63130         * modules/argp-tests: Likewise.
63131         * modules/avltree-list-tests: Likewise.
63132         * modules/avltree-oset-tests: Likewise.
63133         * modules/avltreehash-list-tests: Likewise.
63134         * modules/carray-list-tests: Likewise.
63135         * modules/crc-tests: Likewise.
63136         * modules/des-tests: Likewise.
63137         * modules/gc-arcfour-tests: Likewise.
63138         * modules/gc-arctwo-tests: Likewise.
63139         * modules/gc-des-tests: Likewise.
63140         * modules/gc-hmac-md5-tests: Likewise.
63141         * modules/gc-hmac-sha1-tests: Likewise.
63142         * modules/gc-md2-tests: Likewise.
63143         * modules/gc-md4-tests: Likewise.
63144         * modules/gc-md5-tests: Likewise.
63145         * modules/gc-pbkdf2-sha1-tests: Likewise.
63146         * modules/gc-rijndael-tests: Likewise.
63147         * modules/gc-sha1-tests: Likewise.
63148         * modules/gc-tests: Likewise.
63149         * modules/getaddrinfo-tests: Likewise.
63150         * modules/hmac-md5-tests: Likewise.
63151         * modules/hmac-sha1-tests: Likewise.
63152         * modules/linked-list-tests: Likewise.
63153         * modules/linkedhash-list-tests: Likewise.
63154         * modules/lock-tests: Likewise.
63155         * modules/md2-tests: Likewise.
63156         * modules/md4-tests: Likewise.
63157         * modules/md5-tests: Likewise.
63158         * modules/rbtree-list-tests: Likewise.
63159         * modules/rbtree-oset-tests: Likewise.
63160         * modules/rbtreehash-list-tests: Likewise.
63161         * modules/read-file-tests: Likewise.
63162         * modules/rijndael-tests: Likewise.
63163         * modules/stdint-tests: Likewise.
63164         * modules/tls-tests: Likewise.
63165
63166 2007-02-24  Bruno Haible  <bruno@clisp.org>
63167
63168         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63169         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63170         function; instead check whether isnan with a double argument links.
63171         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63172         function; instead check whether isnan with a 'long double' argument
63173         links.
63174         Reported by Eric Blake <ebb9@byu.net>.
63175
63176 2007-02-24  Bruno Haible  <bruno@clisp.org>
63177
63178         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63179         defined.
63180         * lib/isnanl.c: Remove all code. Just include isnan.c.
63181         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63182
63183 2007-02-25  Jim Meyering  <jim@meyering.net>
63184
63185         Avoid conflicting types for 'unsetenv' on FreeBSD.
63186         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63187         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63188         in stdlib.h.
63189
63190 2007-02-24  Bruno Haible  <bruno@clisp.org>
63191
63192         * modules/isnanl-nolibm-tests: New file.
63193         * tests/test-isnanl.c: New file.
63194
63195         * modules/isnanl-nolibm: New file.
63196         * lib/isnanl.h: New file.
63197         * lib/isnanl.c: New file.
63198         * m4/isnanl.m4: New file.
63199
63200 2007-02-24  Bruno Haible  <bruno@clisp.org>
63201
63202         * modules/isnan-nolibm-tests: New file.
63203         * tests/test-isnan.c: New file.
63204
63205         * modules/isnan-nolibm: New file.
63206         * lib/isnan.h: New file.
63207         * lib/isnan.c: New file.
63208         * m4/isnan.m4: New file.
63209
63210 2007-02-24  Bruno Haible  <bruno@clisp.org>
63211
63212         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63213         assume that an exponent fits in 20 bits.
63214
63215 2007-02-24  Jim Meyering  <jim@meyering.net>
63216
63217         * m4/regex.m4: Update the description of the configure-time option,
63218         --without-included-regex, to state accurately what the defaults are,
63219         and perhaps to give people an idea why using this option is risky.
63220
63221 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63224         loops on small arguments.  This attempts to avoid the problem
63225         Bruno Haible reported for AIX 4.3.2 in
63226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63227
63228 2007-02-23  Bruno Haible  <bruno@clisp.org>
63229
63230         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63231         Needed for help2man.
63232
63233 2007-02-23  Karl Berry  <karl@gnu.org>
63234
63235         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63236         exists, foo.h should be cvs-ignored, not committed.
63237
63238 2007-02-23  Eric Blake  <ebb9@byu.net>
63239
63240         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63241         * lib/stat-time.h (includes): Likewise.
63242         * lib/utimecmp.c (includes): Likewise.
63243         * lib/utimens.h (includes): Likewise.
63244         * lib/getdate.y (includes): Also include "timespec.h" for use
63245         internal to the module.
63246         * modules/utimens (Depends-on): Revert yesterday's patch.
63247         * modules/nanosleep (Depends-on): Add missing dependency.
63248
63249 2007-02-22  Bruno Haible  <bruno@clisp.org>
63250
63251         * lib/glob.c: Don't include getlogin_r.h.
63252
63253 2007-02-22  Jim Meyering  <jim@meyering.net>
63254
63255         * modules/utimens (Depends-on): Add timespec, required for
63256         utimens.h's inclusion of timespec.h.
63257
63258 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63261         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63262         Schwab in
63263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63264         I'll try to think of a better way to fix the Solaris problem.
63265
63266         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63267         like glibc; on Solaris 10, it fails with errno == EINVAL.
63268         POSIX says the behavior is unspecified if the first argument is NULL,
63269         so play it safe and never pass NULL to the system getcwd.
63270
63271 2007-02-21  Jim Meyering  <jim@meyering.net>
63272
63273         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63274         of gettimeofday.  It would conflict with the one now always
63275         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63276         an IRIX 6.5 build failure.
63277
63278 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         Minor fixups to port to Solaris 10 with Sun C 5.8.
63281         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63282         * modules/getcwd (Depends-on): Add dirfd.
63283         * lib/putenv.c (putenv): #undef it.
63284         (rpl_putenv): New decl.
63285         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63286
63287 2007-02-20  Bruno Haible  <bruno@clisp.org>
63288
63289         * modules/stdio-tests: New file.
63290         * tests/test-stdio.c: New file.
63291
63292         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63293         (Depends-on): Add stdio.
63294         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63295         (Include): Use <stdio.h> instead of vsnprintf.h.
63296         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63297         HAVE_DECL_VSNPRINTF.
63298         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63299
63300         * modules/snprintf (Files): Remove lib/snprintf.h.
63301         (Depends-on): Add stdio.
63302         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63303         (Include): Use <stdio.h> instead of snprintf.h.
63304         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63305         HAVE_DECL_SNPRINTF.
63306         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63307         * lib/getaddrinfo.c: Likewise.
63308
63309         * modules/stdio: New file.
63310         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63311         * lib/snprintf.h: Remove file.
63312         * lib/vsnprintf.h: Remove file.
63313         * lib/.cppi-disable: Remove snprintf.h.
63314         * m4/stdio_h.m4: New file.
63315         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63316
63317 2007-02-20  Jim Meyering  <jim@meyering.net>
63318
63319         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63320         used by e.g., mingw.  From Bruno Haible.
63321
63322 2007-02-19  Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63325         warnings.
63326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63327
63328 2007-02-19  Bruno Haible  <bruno@clisp.org>
63329
63330         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63331         from mingw users.
63332
63333 2007-02-19  Bruno Haible  <bruno@clisp.org>
63334
63335         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63336         warnings.
63337         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63338
63339 2007-02-19  Jim Meyering  <jim@meyering.net>
63340
63341         Don't use FD after a successful "fdopendir (fd)".
63342         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63343         Reset it by calling dirfd on the just-obtained DIR*.
63344
63345         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63346         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63347
63348 2007-02-18  Bruno Haible  <bruno@clisp.org>
63349
63350         * lib/readlink.c: Include <unistd.h>.
63351         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63352         HAVE_READLINK.
63353         * modules/readlink (Depends-on): Add unistd.
63354         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63355         (Include): Add <unistd.h>.
63356
63357         * lib/getlogin_r.h: Remove file.
63358         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63359         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63360         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63361         HAVE_DECL_GETLOGIN_R.
63362         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63364         (Include): Use <unistd.h> instead of getlogin_r.h.
63365
63366         * lib/getcwd.h: Remove file.
63367         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63368         * lib/xgetcwd.c: Likewise.
63369         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63370         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63371         * modules/getcwd (Files): Remove lib/getcwd.h.
63372         (Depends-on): Add unistd.
63373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63374         (Include): Use <unistd.h> instad of getcwd.h.
63375
63376         * lib/ftruncate.c: Include <unistd.h> first.
63377         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63378         Set HAVE_FTRUNCATE.
63379         * modules/ftruncate (Depends-on): Add unistd.
63380         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63381
63382         * lib/fchdir.c: Include <unistd.h> first.
63383         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63385         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63386         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63387         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63388
63389         * lib/dup2.c: Include <unistd.h> first.
63390         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63391         HAVE_DUP2.
63392         * modules/dup2 (Depends-on): Add unistd.
63393         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63394
63395         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63396         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63397         REPLACE_CHOWN. Don't define chown as a macro here.
63398         * modules/chown (Depends-on): Add unistd.
63399         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63400
63401         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63402         Add definition for GL_LINK_WARNING.
63403         (chown, dup2): New declarations.
63404         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63405         link warning.
63406         (ftruncate): New declaration.
63407         (getcwd): New declaration, taken from old getcwd.h.
63408         (getlogin_r): New declaration, taken from old getlogin_r.h.
63409         (readlink): New declaration.
63410         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63411         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63412         (gl_PREREQ_UNISTD): Remove macro.
63413         (gl_UNISTD_MODULE_INDICATOR): New macro.
63414         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63415         many new variables. Don't set UNISTD_H.
63416         * modules/unistd (Description): Change.
63417         (Depends-on): Add link-warning.
63418         (configure.ac): Update.
63419         (Makefile.am): Create unistd.h always. Substitute many new variables
63420         into it.
63421
63422 2007-02-18  Bruno Haible  <bruno@clisp.org>
63423
63424         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63425         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63426         HAVE_GETSUBOPT.
63427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63428         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63429         * lib/getsubopt.h: Remove file.
63430         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63431         (Depends-on): Add stdlib.
63432         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63433         (Includes): Use <stdlib.h> instead of getsubopt.h.
63434         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63435         Set HAVE_GETSUBOPT.
63436         * lib/getsubopt.c: Don't include getsubopt.h.
63437
63438 2007-02-18  Bruno Haible  <bruno@clisp.org>
63439
63440         * modules/fchdir (Depends-on): Add dup2.
63441
63442 2007-02-18  Bruno Haible  <bruno@clisp.org>
63443
63444         * lib/stdlib_.h: Handle glibc's special invocation convention
63445         specially.
63446
63447 2007-02-18  Bruno Haible  <bruno@clisp.org>
63448
63449         * modules/stdlib-tests: New file.
63450         * tests/test-stdlib.c: New file.
63451
63452         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63453         (Depends-on): Add stdlib.
63454         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63455         (Includes): Use <stdlib.h> instead of mkstemp.h.
63456         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63457         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63458         * lib/mkstemp.c: Don't include mkstemp.h.
63459         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63460         * lib/stdlib--.h: Don't include mkstemp.h.
63461
63462         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63463         (Depends-on): Add stdlib.
63464         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63465         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63466         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63467         HAVE_MKDTEMP.
63468         * lib/mkdtemp.c: Don't include mkdtemp.h.
63469         * lib/clean-temp.c: Don't include mkdtemp.h.
63470
63471         * modules/exit (Files): Remove lib/exit.h.
63472         (Depends-on): Add stdlib.
63473         (Makefile.am): Remove lib_SOURCES.
63474         (Include): Use <stdlib.h> instead of exit.h.
63475         * lib/argmatch.c: Don't include exit.h.
63476         * lib/execute.c: Likewise.
63477         * lib/pagealign_alloc.c: Likewise.
63478         * lib/pipe.c: Likewise.
63479         * lib/wait-process.c: Likewise.
63480         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63481         * lib/exitfail.c: Likewise.
63482         * lib/savewd.c: Likewise.
63483         * lib/xsetenv.c: Likewise.
63484
63485         * modules/stdlib: New file.
63486         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63487         and extra comments about mkstemp().
63488         * lib/exit.h: Remove file.
63489         * lib/mkdtemp.h: Remove file.
63490         * lib/mkstemp.h: Remove file.
63491         * m4/stdlib_h.m4: New file.
63492         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63493
63494 2007-02-18  Bruno Haible  <bruno@clisp.org>
63495
63496         * modules/math-tests: New file.
63497         * tests/test-math.c: New file.
63498
63499         * modules/math: New file.
63500         * modules/mathl (Files): Remove lib/mathl.h.
63501         (Depends-on): Add math.
63502         (Makefile.am): Don't mention mathl.h.
63503         (Include): Use <math.h> instead of mathl.h.
63504         * lib/math_.h: New file.
63505         * lib/mathl.h: Remove file.
63506         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63507         mathl.h.
63508         * lib/asinl.c: Likewise.
63509         * lib/atanl.c: Likewise.
63510         * lib/ceill.c: Likewise.
63511         * lib/cosl.c: Likewise.
63512         * lib/expl.c: Likewise.
63513         * lib/floorl.c: Likewise.
63514         * lib/frexpl.c: Likewise.
63515         * lib/ldexpl.c: Likewise.
63516         * lib/logl.c: Likewise.
63517         * lib/sincosl.c: Likewise.
63518         * lib/sinl.c: Likewise.
63519         * lib/sqrtl.c: Likewise.
63520         * lib/tanl.c: Likewise.
63521         * lib/trigl.c: Likewise.
63522         * m4/math_h.m4: New file.
63523         * MODULES.html.sh (Mathematics): Add math.
63524
63525 2007-02-17  Bruno Haible  <bruno@clisp.org>
63526
63527         * modules/wctype-tests: New file.
63528         * tests/test-wctype.c: New file.
63529
63530         * modules/wchar-tests: New file.
63531         * tests/test-wchar.c: New file.
63532
63533         * modules/unistd-tests: New file.
63534         * tests/test-unistd.c: New file.
63535
63536         * modules/time-tests: New file.
63537         * tests/test-time.c: New file.
63538
63539         * modules/sysexits-tests: New file.
63540         * tests/test-sysexits.c: New file.
63541
63542         * modules/sys_time-tests: New file.
63543         * tests/test-sys_time.c: New file.
63544
63545         * modules/sys_stat-tests: New file.
63546         * tests/test-sys_stat.c: New file.
63547
63548         * modules/sys_socket-tests: New file.
63549         * tests/test-sys_socket.c: New file.
63550
63551         * modules/sys_select-tests: New file.
63552         * tests/test-sys_select.c: New file.
63553
63554         * modules/string-tests: New file.
63555         * tests/test-string.c: New file.
63556
63557         * modules/stdbool-tests: New file.
63558         * tests/test-stdbool.c: New file.
63559
63560         * modules/netinet_in-tests: New file.
63561         * tests/test-netinet_in.c: New file.
63562
63563         * modules/inttypes-tests: New file.
63564         * tests/test-inttypes.c: New file.
63565
63566         * modules/fcntl-tests: New file.
63567         * tests/test-fcntl.c: New file.
63568
63569         * modules/byteswap-tests: New file.
63570         * tests/test-byteswap.c: New file.
63571
63572         * modules/arpa_inet-tests: New file.
63573         * tests/test-arpa_inet.c: New file.
63574
63575 2007-02-17  Bruno Haible  <bruno@clisp.org>
63576
63577         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63578         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63579         if the corresponding module is not enabled. Emit link warnings if
63580         the function is used nevertheless.
63581         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63582         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63583         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63584         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63585         * modules/inttypes (Depends-on): Add link-warning.
63586         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63587         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63588         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63589         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63590         * modules/imaxdiv (configure.ac): Likewise.
63591         * modules/strtoimax (configure.ac): Likewise.
63592         * modules/strtoumax (configure.ac): Likewise.
63593
63594 2007-02-17  Bruno Haible  <bruno@clisp.org>
63595
63596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63597         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63598         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63599         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63600
63601 2007-02-17  Bruno Haible  <bruno@clisp.org>
63602
63603         * modules/link-warning: New file.
63604         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63605         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63606         * modules/string (Depends-on): Add link-warning.
63607         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63608         string.h.
63609         * MODULES.html.sh (Support for building libraries and executables): Add
63610         link-warning.
63611
63612 2007-02-17  Bruno Haible  <bruno@clisp.org>
63613
63614         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63615         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63616         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63617         long lines.
63618
63619 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63620             Bruno Haible  <bruno@clisp.org>
63621
63622         * modules/tmpfile: New file.
63623         * lib/tmpfile.c: New file.
63624         * m4/tmpfile.m4: New file.
63625         * MODULES.html.sh (func_all_modules): New section "Input/output".
63626
63627 2007-02-15  Bruno Haible  <bruno@clisp.org>
63628
63629         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63630         (supports_delete_on_close): New function.
63631         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63632
63633 2007-02-14  Bruno Haible  <bruno@clisp.org>
63634
63635         * modules/mbspcasecmp-tests: New file.
63636         * tests/test-mbspcasecmp.sh: New file.
63637         * tests/test-mbspcasecmp.c: New file.
63638
63639         New module mbspcasecmp.
63640         * modules/mbspcasecmp: New file.
63641         * lib/mbspcasecmp.c: New file.
63642         * lib/string_.h (strncasecmp): Change warning message.
63643         (mbspcasecmp): New declaration.
63644         * m4/mbspcasecmp.m4: New file.
63645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63646         GNULIB_MBSPCASECMP.
63647         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63648         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63649
63650 2007-02-14  Bruno Haible  <bruno@clisp.org>
63651
63652         * modules/mbsncasecmp-tests: New file.
63653         * tests/test-mbsncasecmp.sh: New file.
63654         * tests/test-mbsncasecmp.c: New file.
63655
63656         New module mbsncasecmp.
63657         * modules/mbsncasecmp: New file.
63658         * lib/mbsncasecmp.c: New file.
63659         * lib/string_.h (mbsncasecmp): New declaration.
63660         * m4/mbsncasecmp.m4: New file.
63661         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63662         GNULIB_MBSNCASECMP.
63663         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63664         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63665
63666 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63667
63668         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63669         Verify that it doesn't overlap with our flags.
63670         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63671         do not have the desired effect in multibyte locales; instead, use
63672         mbscasecmp.
63673         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63674         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63675         we don't require GNU fnmatch ourselves (if our users require it, they
63676         should do so explicitly).
63677
63678         Fix regex code so it doesn't rely on strcasecmp.
63679         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63680         Otherwise, include gnulib's langinfo.h.
63681         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63682         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63683         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63684         * modules/regex (FILES): Remove m4/codeset.m4.
63685         (Depends-on): Add localcharset.  Remove strcase.
63686
63687 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63688
63689         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63690         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63691
63692 2007-02-13  Bruno Haible  <bruno@clisp.org>
63693
63694         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63696
63697 2007-02-12  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63700         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63701         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63702         time warning rather than a link error.
63703
63704 2007-02-12  Bruno Haible  <bruno@clisp.org>
63705
63706         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63707         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63709
63710 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63713         args, not 2.
63714
63715 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63716
63717         New module 'time', so that apps can include <time.h> as per
63718         POSIX and GNU instead of separate include files like time_r.h
63719         and timegm.h.  This implementation tries out a simpler approach
63720         for replacing decls in standard include files (as compared to
63721         the string module), somewhat as an experiment.
63722
63723         * config/srclist.txt: Comment out mktime.c for now.
63724         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63725         since it doesn't apply any more.  Use generic wording instead.
63726         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63727         'time'.
63728         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63729         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63730         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63731         Don't include <sys/types.h>; no longer needed since we assume C89.
63732         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63733         * lib/strftime.c: Likewise.
63734         * lib/time_r.c: Likewise.
63735         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63736         * lib/nanosleep.c: Include <time.h> first, to check interface.
63737         * lib/strptime.c: Likewise.
63738         * lib/time_r.c: Likewise.
63739         * lib/timegm.c: Likewise.
63740         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63741         needed.
63742         * lib/timegm.c: Don't include timegm.h; no longer needed.
63743         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63744         time.h now handles any problems in that area.
63745         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63746         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63747         that time.h defines struct timespec.
63748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63749         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63750         handles that.
63751         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63752         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63753         needed.  Set REPLACE_LOCALTIME.
63754         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63755         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63756         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63757         nanosleep; time_h.m4 now does that.  Don't require
63758         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63759         module handles this now.
63760         * modules/getdate (Depends-on): Remove timespec.  Add time.
63761         * modules/nanosleep (Depends-on): Likewise.
63762         * modules/stat-time (Depends-on): Likewise.
63763         * modules/nanosleep (Include): Include time.h, not timespec.h.
63764         * modules/strptime (Files): Remove lib/strptime.h.
63765         (Depends-on): Add extensions, time.
63766         (Include): Include time.h, not strptime.h.
63767         * modules/time_r (Files): Remove lib/time_r.h.
63768         (Depends-on): Add time.
63769         (Include): Include time.h, not time_r.h.
63770         * modules/timegm: Likewise.
63771         * modules/timespec (Description): Now does timespec-related decls
63772         of our own, instead of struct timespec itself.
63773         (Depends-on): Add time; remove extensions.
63774         (Maintainer): Add self.
63775         * modules/utimecmp (Depends-on): Add time; remove timespec.
63776         * modules/utimens (Depends-on): Likewise.
63777         * modules/xnanosleep (Depends-on): Likewise.
63778
63779 2007-02-11  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/c-strstr.c: Include allocsa.h.
63782         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63783         * lib/c-strcasestr.c: Include allocsa.h.
63784         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63785         * lib/strcasestr.c: Include allocsa.h.
63786         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63787         * lib/mbsstr.c: Include allocsa.h.
63788         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63789         allocsa/freesa instead of malloc/free.
63790         * lib/mbscasestr.c: Include allocsa.h.
63791         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63792         allocsa/freesa instead of malloc/free.
63793         * modules/c-strstr (Depends-on): Add allocsa.
63794         * modules/c-strcasestr (Depends-on): Likewise.
63795         * modules/strcasestr (Depends-on): Likewise.
63796         * modules/mbsstr (Depends-on): Likewise.
63797         * modules/mbscasestr (Depends-on): Likewise.
63798
63799 2007-02-11  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63802
63803         * modules/mbsspn-tests: New file.
63804         * tests/test-mbsspn.sh: New file.
63805         * tests/test-mbsspn.c: New file.
63806
63807 2007-02-11  Bruno Haible  <bruno@clisp.org>
63808
63809         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63810
63811         * modules/mbspbrk-tests: New file.
63812         * tests/test-mbspbrk.sh: New file.
63813         * tests/test-mbspbrk.c: New file.
63814
63815 2007-02-11  Bruno Haible  <bruno@clisp.org>
63816
63817         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63818         unneeded cast.
63819
63820         * modules/mbscspn-tests: New file.
63821         * tests/test-mbscspn.sh: New file.
63822         * tests/test-mbscspn.c: New file.
63823
63824 2007-02-11  Bruno Haible  <bruno@clisp.org>
63825
63826         * modules/mbscasecmp-tests: New file.
63827         * tests/test-mbscasecmp.sh: New file.
63828         * tests/test-mbscasecmp.c: New file.
63829
63830 2007-02-11  Bruno Haible  <bruno@clisp.org>
63831
63832         Ensure O(n) worst-case complexity of mbscasestr.
63833         * lib/mbscasestr.c: Include stdbool.h.
63834         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63835         functions.
63836         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63837         the bookkeeping indicates that it's worth it.
63838         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63839
63840         * modules/mbscasestr-tests: New file.
63841         * tests/test-mbscasestr1.c: New file.
63842         * tests/test-mbscasestr2.sh: New file.
63843         * tests/test-mbscasestr2.c: New file.
63844         * tests/test-mbscasestr3.sh: New file.
63845         * tests/test-mbscasestr3.c: New file.
63846         * tests/test-mbscasestr4.sh: New file.
63847         * tests/test-mbscasestr4.c: New file.
63848         * m4/locale-tr.m4: New file.
63849
63850 2007-02-11  Bruno Haible  <bruno@clisp.org>
63851
63852         Ensure O(n) worst-case complexity of mbsstr.
63853         * lib/mbsstr.c: Include stdbool.h.
63854         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63855         functions.
63856         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63857         bookkeeping indicates that it's worth it.
63858         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63859
63860         * modules/mbsstr-tests: New file.
63861         * tests/test-mbsstr1.c: New file.
63862         * tests/test-mbsstr2.sh: New file.
63863         * tests/test-mbsstr2.c: New file.
63864         * tests/test-mbsstr3.sh: New file.
63865         * tests/test-mbsstr3.c: New file.
63866         * m4/locale-fr.m4: New file.
63867
63868 2007-02-11  Bruno Haible  <bruno@clisp.org>
63869
63870         * lib/mbsrchr.c (mbsrchr): Fix bug.
63871
63872         * modules/mbsrchr-tests: New file.
63873         * tests/test-mbsrchr.sh: New file.
63874         * tests/test-mbsrchr.c: New file.
63875
63876 2007-02-11  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/mbschr.c (mbschr): Fix bug.
63879
63880         * modules/mbschr-tests: New file.
63881         * tests/test-mbschr.sh: New file.
63882         * tests/test-mbschr.c: New file.
63883         * m4/locale-zh.m4: New file.
63884
63885 2007-02-11  Bruno Haible  <bruno@clisp.org>
63886
63887         Support for copying multibyte string iterators.
63888         * lib/mbiter.h: Include <string.h>.
63889         (mbiter_multi_copy): New function.
63890         (mbi_copy): New macro.
63891         * lib/mbuiter.h: Include <string.h>.
63892         (mbuiter_multi_copy): New function.
63893         (mbui_copy): New macro.
63894
63895 2007-02-11  Bruno Haible  <bruno@clisp.org>
63896
63897         New module mbslen.
63898         * modules/mbslen: New file.
63899         * lib/mbslen.c: New file.
63900         * lib/string_.h (mbslen): New declaration.
63901         * m4/mbslen.m4: New file.
63902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63903         GNULIB_MBSLEN.
63904         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63905         * MODULES.html.sh (Internationalization functions): Add mbslen.
63906
63907 2007-02-11  Bruno Haible  <bruno@clisp.org>
63908
63909         Ensure O(n) worst-case complexity of strcasestr substitute.
63910         * lib/strcasestr.c: Include stdbool.h.
63911         (knuth_morris_pratt): New function.
63912         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63913         bookkeeping indicates that it's worth it.
63914         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63915
63916         * modules/strcasestr-tests: New file.
63917         * tests/test-strcasestr.c: New file.
63918
63919 2007-02-11  Bruno Haible  <bruno@clisp.org>
63920
63921         Ensure O(n) worst-case complexity of c_strcasestr.
63922         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63923         (knuth_morris_pratt): New function.
63924         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63925         the bookkeeping indicates that it's worth it.
63926         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63927
63928         * modules/c-strcasestr-tests: New file.
63929         * tests/test-c-strcasestr.c: New file.
63930
63931 2007-02-11  Bruno Haible  <bruno@clisp.org>
63932
63933         Ensure O(n) worst-case complexity of c_strstr.
63934         * lib/c-strstr.c: Include stdbool.h, string.h.
63935         (knuth_morris_pratt): New function.
63936         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63937         bookkeeping indicates that it's worth it.
63938         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63939
63940         * lib/c-strstr.c: Complete rewrite for maintainability.
63941
63942         * modules/c-strstr-tests: New file.
63943         * tests/test-c-strstr.c: New file.
63944
63945 2007-02-11  Bruno Haible  <bruno@clisp.org>
63946
63947         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63948         5.2.1 and earlier, whereby \055 was treated just like the range
63949         delimiter '-'.
63950         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63951
63952 2007-02-08  Bruno Haible  <bruno@clisp.org>
63953
63954         * modules/regex (Depends-on): Add stdbool.
63955         Reported by Dalibor Topic <robilad@kaffe.org>.
63956
63957 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63958
63959         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63960         Prefer returning from main to exiting from it.
63961         Remove unnecessary parens after sizeof.
63962
63963 2007-02-05  Bruno Haible  <bruno@clisp.org>
63964
63965         New module mbssep.
63966         * modules/mbssep: New file.
63967         * lib/mbssep.c: New file.
63968         * lib/string_.h (strsep): Add a conditional link warning.
63969         (mbssep): New declaration.
63970         * m4/mbssep.m4: New file.
63971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63972         GNULIB_MBSSEP.
63973         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63974         * MODULES.html.sh (Internationalization functions): Add mbssep.
63975
63976 2007-02-05  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63979         Optimize search in case of 1 delimiter.
63980
63981 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63982
63983         * lib/acl.h: Include sys/types.h before sys/acl.h.
63984
63985 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63986
63987         Merge upstream fix for glibc bugzilla #3957:
63988
63989         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63990
63991         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63992         bit for RE_HAT_LISTS_NOT_NEWLINE.
63993         (build_charclass_op): Remove bogus comment.
63994
63995 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63996
63997         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63998
63999 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64000
64001         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64002         * lib/memmem.c [!defined _LIBC]: Include config.h.
64003
64004 2007-02-04  Bruno Haible  <bruno@clisp.org>
64005
64006         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64007         warning message.
64008
64009 2007-02-04  Bruno Haible  <bruno@clisp.org>
64010
64011         New module mbstok_r.
64012         * modules/mbstok_r: New file.
64013         * lib/mbstok_r.c: New file.
64014         * lib/string_.h (strtok_r): Change argument names to match the
64015         comments. Add a conditional link warning.
64016         (mbstok_r): New declaration.
64017         * m4/mbstok_r.m4: New file.
64018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64019         GNULIB_MBSTOK_R.
64020         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64021         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64022
64023 2007-02-04  Bruno Haible  <bruno@clisp.org>
64024
64025         New module mbsspn.
64026         * modules/mbsspn: New file.
64027         * lib/mbsspn.c: New file.
64028         * lib/string_.h (strspn): Add a conditional link warning.
64029         (mbsspn): New declaration.
64030         * m4/mbsspn.m4: New file.
64031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64032         GNULIB_MBSSPN.
64033         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64034         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64035
64036 2007-02-04  Bruno Haible  <bruno@clisp.org>
64037
64038         New module mbspbrk.
64039         * modules/mbspbrk: New file.
64040         * lib/mbspbrk.c: New file.
64041         * lib/string_.h (strpbrk): Add a conditional link warning.
64042         (mbspbrk): New declaration.
64043         * m4/mbspbrk.m4: New file.
64044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64045         GNULIB_MBSPBRK.
64046         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64047         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64048
64049 2007-02-04  Bruno Haible  <bruno@clisp.org>
64050
64051         New module mbscspn.
64052         * modules/mbscspn: New file.
64053         * lib/mbscspn.c: New file.
64054         * lib/string_.h (strcspn): Add a conditional link warning.
64055         (mbscspn): New declaration.
64056         * m4/mbscspn.m4: New file.
64057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64058         GNULIB_MBSCSPN.
64059         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64060         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64061
64062 2007-02-04  Bruno Haible  <bruno@clisp.org>
64063
64064         New module mbscasestr, reduced goal of strcasestr.
64065         * modules/mbscasestr: New file.
64066         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64067         (mbscasestr): Renamed from strcasestr.
64068         * lib/strcasestr.c: Don't include mbuiter.h.
64069         (strcasestr): Remove support for multibyte locales.
64070         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64071         Change the conditional link warning.
64072         (mbscasestr): New declaration.
64073         * m4/mbscasestr.m4: New file.
64074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64075         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64076         REPLACE_STRCASESTR.
64077         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64079         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64080         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64081         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64082         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64083         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64084         (Depends-on): Remove mbuiter.
64085         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64086
64087 2007-02-04  Bruno Haible  <bruno@clisp.org>
64088
64089         Simplify handling of strncasecmp.
64090         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64091         the conditional link warning.
64092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64093         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64094         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64095         * modules/strcase (configure.ac): Don't invoke
64096         gl_STRING_MODULE_INDICATOR.
64097         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64098
64099 2007-02-04  Bruno Haible  <bruno@clisp.org>
64100
64101         New module mbscasecmp, reduced goal of strcasecmp.
64102         * modules/mbscasecmp: New file.
64103         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64104         (mbscasecmp): Renamed from strcasecmp.
64105         * lib/strcasecmp.c: Don't include mbuiter.h.
64106         (strcasecmp): Remove support for multibyte locales.
64107         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64108         Change the conditional link warning.
64109         (mbscasecmp): New declaration.
64110         * m4/mbscasecmp.m4: New file.
64111         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64112         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64113         REPLACE_STRCASECMP.
64114         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64116         GNULIB_MBSCASECMP.
64117         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64118         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64119         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64120         (Depends-on): Remove mbuiter.
64121         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64122
64123 2007-02-04  Bruno Haible  <bruno@clisp.org>
64124
64125         New module mbsstr. Remove module strstr.
64126         * modules/mbsstr: New file.
64127         * modules/strstr: Remove file.
64128         * lib/mbsstr.c: Renamed from lib/strstr.c.
64129         (mbsstr): Renamed from strstr.
64130         * lib/string_.h (strstr): Remove declaration. Change the conditional
64131         link warning.
64132         (mbsstr): New declaration.
64133         * m4/mbsstr.m4: New file.
64134         * m4/strstr.m4: Remove file.
64135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64136         REPLACE_STRSTR.
64137         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64138         Don't initialize GNULIB_STRSTR.
64139         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64140         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64141         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64142         (Support for systems lacking ANSI C 89): Remove strstr.
64143
64144 2007-02-04  Bruno Haible  <bruno@clisp.org>
64145
64146         New module mbsrchr.
64147         * modules/mbsrchr: New file.
64148         * lib/mbsrchr.c: New file.
64149         * lib/string_.h (strrchr): Add a conditional link warning.
64150         (mbsrchr): New declaration.
64151         * m4/mbsrchr.m4: New file.
64152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64153         GNULIB_MBSRCHR.
64154         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64155         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64156
64157 2007-02-04  Bruno Haible  <bruno@clisp.org>
64158
64159         New module mbschr.
64160         * modules/mbschr: New file.
64161         * lib/mbschr.c: New file.
64162         * lib/string_.h (strchr): Add a conditional link warning.
64163         (mbschr): New declaration.
64164         * m4/mbschr.m4: New file.
64165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64166         GNULIB_MBSCHR.
64167         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64168         * MODULES.html.sh (Internationalization functions): Add mbschr.
64169
64170 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64173
64174         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64175
64176 2007-02-04  Bruno Haible  <bruno@clisp.org>
64177
64178         New module description section 'configure.ac-early'.
64179         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64180         (func_get_autoconf_early_snippet): New function.
64181         (func_import, func_create_testdir): Use it. Remove special cases for
64182         modules 'extensions' and 'lock'.
64183         * modules/extensions (configure.ac-early): Require
64184         gl_USE_SYSTEM_EXTENSIONS.
64185         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64186
64187 2007-02-04  Bruno Haible  <bruno@clisp.org>
64188
64189         Make use of gcj-4.3's -fsource and -ftarget option.
64190         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64191         and if so try the options -fsource and -ftarget.
64192         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64193         source_version, ftarget_option, target_version arguments.
64194         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64195         (is_envjavac_oldgcj_14_14_usable): Renamed from
64196         is_envjavac_gcj_14_14_usable.
64197         (is_envjavac_oldgcj_14_13_usable): Renamed from
64198         is_envjavac_gcj_14_13_usable.
64199         (is_gcj_present): Update.
64200         (is_gcj_43, is_gcj43_usable): New functions.
64201         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64202         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64203         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64204         try the options -fsource and -ftarget.
64205
64206 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64209         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64210         larger value.
64211
64212 2007-02-03  Jim Meyering  <jim@meyering.net>
64213
64214         Give tools a better chance to allocate space for very large buffers.
64215         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64216
64217         Make pwd and readlink work also when run with an unreadable parent dir
64218         on systems with openat support.
64219         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64220         provided getcwd function, even when we have openat support.
64221         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64222
64223 2007-02-02  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64226         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64227         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64228         portability problems if one of these functions is only used on specific
64229         platforms.
64230         Reported by Paul Eggert.
64231
64232 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64233
64234         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64235         is causing more trouble than it's curing.
64236         * lib/regex_internal.h (__mempcpy): Remove.
64237         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64238         (and make the code a tad smaller to boot).
64239         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64240
64241 2007-02-02  Jim Meyering  <jim@meyering.net>
64242
64243         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64244         section, not in the Makefile.am: one.
64245
64246 2007-02-02  Eric Blake  <ebb9@byu.net>
64247
64248         * lib/strchrnul.c: Always include config.h first.
64249
64250         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64251         gnulib strstr is not necessary here.
64252
64253 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64254
64255         * m4/socklen.m4: Fix typo.
64256
64257 2007-02-02  Eric Blake  <ebb9@byu.net>
64258
64259         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64260         * modules/netinet_in (Makefile.am): Likewise.
64261
64262 2007-02-01  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/string_.h (GL_LINK_WARNING): New macro.
64265         (strcasecmp, strstr, strcasestr): If provided by the system,
64266         conditionally define as a macro that leads to a warning instead of to
64267         an error.
64268         (strncasecmp): Conditionally define as a macro that leads to a warning.
64269
64270 2007-02-01  Karl Berry  <karl@gnu.org>
64271
64272         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64273
64274 2007-02-01  Bruno Haible  <bruno@clisp.org>
64275
64276         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64277         renamings.
64278
64279 2007-02-01  Eric Blake  <ebb9@byu.net>
64280
64281         * modules/regex (Depends-on): Revert dependence on mempcpy.
64282         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64283         module's definition of mempcpy.
64284         Reported by Paul Eggert.
64285
64286 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64287
64288         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64289         the symbol XYZ before redefining it.  This fixes a problem with
64290         programs that don't use XYZ, when compiled on systems that define
64291         XYZ to something else.
64292
64293 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64294
64295         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64296         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64297         writeable to group or other and (2) is intended to have a special
64298         mode bit that is set or cleared.  In such a case, the directory
64299         should be neither group- nor other-writeable until the special
64300         mode bits are right.
64301
64302 2007-01-31  Eric Blake  <ebb9@byu.net>
64303
64304         * modules/mountlist (Depends-on): Add strstr.
64305
64306         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64307         bug.
64308         * modules/string (Makefile.am): Remove redundant replacement.
64309         * modules/regex (Depends-on): Add mempcpy.
64310
64311 2007-01-31  Bruno Haible  <bruno@clisp.org>
64312
64313         New module description field 'Link'.
64314         * gnulib-tool (func_usage): Document --extract-link-directive.
64315         (sed_extract_prog): Recognize 'Link' directive.
64316         (func_get_link_directive): New function.
64317         (func_import): Show summary of link directives.
64318         Handle --extract-link-directive option.
64319         * modules/acl (Link): New section.
64320         * modules/clock-time (Link): New section.
64321         * modules/euidaccess (Link): New section.
64322         * modules/gettext (Link): New section.
64323         * modules/iconv (Link): New section.
64324         * modules/lock (Link): New section.
64325         * modules/nanosleep (Link): New section.
64326         * modules/readline (Link): New section.
64327
64328 2007-01-27  Bruno Haible  <bruno@clisp.org>
64329
64330         Enforce the use of gnulib modules for unportable <string.h> functions.
64331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64332         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64333         (gl_HEADER_STRING_H_BODY): Require it.
64334         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64335         the symbol XYZ to one that gives a link error.
64336         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64337         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64338         * modules/mempcpy (configure.ac): Likewise.
64339         * modules/memrchr (configure.ac): Likewise.
64340         * modules/stpcpy (configure.ac): Likewise.
64341         * modules/stpncpy (configure.ac): Likewise.
64342         * modules/strcase (configure.ac): Likewise.
64343         * modules/strcasestr (configure.ac): Likewise.
64344         * modules/strchrnul (configure.ac): Likewise.
64345         * modules/strdup (configure.ac): Likewise.
64346         * modules/strndup (configure.ac): Likewise.
64347         * modules/strnlen (configure.ac): Likewise.
64348         * modules/strpbrk (configure.ac): Likewise.
64349         * modules/strsep (configure.ac): Likewise.
64350         * modules/strstr (configure.ac): Likewise.
64351         * modules/strtok_r (configure.ac): Likewise.
64352
64353 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64354
64355         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64356
64357 2007-01-30  Jim Meyering  <jim@meyering.net>
64358
64359         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64360
64361 2007-01-29  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64364         * lib/execute.c: Likewise.
64365         * lib/pipe.c: Likewise.
64366         * lib/printf-args.h: Likewise.
64367         * lib/printf-args.c: Likewise.
64368         * lib/printf-parse.c: Likewise.
64369         * lib/vasnprintf.c: Likewise.
64370
64371 2007-01-29  Eric Blake  <ebb9@byu.net>
64372
64373         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64374         declaration.
64375
64376 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64377
64378         * lib/strptime.h (strptime): Use 'restrict' for args where
64379         POSIX requires this.
64380         * lib/strptime.c (strptime): Likewise.
64381         Change license notice from LGPL to GPL, since gnulib-tool will
64382         change this as needed.
64383         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64384         defined.
64385         Include "strptime.h" first, to check interface.
64386         Do not #undef _LIBC and _NL_CURRENT.
64387         Do not include <stdlib.h>; no longer needed.
64388         Include "time_r.h" and declare ptime_locale_status
64389         only if _LIBC is not defined.
64390         (__P): Remove unused macro.
64391         (match_string): Bring back glibc version, but use it only if _LIBC
64392         is defined.
64393         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64394         Remove unnecessary assertion and abort() call.
64395         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64396         * m4/strptime.m4: Fix serial number comment.
64397         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64398         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64399         (Depends-on): Add time_r.
64400
64401 2007-01-29  Bruno Haible  <bruno@clisp.org>
64402
64403         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64404         strptime.
64405         * modules/strptime (Depends-on): Add stdbool.
64406         * lib/strptime.h: Include <time.h> always. Add comments.
64407
64408 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64409
64410         * modules/strptime: New file.
64411         * lib/strptime.h: New file.
64412         * lib/strptime.c: New file.
64413         * m4/strptime.m4: New file.
64414
64415 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         * MODULES.html.sh: New module mpsort.
64418         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64419
64420         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64421         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64423         All uses changed.
64424         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64425         All uses changed.
64426         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64427         to _Restrict_.
64428         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64429         the parameter matches the prototype.
64430
64431 2007-01-28  Jim Meyering  <jim@meyering.net>
64432
64433         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64434         sys/time.h here, reverting that part of the previous patch:
64435         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64436
64437 2007-01-28  Bruno Haible  <bruno@clisp.org>
64438
64439         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64440         value of $(SYS_TIME_H).
64441         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64442         remove it conditionally, too. [added by Jim Meyering]
64443         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64444         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64445         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64446         GETTIMEOFDAY_REPLACEMENT to 1.
64447
64448 2007-01-28  Bruno Haible  <bruno@clisp.org>
64449
64450         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64451         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64453         Set UNISTD_H instead of UNISTD_H2.
64454         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64455
64456 2007-01-28  Bruno Haible  <bruno@clisp.org>
64457
64458         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64459         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64460
64461 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64462
64463         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64464         (func_create_testdir): Ensure C locale for `grep' and `tr'
64465         character ranges.
64466         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64467         ACLOCAL_AMFLAGS parsing state machine.
64468
64469 2007-01-27  Bruno Haible  <bruno@clisp.org>
64470
64471         * modules/unistr/base: Update.
64472
64473 2007-01-27  Bruno Haible  <bruno@clisp.org>
64474
64475         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64476         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64477         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64478         modules/unistr/u32-mbtouc.
64479         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64480         * lib/unistr.h: Update.
64481         * lib/linebreak.c: Update.
64482         * modules/unistr/u32-mbtouc: Renamed from
64483         modules/unistr/u32-mbtouc-safe.
64484         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64485         * lib/unistr.h: Update.
64486         * lib/unistr/u32-to-u8.c: Update.
64487         * lib/unistr/u32-to-u16.c: Update.
64488
64489 2007-01-27  Bruno Haible  <bruno@clisp.org>
64490
64491         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64492         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64493         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64494         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64495         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64496         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64497         modules/unistr/u16-mbtouc.
64498         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64499         * lib/unistr.h: Update.
64500         * lib/linebreak.c: Update.
64501         * modules/linebreak: Update.
64502         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64503         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64504         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64505         * modules/unistr/u16-mbtouc: Renamed from
64506         modules/unistr/u16-mbtouc-safe.
64507         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64508         * lib/unistr.h: Update.
64509         * lib/unistr/u16-to-u8.c: Update.
64510         * modules/unistr/u16-to-u8: Update.
64511         * lib/unistr/u16-to-u32.c: Update.
64512         * modules/unistr/u16-to-u32: Update.
64513
64514 2007-01-27  Bruno Haible  <bruno@clisp.org>
64515
64516         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64517         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64518         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64519         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64520         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64521         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64522         modules/unistr/u8-mbtouc.
64523         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64524         * lib/unistr.h: Update.
64525         * lib/striconveh.c: Update.
64526         * modules/striconveh: Update.
64527         * lib/linebreak.c: Update.
64528         * modules/linebreak: Update.
64529         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64530         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64531         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64532         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64533         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64534         * lib/unistr.h: Update.
64535         * lib/striconveh.c: Update.
64536         * modules/striconveh: Update.
64537         * lib/unistr/u8-to-u16.c: Update.
64538         * modules/unistr/u8-to-u16: Update.
64539         * lib/unistr/u8-to-u32.c: Update.
64540         * modules/unistr/u8-to-u32: Update.
64541
64542 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64543
64544         Sync from Libtool.
64545         * lib/argz.c: Do not include strings.h nor memory.h, include
64546         string.h unconditionally.  Patch by Simon Josefsson.
64547
64548 2007-01-27  Bruno Haible  <bruno@clisp.org>
64549
64550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64551         from gl_HEADER_STRING_H_BODY.
64552         (gl_HEADER_STRING_H_BODY): Require it.
64553         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64554         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64555         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64556         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64557         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64558         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64560         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64561         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64562         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64563         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64564         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64565         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64566         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64567         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64568
64569 2007-01-27  Bruno Haible  <bruno@clisp.org>
64570
64571         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64572         check_PROGRAMS into noinst_PROGRAMS.
64573         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64574         check_PROGRAMS in this case.
64575         (func_import): Set for_test to false.
64576         (func_create_testdir): Set for_test to true.
64577
64578 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64579             Bruno Haible  <bruno@clisp.org>
64580
64581         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64582         (Depends-on): Add string.
64583         (Includes): Use <string.h> instead of strcasestr.h.
64584         * modules/string (Makefile.am): Also substitute the value of
64585         REPLACE_STRCASESTR.
64586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64587         assume strcasestr is declared in <string.h> not <strings.h>. Also
64588         set REPLACE_STRCASESTR.
64589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64590         REPLACE_STRCASESTR.
64591         * lib/strcasestr.h: Remove file.
64592         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64593         * lib/string_.h (strcasestr): New declaration.
64594
64595 2007-01-27  Bruno Haible  <bruno@clisp.org>
64596
64597         * lib/string_.h: Use 'extern'.
64598
64599 2007-01-27  Jim Meyering  <jim@meyering.net>
64600
64601         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64602         of set-but-not-used local, "q".
64603
64604         * lib/mempcpy.c: Include <config.h> before <string.h>.
64605         This fixes a compilation error on HP-UX, due to the system's
64606         "restrict"-using mempcpy prototype.
64607
64608 2007-01-26  Bruno Haible  <bruno@clisp.org>
64609
64610         Small optimization.
64611         * lib/javacomp.c: Include c-strstr.h.
64612          (is_envjavac_gcj): Use c_strstr instead of strstr.
64613         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64614
64615 2007-01-26  Bruno Haible  <bruno@clisp.org>
64616
64617         * MODULES.html.sh (Unicode string functions): Add the new modules.
64618
64619         * modules/uniconv/u32-strconv-to-locale: New file.
64620         * lib/uniconv/u32-strconv-to-locale.c: New file.
64621
64622         * modules/uniconv/u16-strconv-to-locale: New file.
64623         * lib/uniconv/u16-strconv-to-locale.c: New file.
64624
64625         * modules/uniconv/u8-strconv-to-locale: New file.
64626         * lib/uniconv/u8-strconv-to-locale.c: New file.
64627
64628         * modules/uniconv/u32-strconv-from-locale: New file.
64629         * lib/uniconv/u32-strconv-from-locale.c: New file.
64630
64631         * modules/uniconv/u16-strconv-from-locale: New file.
64632         * lib/uniconv/u16-strconv-from-locale.c: New file.
64633
64634         * modules/uniconv/u8-strconv-from-locale: New file.
64635         * lib/uniconv/u8-strconv-from-locale.c: New file.
64636
64637         * modules/uniconv/u32-strconv-to-enc: New file.
64638         * lib/uniconv/u32-strconv-to-enc.c: New file.
64639         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64640         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64641
64642         * modules/uniconv/u16-strconv-to-enc: New file.
64643         * lib/uniconv/u16-strconv-to-enc.c: New file.
64644         * lib/uniconv/u-strconv-to-enc.h: New file.
64645         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64646         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64647
64648         * modules/uniconv/u8-strconv-to-enc: New file.
64649         * lib/uniconv/u8-strconv-to-enc.c: New file.
64650         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64651         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64652
64653         * modules/uniconv/u32-strconv-from-enc: New file.
64654         * lib/uniconv/u32-strconv-from-enc.c: New file.
64655         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64656         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64657
64658         * modules/uniconv/u16-strconv-from-enc: New file.
64659         * lib/uniconv/u16-strconv-from-enc.c: New file.
64660         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64661         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64662
64663         * modules/uniconv/u8-strconv-from-enc: New file.
64664         * lib/uniconv/u8-strconv-from-enc.c: New file.
64665         * lib/uniconv/u-strconv-from-enc.h: New file.
64666         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64667         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64668
64669         * modules/uniconv/u32-conv-from-enc: New file.
64670         * lib/uniconv/u32-conv-from-enc.c: New file.
64671         * modules/uniconv/u32-conv-from-enc-tests: New file.
64672         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64673
64674         * modules/uniconv/u16-conv-from-enc: New file.
64675         * lib/uniconv/u16-conv-from-enc.c: New file.
64676         * lib/uniconv/u-conv-from-enc.h: New file.
64677         * modules/uniconv/u16-conv-from-enc-tests: New file.
64678         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64679
64680         * modules/uniconv/u8-conv-from-enc: New file.
64681         * lib/uniconv/u8-conv-from-enc.c: New file.
64682         * modules/uniconv/u8-conv-from-enc-tests: New file.
64683         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64684
64685         * modules/uniconv/base: New file.
64686         * lib/uniconv.h: New file.
64687
64688 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         * doc/gnulib-tool.texi (Initial import): Update to match current
64691         behavior with strdup module.
64692         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64693         * lib/memmem.h: Remove; all uses removed.  This is now done
64694         by <string.h>.
64695         * lib/mempcpy.h: Likewise.
64696         * lib/memrchr.h: Likewise.
64697         * lib/stpcpy.h: Likewise.
64698         * lib/stpncpy.h: Likewise.
64699         * lib/strcase.h: Likewise.
64700         * lib/strchrnul.h: Likewise.
64701         * lib/strdup.h: Likewise.
64702         * lib/strndup.h: Likewise.
64703         * lib/strnlen.h: Likewise.
64704         * lib/strpbrk.h: Likewise.
64705         * lib/strsep.h: Likewise.
64706         * lib/strstr.h: Likewise.
64707         * lib/strtok_r.h: Likewise.
64708         * lib/string_.h: New file.
64709         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64710         Rely on <string.h> instead.
64711         * lib/canon-host.c: Likewise.
64712         * lib/chdir-long.c: Likewise.
64713         * lib/concatpath.c: Likewise.
64714         * lib/exclude.c: Likewise.
64715         * lib/fchdir.c: Likewise.
64716         * lib/getaddrinfo.c: Likewise.
64717         * lib/getcwd.c: Likewise.
64718         * lib/getsubopt.c: Likewise.
64719         * lib/glob.c: Likewise.
64720         * lib/hard-locale.c: Likewise.
64721         * lib/iconvme.c: Likewise.
64722         * lib/javacomp.c: Likewise.
64723         * lib/mempcpy.c: Likewise.
64724         * lib/memrchr.c: Likewise.
64725         * lib/regex_internal.h: Likewise.
64726         * lib/stpncpy.c: Likewise.
64727         * lib/strcasecmp.c: Likewise.
64728         * lib/strchrnul.c: Likewise.
64729         * lib/strdup.c: Likewise.
64730         * lib/striconv.c: Likewise.
64731         * lib/striconveh.c: Likewise.
64732         * lib/striconveha.c: Likewise.
64733         * lib/strncasecmp.c: Likewise.
64734         * lib/strndup.c: Likewise.
64735         * lib/strnlen.c: Likewise.
64736         * lib/strsep.c: Likewise.
64737         * lib/strstr.c: Likewise.
64738         * lib/strtok_r.c: Likewise.
64739         * lib/userspec.c: Likewise.
64740         * lib/w32spawn.h: Likewise.
64741         * lib/xstrndup.c: Likewise.
64742         * lib/mountlist.c (strstr): Remove decl.
64743         * m4/string_h.m4: New file.
64744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64745         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64746         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64747         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64748         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64749         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64750         Set REPLACE_STRCASECMP if necessary.
64751         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64752         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64753         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64754         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64755         HAVE_DECL_STRDUP if necessary.
64756         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64757         since gl_FUNC_STRNDUP does that now.
64758         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64759         Check for decl here...
64760         (gl_PREREQ_STRNLEN): ... not here.
64761         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64762         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64763         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64764         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64765         necessary.
64766         * modules/string: New file.
64767         * modules/memmem (Files): Remove special-purpose include file.
64768         (Depends-on): Add string.
64769         (Include): Include <string.h>, not the removed file.
64770         * modules/mempcpy: Likewise.
64771         * modules/memrchr: Likewise.
64772         * modules/stpcpy: Likewise.
64773         * modules/stpncpy: Likewise.
64774         * modules/strcase: Likewise.
64775         * modules/strchrnul: Likewise.
64776         * modules/strdup: Likewise.
64777         * modules/strndup: Likewise.
64778         * modules/strnlen: Likewise.
64779         * modules/strpbrk: Likewise.
64780         * modules/strsep: Likewise.
64781         * modules/strstr: Likewise.
64782         * modules/strtok_r: Likewise.
64783         * tests/test-dirname.c: Don't include "strdup.h", since
64784         <string.h> now suffices.
64785         * tests/test-memmem.c: Don't include "memmem.h", since
64786         <string.h> now suffices.
64787
64788 2007-01-25  Bruno Haible  <bruno@clisp.org>
64789
64790         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64791         *resultp is 0.
64792
64793         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64794         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64795         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64796         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64797
64798         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64799         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64800         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64801         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64802         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64803         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64804
64805 2007-01-24  Bruno Haible  <bruno@clisp.org>
64806
64807         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64809         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64810         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64811         gl_FUNC_FTS_CORE.
64812         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64813         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64815         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64816         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64817         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64818         gl_FUNC_FCHOWNAT.
64819         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64820         gl_FUNC_STRFTIME.
64821         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64822         Reported by Ralf Wildenhues.
64823
64824 2007-01-24  Bruno Haible  <bruno@clisp.org>
64825
64826         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64827         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64828         gl_GETADDRINFO.
64829         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64830         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64831         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64832
64833 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64834
64835         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64836         Don't use 'exit'; just return from 'main'.
64837         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64838
64839         * lib/fnmatch_.h: Readjust white space and comments to match
64840         glibc, to avoid spurious diffs.
64841
64842 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64845         2004-12-01 change by Jakub Jelinek, since this code won't compile
64846         if !LIBC.  Problem reported by Bob Proulx.
64847
64848 2007-01-23  Bruno Haible  <bruno@clisp.org>
64849
64850         * lib/striconveh.c: Include c-strcaseeq.h.
64851         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64852         * modules/striconveh (Depends-on): Add c-strcaseeq.
64853
64854 2007-01-23  Bruno Haible  <bruno@clisp.org>
64855
64856         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64857
64858         * modules/c-strcaseeq: New file.
64859         * lib/c-strcaseeq.h: New file.
64860
64861         * modules/streq: New file.
64862         * lib/streq.h: New file.
64863
64864 2007-01-23  Bruno Haible  <bruno@clisp.org>
64865
64866         * modules/striconveha-tests: New file.
64867         * tests/test-striconveha.c: New file.
64868
64869         * lib/striconveha.h: Include <stdbool.h>.
64870         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64871         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64872         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64873         (mem_iconveha): New function.
64874         (str_iconveha_notranslit): Renamed from str_iconveha.
64875         (str_iconveha): New function.
64876         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64877         c-strcase.
64878
64879 2007-01-23  Bruno Haible  <bruno@clisp.org>
64880
64881         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64882         encodings without forgiving before trying any encoding with handler.
64883         (str_iconveha): Try all encodings without forgiving before trying any
64884         encoding with handler.
64885
64886 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         Import the following changes from libc.
64889
64890         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64891
64892         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64893
64894         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64895
64896         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64897         normal_bracket label.
64898
64899         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64900
64901         [BZ #361]
64902         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64903         to normal_bracket after fetching the next character.
64904
64905 2007-01-22  Bruno Haible  <bruno@clisp.org>
64906
64907         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64908         argument.
64909         * lib/striconveh.c (iconv_carefully_1): New function.
64910         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64911         argument.
64912         (str_cd_iconveh): Update.
64913         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64914         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64915         * tests/test-striconveh.c (MAGIC): New macro.
64916         (new_offsets): New function.
64917         (main): Test call with and without offsets.
64918
64919 2007-01-22  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64922         * modules/sys_select (Makefile.am): Likewise.
64923         * modules/sys_socket (Makefile.am): Likewise.
64924         * modules/sys_time (Makefile.am): Likewise.
64925
64926 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         * modules/gettimeofday (License): Change from GPL to LGPL, since
64929         gettimeofday is a library function.
64930
64931 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64932
64933         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64934
64935 2007-01-21  Bruno Haible  <bruno@clisp.org>
64936
64937         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64938
64939 2007-01-21  Bruno Haible  <bruno@clisp.org>
64940
64941         * modules/striconveha: New file.
64942         * lib/striconveha.h: New file.
64943         * lib/striconveha.c: New file.
64944         * MODULES.html.sh (Internationalization functions): Add striconveha.
64945         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64946         string.
64947         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64948
64949 2007-01-21  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64952         * lib/striconveh.c (str_iconveh): Likewise.
64953
64954 2007-01-21  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/striconveh.h (mem_iconveh): New declaration.
64957         * lib/striconveh.c (mem_iconveh): New function.
64958         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64959
64960 2007-01-21  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64963
64964         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64965         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64966         original result buffer.
64967         (str_cd_iconveh): Update.
64968         * tests/test-striconveh.c (main): Update.
64969
64970         * lib/striconv.h (mem_cd_iconv): Change specification.
64971         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64972         result buffer.
64973         (str_cd_iconv): Update.
64974         * tests/test-striconv.c (main): Update.
64975
64976 2007-01-21  Bruno Haible  <bruno@clisp.org>
64977
64978         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64979
64980 2007-01-20  Jim Meyering  <jim@meyering.net>
64981
64982         * lib/userspec.c (parse_with_separator): If a user or group string
64983         starts with "+", skip the corresponding name-to-ID look-up, since
64984         such a look-up must fail: user and group names may not include "+".
64985
64986 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64987
64988         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64989         since we now assume the sys_time module.
64990         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64991         check for sys/time.h; no longer needed.
64992         * modules/poll (Depends-on): Depend on sys_time.
64993
64994 2007-01-18  Bruno Haible  <bruno@clisp.org>
64995
64996         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64997         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64998
64999         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65000         gettimeofday.
65001
65002         * tests/test-gettimeofday.c: Include <time.h>.
65003         (dummy): Remove variable.
65004
65005         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65006         gl_HEADER_SYS_TIME_H.
65007         (gl_HEADER_SYS_TIME_H): New macro.
65008
65009         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65010         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65012         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65013         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65014         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65015         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65016         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65017         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65018         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65019         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65020
65021         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65022         last change; it caused a compilation error when cross-compiling to
65023         Cygwin.
65024
65025 2007-01-18  Jim Meyering  <jim@meyering.net>
65026
65027         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65028         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65029         than the race-prone "test -d sys || mkdir sys".
65030         (configure.ac): Use AC_PROG_MKDIR_P.
65031         * modules/sys_select: Likewise.
65032         * modules/sys_socket: Likewise.
65033         * modules/sys_time: Likewise.
65034
65035 2007-01-18  Eric Blake  <ebb9@byu.net>
65036
65037         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65038         replace gettimeofday.
65039         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65040         name, to avoid infinite recursion.
65041
65042 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65043
65044         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65045         module sys_time.
65046         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65047         assume timespec.h defines struct timeval.
65048         * lib/settime.c: Likewise.
65049         * lib/utimens.c: Likewise.
65050         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65051         since we now assume the gettimeofday module.
65052         * lib/tempname.c (__gen_tempname): Likewise.
65053         * lib/gettimeofday.h: Remove.
65054         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65055         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65056         Include <time.h>, for 'time()'.
65057         (localtime_buffer_addr): Also use this workaround if
65058         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65059         to simplify the uses.  All uses changed.
65060         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65061         that #undef is inside {}, and 'const' follows type name consistently.
65062         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65063         (gettimeofday): Do not use the maximum possible value for
65064         tv->tv_usec, since that might break usages other than ls.c.
65065         Instead, we'll leave ls.c alone.  This undoes today's patch
65066         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65067         we've never observed the problem but might as well keep the
65068         canary.
65069         * lib/nanosleep.c: Include timespec.h first, for interface check.
65070         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65071         now assume the sys_time module.
65072         * lib/tempname.c: Likewise.
65073         * lib/timespec.h: Likewise.
65074         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65075         needed.
65076         * lib/strftime.c: Likewise.
65077         * lib/timespec.h: Likewise.
65078         * lib/posixtm.c: Include posixtm.h first, for interface check.
65079         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65080         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65081         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65082         * lib/sys_time_.h: New file.
65083         * lib/timespec.h (struct timespec): Use long int, not long.
65084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65085         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65086         Remove obsolescent call to AC_HEADER_TIME.
65087         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65089         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65090         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65091         Likewise.
65092         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65093         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65095         into the sys_time module.  Check for gettimeofday just once.
65096         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65097         for gettimeofday signature to just check the signature.  Merely
65098         compile it, since linking doesn't test signature.  Improve test for
65099         whether gettimeofday.o is actually needed.
65100         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65101         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65102         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65103         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65104         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65105         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65106         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65107         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65108         than worrying about sys/time.h.
65109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65110         Don't bother worrying about TIME_WITH_SYS_TIME.
65111         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65112         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65113         * m4/sys_time_h.m4: New file.
65114         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65115         Don't include sys/time.h.  Return from main rather than exiting.
65116         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65117         all uses changed.
65118         * modules/gethrxtime (Depends-on): Add sys_time.
65119         * modules/gettime (Depends-on): Likewise.
65120         * modules/gettimeofday (Depends-on): Likewise.
65121         * modules/nanosleep (Depends-on): Likewise.
65122         * modules/settime (Depends-on): Likewise.
65123         * modules/tempname (Depends-on): Likewise.
65124         * modules/utimens (Depends-on): Likewise.
65125         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65126         (Include): Change back to <sys/time.h>.
65127         (Maintainer): Add self.
65128         * modules/sys_time: New file.
65129         * modules/tempname (Depends-on): Add gettimeofday.
65130         * tests/test-gettimeofday.c: Include <sys/time.h>
65131         rather than gettimeofday.h.
65132
65133 2007-01-17  Bruno Haible  <bruno@clisp.org>
65134
65135         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65136         the license default to GPL.
65137         (func_create_testdir): Don't complain if a module is LGPL and its
65138         tests module depends on GPLed modules.
65139
65140 2007-01-17  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/gettimeofday.c (gettimeofday): Add code for the case
65143         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65144         maximum possible value for tv->tv_usec, rather than the minimum one.
65145
65146 2005-10-08  Martin Lambers  <marlam@marlam.de>
65147 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65148 2007-01-16  Bruno Haible  <bruno@clisp.org>
65149
65150         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65151         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65152         gl_FUNC_GETTIMEOFDAY.
65153         (Include): Add gettimeofday.h.
65154         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65155         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65156         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65157         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65158         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65159         * lib/gettimeofday.h: New file.
65160         * lib/gettimeofday.c: Include <sys/timeb.h>.
65161         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65162         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65163         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65164         fall back on time().
65165
65166         * tests/test-gettimeofday.c: New file.
65167         * modules/gettimeofday-tests: New file.
65168
65169 2007-01-16  Eric Blake  <ebb9@byu.net>
65170
65171         * modules/fnmatch (Depends-on): Depend on wchar.
65172         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65173         * m4/fnmatch.m4: Likewise.
65174         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65175         * m4/mbchar.m4: Likewise.
65176         * modules/mbswidth (Depends-on): Depend on wchar.
65177         * lib/mbswidth.c: Assume <wchar.h>.
65178         * m4/mbswidth.m4: Likewise.
65179         * modules/quotearg (Depends-on): Depend on wchar.
65180         * lib/quotearg.c: Assume <wchar.h>.
65181         * m4/quotearg.m4: Likewise.
65182         * modules/regex (Depends-on): Depend on wchar.
65183         * lib/regex_internal.h: Assume <wchar.h>.
65184         * m4/regex.m4: Likewise.
65185         * modules/stdint (Depends-on): Depend on wchar.
65186         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65187         * m4/stdint.m4: Likewise.
65188         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65189         * modules/strftime (Depends-on): Depend on wchar.
65190         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65191         * modules/strtol (Depends-on): Depend on wchar.
65192         * lib/strtol.c: Assume <wchar.h>.
65193         * modules/wcwidth (Depends-on): Depend on wchar.
65194         * lib/wcwidth.h: Assume <wchar.h>.
65195         * m4/wcwidth.m4: Likewise.
65196
65197 2007-01-16  Bruno Haible  <bruno@clisp.org>
65198
65199         * modules/csharpexec-script: New, created from...
65200         * modules/csharpexec: ... this.
65201
65202 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65203
65204         * modules/javaexec-script: New, created from...
65205         * modules/javaexec: ... this.
65206
65207 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65208
65209         * modules/poll (Dependencies): Add sys_select.
65210
65211 2007-01-15  Jim Meyering  <jim@meyering.net>
65212
65213         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65214         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65215         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65216         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65217
65218 2007-01-15  Bruno Haible  <bruno@clisp.org>
65219
65220         * modules/striconveh: New file.
65221         * lib/striconveh.h: New file.
65222         * lib/striconveh.c: New file.
65223         * MODULES.html.sh (Internationalization functions): Add striconveh.
65224
65225         * modules/striconveh-tests: New file.
65226         * tests/test-striconveh.c: New file.
65227
65228 2007-01-15  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65231         not from GNU libiconv or GNU libc.
65232
65233 2007-01-15  Bruno Haible  <bruno@clisp.org>
65234
65235         * doc/gnulib-intro.texi (Copyright): Explain the different license
65236         terms for module descriptions, autoconf macros, tests, documentation.
65237
65238 2007-01-14  Bruno Haible  <bruno@clisp.org>
65239
65240         * modules/striconv-tests: New file.
65241         * tests/test-striconv.c: New file.
65242
65243 2007-01-14  Bruno Haible  <bruno@clisp.org>
65244
65245         * modules/iconv-tests: New file.
65246         * tests/test-iconv.c: New file.
65247
65248 2007-01-14  Bruno Haible  <bruno@clisp.org>
65249
65250         * gnulib-tool (func_get_license): For test modules, use the license of
65251         the main module.
65252
65253 2007-01-14  Bruno Haible  <bruno@clisp.org>
65254
65255         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65256         if iconv is found to exist.
65257
65258 2007-01-14  Bruno Haible  <bruno@clisp.org>
65259
65260         * modules/c-ctype-tests: New file.
65261         * tests/test-c-ctype.c: New file.
65262
65263 2007-01-14  Bruno Haible  <bruno@clisp.org>
65264
65265         * modules/binary-io-tests: New file.
65266         * tests/test-binary-io.sh: New file.
65267         * tests/test-binary-io.c: New file.
65268
65269 2007-01-14  Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/array-oset-tests: New file.
65272         * tests/test-array_oset.c: New file.
65273
65274 2007-01-14  Bruno Haible  <bruno@clisp.org>
65275
65276         * modules/array-list-tests: New file.
65277         * tests/test-array_list.c: New file.
65278
65279 2007-01-14  Bruno Haible  <bruno@clisp.org>
65280
65281         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65282         and make.
65283         Reported by Simon Josefsson in
65284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65285
65286 2007-01-14  Bruno Haible  <bruno@clisp.org>
65287
65288         * modules/allocsa-tests: New file.
65289         * tests/test-allocsa.c: New file.
65290
65291 2007-01-14  Bruno Haible  <bruno@clisp.org>
65292
65293         * modules/fchdir (Depends-on): Add absolute-header.
65294         * modules/unistd (Depends-on): Likewise.
65295
65296 2006-12-30  Bruno Haible  <bruno@clisp.org>
65297
65298         * modules/fchdir: New file.
65299         * modules/unistd (Files): Add lib/unistd_.h.
65300         (Makefile.am): Generate unistd.h from unistd_.h.
65301         * lib/fchdir.c: New file.
65302         * lib/dirent_.h: New file.
65303         * lib/unistd_.h: New file.
65304         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65305         * m4/fchdir.m4: New file.
65306         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65307         (gl_HEADER_UNISTD): Invoke it.
65308         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65309         function.
65310         * lib/backupfile.c (opendir, closedir): Undefine.
65311         * lib/chown.c (open, close): Undefine.
65312         * lib/clean-temp.c (open, close): Undefine.
65313         * lib/copy-file.c (open, close): Undefine.
65314         * lib/execute.c (open, close): Undefine.
65315         * lib/fsusage.c (open, close): Undefine.
65316         * lib/gc-gnulib.c (open, close): Undefine.
65317         * lib/getcwd.c (opendir, closedir): Undefine.
65318         * lib/glob.c (opendir, closedir): Undefine.
65319         * lib/javacomp.c (open, close): Undefine.
65320         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65321         * lib/openat-proc.c (open, close): Undefine.
65322         * lib/pagealign_alloc.c (open, close): Undefine.
65323         * lib/pipe.c (open, close): Undefine.
65324         * lib/progreloc.c (open, close): Undefine.
65325         * lib/savedir.c (opendir, closedir): Undefine.
65326         * lib/utime.c (open, close): Undefine.
65327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65328
65329 2007-01-10  Bruno Haible  <bruno@clisp.org>
65330
65331         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65332
65333 2007-01-12  Eric Blake  <ebb9@byu.net>
65334
65335         Provide a robust <wchar.h>.  Further simplifications are now
65336         possible in other modules, but not included here.
65337         * modules/wchar: New module.
65338         * m4/wchar.m4: New file.
65339         * lib/wchar_.h: Likewise.
65340         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65341         of the new module.
65342         * MODULES.html.sh (Extended multibyte and wide character utilities):
65343         New section.
65344
65345 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65348         to a reasonable default for memory allocation.
65349         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65350         file system that reports garbage st_size values for symlinks.
65351         Problem reported by Liyang Hu.
65352
65353 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65354
65355         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65356         Emacs .#* auto-save files).
65357
65358 2007-01-11  Bruno Haible  <bruno@clisp.org>
65359
65360         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65361         directory.
65362
65363 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         Use @...@ consistently in lib/wctype_.h.
65366         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65367         on it being set to 1 or 0.
65368         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65369         go back to AC_SUBSTing it.
65370         * modules/wctype (Makefile.am): Undo previous change.
65371
65372 2007-01-10  Eric Blake  <ebb9@byu.net>
65373
65374         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65375         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65376         * modules/wctype (Makefile.am): Likewise.
65377         Reported by Chris McGuire.
65378
65379 2007-01-10  Jim Meyering  <jim@meyering.net>
65380
65381         fts.c: a small readability/maintainability improvement
65382         * lib/fts.c (fts_read): Make this code slightly more readable and
65383         maintainable by hoisting the "sp->fts_cur = p" assignments to
65384         immediately follow the statements that set P.  Derived from
65385         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65386
65387 2007-01-10  Eric Blake  <ebb9@byu.net>
65388
65389         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65390         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65392         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65393         Reported by Chris McGuire.
65394
65395 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65396
65397         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65398         in sed script.
65399
65400 2007-01-09  Bruno Haible  <bruno@clisp.org>
65401
65402         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65403         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65404         variables.
65405         (func_module): Use them.
65406
65407 2007-01-09  Bruno Haible  <bruno@clisp.org>
65408
65409         * modules/unistr/base: New file.
65410         * lib/unistr.h: New file.
65411
65412         * modules/unistr/u8-to-u16: New file.
65413         * lib/unistr/u8-to-u16.c: New file.
65414
65415         * modules/unistr/u8-to-u32: New file.
65416         * lib/unistr/u8-to-u32.c: New file.
65417
65418         * modules/unistr/u16-to-u8: New file.
65419         * lib/unistr/u16-to-u8.c: New file.
65420
65421         * modules/unistr/u16-to-u32: New file.
65422         * lib/unistr/u16-to-u32.c: New file.
65423
65424         * modules/unistr/u32-to-u8: New file.
65425         * lib/unistr/u32-to-u8.c: New file.
65426
65427         * modules/unistr/u32-to-u16: New file.
65428         * lib/unistr/u32-to-u16.c: New file.
65429
65430         * modules/unistr/u8-check: New file.
65431         * modules/unistr/u16-check: New file.
65432         * modules/unistr/u32-check: New file.
65433         * lib/unistr/u8-check.c: New file.
65434         * lib/unistr/u16-check.c: New file.
65435         * lib/unistr/u32-check.c: New file.
65436
65437         * modules/unistr/u8-chr: New file.
65438         * modules/unistr/u16-chr: New file.
65439         * modules/unistr/u32-chr: New file.
65440         * lib/unistr/u8-chr.c: New file.
65441         * lib/unistr/u16-chr.c: New file.
65442         * lib/unistr/u32-chr.c: New file.
65443
65444         * modules/unistr/u8-cmp: New file.
65445         * modules/unistr/u16-cmp: New file.
65446         * modules/unistr/u32-cmp: New file.
65447         * lib/unistr/u8-cmp.c: New file.
65448         * lib/unistr/u16-cmp.c: New file.
65449         * lib/unistr/u32-cmp.c: New file.
65450
65451         * modules/unistr/u8-cpy: New file.
65452         * modules/unistr/u16-cpy: New file.
65453         * modules/unistr/u32-cpy: New file.
65454         * lib/unistr/u8-cpy.c: New file.
65455         * lib/unistr/u16-cpy.c: New file.
65456         * lib/unistr/u32-cpy.c: New file.
65457         * lib/unistr/u-cpy.h: New file.
65458
65459         * modules/unistr/u8-cpy-alloc: New file.
65460         * modules/unistr/u16-cpy-alloc: New file.
65461         * modules/unistr/u32-cpy-alloc: New file.
65462         * lib/unistr/u8-cpy-alloc.c: New file.
65463         * lib/unistr/u16-cpy-alloc.c: New file.
65464         * lib/unistr/u32-cpy-alloc.c: New file.
65465         * lib/unistr/u-cpy-alloc.h: New file.
65466
65467         * modules/unistr/u8-endswith: New file.
65468         * modules/unistr/u16-endswith: New file.
65469         * modules/unistr/u32-endswith: New file.
65470         * lib/unistr/u8-endswith.c: New file.
65471         * lib/unistr/u16-endswith.c: New file.
65472         * lib/unistr/u32-endswith.c: New file.
65473         * lib/unistr/u-endswith.h: New file.
65474
65475         * modules/unistr/u8-mblen: New file.
65476         * modules/unistr/u16-mblen: New file.
65477         * modules/unistr/u32-mblen: New file.
65478         * lib/unistr/u8-mblen.c: New file.
65479         * lib/unistr/u16-mblen.c: New file.
65480         * lib/unistr/u32-mblen.c: New file.
65481
65482         * modules/unistr/u8-mbtouc: New file.
65483         * modules/unistr/u16-mbtouc: New file.
65484         * modules/unistr/u32-mbtouc: New file.
65485         * lib/unistr/u8-mbtouc.c: New file.
65486         * lib/unistr/u16-mbtouc.c: New file.
65487         * lib/unistr/u32-mbtouc.c: New file.
65488
65489         * modules/unistr/u8-mbtouc-safe: New file.
65490         * modules/unistr/u16-mbtouc-safe: New file.
65491         * modules/unistr/u32-mbtouc-safe: New file.
65492         * lib/unistr/u8-mbtouc-safe.c: New file.
65493         * lib/unistr/u16-mbtouc-safe.c: New file.
65494         * lib/unistr/u32-mbtouc-safe.c: New file.
65495
65496         * modules/unistr/u8-move: New file.
65497         * modules/unistr/u16-move: New file.
65498         * modules/unistr/u32-move: New file.
65499         * lib/unistr/u8-move.c: New file.
65500         * lib/unistr/u16-move.c: New file.
65501         * lib/unistr/u32-move.c: New file.
65502         * lib/unistr/u-move.h: New file.
65503
65504         * modules/unistr/u8-next: New file.
65505         * modules/unistr/u16-next: New file.
65506         * modules/unistr/u32-next: New file.
65507         * lib/unistr/u8-next.c: New file.
65508         * lib/unistr/u16-next.c: New file.
65509         * lib/unistr/u32-next.c: New file.
65510
65511         * modules/unistr/u8-prev: New file.
65512         * modules/unistr/u16-prev: New file.
65513         * modules/unistr/u32-prev: New file.
65514         * lib/unistr/u8-prev.c: New file.
65515         * lib/unistr/u16-prev.c: New file.
65516         * lib/unistr/u32-prev.c: New file.
65517
65518         * modules/unistr/u8-set: New file.
65519         * modules/unistr/u16-set: New file.
65520         * modules/unistr/u32-set: New file.
65521         * lib/unistr/u8-set.c: New file.
65522         * lib/unistr/u16-set.c: New file.
65523         * lib/unistr/u32-set.c: New file.
65524         * lib/unistr/u-set.h: New file.
65525
65526         * modules/unistr/u8-startswith: New file.
65527         * modules/unistr/u16-startswith: New file.
65528         * modules/unistr/u32-startswith: New file.
65529         * lib/unistr/u8-startswith.c: New file.
65530         * lib/unistr/u16-startswith.c: New file.
65531         * lib/unistr/u32-startswith.c: New file.
65532         * lib/unistr/u-startswith.h: New file.
65533
65534         * modules/unistr/u8-stpcpy: New file.
65535         * modules/unistr/u16-stpcpy: New file.
65536         * modules/unistr/u32-stpcpy: New file.
65537         * lib/unistr/u8-stpcpy.c: New file.
65538         * lib/unistr/u16-stpcpy.c: New file.
65539         * lib/unistr/u32-stpcpy.c: New file.
65540         * lib/unistr/u-stpcpy.h: New file.
65541
65542         * modules/unistr/u8-stpncpy: New file.
65543         * modules/unistr/u16-stpncpy: New file.
65544         * modules/unistr/u32-stpncpy: New file.
65545         * lib/unistr/u8-stpncpy.c: New file.
65546         * lib/unistr/u16-stpncpy.c: New file.
65547         * lib/unistr/u32-stpncpy.c: New file.
65548         * lib/unistr/u-stpncpy.h: New file.
65549
65550         * modules/unistr/u8-strcat: New file.
65551         * modules/unistr/u16-strcat: New file.
65552         * modules/unistr/u32-strcat: New file.
65553         * lib/unistr/u8-strcat.c: New file.
65554         * lib/unistr/u16-strcat.c: New file.
65555         * lib/unistr/u32-strcat.c: New file.
65556         * lib/unistr/u-strcat.h: New file.
65557
65558         * modules/unistr/u8-strchr: New file.
65559         * modules/unistr/u16-strchr: New file.
65560         * modules/unistr/u32-strchr: New file.
65561         * lib/unistr/u8-strchr.c: New file.
65562         * lib/unistr/u16-strchr.c: New file.
65563         * lib/unistr/u32-strchr.c: New file.
65564
65565         * modules/unistr/u8-strcmp: New file.
65566         * modules/unistr/u16-strcmp: New file.
65567         * modules/unistr/u32-strcmp: New file.
65568         * lib/unistr/u8-strcmp.c: New file.
65569         * lib/unistr/u16-strcmp.c: New file.
65570         * lib/unistr/u32-strcmp.c: New file.
65571
65572         * modules/unistr/u8-strcpy: New file.
65573         * modules/unistr/u16-strcpy: New file.
65574         * modules/unistr/u32-strcpy: New file.
65575         * lib/unistr/u8-strcpy.c: New file.
65576         * lib/unistr/u16-strcpy.c: New file.
65577         * lib/unistr/u32-strcpy.c: New file.
65578         * lib/unistr/u-strcpy.h: New file.
65579
65580         * modules/unistr/u8-strcspn: New file.
65581         * modules/unistr/u16-strcspn: New file.
65582         * modules/unistr/u32-strcspn: New file.
65583         * lib/unistr/u8-strcspn.c: New file.
65584         * lib/unistr/u16-strcspn.c: New file.
65585         * lib/unistr/u32-strcspn.c: New file.
65586         * lib/unistr/u-strcspn.h: New file.
65587
65588         * modules/unistr/u8-strdup: New file.
65589         * modules/unistr/u16-strdup: New file.
65590         * modules/unistr/u32-strdup: New file.
65591         * lib/unistr/u8-strdup.c: New file.
65592         * lib/unistr/u16-strdup.c: New file.
65593         * lib/unistr/u32-strdup.c: New file.
65594         * lib/unistr/u-strdup.h: New file.
65595
65596         * modules/unistr/u8-strlen: New file.
65597         * modules/unistr/u16-strlen: New file.
65598         * modules/unistr/u32-strlen: New file.
65599         * lib/unistr/u8-strlen.c: New file.
65600         * lib/unistr/u16-strlen.c: New file.
65601         * lib/unistr/u32-strlen.c: New file.
65602         * lib/unistr/u-strlen.h: New file.
65603
65604         * modules/unistr/u8-strmblen: New file.
65605         * modules/unistr/u16-strmblen: New file.
65606         * modules/unistr/u32-strmblen: New file.
65607         * lib/unistr/u8-strmblen.c: New file.
65608         * lib/unistr/u16-strmblen.c: New file.
65609         * lib/unistr/u32-strmblen.c: New file.
65610
65611         * modules/unistr/u8-strmbtouc: New file.
65612         * modules/unistr/u16-strmbtouc: New file.
65613         * modules/unistr/u32-strmbtouc: New file.
65614         * lib/unistr/u8-strmbtouc.c: New file.
65615         * lib/unistr/u16-strmbtouc.c: New file.
65616         * lib/unistr/u32-strmbtouc.c: New file.
65617
65618         * modules/unistr/u8-strncat: New file.
65619         * modules/unistr/u16-strncat: New file.
65620         * modules/unistr/u32-strncat: New file.
65621         * lib/unistr/u8-strncat.c: New file.
65622         * lib/unistr/u16-strncat.c: New file.
65623         * lib/unistr/u32-strncat.c: New file.
65624         * lib/unistr/u-strncat.h: New file.
65625
65626         * modules/unistr/u8-strncmp: New file.
65627         * modules/unistr/u16-strncmp: New file.
65628         * modules/unistr/u32-strncmp: New file.
65629         * lib/unistr/u8-strncmp.c: New file.
65630         * lib/unistr/u16-strncmp.c: New file.
65631         * lib/unistr/u32-strncmp.c: New file.
65632
65633         * modules/unistr/u8-strncpy: New file.
65634         * modules/unistr/u16-strncpy: New file.
65635         * modules/unistr/u32-strncpy: New file.
65636         * lib/unistr/u8-strncpy.c: New file.
65637         * lib/unistr/u16-strncpy.c: New file.
65638         * lib/unistr/u32-strncpy.c: New file.
65639         * lib/unistr/u-strncpy.h: New file.
65640
65641         * modules/unistr/u8-strnlen: New file.
65642         * modules/unistr/u16-strnlen: New file.
65643         * modules/unistr/u32-strnlen: New file.
65644         * lib/unistr/u8-strnlen.c: New file.
65645         * lib/unistr/u16-strnlen.c: New file.
65646         * lib/unistr/u32-strnlen.c: New file.
65647         * lib/unistr/u-strnlen.h: New file.
65648
65649         * modules/unistr/u8-strpbrk: New file.
65650         * modules/unistr/u16-strpbrk: New file.
65651         * modules/unistr/u32-strpbrk: New file.
65652         * lib/unistr/u8-strpbrk.c: New file.
65653         * lib/unistr/u16-strpbrk.c: New file.
65654         * lib/unistr/u32-strpbrk.c: New file.
65655         * lib/unistr/u-strpbrk.h: New file.
65656
65657         * modules/unistr/u8-strrchr: New file.
65658         * modules/unistr/u16-strrchr: New file.
65659         * modules/unistr/u32-strrchr: New file.
65660         * lib/unistr/u8-strrchr.c: New file.
65661         * lib/unistr/u16-strrchr.c: New file.
65662         * lib/unistr/u32-strrchr.c: New file.
65663
65664         * modules/unistr/u8-strspn: New file.
65665         * modules/unistr/u16-strspn: New file.
65666         * modules/unistr/u32-strspn: New file.
65667         * lib/unistr/u8-strspn.c: New file.
65668         * lib/unistr/u16-strspn.c: New file.
65669         * lib/unistr/u32-strspn.c: New file.
65670         * lib/unistr/u-strspn.h: New file.
65671
65672         * modules/unistr/u8-strstr: New file.
65673         * modules/unistr/u16-strstr: New file.
65674         * modules/unistr/u32-strstr: New file.
65675         * lib/unistr/u8-strstr.c: New file.
65676         * lib/unistr/u16-strstr.c: New file.
65677         * lib/unistr/u32-strstr.c: New file.
65678         * lib/unistr/u-strstr.h: New file.
65679
65680         * modules/unistr/u8-strtok: New file.
65681         * modules/unistr/u16-strtok: New file.
65682         * modules/unistr/u32-strtok: New file.
65683         * lib/unistr/u8-strtok.c: New file.
65684         * lib/unistr/u16-strtok.c: New file.
65685         * lib/unistr/u32-strtok.c: New file.
65686         * lib/unistr/u-strtok.h: New file.
65687
65688         * modules/unistr/u8-uctomb: New file.
65689         * modules/unistr/u16-uctomb: New file.
65690         * modules/unistr/u32-uctomb: New file.
65691         * lib/unistr/u8-uctomb.c: New file.
65692         * lib/unistr/u16-uctomb.c: New file.
65693         * lib/unistr/u32-uctomb.c: New file.
65694
65695         * MODULES.html.sh (Unicode string functions): Add the new modules.
65696
65697 2007-01-08  Bruno Haible  <bruno@clisp.org>
65698
65699         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65700         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65701         subdirectories.
65702
65703 2007-01-08  Karl Berry  <karl@gnu.org>
65704
65705         * doc/error.texi: mention that main() fns must set program_name
65706         when progname is used.
65707
65708 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65709
65710         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65711         WCTYPE_H is empty, for the benefit of builds from non-distclean
65712         directories.  Problem reported by Eric Blake in
65713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65714
65715 2007-01-08  Bruno Haible  <bruno@clisp.org>
65716
65717         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65718         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65719         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65720         PROVIDE_CANONICALIZE_FILENAME_MODE.
65721         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65722
65723 2007-01-08  Bruno Haible  <bruno@clisp.org>
65724
65725         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65726         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65727         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65728         * lib/fts.c: Likewise.
65729         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65730
65731 2006-12-25  Bruno Haible  <bruno@clisp.org>
65732
65733         * modules/utf8-ucs4-safe: New file.
65734         * lib/utf8-ucs4-safe.h: New file.
65735         * lib/unistr/utf8-ucs4-safe.c: New file.
65736
65737         * modules/utf16-ucs4-safe: New file.
65738         * lib/utf16-ucs4-safe.h: New file.
65739         * lib/unistr/utf16-ucs4-safe.c: New file.
65740
65741         * MODULES.html.sh (Unicode string functions): Add the new modules.
65742
65743 2007-01-08  Bruno Haible  <bruno@clisp.org>
65744
65745         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65746         (Depends-on): Add unitypes.
65747         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65748         (u8_mbtouc_aux): Move out to separate file.
65749         (u8_mbtouc): Use ucs4_t, uint8_t types.
65750         * lib/unistr/utf8-ucs4.c: New file.
65751
65752         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65753         (Depends-on): Add unitypes.
65754         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65755         (u16_mbtouc_aux): Move out to separate file.
65756         (u16_mbtouc): Use ucs4_t, uint16_t types.
65757         * lib/unistr/utf16-ucs4.c: New file.
65758
65759         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65760         (Depends-on): Add unitypes.
65761         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65762         (u8_uctomb_aux): Move out to separate file.
65763         (u8_uctomb): Use ucs4_t, uint8_t types.
65764         * lib/unistr/ucs4-utf8.c: New file.
65765
65766         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65767         (Depends-on): Add unitypes.
65768         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65769         (u16_uctomb_aux): Move out to separate file.
65770         (u16_uctomb): Use ucs4_t, uint16_t types.
65771         * lib/unistr/ucs4-utf16.c: New file.
65772
65773 2006-12-25  Bruno Haible  <bruno@clisp.org>
65774
65775         * modules/unitypes: New file.
65776         * lib/unitypes.h: New file.
65777         * MODULES.html.sh (func_all_modules): New section "Unicode string
65778         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65779         this section. Add unitypes.
65780
65781 2007-01-08  Bruno Haible  <bruno@clisp.org>
65782
65783         Avoid variable names that conflict with those from libtool.
65784         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65785         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65786         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65787         library_names_spec to acl_library_names_spec, hardcode_* to
65788         acl_hardcode_*.
65789         Reported by Ralf Wildenhues.
65790
65791 2007-01-08  Bruno Haible  <bruno@clisp.org>
65792
65793         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65794         definition.
65795         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65796         definition.
65797         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65798         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65799         definition.
65800         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65801         definition.
65802         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65803         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65804         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65805         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65806         definition.
65807         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65808         definition.
65809         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65810         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65811         GC_USE_<algorithm>.
65812         * lib/gc-libgcrypt.c: Likewise.
65813         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65814         * modules/gc-arctwo (configure.ac): Likewise.
65815         * modules/gc-des (configure.ac): Likewise.
65816         * modules/gc-hmac-md5 (configure.ac): Likewise.
65817         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65818         * modules/gc-md2 (configure.ac): Likewise.
65819         * modules/gc-md4 (configure.ac): Likewise.
65820         * modules/gc-md5 (configure.ac): Likewise.
65821         * modules/gc-random (configure.ac): Likewise.
65822         * modules/gc-rijndael (configure.ac): Likewise.
65823         * modules/gc-sha1 (configure.ac): Likewise.
65824
65825 2007-01-08  Bruno Haible  <bruno@clisp.org>
65826
65827         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65828         macro definition.
65829         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65830         definition.
65831         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65832         definition.
65833         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65834         * modules/fcntl-safer (configure.ac): Likewise.
65835         * modules/fopen-safer (configure.ac): Likewise.
65836         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65837         GNULIB_FWRITEERROR macro definition.
65838
65839 2007-01-08  Bruno Haible  <bruno@clisp.org>
65840
65841         * m4/gnulib-common.m4: New file.
65842         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65843         (func_get_filelist): Add m4/gnulib-common.m4.
65844
65845 2007-01-08  Bruno Haible  <bruno@clisp.org>
65846
65847         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65848         command.
65849
65850 2007-01-08  Jim Meyering  <jim@meyering.net>
65851
65852         Use a more robust test for a "can't happen" condition.
65853         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65854         narrowed the st_size value.  Presuming the "can't happen" condition
65855         is true, that narrowing could conceivably convert an invalid st_size
65856         value into a valid one.  Instead, use a change based on Matthew
65857         Woehlke's original patch.
65858
65859         Slight readability improvement: use an assert-like macro
65860         in place of literal "abort ()" uses.
65861         * lib/fts.c (fts_assert): Define.
65862         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65863         Use this macro instead of a bare 'abort'.
65864
65865 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65868         simply work around them.
65869         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65870         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65871         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65872         declaring.
65873         Don't bother to define as macros, since the standard doesn't require it.
65874         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65875         longer worry about IRIX 5.3.
65876         (HAVE_WCTYPE_CTMP_BUG): Remove.
65877
65878 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65879
65880         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65881         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65882         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65883         Problems reported by Georg Schwarz for IRIX 5.3.
65884
65885         * gnulib-tool (autoconf_minversion): Take the maximum version number
65886         found, not the minimum.  Problem reported by James Youngman.
65887
65888 2007-01-03  Karl Berry  <karl@gnu.org>
65889
65890         * doc/error.texi: new file, explaining interaction with progname.
65891         * doc/gnulib.texi: include it.  Update copyright.
65892
65893 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65894
65895         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65896         AC_CANONICAL_HOST, to improve autobuild outputs.
65897
65898 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65899             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65900
65901         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65902         sockets, server sockets, and other file descriptors.  Count errors
65903         to compute the return value.  Reorder the code a bit to be easier
65904         to follow.  Don't set event bits that were not requested (except
65905         POLLERR and POLLHUP).
65906
65907 2007-01-01  Bruno Haible  <bruno@clisp.org>
65908
65909         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65910
65911 2007-01-03  Jim Meyering  <jim@meyering.net>
65912
65913         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65914
65915 2007-01-02  Bruno Haible  <bruno@clisp.org>
65916
65917         * modules/settime (Include): Require timespec.h.
65918         * modules/nanosleep (Include): Likewise.
65919
65920 2007-01-01  Bruno Haible  <bruno@clisp.org>
65921
65922         * gnulib-tool (func_emit_copyright_notice): Bump year.
65923         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65924
65925 2007-01-01  Bruno Haible  <bruno@clisp.org>
65926
65927         Improve support for OpenBSD.
65928         * build-aux/config.rpath (libname_spec): Export.
65929         (library_names_spec): New variable. Export.
65930         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65931         library_names_spec from the config.rpath output. Locate shared library
65932         through the name pattern in library_names_spec.
65933
65934 2007-01-01  Eric Blake  <ebb9@byu.net>
65935
65936         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65937
65938 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65941         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65942         assume the C locale, and avoid an "eval" that could cause trouble.
65943         Problem with SORT reported by Bob Proulx.
65944
65945         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65946         Define.  Trivial patch from Henning Nielsen Lund, originally
65947         sent to bug-grep@gnu.org today.
65948
65949 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65952         struct stat.  Problem reported by Henning Nielsen Lund.
65953         * lib/acl.c: Include acl.h first, to check interface.  Don't
65954         bother to include sys/types.h and sys/stat.h again.
65955
65956 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65957
65958         Import the following change from libc; problem reported by
65959         Sven Verdoolaege.
65960
65961         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65962
65963         [BZ #1373]
65964         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65965
65966 2006-12-28  Jim Meyering  <jim@meyering.net>
65967
65968         * build-aux/announce-gen: Do not assume that the package
65969         builds any of tar.gz, tar.bz2, and .xdelta files.
65970         Suggestion from Simon Josefsson.
65971
65972 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65973
65974         * modules/announce-gen: New file.
65975
65976 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65977
65978         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65979         handles its gotchas now.
65980         * lib/mbswidth.c: Likewise.
65981         * lib/wcwidth.h: Likewise.
65982         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65983         and iswcntrl; the wctype module does this stuff now.
65984         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65986         * modules/mbchar (Depends-on): Add wctype.
65987         * modules/mbswidth (Depends-on): Likewise.
65988         * modules/wcwidth (Depends-on): Likewise.
65989
65990 2006-12-27  Eric Blake  <ebb9@byu.net>
65991
65992         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65993         module uses more than what <wctype.h> is required to provide.
65994
65995 2006-12-26  Eric Blake  <ebb9@byu.net>
65996
65997         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65998
65999 2006-12-26  Eric Blake  <ebb9@byu.net>
66000
66001         * modules/absolute-header: New module.
66002         * modules/fcntl (Depends-on): Depend on it.
66003         * modules/inttypes (Depends-on): Likewise.
66004         * modules/stdint (Depends-on): Likewise.
66005         * modules/sys_stat (Depends-on): Likewise.
66006         * modules/wctype (Depends-on): Likewise.
66007         * MODULES.html.sh (Support for building libraries and
66008         executables): Document it.
66009
66010 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66011
66012         * gnulib-tool (SED): Remove, undoing previous change.
66013         The problem was that it broke coreutils on Solaris, because
66014         "sed --posix" leaked into a makefile.
66015         (sed): New alias, if 'alias' and GNU sed.
66016
66017 2006-12-24  Jim Meyering  <jim@meyering.net>
66018
66019         Work around an fchownat bug in glibc-2.4:
66020         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66021         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66022         in spite of the -P option.
66023         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66024         New macros.
66025         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66026         * modules/openat (Files): Add lib/fchownat.c.
66027         * lib/openat.c (fchownat): Don't define here.  Move to...
66028         * lib/fchownat.c: ...this new file.
66029
66030 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         Fix bug reported by Bruno Haible in
66033         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66034         where quotearg.c didn't compile on Mac OS X 10.2 because it
66035         lacks <wchar.h> and wint_t.
66036         * lib/wctype_.h (__wctype_wint_t): New type.
66037         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66038         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66039         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66040         Arg is now of type __wctype_wint_t, not wint_t.
66041         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66042         substitute HAVE_WINT_T.
66043         * modules/wctype (Files): Add m4/wint_t.m4.
66044         (wctype.h): Substitute HAVE_WINT_T.
66045
66046 2006-12-23  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66049
66050 2006-12-23  Bruno Haible  <bruno@clisp.org>
66051
66052         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66053         S_ISLNK.
66054         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66055         mingw.
66056
66057 2006-12-22  Bruno Haible  <bruno@clisp.org>
66058
66059         * lib/copy-file.c: Include acl.h.
66060         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66061         Close the file descriptors only after being done with copy_acl.
66062         * modules/copy-file (Depends-on): Add acl.
66063
66064 2006-12-22  Bruno Haible  <bruno@clisp.org>
66065
66066         * gnulib-tool (SED): New variable.
66067         Use $SED instead of sed everywhere.
66068
66069 2006-12-22  Bruno Haible  <bruno@clisp.org>
66070
66071         * modules/no-c++: New file.
66072         * m4/no-c++.m4: New file.
66073         * MODULES.html.sh (Support for building libraries and executables):
66074         Add no-c++.
66075
66076 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66079         Include <limits.h>, and use its INT_MAX to rewrite the
66080         j loop so that it does not overflow 'int'.  Problem reported by
66081         Ralf Wildenhues in
66082         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66083         Play it safe by shifting left by 1 rather than multiplying by 2,
66084         as GCC is less likely to optimize this away when the value
66085         is signed (when it assumes overflow leads to undefined behavior).
66086         Also, don't assume time_t uses two's complement.
66087
66088 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * MODULES.html.sh: New module wctype.
66091         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66092         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66093         <wctype.h>, since the new wctype module should fix this.
66094         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66095         the wctype module should arrange for it.
66096         * lib/regex_internal.h: Likewise.
66097         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66098         since the wctype module should handle this now.
66099         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66100         * modules/fnmatch (Depends-on): Add wctype.
66101         * modules/quotearg (Depends-on): Likewise.
66102         * modules/regex (Depends-on): Likewise.
66103
66104 2006-12-19  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66107         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66108
66109 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66110
66111         * modules/savewd (Depends-on): Fix dependency on fcntl.
66112
66113 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66114
66115         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66116         conforms to C99, rather than relying on the user's environment
66117         setting of STDINT_H.
66118
66119 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66120         and Eric Blake  <ebb9@byu.net>
66121
66122         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66123         This is more consistent with the other defines here.
66124         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66125         Port to z/OS.  Problem reported by Paul Gilmartin.
66126         Change local vars to use gl_ prefix rather than ac_.
66127         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66128         with other defines.
66129         * modules/double-slash-root: New module.
66130         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66131         (Depends-on): Add double-slash-root.
66132         * MODULES.html.sh (File system functions): Mention new module.
66133
66134 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66135
66136         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66137         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66138         This is for the benefit of gzip, which doesn't do i18n.
66139
66140 2006-12-12  Jim Meyering  <jim@meyering.net>
66141
66142         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66143         Reported by Andreas Schwab <schwab@suse.de>.
66144
66145 2006-12-12  Bruno Haible  <bruno@clisp.org>
66146
66147         Merge these changes.
66148         2006-09-05  Bruno Haible  <bruno@clisp.org>
66149         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66150         iconv_alloc succeeded.
66151         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66152         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66153         test for " && dest " at the end - dest is always != NULL there. Call
66154         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66155         with 2xNULL arguments, also to flush the state storage. Handle the
66156         IRIX iconv behaviour. Realloc the final result, to throw away unused
66157         memory.
66158
66159 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66162         and fchmodat unconditionally, since glibc 2.4 has them.
66163         Problem reported by Arkadiusz Miskiewicz.
66164
66165 2006-12-10  Bruno Haible  <bruno@clisp.org>
66166
66167         * gnulib-tool (func_import): Show the include files only for those
66168         modules that are copied and specified.
66169         Reported by Karl Berry.
66170
66171 2006-12-08  Jim Meyering  <jim@meyering.net>
66172
66173         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66174         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66175
66176         * build-aux/announce-gen: Add two new options, both optional:
66177         --bootstrap-tools=TOOL_LIST
66178               a comma-separated list of tools, e.g.,
66179               autoconf,automake,bison,gnulib
66180         --gnulib-snapshot-date=DATE
66181               if gnulib is in the bootstrap tool list,
66182               then report this as the snapshot date.
66183               If not specified, use the current date/time.
66184               If you specify a date here, be sure it's UTC.
66185
66186 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66187
66188         * tests/test-argp-2.sh: Fix test to match actual output.
66189         (func_compare): Fix sed script to be portable.
66190
66191 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66192
66193         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66194         workaround for this case.  It is not autoconfigured now; offhand
66195         it's hard to see how to autoconfigure it.
66196
66197 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66198
66199         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66200         a directory that is about to be chowned.  Such a directory's
66201         initial file permissions should permit the owner only and this
66202         should not be changed until after the chown, since the group and
66203         other bits would be incorrect if they granted permission before
66204         the chown.
66205
66206         Fix porting problem for iswctype reported by Georg Schwarz in:
66207         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66208         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66209         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66210         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66211         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66212
66213 2006-12-03  Jim Meyering  <jim@meyering.net>
66214
66215         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66216         p->fts_statp may not yet be defined.
66217         (fts_read): Instead, set it in the caller, once p->fts_statp is
66218         sure to be defined, and corresponds to a top-level directory.
66219         This bug made du -x fail.  Here's the coreutils test case:
66220         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66221         Reported by Mike Frysinger.
66222
66223 2006-12-01  Jim Meyering  <jim@meyering.net>
66224
66225         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66226         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66227         Reported by Simon Josefsson.
66228
66229 2006-11-30  Jim Meyering  <jim@meyering.net>
66230
66231         * m4/warning.m4: Use the all-permissive copyright notice
66232         recommended by RMS (rather than LGPL).
66233         * m4/vararrays.m4: Likewise.
66234         * m4/flexmember.m4: Likewise.
66235
66236 2006-11-29  Bruno Haible  <bruno@clisp.org>
66237
66238         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66239         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66240         using +=.
66241         Reported by Simon Josefsson <simon@josefsson.org>.
66242
66243 2006-11-28  James Youngman <jay@gnu.org>
66244
66245         * README: Advise users that they might find the bug-gnulib@gnu.org
66246         and autotools-announce@gnu.org mailing lists useful.
66247
66248 2006-11-28  Bruno Haible  <bruno@clisp.org>
66249
66250         * m4/ptrdiff_max.m4: Remove file.
66251
66252 2006-11-21  Bruno Haible  <bruno@clisp.org>
66253
66254         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66255         _AC_COMPUTE_INT.
66256         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66257         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66258         _AC_COMPUTE_INT.
66259         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66260         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66261         _AC_COMPUTE_INT.
66262         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66263
66264 2006-11-28  Jim Meyering  <jim@meyering.net>
66265
66266         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66267         warning from "gcc -Wshadow" about shadowing the builtin.
66268
66269 2006-11-27  Bruno Haible  <bruno@clisp.org>
66270
66271         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66272         _AC_COMPUTE_INT.
66273         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66274
66275 2006-11-27  Bruno Haible  <bruno@clisp.org>
66276             Paul Eggert  <eggert@cs.ucla.edu>
66277
66278         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66279
66280 2006-11-26  Bruno Haible  <bruno@clisp.org>
66281
66282         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66283         noinst_LTLIBRARIES.
66284
66285 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66286             Bruno Haible  <bruno@clisp.org>
66287
66288         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66289         if compiling with "gcc -ansi".
66290
66291 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         Fix some incompatibilities with gcc -ansi -pedantic.
66294         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66295         if compiling pedantically with GCC, unless it's C99 or later.
66296         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66297         it mishandles gcc -ansi -pedantic as well.
66298         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66299         if gcc -pedantic.
66300         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66301         initializers for struct if -pedantic, unless it's C99 or later.
66302
66303 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66304
66305         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66306         Don't close an fd more than once. Identical atimes indicate
66307         success, not failure.
66308
66309 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66310
66311         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66312
66313 2006-11-23  Jim Meyering  <jim@meyering.net>
66314
66315         * build-aux/announce-gen: New file.  From coreutils.
66316
66317 2006-11-22  Jim Meyering  <jim@meyering.net>
66318
66319         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66320         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66321         (fts_read): Use a temporary to narrow the overused st_size member
66322         before using it in a switch statement.  Reported by Matthew Woehlke.
66323
66324         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66325         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66326
66327 2006-11-20  Bruno Haible  <bruno@clisp.org>
66328
66329         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66330         changequote instead of pairs of brackets.
66331         Reported by Andreas Schwab <schwab@suse.de>.
66332
66333 2006-11-21  Jim Meyering  <jim@meyering.net>
66334
66335         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66336         so as to remain compatible with older compilers.
66337         Patch from Michael Deutschmann.
66338
66339 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * MODULES.html.sh (File system functions): Add openat.
66342
66343         * lib/openat.h (rpl_fstatat): New macro, if
66344         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66345         (fstatat): Define to rpl_fstatat under the same conditions,
66346         unless COMPILING_FSTATAT.
66347         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66348         seems to have the bug.
66349         * lib/fstatat.c: New file.
66350         * modules/openat (Files): Add it.
66351
66352 2006-11-20  Bruno Haible  <bruno@clisp.org>
66353
66354         * Makefile: New file.
66355
66356 2006-11-20  Jim Meyering  <jim@meyering.net>
66357
66358         The beginnings of syntax-related checks for gnulib.
66359         * lib/Makefile: New file.
66360         * lib/t-idcache: New script.  Ensure that the two halves of
66361         idcache.c stay in sync.
66362
66363         * lib/idcache.c: Adjust comments in user- and group- portions to
66364         be more accurate, and to be consistent with one another.
66365
66366 2006-11-20  Jim Meyering  <jim@meyering.net>
66367
66368         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66369         continue using the flexible array member (thus, this module performs
66370         half as many malloc calls), with the addition that...
66371         (getgroup, getuser): Consistently record a non-match via an empty
66372         "name" string, and map an empty string match to a NULL return value.
66373         * modules/idcache (Depends-on): Re-add flexmember.
66374
66375         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66376         (getuidbyname, getgroup, getgidbyname): Likewise.
66377
66378         Use cleaner syntax: NULL rather than 0.
66379         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66380
66381 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66384         It mishandled the case where the group was missing.
66385         Problem reported by Greg Schafer.
66386         * modules/idcache: Likewise.
66387
66388 2006-11-18  Jim Meyering  <jim@meyering.net>
66389
66390         * check-module (%exempt_header): Add exception for some
66391         conditionally-included headers.
66392
66393         * modules/i-ring (Depends-on): Add verify.
66394         (License): Change to LGPL.
66395
66396 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66399         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66400         and inttostr.h.  Use snprintf rather than uinttostr, so that
66401         LGPLed code doesn't depend on GPLed.
66402
66403 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         * modules/inline (License): Change from GPL to LGPL.
66406
66407 2006-11-17  Jim Meyering  <jim@meyering.net>
66408
66409         * modules/d-type (License): Switch to LGPL.
66410
66411 2006-11-15  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66414
66415 2006-11-15  Eric Blake  <ebb9@byu.net>
66416
66417         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66418         the module dependency.
66419
66420 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66421             Bruno Haible  <bruno@clisp.org>
66422
66423         * gnulib-tool (func_create_testdir): Add license consistency check.
66424
66425 2006-11-15  Eric Blake  <ebb9@byu.net>
66426
66427         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66428         random "(cached)" in configure output.
66429
66430 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66431
66432         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66433         test for conforming inttypes.h is both announced and cached.
66434
66435         * MODULES.html.sh (seen_modules, seen_files): New variables.
66436         (func_module): Rewrite to use a few less gnulib-tool and sed
66437         invocations.  Avoid a couple of quadratic algorithms for ...
66438         (missed_modules, missed_files): ... these, with ...
66439         (func_append, func_tmpdir): ... these new functions, from
66440         gnulib-tool.  Analogously, install traps for cleanup.
66441
66442         * tests/test-gc.c (main): Remove unused variables.
66443         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66444
66445 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * modules/inttostr (License): Change to LGPL.
66448
66449 2006-11-14  Eric Blake  <ebb9@byu.net>
66450
66451         * modules/tempname (License): Change to LGPL.
66452
66453 2006-11-14  Eric Blake  <ebb9@byu.net>
66454
66455         * doc/functions.texi (Function Portability): *printf functions on
66456         Cygwin now understand all POSIX size specifiers.
66457
66458 2006-11-14  Bruno Haible  <bruno@clisp.org>
66459
66460         * modules/c-ctype (License): Change to LGPL.
66461
66462 2006-11-12  Bruno Haible  <bruno@clisp.org>
66463
66464         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66465         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66466         for GNOME libraries, for which the include files are installed in
66467         subdirectories of $prefix/include.
66468
66469 2006-11-12  Bruno Haible  <bruno@clisp.org>
66470
66471         * m4/lib-link.m4: Require at least autoconf-2.54.
66472         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66473         name to underscores for the --with option.
66474
66475 2006-11-13  Bruno Haible  <bruno@clisp.org>
66476
66477         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66478         the tests directory.
66479         Reported by Ralf Wildenhues.
66480
66481 2006-11-13  Bruno Haible  <bruno@clisp.org>
66482
66483         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66484         (func_emit_initmacro_end): Undo the override here.
66485         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66486         Works around the famous automake error in coreutils.
66487
66488 2006-11-13  Eric Blake  <ebb9@byu.net>
66489
66490         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66491         element, not its node.
66492
66493 2006-11-12  Bruno Haible  <bruno@clisp.org>
66494
66495         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66496         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66497
66498 2006-11-12  Bruno Haible  <bruno@clisp.org>
66499
66500         * gnulib-tool: New option --local-symlink.
66501         (func_usage): Document it.
66502         (lsymbolic): New variable.
66503         (func_import, func_create_testdir): If --symlink was not specified,
66504         test whether --local-symlink was specified and the file comes from
66505         the local_gnulib_dir.
66506
66507 2006-11-12  Bruno Haible  <bruno@clisp.org>
66508
66509         * gnulib-tool (func_ln): New function.
66510         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66511
66512 2006-11-12  Bruno Haible  <bruno@clisp.org>
66513
66514         Finish support for source files in subdirectories.
66515         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66516         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66517         AUTOMAKE_OPTIONS.
66518         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66519
66520 2006-11-12  Bruno Haible  <bruno@clisp.org>
66521
66522         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66523         EXTRA_lib_SOURCES augmentation.
66524         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66525
66526 2006-11-12  Jim Meyering  <jim@meyering.net>
66527
66528         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66529         file descriptors.  This also averts a failure on systems with
66530         native openat support when a traversed directory lacks "x" access.
66531         * lib/fts_.h: Include "i-ring.h"
66532         (struct FTS) [fts_fd_ring]: New member.
66533         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66534         (FCHDIR): Add parentheses.
66535         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66536         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66537         When descending, rather than simply closing the previous
66538         fts_cwd_fd value, push that file descriptor onto the ring.
66539         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66540         (fts_open): Initialize the new fd_ring member.
66541         (fts_close): Clear the ring.
66542         (fts_safe_changedir): When possible, use our new fd_ring to skip
66543         the diropen and fstat and dev/ino comparison that would normally
66544         accompany a virtual `chdir ("..")'.
66545
66546         * modules/fts (Depends-on): Add i-ring.
66547         * modules/i-ring: New module.
66548         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66549         * m4/i-ring.m4: New file.
66550
66551 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66552
66553         * gnulib-tool (func_create_testdir): Fix replacement of
66554         `build-aux' in configure.ac.  Run autotools in gltests
66555         subdirectory.
66556         (func_create_testdir, func_create_megatestdir, test): There is
66557         no need for '--force' in most autotool invocations in a new
66558         tree.  Actually fail the whole test if any of the tools, or the
66559         configure or make stages fail.
66560
66561         Sync from Automake.
66562         * build-aux/gnupload: Revert last change.  Add pointer to upload
66563         instructions of the GNU Maintenance Instructions.
66564         Suggestion by Karl Berry.
66565
66566 2006-11-10  Jim Meyering  <jim@meyering.net>
66567
66568         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66569
66570 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66573         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66574         (bind_textdomain_codeset) [! ENABLE_NLS]:
66575         Evaluate all the arguments.  That way, callers get compatible behavior
66576         if the arguments have side effects.  Also, it avoids some GCC
66577         diagnostics in some cases; Joel E. Denny reported problems when Bison
66578         was configured with --enable-gcc-warnigs.
66579
66580 2006-11-10  Jim Meyering  <jim@meyering.net>
66581
66582         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66583         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66584         account.
66585
66586 2006-11-10  Jim Meyering  <jim@meyering.net>
66587
66588         * modules/inline: New file/module.
66589         * modules/xalloc (Files): Remove m4/inline.m4.
66590         (Depends-on): Add inline, instead.
66591         * modules/oset: Likewise.
66592         * modules/list: Likewise.
66593
66594 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66597         Problem reported by Matthew Woehlke.
66598
66599 2006-11-09  Bruno Haible  <bruno@clisp.org>
66600
66601         * lib/tempname.c (gen_tempname): Remove variant that invokes
66602         __gen_tempname.
66603         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66604         __gen_tempname.
66605
66606 2006-11-08  Bruno Haible  <bruno@clisp.org>
66607
66608         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66609         to 'yes' instead of 'cross-compiling'.
66610
66611 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66612
66613         * lib/quotearg.h (quotearg_free): New decl.
66614         * lib/quotearg.c (quotearg_free): New function.
66615         (slot0, nslots, slotvec0, slotvec):
66616         Now file-scope so that quotearg_free can get at them.
66617
66618 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66619
66620         Sync from Automake.
66621         * build-aux/gnupload: Add missing 'gnu' to example URL.
66622         Report by Karl Berry.
66623
66624 2006-11-08  Bruno Haible  <bruno@clisp.org>
66625
66626         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66627         Suggested by Paul Eggert.
66628
66629 2006-11-08  Jim Meyering  <jim@meyering.net>
66630
66631         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66632         It's already included if !_LIBC.
66633         (fts_safe_changedir): Add a comment.
66634
66635 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66636
66637         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66638         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66639         Matthew Woehlke.
66640
66641         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66642         definitions up, to avoid colliding with change below.
66643         (static_inline) [HAVE_INLINE]: New macro.
66644         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66645         Provide extern decls when !HAVE_INLINE.  Do not define unless
66646         static_inline is defined, either by us or by xmalloc.c.  Use
66647         static_inline rather than static inline.
66648         (XCALLOC): Optimize sizeof(T) = 1 case.
66649         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66650
66651 2006-11-07  Bruno Haible  <bruno@clisp.org>
66652
66653         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66654         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66655         AC_C_INLINE.
66656         * modules/xalloc (Files): Add m4/inline.m4.
66657
66658 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66659
66660         * README: Fix typo.
66661         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66662         (Miscellanous Notes): ...from this.
66663
66664 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66665
66666         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66667         Mention that offsetof should be used instead of sizeof.
66668         From Bruno Haible.
66669
66670 2006-11-07  Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66673
66674 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66677         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66678         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66679         (gl_tree_add_before, gl_tree_add_after):
66680         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66681         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66682         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66683         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66684         (gl_linked_add_after, gl_linked_add_at): Likewise.
66685         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66686         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66687         (gl_tree_add_before, gl_tree_add_after): Likewise.
66688         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66689         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66690         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66691
66692 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66693
66694         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66695
66696 2006-11-06  Bruno Haible  <bruno@clisp.org>
66697
66698         * m4/inline.m4: New file.
66699         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66700         * modules/list (Files): Add m4/inline.m4.
66701         * modules/oset (Files): Likewise.
66702
66703 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * lib/idcache.c: Include <stddef.h>, for offsetof.
66706         (struct userid.name): Change from char * to a flexible array member.
66707         All uses changed.
66708         * modules/idcache (Depends-on): Add flexmember.
66709
66710         * MODULES.html.sh (Core language properties): New module flexmember.
66711         * modules/flexmember, m4/flexmember.m4: New files.
66712
66713         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66714         inline functions that are identical with the old xnmalloc_inline,
66715         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66716         that we can avoid some unnecessary integer multiplications and
66717         divisions in the common case where the element size is known at
66718         compile time.
66719         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66720         needed.
66721         (xnboundedmalloc): Remove.
66722         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66723         arguments, for consistency with rest of this header.
66724         (xcharalloc): Rewrite using XNMALLOC.
66725         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66726         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66727         versions have been moved to lib/xalloc.h and renamed to be the
66728         non-*_inline versions.
66729         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66730         and xnrealloc functions, since those functions are now inline and
66731         now call us.
66732         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66733         renaming described above.
66734         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66735         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66736         captures the dependency in AC_C_INLINE.
66737
66738         New module canonicalize-lgpl, proposed by Charles Wilson in
66739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66740         with a few small changes afterwards.
66741         * MODULES.html.sh (File system functions): New module
66742         canonicalize-lgpl.
66743         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66744         and canonicalize_file_name.
66745         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66746         * modules/canonicalize-lgpl: New files.
66747
66748 2006-11-05  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool (func_import, func_create_testdir): Create directories
66751         also for files in subdirectories of lib/.
66752
66753 2006-11-05  Bruno Haible  <bruno@clisp.org>
66754
66755         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66756         ANSI C compliant.
66757
66758 2006-11-03  Bruno Haible  <bruno@clisp.org>
66759
66760         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66761         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66762         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66763         (xnboundedmalloc): New inline function.
66764         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66765         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66766         xmalloc.
66767         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66768         xmalloc.
66769         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66770         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66771         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66772         xmalloc.
66773         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66774         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66775         xmalloc.
66776         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66777         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66778         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66779         xmalloc.
66780         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66781         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66782         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66783         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66784         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66785         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66786         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66787
66788 2006-11-03  Bruno Haible  <bruno@clisp.org>
66789
66790         * lib/c-ctype.h [C++]: Define functions without name mangling.
66791         * lib/fwriteerror.h [C++]: Likewise.
66792         * lib/gcd.h [C++]: Likewise.
66793         * lib/linebreak.h [C++]: Likewise.
66794
66795 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66796
66797         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66798         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66799         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66800         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66801         Check for functions and headers just once.
66802         Check for declaration of canonicalize_file_name.
66803         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66804
66805 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66806
66807         * gnulib-tool (func_import): Fix typo in actioncmd.
66808
66809 2006-11-02  Bruno Haible  <bruno@clisp.org>
66810
66811         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66812         newline sequence in the Makefile.am snippet as a space, like "make"
66813         does.
66814         Reported by Roger Persson <perrog@gmail.com>.
66815
66816 2006-11-01  Bruno Haible  <bruno@clisp.org>
66817
66818         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66819         already declared in <string.h>.
66820         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66821
66822 2006-11-01  Bruno Haible  <bruno@clisp.org>
66823
66824         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66825         * lib/strcase.h: Include <string.h>.
66826         (strcasecmp): Define to rpl_strcasecmp here.
66827
66828 2006-11-01  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66831
66832 2006-11-01  Eric Blake  <ebb9@byu.net>
66833
66834         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66835
66836         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66837
66838 2006-10-29  Bruno Haible  <bruno@clisp.org>
66839
66840         Make it compile in C++ mode.
66841         * lib/full-write.c (full_rw): Add a cast.
66842
66843 2006-11-01  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66846         be POSIX compliant.
66847         Reported by Roger Persson <perrog@gmail.com>.
66848
66849 2006-11-01  Eric Blake  <ebb9@byu.net>
66850
66851         * lib/getopt_.h: Fix comments.
66852
66853 2006-10-31  Eric Blake  <ebb9@byu.net>
66854
66855         * modules/tmpdir (Depends-on): Add sys_stat.
66856         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66857         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66858         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66859         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66860         tempname.
66861
66862 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         Avoid some C++ diagnostics reported by Bruno Haible.
66865         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66866         xmalloc.
66867         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66868         (struct slotvec): Move to top level.
66869         (quotearg_n_options): Rewrite to avoid xmalloc.
66870         * lib/xalloc.h (xcharalloc): New function.
66871         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66872         [defined __cplusplus]: Add function template that provides result
66873         type propagation.  This part of the change is from Bruno Haible.
66874
66875 2006-10-29  Bruno Haible  <bruno@clisp.org>
66876
66877         Make it compile in C++ mode.
66878         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66879         * lib/strnlen1.c (strnlen1): Cast memchr result.
66880         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66881         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66882         (create_temp_dir): Rename local variable 'template'.
66883         (compile_csharp_using_sscli): Add cast.
66884         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66885         * lib/findprog.c (find_in_path): Likewise.
66886         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66887         * lib/wait-process.c (register_slave_subprocess): Likewise.
66888
66889 2006-10-22  Bruno Haible  <bruno@clisp.org>
66890
66891         * modules/tsearch: New file.
66892         * lib/tsearch.h: New file.
66893         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66894         * m4/tsearch.m4: New file.
66895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66896
66897 2006-10-29  Eric Blake  <ebb9@byu.net>
66898
66899         * lib/arcfour.c: Assume config.h.
66900         * lib/arctwo.c: Likewise.
66901         * lib/base64.c: Likewise.
66902         * lib/check-version.c: Likewise.
66903         * lib/crc.c: Likewise.
66904         * lib/des.c: Likewise.
66905         * lib/gc-gnulib.c: Likewise.
66906         * lib/gc-libgcrypt.c: Likewise.
66907         * lib/gc-pbkdf2-sha1.c: Likewise.
66908         * lib/getaddrinfo.c: Likewise.
66909         * lib/getdelim.c: Likewise.
66910         * lib/getline.c: Likewise.
66911         * lib/hmac-md5.c: Likewise.
66912         * lib/hmac-sha1.c: Likewise.
66913         * lib/iconvme.c: Likewise.
66914         * lib/md2.c: Likewise.
66915         * lib/md4.c: Likewise.
66916         * lib/memxor.c: Likewise.
66917         * lib/read-file.c: Likewise.
66918         * lib/readline.c: Likewise.
66919         * lib/rijndael-alg-fst.c: Likewise.
66920         * lib/rijndael-api-fst.c: Likewise.
66921         * lib/xgetdomainname.c: Likewise.
66922
66923 2006-10-28  Eric Blake  <ebb9@byu.net>
66924
66925         * lib/xstrndup.c: Assume config.h.
66926
66927 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66928
66929         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66930         stat-macros.h is now for our own macros, whereas stat_h is for
66931         macros in the <sys/stat.h> name space.
66932         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66933         (STAT_MACROS_H): Remove.
66934         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66935         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66936         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66937         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66938         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66939         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66940         Move these macros to ...
66941         * lib/stat_.h: here.  Don't include stat-macros.h.
66942         * lib/canonicalize.c: Don't include stat-macros.h.
66943         * lib/chown.c: Likewise.
66944         * lib/euidaccess.c: Likewise.
66945         * lib/file-type.c: Likewise.
66946         * lib/filemode.c: Likewise.
66947         * lib/glob.c: Likewise.
66948         * lib/isapipe.c: Likewise.
66949         * lib/lchown.c: Likewise.
66950         * lib/lstat.c: Likewise.
66951         * lib/mkdir-p.c: Likewise.
66952         * lib/rmdir.c: Likewise.
66953         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66955         unless mkdir isn't declared, to speed up 'configure'.
66956         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66957         would define all the S_* symbols.
66958         * modules/canonicalize (Depends-on):
66959         Depend on sys_stat, not stat-macros.
66960         * modules/chown: Likewise.
66961         * modules/euidaccess: Likewise.
66962         * modules/filemode: Likewise.
66963         * modules/file-type: Likewise.
66964         * modules/glob: Likewise.
66965         * modules/isapipe: Likewise.
66966         * modules/lchown: Likewise.
66967         * modules/lstat: Likewise.
66968         * modules/mkancesdirs: Likewise.
66969         * modules/rmdir: Likewise.
66970         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66971         * modules/modechange: Likewise.
66972         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66973         (configure.ac): Remove gl_STAT_MACROS.
66974         * modules/sys_stat (Depends-on): Remove stat-macros.
66975
66976 2006-10-27  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/signed.m4: Remove file.
66979         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66980         invocation.
66981         * modules/vasnprintf (Files): Remove m4/signed.m4.
66982
66983 2006-10-27  Bruno Haible  <bruno@clisp.org>
66984
66985         Update to GNU gettext 0.16.
66986         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66987         m4/inttypes-h.m4, m4/signed.m4.
66988         * m4/gettext.m4: Update to GNU gettext 0.16.
66989         * m4/intl.m4: New file, from GNU gettext.
66990         * m4/intldir.m4: New file, from GNU gettext.
66991         * config/srclist.txt: Update
66992
66993 2006-10-27  Eric Blake  <ebb9@byu.net>
66994
66995         * MODULES.html.sh: Document tempname.
66996         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66997         dependencies.
66998         (Files): Move lib/tempname.c...
66999         * modules/tempname: ...to this new module.
67000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67001         (gl_PREREQ_TEMPNAME): Move...
67002         * m4/tempname.m4: ...to this new file.
67003         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67004         * modules/sys_stat (Depends-on): Add stat-macros.
67005         * lib/stat_.h (includes): Pick up stat macros.
67006         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67007         if stat macros are broken.
67008         * lib/tempname.c (includes): No need to include "stat-macros.h".
67009         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67010         (direxists, __path_search) [!_LIBC]: Don't compile these in
67011         gnulib; the tmpdir module covers that.
67012         * lib/tempname.h: New file.
67013
67014 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         * COPYING: Explain how gnulib-tool converts licence headers.
67017         Almost all wording by Eric Blake.
67018
67019 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * lib/mbchar.h (is_basic_table): Make read-only.
67022         * lib/mbchar.c (is_basic_table): Likewise.
67023         Reported by John Darrington.
67024
67025 2006-10-25  Bruno Haible  <bruno@clisp.org>
67026
67027         * lib/progname.h (set_program_name): Undefine before defining.
67028
67029 2006-10-25  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67032         false for non-gcc C++ compilers.
67033         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67034
67035 2006-10-24  Bruno Haible  <bruno@clisp.org>
67036
67037         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67038         iconv implementations like Irix iconv.
67039
67040 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         * modules/vararrays: New file.
67043         * m4/vararrays.m4: New file, taken from diffutils.
67044         * MODULES.html.sh: New module vararrays.
67045
67046 2006-10-24  Karl Berry  <karl@gnu.org>
67047
67048         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67049         Don't call GNU Unix.
67050
67051 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67052
67053         * users.txt: Add Libtool.
67054
67055         Sync from Libtool:
67056
67057         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67058
67059         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67060         to gnulib's policy of including config.h unconditionally.
67061
67062 2006-10-24  Bruno Haible  <bruno@clisp.org>
67063
67064         * modules/wcwidth (Files): Add m4/wint_t.m4.
67065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67066         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67067
67068 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67069
67070         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67071         to pacify GCC with some -W flags enabled.  Problem reported by
67072         Bruno Haible.
67073
67074 2006-10-24  Jim Meyering  <jim@meyering.net>
67075
67076         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67077         Reported by Karl Berry.
67078
67079 2006-10-23  Bruno Haible  <bruno@clisp.org>
67080
67081         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67082
67083 2006-10-24  Bruno Haible  <bruno@clisp.org>
67084
67085         * lib/gl_list.h: Use C comment style, not C++ comment style.
67086
67087 2006-10-23  Eric Blake  <ebb9@byu.net>
67088
67089         * lib/getaddrinfo.c (includes): Add missing include.
67090
67091 2006-10-23  Bruno Haible  <bruno@clisp.org>
67092             Paul Eggert  <eggert@cs.ucla.edu>
67093
67094         Ability to rename obstack_free.
67095         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67096         obstack_free.
67097         (obstack_free): Invoke the __obstack_free macro.
67098         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67099
67100 2006-10-23  Bruno Haible  <bruno@clisp.org>
67101             Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67104         __argc, __argv from the declaration. (They are defined as macros on
67105         mingw.)
67106
67107 2006-10-22  Bruno Haible  <bruno@clisp.org>
67108
67109         * doc/gnulib-intro.texi: New file.
67110         * doc/gnulib.texi: Include it.
67111
67112 2006-10-21  Bruno Haible  <bruno@clisp.org>
67113
67114         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67115         "Introduction", "Miscellanous Notes", "Particular Modules".
67116
67117 2006-10-21  Bruno Haible  <bruno@clisp.org>
67118
67119         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67120         Change mostlyclean-local rule to avoid sh syntax error from bash
67121         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67122
67123 2006-10-23  Jim Meyering  <jim@meyering.net>
67124
67125         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67126         in place of snprintf.
67127
67128         * modules/inttostr (Files): Add lib/uinttostr.c.
67129         * lib/uinttostr.c (inttostr): New file/function.
67130         * lib/inttostr.h (uinttostr): Declare.
67131         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67132         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67133         Add uinttostr.
67134         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67135
67136 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * lib/canonicalize.c (ELOOP): Define if not already defined.
67139         Problem reported by Bruno Haible in
67140         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67141
67142 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67145         Problem reported by Perry Smith and Ville Laurikari.
67146
67147         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67148         uses.
67149
67150 2006-10-19  Bruno Haible  <bruno@clisp.org>
67151
67152         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67153         for mingw.
67154
67155 2006-10-19  Bruno Haible  <bruno@clisp.org>
67156
67157         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67158         Needed for mingw.
67159
67160 2006-10-19  Bruno Haible  <bruno@clisp.org>
67161
67162         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67163
67164 2006-10-19  Bruno Haible  <bruno@clisp.org>
67165
67166         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67167         it.
67168
67169 2006-10-19  Bruno Haible  <bruno@clisp.org>
67170
67171         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67172         invocation.
67173
67174 2006-10-19  Bruno Haible  <bruno@clisp.org>
67175
67176         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67177         mountlist by default.
67178
67179 2006-10-16  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/c-strstr.c: Include c-strstr.h.
67182
67183 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67184
67185         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67186         in a slash.
67187
67188 2006-10-18  Bruno Haible  <bruno@clisp.org>
67189
67190         * lib/lock.h [C++]: Wrap definitions in extern "C".
67191
67192 2006-10-18  Bruno Haible  <bruno@clisp.org>
67193
67194         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67195         gl_LIBOBJS list.
67196
67197 2006-10-18  Bruno Haible  <bruno@clisp.org>
67198
67199         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67200
67201 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         * lib/xstrtol.h: Include gettext.h.
67204         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67205         Problem reported by Eric Blake.
67206         * modules/xstrtol (Depends-on): Add gettext-h.
67207
67208 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67209
67210         * lib/strftime.c (advance): New macro.
67211         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67212         incomplete type, so you can't add 0 to it.  Problem and patch
67213         reported by Eelco Dolstra for dietlibc.
67214
67215 2006-10-18  Jim Meyering  <jim@meyering.net>
67216
67217         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67218         type for a local, and rename it: s/up/user_proc/.
67219
67220 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67221
67222         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67223         READ_UTMP_USER_PROCESS.
67224         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67225
67226 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67229         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67230
67231 2006-10-17  Eric Blake  <ebb9@byu.net>
67232
67233         * lib/sigprocmask.c (sigprocmask): Fix typo.
67234
67235         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67236
67237         * modules/clean-temp (Makefile.am): Don't add to make output...
67238         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67239         config.h.
67240
67241 2006-10-17  Bruno Haible  <bruno@clisp.org>
67242
67243         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67244         differently if DEFAULT_TEXT_DOMAIN is set.
67245
67246 2006-10-16  Bruno Haible  <bruno@clisp.org>
67247
67248         * lib/clean-temp.c: Include fwriteerror.h.
67249
67250 2006-10-16  Bruno Haible  <bruno@clisp.org>
67251
67252         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67253
67254 2006-10-16  Bruno Haible  <bruno@clisp.org>
67255
67256         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67257         * lib/sigprocmask.h: Include <sys/types.h>.
67258         (sigset_t): Use the system's definition if present.
67259
67260 2006-10-17  Eric Blake  <ebb9@byu.net>
67261
67262         * lib/xvasprintf.c (includes): Assume config.h.
67263         * lib/xasprintf.c (includes): Likewise.
67264
67265 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67266
67267         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67268         at least as wide as intmax_t.
67269
67270 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67271
67272         (Imported from Automake.)
67273         * build-aux/gnupload: Update to version 1.1 of directive file.
67274
67275 2006-10-16  Eric Blake  <ebb9@byu.net>
67276
67277         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67278         match Automake 1.10a.
67279
67280 2006-10-14  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/sigprocmask: New file.
67283         * lib/sigprocmask.h: New file.
67284         * lib/sigprocmask.c: New file.
67285         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67286         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67287         request sigprocmask.o.
67288         (gl_PREREQ_SIGPROCMASK): New macro.
67289         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67290         (Depends-on): Add sigprocmask.
67291         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67292         gt_SIGNALBLOCKING. Test for 'raise' only once.
67293         * lib/fatal-signal.c: Include sigprocmask.h.
67294         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67295         unblock_fatal_signals): Define always.
67296         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67297         sigprocmask.
67298
67299 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67300
67301         Sync from Automake.
67302         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67303         which incorrectly sets the mode of an existing destination
67304         directory.  In some cases the unpatched install-sh could do the
67305         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67306         system.  We hope this is rare in practice, but it's clearly worth
67307         fixing.  Problem reported by Alex Unleashed in
67308         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67309         Also, don't bother to check for -m bugs unless we're using -m;
67310         suggested by Stepan Kasal.
67311
67312 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67313
67314         Sync from Automake.
67315         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67316         `-c' flag, so they appear at the same position as in %FASTDEP%
67317         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67318         which ignores unknown options only after the first non-option.
67319         Bug report against M4 by Nelson H. F. Beebe.
67320
67321 2006-10-13  Jim Meyering  <jim@meyering.net>
67322
67323         Fix a bug in yesterday's change.
67324         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67325         p->fts_statp->st_dev would be used uninitialized.
67326         Ensures that we always call fts_stat on the very first entry.
67327         Miklos Szeredi reported that find -xdev stopped working.
67328
67329 2006-10-12  Bruno Haible  <bruno@clisp.org>
67330
67331         * gnulib-tool (func_get_automake_snippet): Append an automatically
67332         computed EXTRA_DIST augmentation.
67333         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67334         * modules/alloca-opt (Makefile.am): Likewise.
67335         * modules/allocsa (Makefile.am): Likewise.
67336         * modules/arcfour (Makefile.am): Likewise.
67337         * modules/arctwo (Makefile.am): Likewise.
67338         * modules/argmatch (Makefile.am): Likewise.
67339         * modules/argz (Makefile.am): Likewise.
67340         * modules/atexit (Makefile.am): Likewise.
67341         * modules/backupfile (Makefile.am): Likewise.
67342         * modules/byteswap (Makefile.am): Likewise.
67343         * modules/c-strtod (Makefile.am): Likewise.
67344         * modules/c-strtold (Makefile.am): Likewise.
67345         * modules/calloc (Makefile.am): Likewise.
67346         * modules/canon-host (Makefile.am): Likewise.
67347         * modules/canonicalize (Makefile.am): Likewise.
67348         * modules/chdir-long (Makefile.am): Likewise.
67349         * modules/chdir-safer (Makefile.am): Likewise.
67350         * modules/check-version (Makefile.am): Likewise.
67351         * modules/chown (Makefile.am): Likewise.
67352         * modules/cloexec (Makefile.am): Likewise.
67353         * modules/close-stream (Makefile.am): Likewise.
67354         * modules/closeout (Makefile.am): Likewise.
67355         * modules/crc (Makefile.am): Likewise.
67356         * modules/csharpexec (Makefile.am): Likewise.
67357         * modules/cycle-check (Makefile.am): Likewise.
67358         * modules/des (Makefile.am): Likewise.
67359         * modules/dev-ino (Makefile.am): Likewise.
67360         * modules/dirfd (Makefile.am): Likewise.
67361         * modules/dirname (Makefile.am): Likewise.
67362         * modules/dup2 (Makefile.am): Likewise.
67363         * modules/eealloc (Makefile.am): Likewise.
67364         * modules/error (Makefile.am): Likewise.
67365         * modules/euidaccess (Makefile.am): Likewise.
67366         * modules/exclude (Makefile.am): Likewise.
67367         * modules/exitfail (Makefile.am): Likewise.
67368         * modules/fcntl-safer (Makefile.am): Likewise.
67369         * modules/fcntl (Makefile.am): Likewise.
67370         * modules/file-type (Makefile.am): Likewise.
67371         * modules/fileblocks (Makefile.am): Likewise.
67372         * modules/filemode (Makefile.am): Likewise.
67373         * modules/filenamecat (Makefile.am): Likewise.
67374         * modules/fnmatch (Makefile.am): Likewise.
67375         * modules/fopen-safer (Makefile.am): Likewise.
67376         * modules/fpending (Makefile.am): Likewise.
67377         * modules/fprintftime (Makefile.am): Likewise.
67378         * modules/free (Makefile.am): Likewise.
67379         * modules/fsusage (Makefile.am): Likewise.
67380         * modules/ftruncate (Makefile.am): Likewise.
67381         * modules/fts (Makefile.am): Likewise.
67382         * modules/gc-arcfour (Makefile.am): Likewise.
67383         * modules/gc-des (Makefile.am): Likewise.
67384         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67385         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67386         * modules/gc-md4 (Makefile.am): Likewise.
67387         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67388         * modules/gc-sha1 (Makefile.am): Likewise.
67389         * modules/gc (Makefile.am): Likewise.
67390         * modules/getaddrinfo (Makefile.am): Likewise.
67391         * modules/getcwd (Makefile.am): Likewise.
67392         * modules/getdelim (Makefile.am): Likewise.
67393         * modules/getdomainname (Makefile.am): Likewise.
67394         * modules/getgroups (Makefile.am): Likewise.
67395         * modules/gethostname (Makefile.am): Likewise.
67396         * modules/gethrxtime (Makefile.am): Likewise.
67397         * modules/getline (Makefile.am): Likewise.
67398         * modules/getloadavg (Makefile.am): Likewise.
67399         * modules/getlogin_r (Makefile.am): Likewise.
67400         * modules/getndelim2 (Makefile.am): Likewise.
67401         * modules/getopt (Makefile.am): Likewise.
67402         * modules/getpagesize (Makefile.am): Likewise.
67403         * modules/getpass-gnu (Makefile.am): Likewise.
67404         * modules/getpass (Makefile.am): Likewise.
67405         * modules/getsubopt (Makefile.am): Likewise.
67406         * modules/gettime (Makefile.am): Likewise.
67407         * modules/gettimeofday (Makefile.am): Likewise.
67408         * modules/getugroups (Makefile.am): Likewise.
67409         * modules/getusershell (Makefile.am): Likewise.
67410         * modules/glob (Makefile.am): Likewise.
67411         * modules/group-member (Makefile.am): Likewise.
67412         * modules/hard-locale (Makefile.am): Likewise.
67413         * modules/hash (Makefile.am): Likewise.
67414         * modules/hmac-md5 (Makefile.am): Likewise.
67415         * modules/hmac-sha1 (Makefile.am): Likewise.
67416         * modules/human (Makefile.am): Likewise.
67417         * modules/idcache (Makefile.am): Likewise.
67418         * modules/imaxabs (Makefile.am): Likewise.
67419         * modules/imaxdiv (Makefile.am): Likewise.
67420         * modules/inet_ntop (Makefile.am): Likewise.
67421         * modules/inet_pton (Makefile.am): Likewise.
67422         * modules/intprops (Makefile.am): Likewise.
67423         * modules/inttostr (Makefile.am): Likewise.
67424         * modules/inttypes (Makefile.am): Likewise.
67425         * modules/isapipe (Makefile.am): Likewise.
67426         * modules/javaversion (Makefile.am): Likewise.
67427         * modules/lchmod (Makefile.am): Likewise.
67428         * modules/lchown (Makefile.am): Likewise.
67429         * modules/localcharset (Makefile.am): Likewise.
67430         * modules/long-options (Makefile.am): Likewise.
67431         * modules/lstat (Makefile.am): Likewise.
67432         * modules/malloc (Makefile.am): Likewise.
67433         * modules/mathl (Makefile.am): Likewise.
67434         * modules/mbchar (Makefile.am): Likewise.
67435         * modules/md2 (Makefile.am): Likewise.
67436         * modules/md4 (Makefile.am): Likewise.
67437         * modules/md5 (Makefile.am): Likewise.
67438         * modules/memcasecmp (Makefile.am): Likewise.
67439         * modules/memchr (Makefile.am): Likewise.
67440         * modules/memcmp (Makefile.am): Likewise.
67441         * modules/memcoll (Makefile.am): Likewise.
67442         * modules/memcpy (Makefile.am): Likewise.
67443         * modules/memmem (Makefile.am): Likewise.
67444         * modules/memmove (Makefile.am): Likewise.
67445         * modules/mempcpy (Makefile.am): Likewise.
67446         * modules/memrchr (Makefile.am): Likewise.
67447         * modules/memset (Makefile.am): Likewise.
67448         * modules/memxor (Makefile.am): Likewise.
67449         * modules/mkancesdirs (Makefile.am): Likewise.
67450         * modules/mkdir-p (Makefile.am): Likewise.
67451         * modules/mkdir (Makefile.am): Likewise.
67452         * modules/mkdtemp (Makefile.am): Likewise.
67453         * modules/mkstemp (Makefile.am): Likewise.
67454         * modules/mktime (Makefile.am): Likewise.
67455         * modules/modechange (Makefile.am): Likewise.
67456         * modules/mountlist (Makefile.am): Likewise.
67457         * modules/nanosleep (Makefile.am): Likewise.
67458         * modules/obstack (Makefile.am): Likewise.
67459         * modules/openat (Makefile.am): Likewise.
67460         * modules/pagealign_alloc (Makefile.am): Likewise.
67461         * modules/pathmax (Makefile.am): Likewise.
67462         * modules/physmem (Makefile.am): Likewise.
67463         * modules/poll (Makefile.am): Likewise.
67464         * modules/posixtm (Makefile.am): Likewise.
67465         * modules/posixver (Makefile.am): Likewise.
67466         * modules/putenv (Makefile.am): Likewise.
67467         * modules/quote (Makefile.am): Likewise.
67468         * modules/quotearg (Makefile.am): Likewise.
67469         * modules/raise (Makefile.am): Likewise.
67470         * modules/read-file (Makefile.am): Likewise.
67471         * modules/readline (Makefile.am): Likewise.
67472         * modules/readlink (Makefile.am): Likewise.
67473         * modules/readtokens (Makefile.am): Likewise.
67474         * modules/readutmp (Makefile.am): Likewise.
67475         * modules/realloc (Makefile.am): Likewise.
67476         * modules/regex (Makefile.am): Likewise.
67477         * modules/rename-dest-slash (Makefile.am): Likewise.
67478         * modules/rename (Makefile.am): Likewise.
67479         * modules/rijndael (Makefile.am): Likewise.
67480         * modules/rmdir (Makefile.am): Likewise.
67481         * modules/rpmatch (Makefile.am): Likewise.
67482         * modules/safe-read (Makefile.am): Likewise.
67483         * modules/safe-write (Makefile.am): Likewise.
67484         * modules/same-inode (Makefile.am): Likewise.
67485         * modules/same (Makefile.am): Likewise.
67486         * modules/save-cwd (Makefile.am): Likewise.
67487         * modules/savedir (Makefile.am): Likewise.
67488         * modules/setenv (Makefile.am): Likewise.
67489         * modules/settime (Makefile.am): Likewise.
67490         * modules/sha1 (Makefile.am): Likewise.
67491         * modules/sig2str (Makefile.am): Likewise.
67492         * modules/snprintf (Makefile.am): Likewise.
67493         * modules/stat-macros (Makefile.am): Likewise.
67494         * modules/stat-time (Makefile.am): Likewise.
67495         * modules/stdbool (Makefile.am): Likewise.
67496         * modules/stdint (Makefile.am): Likewise.
67497         * modules/stdlib-safer (Makefile.am): Likewise.
67498         * modules/stpcpy (Makefile.am): Likewise.
67499         * modules/stpncpy (Makefile.am): Likewise.
67500         * modules/strcase (Makefile.am): Likewise.
67501         * modules/strcasestr (Makefile.am): Likewise.
67502         * modules/strchrnul (Makefile.am): Likewise.
67503         * modules/strcspn (Makefile.am): Likewise.
67504         * modules/strdup (Makefile.am): Likewise.
67505         * modules/strerror (Makefile.am): Likewise.
67506         * modules/strftime (Makefile.am): Likewise.
67507         * modules/strndup (Makefile.am): Likewise.
67508         * modules/strnlen (Makefile.am): Likewise.
67509         * modules/strpbrk (Makefile.am): Likewise.
67510         * modules/strsep (Makefile.am): Likewise.
67511         * modules/strstr (Makefile.am): Likewise.
67512         * modules/strtod (Makefile.am): Likewise.
67513         * modules/strtoimax (Makefile.am): Likewise.
67514         * modules/strtok_r (Makefile.am): Likewise.
67515         * modules/strtol (Makefile.am): Likewise.
67516         * modules/strtoll (Makefile.am): Likewise.
67517         * modules/strtoul (Makefile.am): Likewise.
67518         * modules/strtoull (Makefile.am): Likewise.
67519         * modules/strtoumax (Makefile.am): Likewise.
67520         * modules/strverscmp (Makefile.am): Likewise.
67521         * modules/sys_socket (Makefile.am): Likewise.
67522         * modules/sys_stat (Makefile.am): Likewise.
67523         * modules/sysexits (Makefile.am): Likewise.
67524         * modules/time_r (Makefile.am): Likewise.
67525         * modules/timegm (Makefile.am): Likewise.
67526         * modules/timespec (Makefile.am): Likewise.
67527         * modules/tmpfile-safer (Makefile.am): Likewise.
67528         * modules/trim (Makefile.am): Likewise.
67529         * modules/unistd-safer (Makefile.am): Likewise.
67530         * modules/unlinkdir (Makefile.am): Likewise.
67531         * modules/unlocked-io (Makefile.am): Likewise.
67532         * modules/userspec (Makefile.am): Likewise.
67533         * modules/utime (Makefile.am): Likewise.
67534         * modules/utimecmp (Makefile.am): Likewise.
67535         * modules/utimens (Makefile.am): Likewise.
67536         * modules/vasnprintf (Makefile.am): Likewise.
67537         * modules/vasprintf (Makefile.am): Likewise.
67538         * modules/vsnprintf (Makefile.am): Likewise.
67539         * modules/xalloc (Makefile.am): Likewise.
67540         * modules/xgetcwd (Makefile.am): Likewise.
67541         * modules/xnanosleep (Makefile.am): Likewise.
67542         * modules/xreadlink (Makefile.am): Likewise.
67543         * modules/xstrtod (Makefile.am): Likewise.
67544         * modules/xstrtol (Makefile.am): Likewise.
67545         * modules/xstrtold (Makefile.am): Likewise.
67546         * modules/yesno (Makefile.am): Likewise.
67547         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67548
67549 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67550
67551         * modules/error (Makefile.am): Distribute files through
67552         EXTRA_DIST, not lib_SOURCES.
67553
67554 2006-10-12  Eric Blake  <ebb9@byu.net>
67555
67556         * modules/error (Makefile.am): Distribute files in /lib.
67557         * modules/obstack (Makefile.am): Likewise.
67558
67559 2006-10-12  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/acl (Makefile.am): Distribute all files in lib/ through
67562         EXTRA_DIST.
67563         * modules/arcfour (Makefile.am): Likewise.
67564         * modules/arctwo (Makefile.am): Likewise.
67565         * modules/argmatch (Makefile.am): Likewise.
67566         * modules/argz (Makefile.am): Likewise.
67567         * modules/atexit (Makefile.am): Likewise.
67568         * modules/backupfile (Makefile.am): Likewise.
67569         * modules/c-strtod (Makefile.am): Likewise.
67570         * modules/c-strtold (Makefile.am): Likewise.
67571         * modules/calloc (Makefile.am): Likewise.
67572         * modules/canon-host (Makefile.am): Likewise.
67573         * modules/canonicalize (Makefile.am): Likewise.
67574         * modules/chdir-long (Makefile.am): Likewise.
67575         * modules/chdir-safer (Makefile.am): Likewise.
67576         * modules/check-version (Makefile.am): Likewise.
67577         * modules/chown (Makefile.am): Likewise.
67578         * modules/cloexec (Makefile.am): Likewise.
67579         * modules/close-stream (Makefile.am): Likewise.
67580         * modules/closeout (Makefile.am): Likewise.
67581         * modules/crc (Makefile.am): Likewise.
67582         * modules/cycle-check (Makefile.am): Likewise.
67583         * modules/des (Makefile.am): Likewise.
67584         * modules/dirfd (Makefile.am): Likewise.
67585         * modules/dirname (Makefile.am): Likewise.
67586         * modules/dup2 (Makefile.am): Likewise.
67587         * modules/euidaccess (Makefile.am): Likewise.
67588         * modules/exclude (Makefile.am): Likewise.
67589         * modules/exitfail (Makefile.am): Likewise.
67590         * modules/fcntl-safer (Makefile.am): Likewise.
67591         * modules/file-type (Makefile.am): Likewise.
67592         * modules/fileblocks (Makefile.am): Likewise.
67593         * modules/filemode (Makefile.am): Likewise.
67594         * modules/filenamecat (Makefile.am): Likewise.
67595         * modules/fnmatch (Makefile.am): Likewise.
67596         * modules/fopen-safer (Makefile.am): Likewise.
67597         * modules/fpending (Makefile.am): Likewise.
67598         * modules/fprintftime (Makefile.am): Likewise.
67599         * modules/free (Makefile.am): Likewise.
67600         * modules/fsusage (Makefile.am): Likewise.
67601         * modules/ftruncate (Makefile.am): Likewise.
67602         * modules/fts (Makefile.am): Likewise.
67603         * modules/gc (Makefile.am): Likewise.
67604         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67605         * modules/getaddrinfo (Makefile.am): Likewise.
67606         * modules/getcwd (Makefile.am): Likewise.
67607         * modules/getdelim (Makefile.am): Likewise.
67608         * modules/getdomainname (Makefile.am): Likewise.
67609         * modules/getgroups (Makefile.am): Likewise.
67610         * modules/gethostname (Makefile.am): Likewise.
67611         * modules/gethrxtime (Makefile.am): Likewise.
67612         * modules/getline (Makefile.am): Likewise.
67613         * modules/getloadavg (Makefile.am): Likewise.
67614         * modules/getlogin_r (Makefile.am): Likewise.
67615         * modules/getopt (Makefile.am): Likewise.
67616         * modules/getpass (Makefile.am): Likewise.
67617         * modules/getpass-gnu (Makefile.am): Likewise.
67618         * modules/getsubopt (Makefile.am): Likewise.
67619         * modules/gettime (Makefile.am): Likewise.
67620         * modules/gettimeofday (Makefile.am): Likewise.
67621         * modules/getugroups (Makefile.am): Likewise.
67622         * modules/getusershell (Makefile.am): Likewise.
67623         * modules/glob (Makefile.am): Likewise.
67624         * modules/group-member (Makefile.am): Likewise.
67625         * modules/hard-locale (Makefile.am): Likewise.
67626         * modules/hash (Makefile.am): Likewise.
67627         * modules/hmac-md5 (Makefile.am): Likewise.
67628         * modules/hmac-sha1 (Makefile.am): Likewise.
67629         * modules/human (Makefile.am): Likewise.
67630         * modules/idcache (Makefile.am): Likewise.
67631         * modules/imaxabs (Makefile.am): Likewise.
67632         * modules/imaxdiv (Makefile.am): Likewise.
67633         * modules/inet_ntop (Makefile.am): Likewise.
67634         * modules/inet_pton (Makefile.am): Likewise.
67635         * modules/inttostr (Makefile.am): Likewise.
67636         * modules/isapipe (Makefile.am): Likewise.
67637         * modules/lchown (Makefile.am): Likewise.
67638         * modules/long-options (Makefile.am): Likewise.
67639         * modules/lstat (Makefile.am): Likewise.
67640         * modules/malloc (Makefile.am): Likewise.
67641         * modules/mathl (Makefile.am): Likewise.
67642         * modules/mbchar (Makefile.am): Likewise.
67643         * modules/md2 (Makefile.am): Likewise.
67644         * modules/md4 (Makefile.am): Likewise.
67645         * modules/md5 (Makefile.am): Likewise.
67646         * modules/memcasecmp (Makefile.am): Likewise.
67647         * modules/memchr (Makefile.am): Likewise.
67648         * modules/memcmp (Makefile.am): Likewise.
67649         * modules/memcoll (Makefile.am): Likewise.
67650         * modules/memcpy (Makefile.am): Likewise.
67651         * modules/memmem (Makefile.am): Likewise.
67652         * modules/memmove (Makefile.am): Likewise.
67653         * modules/mempcpy (Makefile.am): Likewise.
67654         * modules/memrchr (Makefile.am): Likewise.
67655         * modules/memset (Makefile.am): Likewise.
67656         * modules/memxor (Makefile.am): Likewise.
67657         * modules/mkancesdirs (Makefile.am): Likewise.
67658         * modules/mkdir (Makefile.am): Likewise.
67659         * modules/mkdir-p (Makefile.am): Likewise.
67660         * modules/mkdtemp (Makefile.am): Likewise.
67661         * modules/mkstemp (Makefile.am): Likewise.
67662         * modules/mktime (Makefile.am): Likewise.
67663         * modules/modechange (Makefile.am): Likewise.
67664         * modules/mountlist (Makefile.am): Likewise.
67665         * modules/nanosleep (Makefile.am): Likewise.
67666         * modules/openat (Makefile.am): Likewise.
67667         * modules/pagealign_alloc (Makefile.am): Likewise.
67668         * modules/physmem (Makefile.am): Likewise.
67669         * modules/poll (Makefile.am): Likewise.
67670         * modules/posixtm (Makefile.am): Likewise.
67671         * modules/posixver (Makefile.am): Likewise.
67672         * modules/putenv (Makefile.am): Likewise.
67673         * modules/quote (Makefile.am): Likewise.
67674         * modules/quotearg (Makefile.am): Likewise.
67675         * modules/raise (Makefile.am): Likewise.
67676         * modules/read-file (Makefile.am): Likewise.
67677         * modules/readline (Makefile.am): Likewise.
67678         * modules/readlink (Makefile.am): Likewise.
67679         * modules/readtokens (Makefile.am): Likewise.
67680         * modules/readutmp (Makefile.am): Likewise.
67681         * modules/realloc (Makefile.am): Likewise.
67682         * modules/regex (Makefile.am): Likewise.
67683         * modules/rename (Makefile.am): Likewise.
67684         * modules/rename-dest-slash (Makefile.am): Likewise.
67685         * modules/rijndael (Makefile.am): Likewise.
67686         * modules/rmdir (Makefile.am): Likewise.
67687         * modules/rpmatch (Makefile.am): Likewise.
67688         * modules/safe-read (Makefile.am): Likewise.
67689         * modules/safe-write (Makefile.am): Likewise.
67690         * modules/same (Makefile.am): Likewise.
67691         * modules/save-cwd (Makefile.am): Likewise.
67692         * modules/savedir (Makefile.am): Likewise.
67693         * modules/setenv (Makefile.am): Likewise.
67694         * modules/settime (Makefile.am): Likewise.
67695         * modules/sha1 (Makefile.am): Likewise.
67696         * modules/sig2str (Makefile.am): Likewise.
67697         * modules/snprintf (Makefile.am): Likewise.
67698         * modules/stdlib-safer (Makefile.am): Likewise.
67699         * modules/stpcpy (Makefile.am): Likewise.
67700         * modules/stpncpy (Makefile.am): Likewise.
67701         * modules/strcase (Makefile.am): Likewise.
67702         * modules/strcasestr (Makefile.am): Likewise.
67703         * modules/strchrnul (Makefile.am): Likewise.
67704         * modules/strcspn (Makefile.am): Likewise.
67705         * modules/strdup (Makefile.am): Likewise.
67706         * modules/strerror (Makefile.am): Likewise.
67707         * modules/strftime (Makefile.am): Likewise.
67708         * modules/strndup (Makefile.am): Likewise.
67709         * modules/strnlen (Makefile.am): Likewise.
67710         * modules/strpbrk (Makefile.am): Likewise.
67711         * modules/strsep (Makefile.am): Likewise.
67712         * modules/strstr (Makefile.am): Likewise.
67713         * modules/strtod (Makefile.am): Likewise.
67714         * modules/strtoimax (Makefile.am): Likewise.
67715         * modules/strtok_r (Makefile.am): Likewise.
67716         * modules/strtol (Makefile.am): Likewise.
67717         * modules/strtoll (Makefile.am): Likewise.
67718         * modules/strtoul (Makefile.am): Likewise.
67719         * modules/strtoull (Makefile.am): Likewise.
67720         * modules/strtoumax (Makefile.am): Likewise.
67721         * modules/strverscmp (Makefile.am): Likewise.
67722         * modules/time_r (Makefile.am): Likewise.
67723         * modules/timegm (Makefile.am): Likewise.
67724         * modules/tmpfile-safer (Makefile.am): Likewise.
67725         * modules/unistd-safer (Makefile.am): Likewise.
67726         * modules/unlinkdir (Makefile.am): Likewise.
67727         * modules/userspec (Makefile.am): Likewise.
67728         * modules/utime (Makefile.am): Likewise.
67729         * modules/utimecmp (Makefile.am): Likewise.
67730         * modules/utimens (Makefile.am): Likewise.
67731         * modules/vasnprintf (Makefile.am): Likewise.
67732         * modules/vasprintf (Makefile.am): Likewise.
67733         * modules/vsnprintf (Makefile.am): Likewise.
67734         * modules/xalloc (Makefile.am): Likewise.
67735         * modules/xgetcwd (Makefile.am): Likewise.
67736         * modules/xnanosleep (Makefile.am): Likewise.
67737         * modules/xreadlink (Makefile.am): Likewise.
67738         * modules/xstrtod (Makefile.am): Likewise.
67739         * modules/xstrtol (Makefile.am): Likewise.
67740         * modules/xstrtold (Makefile.am): Likewise.
67741         * modules/yesno (Makefile.am): Likewise.
67742
67743 2006-10-12  Jim Meyering  <jim@meyering.net>
67744
67745         * m4/getloadavg.m4: Revert the change below.
67746
67747         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67748         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67749         fail with a symlink, which is what coreutils' ./bootstrap now
67750         creates by default.
67751
67752 2006-10-12  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67755         mingw.
67756         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67757         MSVC and mingw explicitly.
67758
67759 2006-10-11  Simon Josefsson  <jas@extundo.com>
67760             Bruno Haible  <bruno@clisp.org>
67761
67762         Add support for multiple gnulib-tool invocations in the scope of a
67763         single configure.ac file.
67764         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67765         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67766         with the same contents as the _LIBADD variable.
67767         (func_emit_initmacro_start, func_emit_initmacro_end,
67768         func_emit_initmacro_done): New functions.
67769         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67770         gl_LIBOBJS and gl_LTLIBOBJS.
67771
67772 2006-10-11  Bruno Haible  <bruno@clisp.org>
67773
67774         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67775         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67776         autoreconf. Instead, invoke autopoint explicitly but move back the
67777         *.m4 files from gnulib.
67778
67779 2006-10-11  Bruno Haible  <bruno@clisp.org>
67780
67781         * gnulib-tool (func_usage): Make module names after --create-testdir
67782         optional.
67783         (func_create_testdir): If no module was specified, use nearly all
67784         modules.
67785
67786 2006-10-12  Jim Meyering  <jim@meyering.net>
67787
67788         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67789         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67790         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67791         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67792         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67793         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67794         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67795         (fts_set_stat_required): New function.
67796         (fts_open): Defer the calls to fts_stat, if possible or requested.
67797         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67798         into fts_stat itself.
67799         (fts_read): Perform any required (deferred) fts_stat call.
67800         (fts_build): Likewise, for the directory we're about to open and read.
67801         In the readdir loop, carefully decide whether each entry will require
67802         an eventual call to fts_stat, using dirent.d_type info if available.
67803         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67804         a command line argument into this function.  Update all callers.
67805         Map a return value of FTS_DOT to FTS_D for a command line argument.
67806         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67807         Thanks to Miklos Szeredi for his tenacity and for the initial
67808         bug report about "find" failing on a FUSE-based file system.
67809
67810         * lib/fts.c (fts_open): Use consistent indentation.
67811
67812 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67813
67814         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67815         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67816         reported by Jim Meyering.  All uses of cache variables renamed
67817         to match Autoconf's.
67818         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67819         the other one.
67820
67821         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67822         Fix misspelling in diagnostic.
67823
67824 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67825
67826         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67827         defined.  Problem reported by Matthew Woehlke.
67828
67829         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67830         Add support for Tandem NonStop R series.
67831         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67832         Use new macro.
67833
67834         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67835         (has_trailing_slash): Omit size arg; all callers changed.
67836         Omit 'inline', since it doesn't help performance and we'd
67837         need to configure it.
67838         Don't count //, ///, etc. as having a trailing slash.
67839         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67840         (rpl_rename_dest_slash): On failure, use rename's errno rather
67841         than (in some cases) an incorrect or junk errno.
67842         Simplify code by removing need to compute length; this does
67843         cause it to make two passes instead of one over the file name,
67844         but it's worth it.
67845
67846         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67847         change, since Autoconf's version may no longer be appropriate now
67848         that we are using CVS Autoconf's version.  Add support for Tandem.
67849
67850 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67851             Bruno Haible  <bruno@clisp.org>
67852
67853         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67854         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67855         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67856         gl_AC_TYPE_LONG_LONG.
67857
67858         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67859         instead of HAVE_LONG_LONG.
67860         * lib/printf-args.c (printf_fetchargs): Likewise.
67861         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67862         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67863         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67864         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67865         gl_AC_TYPE_LONG_LONG.
67866
67867 2006-10-11  Bruno Haible  <bruno@clisp.org>
67868
67869         * m4/longlong.m4: Add comments.
67870         * m4/ulonglong.m4: Likewise.
67871
67872 2006-10-10  Bruno Haible  <bruno@clisp.org>
67873
67874         Make it possible to #define stpcpy, strdup to aliases.
67875         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67876         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67877
67878 2006-10-10  Bruno Haible  <bruno@clisp.org>
67879
67880         Make it possible to #define gcd to an alias.
67881         * lib/gcd.c: Include config.h.
67882
67883 2006-10-10  Bruno Haible  <bruno@clisp.org>
67884
67885         Make it possible to #define c_isascii to an alias.
67886         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67887         defined. Undefine the macros before defining them, to avoid gcc
67888         warnings.
67889         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67890         define NO_C_CTYPE_MACROS early.
67891
67892 2006-10-10  Bruno Haible  <bruno@clisp.org>
67893
67894         Make it possible to #define set_program_name to an alias.
67895         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67896         ENABLE_RELOCATABLE early.
67897
67898 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67901         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67902         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67903         More generally, don't assume that 64-bit signed int is available
67904         if unsigned int is, and vice versa.
67905         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67906         unsigned symbols, not on their signed counterparts.
67907         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67908         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67909         (UINT64_C, UINTMAX_C):
67910         Likewise.
67911         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67912         unsigned counterparts.
67913         (Have_long_long, Unsigned): New macros.
67914         (Int): Renamed from INT.
67915         (strtoimax): Use the new macros.
67916         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67917         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67918         * modules/inttypes (inttypes.h): Substitute
67919         HAVE_UNSIGNED_LONG_LONG_INT.
67920         * modules/stdint (stdint.h): Likewise.
67921         (Files): Add m4/ulonglong.m4.
67922
67923 2006-10-10  Bruno Haible  <bruno@clisp.org>
67924
67925         Fix a gcc -Wshadow warning.
67926         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67927         to 'bucket'.
67928         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67929         gl_linked_indexof_from_to): Likewise.
67930         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67931         Likewise.
67932         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67933         Likewise.
67934         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67935         Reported by Eric Blake.
67936
67937 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67940         for NetBSD.  Problem reported by Bruno Haible.
67941
67942 2006-10-09  Jim Meyering  <jim@meyering.net>
67943
67944         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67945         Patch from Bruno Haible.
67946
67947 2006-10-09  Jim Meyering  <jim@meyering.net>
67948
67949         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67950         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67951         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67952
67953 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         Don't include <config.h> twice; this doesn't work in some cases,
67956         e.g., when config.h has "#define intmax_t long long int" and
67957         we include <config.h>, <inttypes.h>, <config.h> in that order.
67958         Problem reported by Matthew Woehlke in:
67959         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67960         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67961         * lib/fts-cycle.c: Don't include config.h.
67962         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67963         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67964         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67965         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67966         inttypes.h.
67967         * lib/xstrtoumax.c: Likewise.
67968         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67969         __strtol and the like, so that this module is more like its siblings.
67970         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67971         Remove; no longer needed now that we assume gnulib inttypes.h.
67972
67973 2006-10-08  Bruno Haible  <bruno@clisp.org>
67974
67975         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67976         option.
67977
67978 2006-10-07  Jim Meyering  <jim@meyering.net>
67979
67980         * modules/inttypes (inttypes.h): Revert what seems to have been
67981         an inadvertent part of today's change: use "|", not "/" in the
67982         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67983
67984 2006-10-07  Bruno Haible  <bruno@clisp.org>
67985
67986         * modules/sublist: New file.
67987
67988 2006-10-07  Bruno Haible  <bruno@clisp.org>
67989
67990         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67991         * modules/argz (argz.h): Likewise.
67992         * modules/arpa_inet (arpa/inet.h): Likewise.
67993         * modules/byteswap (byteswap.h): Likewise.
67994         * modules/configmake (configmake.h): Likewise.
67995         * modules/fcntl (fcntl.h): Likewise.
67996         * modules/fnmatch (fnmatch.h): Likewise.
67997         * modules/getopt (getopt.h): Likewise.
67998         * modules/glob (glob.h): Likewise.
67999         * modules/inttypes (inttypes.h): Likewise.
68000         * modules/netinet_in (netinet/in.h): Likewise.
68001         * modules/poll (poll.h): Likewise.
68002         * modules/stdbool (stdbool.h): Likewise.
68003         * modules/stdint (stdint.h): Likewise.
68004         * modules/sys_select (sys/select.h): Likewise.
68005         * modules/sys_socket (sys/socket.h): Likewise.
68006         * modules/sys_stat (sys/stat.h): Likewise.
68007         * modules/sysexits (sysexits.h): Likewise.
68008         * modules/unistd (unistd.h): Likewise.
68009         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68010         Add a "DO NOT EDIT" comment to the generated file.
68011         (func_import): Likewise for gnulib-comp.m4.
68012
68013 2006-10-07  Bruno Haible  <bruno@clisp.org>
68014
68015         * lib/gl_sublist.h: New file.
68016         * lib/gl_sublist.c: New file.
68017
68018 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68019
68020         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68021         name (relative to the original working directory) and the file
68022         name component (relative to the temporary working directory).  All
68023         callers changed.
68024         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68025         * lib/mkdir-p.c (make_dir_parents): Likewise.
68026         * lib/mkdir-p.h (make_dir_parents): Likewise.
68027
68028 2006-10-06  Eric Blake  <ebb9@byu.net>
68029
68030         Define several macros for use by the clean-temp module.
68031         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68032         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68033         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68034
68035         * lib/clean-temp.h (close_stream_temp): New declaration.
68036         * lib/clean-temp.c (includes): Pull in headers according to what
68037         other modules are in use.
68038         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68039
68040 2006-10-06  Bruno Haible  <bruno@clisp.org>
68041
68042         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68043         instead of fopen, fwriteerror.
68044
68045 2006-10-06  Bruno Haible  <bruno@clisp.org>
68046
68047         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68048         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68049         int.
68050         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68051         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68052         Return an error indicator.
68053         Suggested by Eric Blake.
68054
68055 2006-10-06  Bruno Haible  <bruno@clisp.org>
68056
68057         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68058         Reported by Eric Blake.
68059
68060 2006-10-06  Bruno Haible  <bruno@clisp.org>
68061
68062         * modules/closeout (Description): Mention stderr too.
68063
68064 2006-10-06  Bruno Haible  <bruno@clisp.org>
68065         and Paul Eggert  <eggert@cs.ucla.edu>
68066
68067         * lib/closeout.c (close_stdout): Also close stderr.
68068         * lib/closeout.h: Update comment.
68069
68070 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68071
68072         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68073         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68074         * lib/dirchownmod.c: Include lchown.h.
68075         * lib/lchown.c: Don't include files that lchown.h now includes.
68076         Don't declare chown, since lchown.h now does that.
68077         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68078         (lchown): Define to rpl_chown if lchown is declared but
68079         does not exist.  Declare using a prototype if lchown is not
68080         declared.  Add a copyright notice.
68081         * lib/mkstemp.h: Include <unistd.h>.
68082         * lib/openat.c: Include lchown.h.
68083
68084         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68085         we now test for that separately.
68086         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68087         rather than O_NOFOLLOW, when testing whether it's possible to
68088         avoid a race condition reliably.
68089         * lib/savewd.c (savewd_chdir): Likewise.
68090
68091         Remove macros that are no longer needed now that stdint.h is
68092         reliable.
68093         * lib/fsusage.c (UINTMAX_MAX): Remove.
68094         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68095         * lib/utimecmp.c (SIZE_MAX): Remove.
68096
68097         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68098
68099         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68100         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68101         O_NOATIME works.
68102
68103 2006-10-05  Bruno Haible  <bruno@clisp.org>
68104
68105         * lib/gl_list.h (gl_sortedlist_search_from_to,
68106         gl_sortedlist_indexof_from_to): New declarations.
68107         (gl_list_implementation): New fields sortedlist_search_from_to,
68108         sortedlist_indexof_from_to.
68109         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68110         inline functions.
68111         * lib/gl_list.c (gl_sortedlist_search_from_to,
68112         gl_sortedlist_indexof_from_to): New functions.
68113         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68114         function.
68115         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68116         (gl_array_sortedlist_search_from_to): New function.
68117         (gl_array_list_implementation): Update.
68118         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68119         function.
68120         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68121         (gl_carray_sortedlist_search_from_to): New function.
68122         (gl_carray_list_implementation): Update.
68123         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68124         gl_linked_sortedlist_indexof_from_to): New functions.
68125         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68126         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68127         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68128         gl_tree_sortedlist_indexof_from_to): New functions.
68129         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68130         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68131         Update.
68132         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68133         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68134         Update.
68135
68136 2006-10-05  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68139         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68140         (struct gl_list_implementation): Add fields search_from_to,
68141         indexof_from_to. Remove fields search, indexof.
68142         (gl_list_search): Use the search_from_to method.
68143         (gl_list_search_from, gl_list_search_from_to): New functions.
68144         (gl_list_indexof): Use the indexof_from_to method.
68145         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68146         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68147         (gl_list_search_from, gl_list_search_from_to): New functions.
68148         (gl_list_indexof): Use the indexof_from_to method.
68149         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68150         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68151         gl_array_indexof. Add start_index, end_index arguments.
68152         (gl_array_search_from_to): Renamed from gl_array_search. Add
68153         start_index, end_index arguments.
68154         (gl_array_remove, gl_array_list_implementation): Update.
68155         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68156         gl_carray_indexof. Add start_index, end_index arguments.
68157         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68158         start_index, end_index arguments.
68159         (gl_carray_remove, gl_carray_list_implementation): Update.
68160         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68161         gl_linked_search. Add start_index, end_index arguments.
68162         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68163         start_index, end_index arguments.
68164         (gl_linked_remove): Update.
68165         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68166         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68167         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68168         field to 'size_t'.
68169         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68170         gl_tree_search. Add start_index, end_index arguments.
68171         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68172         start_index, end_index arguments.
68173         (gl_tree_remove): Update.
68174         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68175         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68176         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68177         function.
68178         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68179         gl_tree_search. Add start_index, end_index arguments.
68180         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68181         start_index, end_index arguments.
68182         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68183         Update.
68184         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68185
68186 2006-10-05  Bruno Haible  <bruno@clisp.org>
68187
68188         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68189
68190         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68191         fwriteerror_temp): New declarations.
68192         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68193         (descriptors): New variable.
68194         (cleanup): First, close the descriptors.
68195         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68196         fclose_temp, fwriteerror_temp): New functions.
68197
68198 2006-10-04  Jim Meyering  <jim@meyering.net>
68199
68200         * lib/fts.c (fts_open): Tiny comment change.
68201
68202 2006-10-04  Bruno Haible  <bruno@clisp.org>
68203
68204         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68205         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68206         gl_LOCK_BODY.
68207         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68208         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68209         gl_LOCK_EARLY_BODY.
68210         (gl_LOCK): Require gl_LOCK_BODY.
68211
68212 2006-10-04  Bruno Haible  <bruno@clisp.org>
68213
68214         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68215         (gl_oset_search_atleast): New declaration.
68216         (struct gl_oset_implementation): Add field 'search_atleast'.
68217         (gl_oset_search_atleast): New inline function.
68218         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68219         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68220         (gl_array_oset_implementation): Update.
68221         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68222         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68223         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68224
68225 2006-10-04  Bruno Haible  <bruno@clisp.org>
68226
68227         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68228
68229 2006-10-03  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68232         from gl_avltreehash_list_implementation.
68233
68234 2006-10-03  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/gl_oset.c (gl_oset_add): Fix return type.
68237
68238 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68239
68240         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68241
68242 2006-10-02  Eric Blake  <ebb9@byu.net>
68243
68244         * modules/strnlen (Depends-on): Add extensions.
68245
68246 2006-10-02  Eric Blake  <ebb9@byu.net>
68247
68248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68249         definition in 2.60+.
68250
68251 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68252
68253         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68254         checks.
68255
68256 2006-10-02  Bruno Haible  <bruno@clisp.org>
68257
68258         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68259         to the AUTOMAKE_OPTIONS.
68260         Reported by Jim Meyering.
68261
68262 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         Work around bug in Solaris 10 /proc file system:
68265         /proc/self/fd/NNN/.. isn't the parent directory of
68266         the directory whose file descriptor is NNN.  This needs to
68267         be worked around at run time, not compile time, since a
68268         program might be built on Solaris 8, where things work, and
68269         run on Solaris 10.
68270         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68271         to use the following interface instead:
68272         (OPENAT_BUFFER_SIZE): New macro.
68273         (openat_proc_name): New function.
68274         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68275         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68276         Likewise.
68277         * lib/openat-proc.c: New file.
68278         * modules/openat (Files): Add lib/openat-proc.c.
68279         (Depends-on): Add same-inode, stdbool.
68280         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68281
68282 2006-09-29  Bruno Haible  <bruno@clisp.org>
68283
68284         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68285         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68286         argument. Set stdout_closed before testing for ferror, not after.
68287         (fwriteerror, fwriteerror_no_ebadf): New functions.
68288
68289 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68290
68291         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68292
68293 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68294
68295         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68296         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68297
68298 2006-09-28  Jim Meyering  <jim@meyering.net>
68299
68300         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68301         Include <unistd.h>.
68302
68303 2006-09-28  Bruno Haible  <bruno@clisp.org>
68304
68305         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68306         * modules/linkedhash-list (Depends-on): Likewise.
68307         * modules/rbtreehash-list (Depends-on): Likewise.
68308
68309 2006-09-28  Bruno Haible  <bruno@clisp.org>
68310
68311         * lib/strndup.h: Simplify the redefinition of strndup.
68312         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68313         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68314
68315 2006-09-28  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68318         * lib/gl_linkedhash_list.c: Likewise.
68319         * lib/gl_rbtreehash_list.c: Likewise.
68320
68321 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68324         getaddrinfo.
68325
68326         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68327         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68328         it causes <stdio_ext.h> to cause a compile-time error.
68329         Problem reported by Nelson H. F. Beebe.
68330         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68331         of HAVE_DECL___PENDING.
68332
68333         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68334         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68335         declaration.
68336
68337 2006-09-27  Jim Meyering  <jim@meyering.net>
68338
68339         This file could end up with a definition for a function
68340         named __strndup, rather than rpl_strndup on a system with
68341         incomplete weak_alias support.
68342         * lib/strndup.c (strndup): Rename from __strndup.
68343         Remove #defines that used to map __strndup to strndup.
68344         Don't use K&R prototypes.
68345         Remove LIBC-related code, since this file is not sync'd with glibc.
68346         * lib/strndup.h: Revamp, accordingly.
68347         * m4/strndup.m4: Modernize.
68348
68349 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         * modules/savewd (Depends-on): Add 'raise'.
68352         * lib/savewd.c: Include <signal.h>, for 'raise'.
68353
68354 2006-09-26  Jim Meyering  <jim@meyering.net>
68355
68356         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68357         when we detect Darwin 8.7.0's acl_get_file bug.
68358         Rearrange to perform the new (below) run-test while $LIBS
68359         contains any acl-related library.  Set USE_ACL at the end.
68360         (gl_ACL_GET_FILE): New function.
68361
68362 2006-09-26  Eric Blake  <ebb9@byu.net>
68363
68364         * lib/verror.c: Include <config.h> unconditionally.
68365
68366 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * modules/clock-time (Maintainer): Add self.
68369         * modules/getlogin_r (Depends-on): Add extensions.
68370
68371 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68372
68373         * modules/clock-time: New module.
68374         * modules/nanosleep (Depends-on): Add clock-time.
68375         * modules/gethrxtime (Depends-on): Likewise.
68376         * modules/gettime (Depends-on): Likewise.
68377         * modules/settime (Depends-on): Likewise.
68378
68379         * modules/fts-lgpl: Depend on openat.
68380         * modules/mkancesdirs: Depend on savewd.
68381         * modules/mkdir-p: Likewise.
68382
68383 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68384
68385         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68386
68387         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68388         `gl_have_arbitrary_file_name_length_limit' to
68389         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68390         actually works between configure runs.
68391
68392 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68393             Bruno Haible  <bruno@clisp.org>
68394
68395         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68396
68397 2006-09-25  Jim Meyering  <jim@meyering.net>
68398
68399         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68400         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68401
68402 2006-09-25  Eric Blake  <ebb9@byu.net>
68403
68404         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68405         exec's in 2006-09-18 patch when shuffling fds.
68406
68407 2006-09-25  Bruno Haible  <bruno@clisp.org>
68408
68409         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68410         Reported by Jim Meyering.
68411
68412 2006-09-24  Jim Meyering  <jim@meyering.net>
68413
68414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68415         compare a pointer against a literal "0".  That caused failures with
68416         at least HP-UX's hpcc.
68417
68418 2006-09-22  Simon Josefsson  <jas@extundo.com>
68419
68420         * modules/gc-sha1:
68421         * modules/gc-md4:
68422         * modules/gc-hmac-sha1:
68423         * modules/gc-hmac-md5:
68424         * modules/gc-des:
68425         * modules/gc-arcfour: Distribute more files.
68426
68427 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68428
68429         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68430         (gl_linked_iterator_from_to): Initialize struct completely.
68431         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68432         (gl_tree_iterator_from_to): Likewise
68433         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68434         * lib/gl_array_list.c [lint] (gl_array_iterator)
68435         (gl_array_iterator_from_to): Likewise.
68436         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68437         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68438         (gl_carray_iterator_from_to): Likewise.
68439
68440         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68441         * lib/md4.c (md4_process_block): Remove unused variable.
68442         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68443         parentheses for clarity.
68444
68445 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68446
68447         * modules/bison-i18n (Depends-on): Add gettext.
68448
68449 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68450
68451         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68452         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68453         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68454         also add missing comma that caused broken test.
68455         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68456         stdlib.h, for `abort'.
68457         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68458         variables.
68459         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68460         include unistd.h if present, for `rmdir'.
68461         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68462         variables.
68463         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68464         in the process include standard headers for prototypes.
68465         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68466         gets declared on GNU/Linux.
68467         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68468         unistd.h, for `rmdir'.
68469         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68470
68471         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68472         always true.
68473         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68474
68475         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68476
68477 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68478
68479         * gnulib-tool (func_version): Create output all at once.  This
68480         may help avoid triggering unnecessary SIGPIPEs, and at any
68481         rate it doesn't hurt.
68482
68483 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68484             Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68487         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68488         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68489
68490         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68491         (gl_FUNC_VASPRINTF): Invoke it.
68492
68493 2006-09-22  Bruno Haible  <bruno@clisp.org>
68494
68495         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68496         getloadavg.c as first argument.
68497
68498 2006-09-22  Bruno Haible  <bruno@clisp.org>
68499
68500         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68501         at the beginning of the gl_INIT macro.
68502         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68503         gl_GETLOADAVG.
68504
68505 2006-09-22  Bruno Haible  <bruno@clisp.org>
68506
68507         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68508         module.
68509         Suggested by Ralf Wildenhues.
68510
68511 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         Import this patch from libc:
68514
68515         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68516
68517         * lib/regex_internal.c (re_string_reconstruct): Handle
68518         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68519         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68520         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68521         re_string_context_at.
68522
68523         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68524         now requires it.
68525         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68526         gl_REGEX now does it for us.
68527         (gl_REGEX): Add test taken from
68528         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68529
68530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68531         Check that large offsets work.  Modernize Autoconf usages.
68532         Prefer "yes" to mean a good thing rather than a bad.
68533         Don't put "#define mkstemp" in config.h, as this might interfere
68534         with standard system headers that "#define mkstemp mkstemp64".
68535
68536         * modules/mkstemp (Depends-on): Add extensions, so that
68537         mkstemp is visible on some platforms.
68538         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68539         (Include): Change to "mkstemp.h" from <stdlib.h>.
68540         (Files): Add mkstemp.h.
68541
68542         * lib/mkstemp.h: New file, since some standard headers
68543         #define mkstemp.
68544         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68545         Include "mkstemp.h".
68546         Make the _LIBC code resemble glibc original more,
68547         e.g., use K&R style.
68548         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68549         (mkstemp): Remove, since mkstemp.h does this for us.
68550         * lib/stdlib--.h: Include mkstemp.h.
68551
68552         Import this patch from libc:
68553
68554         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68555
68556         * lib/tempname.c (__gen_tempname): Change attempts_min
68557         into a macro.  Use preprocessor to decide how to initialize
68558         attempts [Coverity CID 67].
68559
68560 2006-09-20  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/mkdtemp.c: Import from libc.
68563         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68564                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68565                 attempts_min into a macro.  Use preprocessor to decide how to
68566                 initialize attempts [Coverity CID 67].
68567         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68568                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68569                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68570
68571 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68572
68573         * gnulib-tool (func_exit): New function, to allow to pass the
68574         exit status portably through the trap.  Use everywhere.
68575         (--help, --version): Signal a write error.
68576         (trap): catch SIGPIPE, for write errors.
68577         Exit at the end of the trap, with the correct exit status.
68578
68579 2006-09-19  Karl Berry  <karl@gnu.org>
68580
68581         * doc/gnulib.texi: note about the license texinfo files.
68582
68583 2006-09-19  Eric Blake  <ebb9@byu.net>
68584
68585         * gnulib-tool: Avoid space-tab.
68586
68587 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68590         that prevented coreutils 6.1 from building.  Problem reported
68591         by Petter Reinholdtsen.
68592
68593 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68594
68595         * gnulib-tool (avoidlist): Fix typo that broke options like
68596         --avoid=lock that are used by coreutils bootstrap.
68597
68598 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68599
68600         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68601         more systematically.
68602
68603 2006-09-18  Jim Meyering  <jim@meyering.net>
68604
68605         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68606
68607 2006-09-18  Bruno Haible  <bruno@clisp.org>
68608
68609         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68610
68611 2006-09-18  Bruno Haible  <bruno@clisp.org>
68612
68613         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68614         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68615         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68616         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68617         * m4/gettext.m4: Require autoconf >= 2.52.
68618         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68619         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68620         of gl_cv_header_inttypes_h.
68621
68622 2006-09-18  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/javaversion.c: Include configmake.h.
68625
68626 2006-09-18  Bruno Haible  <bruno@clisp.org>
68627
68628         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68629         avoid that the while loops be executed in a subshell.
68630
68631 2006-09-18  Bruno Haible  <bruno@clisp.org>
68632
68633         * MODULES.html.sh (func_module): Break long lines.
68634         Suggested by Bruce Korb <bkorb@gnu.org>.
68635
68636 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68637
68638         Speed up by a factor of 1.12.
68639         * gnulib-tool (nl): New variable.
68640         (func_import): Rewrite include directive extraction to only read each
68641         directive once.
68642
68643 2006-09-17  Bruno Haible  <bruno@clisp.org>
68644
68645         * modules/javaversion (Makefile.am): Remove DEFS setting.
68646         (Depends-on): Add configmake, for PKGDATADIR definition.
68647
68648 2006-09-17  Bruno Haible  <bruno@clisp.org>
68649
68650         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68651
68652 2006-09-17  Bruno Haible  <bruno@clisp.org>
68653
68654         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68655         (func_modules_transitive_closure, func_modules_add_dummy,
68656         func_modules_to_filelist, func_import, func_create_testdir,
68657         func_create_megatestdir, ...): Use it wherever possible.
68658         Suggested by Ralf Wildenhues.
68659
68660 2006-09-16  Karl Berry  <karl@gnu.org>
68661
68662         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68663         to avoid sectioning errors.
68664         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68665         [ifinfo]: blank line after @center-ed titles.
68666         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68667         Spell FSF address consistently with others.
68668         (These changes approved by rms.)
68669
68670 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68671
68672         Speed up by a factor of 1.61.
68673         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68674         already checked module names again.
68675
68676 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68677
68678         Speed up by a factor of 1.13.
68679         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68680         for new_files, and the input to func_add_or_update.
68681
68682 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68683
68684         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68685         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68686
68687 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68688
68689         * modules/mkancesdirs (Depends-on): Add fcntl.
68690         * modules/savewd: New file.
68691         * MODULES.html.sh (File system functions): Add savewd.
68692
68693         * modules/configmake (Makefile.am): Add support for the
68694         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68695
68696 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         * m4/savewd.m4: New file.
68699
68700 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68703         (dirchownmod): New arg FD.  All callers changed.
68704         Use FD rather than opening the directory ourself, as opening is
68705         now the caller's responsibility.
68706         * lib/dirchownmod.h: Likewise.
68707         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68708         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68709         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68710         (test_dir): Remove.
68711         (mkancesdirs): Return length of prefix of FILE that has already
68712         been made, or -2 if there is a child doing the work.  Redo
68713         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68714         ".", and treat ".." specially since it might stray back into
68715         already-created areas.  Use a subprocess if necessary.  New arg
68716         WD; all users changed.  MAKE_DIR function should now return 1
68717         if it creates a directory that is not readable.  Return -2 if
68718         a child process is spun off.
68719         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68720         Adjust signature to match code.
68721         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68722         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68723         all users changed.
68724         * lib/savewd.c, lib/savewd.h: New files.
68725
68726 2006-09-15  Jim Meyering  <jim@meyering.net>
68727
68728         * modules/rename-dest-slash: New module.
68729         * MODULES.html.sh (posix_compat): Add it here.
68730
68731         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68732
68733 2006-09-15  Jim Meyering  <jim@meyering.net>
68734
68735         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68736         file.
68737
68738         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68739
68740 2006-09-15  Jim Meyering  <jim@meyering.net>
68741
68742         * lib/rename-dest-slash.c (has_trailing_slash): Use
68743         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68744         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68745         test before testing whether SRC is a directory.
68746         Suggestions from Bruno Haible.
68747
68748         Avoid a warning about an unused variable.
68749         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68750         into the #ifdef block where it's used.
68751
68752         * lib/rename-dest-slash.c: New file.
68753
68754 2006-09-14  Bruno Haible  <bruno@clisp.org>
68755
68756         * lib/allocsa.c: Include <config.h> unconditionally.
68757         * lib/asnprintf.c: Likewise.
68758         * lib/asprintf.c: Likewise.
68759         * lib/c-strcasecmp.c: Likewise.
68760         * lib/c-strcasestr.c: Likewise.
68761         * lib/c-strncasecmp.c: Likewise.
68762         * lib/c-strstr.c: Likewise.
68763         * lib/classpath.c: Likewise.
68764         * lib/clean-temp.c: Likewise.
68765         * lib/concatpath.c: Likewise.
68766         * lib/copy-file.c: Likewise.
68767         * lib/csharpcomp.c: Likewise.
68768         * lib/csharpexec.c: Likewise.
68769         * lib/execute.c: Likewise.
68770         * lib/fatal-signal.c: Likewise.
68771         * lib/findprog.c: Likewise.
68772         * lib/fwriteerror.c: Likewise.
68773         * lib/gl_array_list.c: Likewise.
68774         * lib/gl_array_oset.c: Likewise.
68775         * lib/gl_avltree_list.c: Likewise.
68776         * lib/gl_avltree_oset.c: Likewise.
68777         * lib/gl_avltreehash_list.c: Likewise.
68778         * lib/gl_carray_list.c: Likewise.
68779         * lib/gl_linked_list.c: Likewise.
68780         * lib/gl_linkedhash_list.c: Likewise.
68781         * lib/gl_list.c: Likewise.
68782         * lib/gl_oset.c: Likewise.
68783         * lib/gl_rbtree_list.c: Likewise.
68784         * lib/gl_rbtree_oset.c: Likewise.
68785         * lib/gl_rbtreehash_list.c: Likewise.
68786         * lib/imaxabs.c: Likewise.
68787         * lib/imaxdiv.c: Likewise.
68788         * lib/javacomp.c: Likewise.
68789         * lib/javaexec.c: Likewise.
68790         * lib/javaversion.c: Likewise.
68791         * lib/linebreak.c: Likewise.
68792         * lib/localcharset.c: Likewise.
68793         * lib/lock.c: Likewise.
68794         * lib/mbchar.c: Likewise.
68795         * lib/mbswidth.c: Likewise.
68796         * lib/mkdtemp.c: Likewise.
68797         * lib/pipe.c: Likewise.
68798         * lib/printf-args.c: Likewise.
68799         * lib/printf-parse.c: Likewise.
68800         * lib/progname.c: Likewise.
68801         * lib/progreloc.c: Likewise.
68802         * lib/readlink.c: Likewise.
68803         * lib/sh-quote.c: Likewise.
68804         * lib/stpcpy.c: Likewise.
68805         * lib/stpncpy.c: Likewise.
68806         * lib/strcasecmp.c: Likewise.
68807         * lib/strcasestr.c: Likewise.
68808         * lib/strcspn.c: Likewise.
68809         * lib/striconv.c: Likewise.
68810         * lib/strncasecmp.c: Likewise.
68811         * lib/strnlen1.c: Likewise.
68812         * lib/strstr.c: Likewise.
68813         * lib/strtok_r.c: Likewise.
68814         * lib/tls.c: Likewise.
68815         * lib/tmpdir.c: Likewise.
68816         * lib/unicodeio.c: Likewise.
68817         * lib/unsetenv.c: Likewise.
68818         * lib/vasnprintf.c: Likewise.
68819         * lib/vasprintf.c: Likewise.
68820         * lib/wait-process.c: Likewise.
68821         * lib/xallocsa.c: Likewise.
68822         * lib/xsetenv.c: Likewise.
68823         * lib/xstriconv.c: Likewise.
68824
68825 2006-09-13  Simon Josefsson  <jas@extundo.com>
68826
68827         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68828         that internally, suggested by Ralf Wildenhues
68829         <Ralf.Wildenhues@gmx.de>.
68830
68831 2006-09-13  Simon Josefsson  <jas@extundo.com>
68832
68833         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68834         @LIBOBJS@.
68835         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68836
68837 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68840         longer worry about uses that don't define HAVE_CONFIG_H.
68841         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68842         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68843         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68844         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68845         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68846         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68847         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68848         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68849         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68850         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68851         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68852         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68853         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68854         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68855         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68856         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68857         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68858         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68859         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68860         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68861         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68862         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68863         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68864         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68865         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68866         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68867         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68868         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68869         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68870         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68871         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68872         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68873         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68874         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68875         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68876         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68877         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68878         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68879         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68880         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68881         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68882         Likewise.
68883
68884 2006-09-13  Eric Blake  <ebb9@byu.net>
68885
68886         * lib/getopt.c: Fix typo in last commit.
68887
68888 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68889
68890         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68891         dgettext.
68892
68893 2006-09-12  Jim Meyering  <jim@meyering.net>
68894
68895         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68896         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68897         Reported by Nelson H. F. Beebe.
68898
68899 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68900
68901         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68902         program_invocation_name and program_invocation_short_name are
68903         initialized.
68904         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68905         and program_invocation_short_name to argp.h, so they are visible
68906         to user programs.
68907         * lib/argp.h: Likewise
68908
68909 2006-09-10  Bruno Haible  <bruno@clisp.org>
68910
68911         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68912         m4/inttypes_h.m4, m4/uintmax_t.m4.
68913
68914 2006-09-10  Bruno Haible  <bruno@clisp.org>
68915
68916         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68917         gl_AC_TYPE_UINTMAX_T.
68918
68919 2006-09-10  Bruno Haible  <bruno@clisp.org>
68920
68921         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68922
68923 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68924
68925         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68926         convention.  Text proposed by Bruno Haible.
68927         (struct argp_option): Document the use of N_() wrappers.
68928
68929         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68930         '\v', and translate the two parts separately, instead of feeding
68931         the whole string to gettext.  This allows to exclude
68932         '\v' from the strings visible to the translator by writing doc
68933         strings as N_("..") "\v" N_("..").
68934
68935 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * config/srclist.txt: Undo latest change; the bug was fixed.
68938
68939 2006-09-09  Bruno Haible  <bruno@clisp.org>
68940
68941         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68942         assignments if building a library without libtool.
68943         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68944         in func_emit_lib_Makefile_am.
68945         (func_import): When building a static library libfoo.a, arrange to
68946         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68947         (func_create_testdir): Likewise.
68948         * modules/gc (configure.ac, Makefile.am): If building statically,
68949         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68950         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68951         * modules/striconv (configure.ac, Makefile.am): Likewise.
68952         Based on a suggestion by Ralf Wildenhues.
68953
68954 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68957         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68958         Also:
68959
68960         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68961         Add year_2050_test to catch glibc bug 2821
68962         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68963
68964         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68965         Prefer #ifdef to #if.
68966
68967         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68968         Return from 'main' instead of calling 'exit'.
68969
68970 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68973         returned the maximum time_t value rather than (time_t) -1.
68974         Problem originally reported by William Bardwell
68975         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68976
68977         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68978         Moved to here ...
68979         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68980         ... from here.
68981
68982 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68985         2821 is fixed.
68986
68987 2006-09-08  Jim Meyering  <jim@meyering.net>
68988
68989         Don't make generated files read-only.  That would bother too many
68990         people.  However, do retain the ability to work when targets are
68991         read-only: remove the destination and temporary files before writing
68992         them (when generated via sed or echo), or by using the -f option for
68993         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68994         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68995         * modules/byteswap, modules/configmake, modules/fcntl:
68996         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68997         * modules/localcharset, modules/netinet_in, modules/poll:
68998         * modules/stdbool, modules/stdint, modules/sys_select:
68999         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69000
69001 2006-09-08  Jim Meyering  <jim@meyering.net>
69002
69003         Avoid new build failure on FreeBSD 6.0.
69004         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69005         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69006         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69007
69008 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69009
69010         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69011
69012 2006-09-07  Jim Meyering  <jim@meyering.net>
69013
69014         Fix global typo in last change: use chmod u-w, not chmod u-x.
69015         Spotted by Paul Eggert and Bruce Korb.
69016         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69017         * modules/byteswap, modules/configmake, modules/fcntl:
69018         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69019         * modules/localcharset, modules/netinet_in, modules/poll:
69020         * modules/stdbool, modules/stdint, modules/sys_select:
69021         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69022
69023 2006-09-06  Jim Meyering  <jim@meyering.net>
69024
69025         Make generated files be read-only.
69026         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69027         Ensure that each generated file is now read-only.
69028         * modules/argz: Likewise.
69029         * modules/arpa_inet: Likewise.
69030         * modules/byteswap: Likewise.
69031         * modules/configmake: Likewise.
69032         * modules/fcntl: Likewise.
69033         * modules/fnmatch: Likewise.
69034         * modules/getopt: Likewise.
69035         * modules/glob: Likewise.
69036         * modules/inttypes: Likewise.
69037         * modules/netinet_in: Likewise.
69038         * modules/poll: Likewise.
69039         * modules/stdbool: Likewise.
69040         * modules/stdint: Likewise.
69041         * modules/sys_select: Likewise.
69042         * modules/sys_socket: Likewise.
69043         * modules/sys_stat: Likewise.
69044         * modules/sysexits: Likewise.
69045         * modules/localcharset: Same as above, but continue using temporary
69046         file named "t-$@" (why different?) rather than the "$@-t" used
69047         everywhere else.
69048
69049         * modules/sysexits (Makefile.am): Replace literal occurrences
69050         of "sysexit.h" more readable, and more consistent, "$@".
69051
69052 2006-09-06  Bruno Haible  <bruno@clisp.org>
69053
69054         * modules/striconv: New file.
69055         * modules/xstriconv: New file.
69056         * MODULES.html.sh (Internationalization functions): Add striconv,
69057         xstriconv.
69058
69059 2006-09-06  Bruno Haible  <bruno@clisp.org>
69060
69061         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69062         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69063         not using libtool correctly.
69064
69065 2006-09-06  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/striconv.h: New file.
69068         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69069         iconvstring.c.
69070         * lib/xstriconv.h: New file.
69071         * lib/xstriconv.c: New file.
69072
69073 2006-09-06  Bruno Haible  <bruno@clisp.org>
69074
69075         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69076         lib_..._LDFLAGS.
69077
69078 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69079
69080         * lib/argz_.h: Sync from Libtool.
69081
69082         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69083                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69084
69085         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69086
69087 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69088
69089         * modules/trim: New file.
69090
69091 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69092
69093         * lib/trim.h: New file.
69094         * lib/trim.c: New file.
69095
69096 2006-09-05  Bruno Haible  <bruno@clisp.org>
69097
69098         * MODULES.html.sh (String handling): Add trim.
69099
69100 2006-09-04  Karl Berry  <karl@gnu.org>
69101
69102         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69103         until next release.
69104
69105 2006-09-03  Bruno Haible  <bruno@clisp.org>
69106
69107         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69108         correctly.
69109
69110 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69113         not gl_GETLOADAVG.  Omit unneeded semicolons.
69114         Problems reported by Ralf Wildenhues in
69115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69116         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69117         at the end, which is the usual gnulib style.
69118
69119         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69120         of doing all the work ourselves.
69121         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69122         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69123
69124 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69125
69126         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69127         Problem reported by Ralf Wildenhues in
69128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69129
69130         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69131         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69132
69133 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69136         yesterday's patch by changing test -n to test -z.
69137
69138 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69141         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69142         the former is now obsolescent.
69143
69144         * modules/chdir-long (Depends-on): Add fcntl.
69145
69146 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69147
69148         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69149         obsolescent, and programs should use gnulib instead.
69150         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69151         but with prefixes changed.
69152
69153 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69156         or stdbool.h, because they might not exist while configuring.
69157
69158         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69159         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69160         does that for us.
69161         (O_DIRECTORY): Remove.
69162
69163 2006-08-31  Eric Blake  <ebb9@byu.net>
69164
69165         * gnulib-tool: Don't let emacs change spaces to TAB.
69166
69167 2006-08-31  Bruno Haible  <bruno@clisp.org>
69168
69169         * gnulib-tool: When calling func_import more than once, do it in a
69170         subshell.
69171         Reported by Eric Blake <ebb9@byu.net>.
69172
69173 2006-08-31  Bruno Haible  <bruno@clisp.org>
69174
69175         * gnulib-tool (nl): Remove variable.
69176         (sed_transform_lib_file): Use more robust test for config-h module.
69177         (func_import): Fix typo in 2006-08-25 patch.
69178
69179 2006-08-31  Bruno Haible  <bruno@clisp.org>
69180
69181         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69182         specified, augment Makefile.am variables instead of assigning them.
69183
69184 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         Work around a bug in both the Linux and SunOS 64-bit kernels:
69187         nanosleep mishandles sleeps for longer than 2**31 seconds.
69188         Problem reported by Frank v Waveren in
69189         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69191         Check for nanosleep bug.
69192         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69193
69194 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         Work around a bug in both the Linux and SunOS 64-bit kernels:
69197         nanosleep mishandles sleeps for longer than 2**31 seconds.
69198         Problem reported by Frank v Waveren in
69199         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69200         * lib/nanosleep.c (BILLION): New constant.
69201         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69202         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69203         implementation.
69204
69205 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69206
69207         * modules/nanosleep (Depends-on): Add gettime.
69208
69209 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69210         and Simon Josefsson  <jas@extundo.com>
69211         and Oskar Liljeblad  <oskar@osk.mine.nu>
69212
69213         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69214         * gnulib-tool (func_import): New license type 'unmodifiable license
69215         text'.
69216         * modules/fdl: Use it.  Longer description.
69217         * module/gpl, module/lgpl: New files.
69218
69219 2006-08-30  Jim Meyering  <jim@meyering.net>
69220
69221         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69222         shadowing the parameter.
69223
69224 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69225
69226         Sync from Libtool:
69227
69228         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69229
69230         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69231         sharing with gnulib.  Report by Eric Blake.
69232
69233 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69234
69235         * modules/isapipe: New file.
69236         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69237
69238 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * modules/configmake (Makefile.am): Add a comment, and omit
69241         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69242         by Bruno Haible.
69243
69244 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69245
69246         * m4/isapipe.m4: New file.
69247
69248 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69249
69250         * lib/isapipe.c, lib/isapipe.h: New files.
69251
69252 2006-08-29  Jim Meyering  <jim@meyering.net>
69253
69254         * modules/configmake (Makefile.am): Make configmake.h depend on
69255         Makefile.  Otherwise, a stale configmake.h could hang around.
69256
69257 2006-08-29  Eric Blake  <ebb9@byu.net>
69258
69259         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69260         resolution of upstream bug 3044.
69261
69262 2006-08-29  Bruno Haible  <bruno@clisp.org>
69263
69264         * modules/localcharset (Depends-on): Add configmake.
69265         (Makefile.am): Remove setting of LIBDIR through DEFS.
69266
69267 2006-08-29  Bruno Haible  <bruno@clisp.org>
69268
69269         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69270         defined.
69271
69272 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69273
69274         * modules/fcntl: New file.
69275         * modules/chdir-safer (Depends-on): Add fcntl.
69276         * modules/fts: Likewise.
69277         * modules/mkdir-p: Likewise.
69278
69279         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69280         This undoes the most recent change, since we're now addressing the
69281         problem in a different way.
69282
69283         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69284         into output, since the output might be called Makefile.am even
69285         if $makefile_name is something different.
69286         (func_import): Use $makefile_am rather than
69287         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69288         empty.
69289
69290         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69291
69292 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69293
69294         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69295         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69296         recent change to stdint.m4, since we're now addressing the problem in a
69297         different way.
69298
69299 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69300
69301         * m4/fcntl_h.m4: New file.
69302
69303 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69304
69305         * lib/fcntl_.h: New file.
69306         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69307         the fcntl module.
69308         * lib/dirchownmod.c: Likewise.
69309         * lib/fts.c: Likewise.
69310
69311         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69312         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69313         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69314         just before including <inttypes.h>, to avoid circular inclusion.
69315
69316 2006-08-28  Jim Meyering  <jim@meyering.net>
69317
69318         * doc/visibility.texi: Actually read and correct the grammar of the
69319         sentence affected by yesterday's change.
69320
69321 2006-08-28  Eric Blake  <ebb9@byu.net>
69322
69323         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69324         needs wrapper.
69325
69326 2006-08-28  Eric Blake  <ebb9@byu.net>
69327
69328         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69329
69330 2006-08-28  Eric Blake  <ebb9@byu.net>
69331
69332         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69333
69334 2006-08-28  Bruno Haible  <bruno@clisp.org>
69335
69336         * modules/c-strstr: New file, from GNU gettext.
69337         * MODULES.html.sh (String handling): Add c-strstr.
69338
69339 2006-08-28  Bruno Haible  <bruno@clisp.org>
69340
69341         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69342         macros.
69343         Reported by Eric Blake.
69344
69345 2006-08-28  Bruno Haible  <bruno@clisp.org>
69346
69347         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69348         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69349         * lib/vasprintf.c: Include errno.h, limits.h.
69350         (EOVERFLOW): New fallback definition.
69351         (vasprintf): Test here whether the string length is > INT_MAX.
69352         * lib/vsnprintf.c: Include errno.h, limits.h.
69353         (EOVERFLOW): New fallback definition.
69354         (vsnprintf): Fix bug when generated string was too long for the buffer.
69355         Test here whether the string length is > INT_MAX.
69356
69357 2006-08-28  Bruno Haible  <bruno@clisp.org>
69358
69359         * lib/inttypes_.h (SCNX*): Remove definitions.
69360         Reported by Eric Blake.
69361
69362 2006-08-28  Bruno Haible  <bruno@clisp.org>
69363
69364         * lib/c-strstr.h: New file, from GNU gettext.
69365         * lib/c-strstr.c: New file, from GNU gettext.
69366
69367 2006-08-28  Bruno Haible  <bruno@clisp.org>
69368
69369         * gnulib-tool: Reorder some statements.
69370
69371 2006-08-28  Bruno Haible  <bruno@clisp.org>
69372
69373         * gnulib-tool: New option --makefile-name.
69374         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69375         $makefile_name.
69376         (func_import): Write $makefile_name to the cache file, and read it from
69377         there unless explicitly specified. Use $makefile_name as file name
69378         instead of Makefile.am. Adjust the recommendations accordingly.
69379
69380 2006-08-28  Bruno Haible  <bruno@clisp.org>
69381
69382         * gnulib-tool (func_verify_module): Check against misapplying patch.
69383
69384 2006-08-28  Bruno Haible  <bruno@clisp.org>
69385
69386         * gnulib-tool (func_relativize, func_relconcat): New functions.
69387         Give an error if --local-dir is given with --update.
69388         Remove trailing slashes from $local_gnulib_dir.
69389         (func_import): Store the relativized $local_gnulib_dir in
69390         gnulib-cache.m4, and read it from there if not specified explicitly.
69391
69392 2006-08-28  Bruno Haible  <bruno@clisp.org>
69393
69394         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69395         is the current directory. Respect also $local_gnulib_dir.
69396
69397 2006-08-28  Bruno Haible  <bruno@clisp.org>
69398             Simon Josefsson  <jas@extundo.com>
69399
69400         BeOS portability.
69401         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69402
69403 2006-08-27  Jim Meyering  <jim@meyering.net>
69404
69405         * doc/visibility.texi: Remove duplicate word: "pointer".
69406
69407 2006-08-26  Bruno Haible  <bruno@clisp.org>
69408
69409         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69410         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69411         (Makefile.am): Create inttypes.h from inttypes_.h.
69412         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69413
69414         * modules/imaxabs: New file.
69415
69416         * modules/imaxdiv: New file.
69417
69418 2006-08-26  Bruno Haible  <bruno@clisp.org>
69419
69420         * m4/inttypes.m4: New file.
69421         * m4/_inttypes_h.m4: Remove file.
69422         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69423         PRI_MACROS_BROKEN.
69424         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69425
69426         * m4/imaxabs.m4: New file.
69427
69428         * m4/imaxdiv.m4: New file.
69429
69430 2006-08-26  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/inttypes_.h: New file.
69433         * lib/inttypes.h: Remove file.
69434         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69435
69436         * lib/imaxabs.c: New file.
69437
69438         * lib/imaxdiv.c: New file.
69439
69440 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         New config-h module, so that "make" output needn't be cluttered
69443         by -DHAVE_CONFIG_H.
69444         * MODULES.html.sh (Support for building libraries and executables):
69445         Add config-h.
69446         * modules/config-h: New file.
69447         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69448         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69449         the config-h module is used.
69450
69451         New configmake module, so that "make" output needn't be cluttered
69452         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69453         * MODULES.html.sh (Support for building libraries and executables):
69454         Add configmake.
69455         * modules/configmake: New file.
69456
69457 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * m4/config-h.m4: New file.
69460
69461 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * config/srclist.txt: Add elisp-comp.
69464
69465 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         * MODULES.html.sh (Support for building libraries and executables):
69468         Add elisp-comp.
69469         * build-aux/elisp-comp: New file.
69470         * modules/elisp-comp: New file.
69471
69472 2006-08-24  Bruno Haible  <bruno@clisp.org>
69473
69474         * gnulib-tool (func_create_testdir): Use non-default values of
69475         sourcebase and m4base.
69476
69477 2006-08-24  Bruno Haible  <bruno@clisp.org>
69478
69479         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69480         HTML structure.
69481
69482 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * modules/openat (Depends-on): Add lchown.
69485
69486 2006-08-23  Bruno Haible  <bruno@clisp.org>
69487
69488         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69489         of gl_LOCK_EARLY instead of gl_LOCK.
69490
69491 2006-08-23  Bruno Haible  <bruno@clisp.org>
69492
69493         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69494         on OSF/1 to no.
69495         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69496
69497 2006-08-23  Bruno Haible  <bruno@clisp.org>
69498
69499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69500         as unusable.
69501
69502         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69503         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69504         (gl_LOCK): New macro.
69505
69506 2006-08-22  Simon Josefsson  <jas@extundo.com>
69507
69508         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69509         to md5 module.
69510
69511 2006-08-22  Simon Josefsson  <jas@extundo.com>
69512
69513         * MODULES.html.sh: Add "Support for maintaining and release
69514         projects".
69515
69516         * build-aux/gnupload: New file, from coreutils.
69517
69518 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         Avoid the need for AC_LIBSOURCES in m4 macros.
69521         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69522         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69523         * modules/check-version (EXTRA_DIST): Add check-version.h.
69524         * modules/crc (EXTRA_DIST): Add crc.h.
69525         * modules/des (EXTRA_DIST): Add des.h.
69526         * modules/gc (EXTRA_DIST): Add gc.h.
69527         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69528         * modules/getline (EXTRA_DIST): Add getline.h.
69529         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69530         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69531         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69532         * modules/md2 (EXTRA_DIST): Add md2.h.
69533         * modules/md4 (EXTRA_DIST): Add md4.h.
69534         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69535         * modules/read-file (EXTRA_DIST): Add read-file.h.
69536         * modules/readline (EXTRA_DIST): Add readline.h.
69537         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69538         rijndael-api-fst.h.
69539
69540 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * m4/rijndael.m4 (gl_ARCFOUR):
69543         * m4/arctwo.m4 (gl_ARCTWO):
69544         * m4/check-version.m4 (gl_CHECK_VERSION):
69545         * m4/crc.m4 (gl_CRC):
69546         * m4/des.m4 (gl_DES):
69547         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69548         * m4/gc.m4 (gl_GC):
69549         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69550         * m4/getline.m4 (gl_FUNC_GETLINE):
69551         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69552         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69553         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69554         * m4/md2.m4 (gl_MD2):
69555         * m4/md4.m4 (gl_MD4):
69556         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69557         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69558         * m4/readline.m4 (gl_FUNC_READLINE):
69559         * m4/rijndael.m4 (gl_RIJNDAEL):
69560         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69561         to get the necessary .h files and whatnot.
69562
69563 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69566         gnulib rather than the other way around.
69567         * config/srclistvars.sh (COREUTILS): Remove.
69568
69569 2006-08-22  Jim Meyering  <jim@meyering.net>
69570
69571         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69572
69573         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69574
69575 2006-08-22  Eric Blake  <ebb9@byu.net>
69576
69577         * modules/regexprops-generic: New file.
69578         * MODULES.html.sh (Support for building documentation): List it.
69579
69580 2006-08-22  Eric Blake  <ebb9@byu.net>
69581
69582         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69583         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69584         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69585         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69586
69587 2006-08-22  Bruno Haible  <bruno@clisp.org>
69588
69589         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69590         and lib_LTLIBRARIES like the other lib_* variables.
69591
69592 2006-08-22  Bruno Haible  <bruno@clisp.org>
69593
69594         * build-aux/x-to-1.in: New file, from GNU gettext.
69595
69596 2006-08-22  Bruno Haible  <bruno@clisp.org>
69597
69598         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69599         <utmpx.h> exists.
69600
69601 2006-08-22  Bruno Haible  <bruno@clisp.org>
69602
69603         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69604         <utmpx.h> exists.
69605
69606 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69607
69608         BeOS portability.
69609         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69610         exist.
69611         Problem reported by Bruno Haible.
69612
69613 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69614
69615         Avoid the need for AC_LIBSOURCES in m4 macros.
69616         * modules/acl (EXTRA_DIST): Add acl.h.
69617         * modules/argmatch (Files): Add m4/argmatch.m4.
69618         (configure.ac): Add gl_ARGMATCH.
69619         (EXTRA_DIST): Renamed from lib_SOURCES, for
69620         consistency with the other modules.  Remove argmatch.c.
69621         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69622         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69623         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69624         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69625         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69626         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69627         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69628         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69629         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69630         * modules/closeout (EXTRA_DIST): Add closeout.h.
69631         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69632         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69633         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69634         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69635         dirname.h; remove basename.c and stripslash.c.
69636         * modules/exclude (EXTRA_DIST): Add exclude.h.
69637         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69638         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69639         * modules/file-type (EXTRA_DIST): Add file-type.h.
69640         * modules/filemode (EXTRA_DIST): Add filemode.h.
69641         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69642         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69643         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69644         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69645         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69646         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69647         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69648         * modules/getdate (EXTRA_DIST): Add getdate.c.
69649         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69650         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69651         * modules/getpass (EXTRA_DIST): Add getpass.h.
69652         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69653         * modules/group-member (EXTRA_DIST): Add group-member.h.
69654         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69655         * modules/hash (EXTRA_DIST): Add hash.h.
69656         * modules/human (EXTRA_DIST): Add human.h.
69657         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69658         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69659         * modules/lchown (EXTRA_DIST): Add lchown.h.
69660         * modules/long-options (EXTRA_DIST): Add long-options.h.
69661         * modules/lstat (EXTRA_DIST): Add lstat.h.
69662         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69663         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69664         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69665         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69666         * modules/memxor (EXTRA_DIST): Add memxor.h.
69667         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69668         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69669         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69670         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69671         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69672         * modules/physmem (EXTRA_DIST): Add physmem.h.
69673         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69674         * modules/posixver (EXTRA_DIST): Add posixver.h.
69675         * modules/quote (EXTRA_DIST): Add quote.h.
69676         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69677         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69678         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69679         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69680         regex_internal.h regexec.c.
69681         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69682         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69683         * modules/same (EXTRA_DIST): Add same.h.
69684         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69685         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69686         * modules/savedir (EXTRA_DIST): Add savedir.h.
69687         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69688         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69689         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69690         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69691         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69692         * modules/strdup (EXTRA_DIST): Add strdup.h.
69693         * modules/strftime (EXTRA_DIST): Add strftime.h.
69694         * modules/strndup (EXTRA_DIST): Add strndup.h.
69695         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69696         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69697         * modules/time_r (EXTRA_DIST): Add time_r.h.
69698         * modules/timespec (EXTRA_DIST): Add timespec.h.
69699         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69700         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69701         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69702         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69703         * modules/userspec (EXTRA_DIST): Add userspec.h.
69704         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69705         * modules/utimens (EXTRA_DIST): Add utimens.h.
69706         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69707         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69708         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69709         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69710         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69711         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69712         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69713         * modules/yesno (EXTRA_DIST): Add yesno.h.
69714
69715 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69718
69719         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69720         * m4/dev-ino.m4, same-inode.m4: Remove.
69721
69722         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69723         * m4/acl.m4 (AC_FUNC_ACL):
69724         * m4/backupfile.m4 (gl_BACKUPFILE):
69725         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69726         * m4/canon-host.m4 (gl_CANON_HOST):
69727         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69728         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69729         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69730         * m4/cloexec.m4 (gl_CLOEXEC):
69731         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69732         * m4/closeout.m4 (gl_CLOSEOUT):
69733         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69734         * m4/dirname.m4 (gl_DIRNAME):
69735         * m4/exclude.m4 (gl_EXCLUDE):
69736         * m4/exitfail.m4 (gl_EXITFAIL):
69737         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69738         * m4/file-type.m4 (gl_FILE_TYPE):
69739         * m4/filemode.m4 (gl_FILEMODE):
69740         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69741         * m4/fpending.m4 (gl_FUNC_FPENDING):
69742         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69743         * m4/fts.m4 (gl_FUNC_FTS):
69744         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69745         * m4/getdate.m4 (gl_GETDATE):
69746         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69747         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69748         * m4/getpass.m4 (gl_FUNC_GETPASS):
69749         * m4/gettime.m4 (gl_GETTIME):
69750         * m4/getugroups.m4 (gl_GETUGROUPS):
69751         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69752         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69753         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69754         * m4/hash.m4 (gl_HASH):
69755         * m4/idcache.m4 (gl_IDCACHE):
69756         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69757         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69758         * m4/long-options.m4 (gl_LONG_OPTIONS):
69759         * m4/lstat.m4 (gl_FUNC_LSTAT):
69760         * m4/md5.m4 (gl_MD5):
69761         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69762         * m4/memcoll.m4 (gl_MEMCOLL):
69763         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69764         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69765         * m4/memxor.m4 (gl_MEMXOR):
69766         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69767         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69768         * m4/modechange.m4 (gl_MODECHANGE):
69769         * m4/mountlist.m4 (gl_MOUNTLIST):
69770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69771         * m4/openat.m4 (gl_FUNC_OPENAT):
69772         * m4/pathmax.m4 (gl_PATHMAX):
69773         * m4/physmem.m4 (gl_PHYSMEM):
69774         * m4/posixtm.m4 (gl_POSIXTM):
69775         * m4/posixver.m4 (gl_POSIXVER):
69776         * m4/quote.m4 (gl_QUOTE):
69777         * m4/quotearg.m4 (gl_QUOTEARG):
69778         * m4/readtokens.m4 (gl_READTOKENS):
69779         * m4/readutmp.m4 (gl_READUTMP):
69780         * m4/regex.m4 (gl_REGEX):
69781         * m4/safe-read.m4 (gl_SAFE_READ):
69782         * m4/safe-write.m4 (gl_SAFE_WRITE):
69783         * m4/same.m4 (gl_SAME):
69784         * m4/save-cwd.m4 (gl_SAVE_CWD):
69785         * m4/savedir.m4 (gl_SAVEDIR):
69786         * m4/settime.m4 (gl_SETTIME):
69787         * m4/sha1.m4 (gl_SHA1):
69788         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69789         * m4/stat-macros.m4 (gl_STAT_MACROS):
69790         * m4/stat-time.m4 (gl_STAT_TIME):
69791         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69792         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69793         * m4/strdup.m4 (gl_FUNC_STRDUP):
69794         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69795         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69796         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69797         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69798         * m4/time_r.m4 (gl_TIME_R):
69799         * m4/timespec.m4 (gl_TIMESPEC):
69800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69801         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69802         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69803         * m4/userspec.m4 (gl_USERSPEC):
69804         * m4/utimecmp.m4 (gl_UTIMECMP):
69805         * m4/utimens.m4 (gl_UTIMENS):
69806         * m4/xalloc.m4 (gl_XALLOC):
69807         * m4/xgetcwd.m4 (gl_XGETCWD):
69808         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69809         * m4/xreadlink.m4 (gl_XREADLINK):
69810         * m4/xstrtod.m4 (gl_XSTRTOD):
69811         * m4/yesno.m4 (gl_YESNO):
69812         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69813         to get the necessary .h files and whatnot.
69814
69815 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69816             Bruno Haible  <bruno@clisp.org>
69817
69818         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69819         /bin/sh understanding of '!' conditional negation.
69820
69821 2006-08-21  Jim Meyering  <jim@meyering.net>
69822
69823         * modules/openat (Depends-on): Really alphabetize.
69824
69825         * modules/acl (Depends-on): Add error and quote.
69826
69827         * check-module (find_included_lib_files): Add at-func.c to the
69828         ok-to-include-more-than-once white list.
69829
69830         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69831
69832 2006-08-21  Bruno Haible  <bruno@clisp.org>
69833
69834         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69835         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69836         Reported by Martin Lambers <marlam@marlam.de>.
69837
69838 2006-08-21  Bruno Haible  <bruno@clisp.org>
69839
69840         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69841         specify an installation location, don't emit a noinst_LIBRARIES or
69842         noinst_LTLIBRARIES assignment.
69843
69844 2006-08-21  Bruno Haible  <bruno@clisp.org>
69845
69846         BeOS portability.
69847         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69848         BeOS has mbrtowc() but no <wctype.h>.
69849
69850 2006-08-21  Bruno Haible  <bruno@clisp.org>
69851
69852         BeOS portability.
69853         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69854         exist.
69855
69856 2006-08-21  Bruno Haible  <bruno@clisp.org>
69857
69858         BeOS portability.
69859         * lib/mbchar.h: Include <wctype.h> only if it exists.
69860
69861 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         Remove files that are no longer needed by their respective modules.
69864         * m4/obstack.m4: Remove.
69865         * m4/strerror_r.m4: Remove.
69866         * m4/uint32_t.m4: Remove.
69867         * m4/uintptr_t.m4: Remove.
69868         * m4/ullong_max.m4: Remove.
69869         * m4/xstrtoimax.m4: Remove.
69870         * m4/xstrtoumax.m4: Remove.
69871
69872         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69873         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69874         dependencies now capture this.
69875
69876         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69877         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69878         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69879         * m4/human.m4 (gl_HUMAN): Likewise.
69880         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69881         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69882
69883         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69884
69885         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69886         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69887         stdint.
69888         * m4/human.m4 (gl_HUMAN): Likewise.
69889         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69890         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69891         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69892         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69893         * m4/xstrtol (gl_XSTRTOL): Likewise.
69894
69895         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69896         AC_TYPE_LONG_LONG_INT.
69897         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69898         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69899         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69900         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69901
69902         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69903         on stdbool.
69904
69905         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69906         (gl_PREREQ_XSTRTOUL): Remove.
69907
69908         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69909
69910         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69911         mode.
69912
69913 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69914
69915         Add and change modules to make it easier for coreutils to use
69916         gnulib-tool.
69917         * modules/backupfile (Files): Remove m4/d-ino.m4.
69918         (Depends-on): Add d-ino.
69919         * modules/cycle-check (Depends-on): Add stdint.
69920         (lib_SOURCES): Add cycle-check.h.
69921         * modules/d-ino: New module.
69922         * modules/d-type: New module.
69923         * modules/error (Files): Remove m4/strerror_r.m4.
69924         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69925         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69926         m4/inttypes_h.m4, m4/uintmax_t.m4.
69927         (Depends-on): Add stdint.
69928         (lib_SOURCES): Add fsusage.h.
69929         * modules/getcwd (Files): Remove d-ino.m4.
69930         (Depends-on): Add d-ino.
69931         * modules/getndelim2 (Depends-on): Add stdint.
69932         * modules/glob (Files): Remove m4/d-type.m4.
69933         (Depends-on): Add d-type.
69934         * modules/host-os: New module.
69935         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69936         m4/inttypes_h.m4, m4/uintmax_t.m4.
69937         * Depends-on: Add stdint.
69938         (lib_SOURCES): Add human.h.
69939         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69940         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69941         m4/uintmax_t.m4, m4/ulonglong.m4.
69942         (Depends-on): Add stdint.
69943         (EXTRA_DIST): Add inttostr.h.
69944         * modules/lchmod: New module.
69945         * modules/link-follow: New module.
69946         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69947         (Depends-on): Add lchmod.
69948         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69949         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69950         (Depends-on): Add stdint.
69951         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69952         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69953         (Depends-on): Add stdint.
69954         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69955         * modules/perl: New module.
69956         * modules/regex (Depends-on): Add stdint.
69957         * modules/rmdir-errno: New module.
69958         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69959         m4/intmax_t.m4.
69960         (Depends-on): Add stdint.
69961         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69962         m4/uintmax_t.m4.
69963         (Depends-on): Add stdint.
69964         * modules/unlink-busy: New module.
69965         * modules/utimecmp (Depends-on): Add stdint.
69966         * modules/uptime: New module.
69967         * modules/winsz-ioctl: New module.
69968         * modules/winsz-termios: New module.
69969         * modules/xnanosleep (Depends-on): Add nanosleep.
69970         * modules/ullong_max: Remove.
69971         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69972         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69973         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69974         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69975         (Depends-on): Add inttypes.
69976         (lib_SOURCES): Add xstrtol.h.
69977         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69978         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69979         * MODULES.html.sh: Move 'assert' into the assert section.
69980         Move 'dummy' into the linking section.
69981         Remove ullong_max.
69982         Add section for compatibility checks for POSIX:2001 functions,
69983         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69984         winsz-ioctl, and winsz-termios into it.
69985         Add lchmod.
69986         Add top-level Misc section and put host-os, perl, and uptime
69987         into it.
69988
69989 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69992         now assume the stdint module.  Do not include inttypes.h.
69993         * lib/fsusage.h: Likewise.
69994         * lib/getndelim2.c: Likewise.
69995         * lib/human.h: Likewise.
69996         * lib/inttostr.h: Likewise.
69997         * lib/obstack.c: Likewise.
69998         * lib/regex_internal.h: Likewise.
69999         * lib/tempname.c: Likewise.
70000         * lib/utimecmp.c: Likewise.
70001         * lib/xstrtol.h: Likewise.
70002
70003         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70004
70005         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70006         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70007         * lib/xtime.h: Likewise.
70008
70009 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * modules/openat (Files): Add lib/fchmodat.c.
70012         Fixes problem reported by Jay Youngman.
70013
70014 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70015
70016         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70017         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70018
70019 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70020             Bruno Haible  <bruno@clisp.org>
70021
70022         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70023         and is a script that invokes bison. Tighten the code. Add comments.
70024
70025 2006-08-18  Jim Meyering  <jim@meyering.net>
70026
70027         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70028         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70029         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70030         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70031
70032 2006-08-18  Bruno Haible  <bruno@clisp.org>
70033
70034         * modules/bison-i18n: New file.
70035         * MODULES.html.sh (Internationalization functions): Add it.
70036
70037 2006-08-18  Bruno Haible  <bruno@clisp.org>
70038
70039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70040         sys/statvfs.h. When getmntinfo was found, check its declaration and
70041         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70042
70043 2006-08-18  Bruno Haible  <bruno@clisp.org>
70044
70045         * m4/bison-i18n.m4: New file, from bison.
70046
70047 2006-08-18  Bruno Haible  <bruno@clisp.org>
70048
70049         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70050         (ME_DUMMY): Treat "kernfs" as a dummy.
70051         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70052
70053 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70054
70055         Update from coreutils.
70056
70057         2006-08-15  Jim Meyering  <jim@meyering.net>
70058
70059         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70060
70061         2006-01-17  Jim Meyering  <jim@meyering.net>
70062
70063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70064
70065         2006-01-11  Jim Meyering  <jim@meyering.net>
70066
70067         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70068         Check for the lchmod function.
70069
70070 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         Update from coreutils.
70073
70074         * lib/__fpending.h: Add copyright notice.
70075         * lib/fprintftime.h: Likewise.
70076         * lib/savedir.c: Use (C) in copyright notice.
70077         * lib/savedir.h: Likewise.
70078
70079         2006-08-15  Jim Meyering  <jim@meyering.net>
70080
70081         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70082         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70083         in support of the EXPECTED_ERRNO macro.
70084         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70085         definitions.  Instead, define the appropriate symbols and include
70086         "at-func.c".
70087         * lib/mkdirat.c (mkdirat): Likewise.
70088         * lib/fchmodat.c (fchmodat): Likewise.
70089         (ENOSYS): Remove definition.
70090         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70091         it.  Don't include "unistd--.h" -- it wasn't ever used.
70092
70093         2006-01-17  Jim Meyering  <jim@meyering.net>
70094
70095         Rewrite fts.c not to change the current working directory,
70096         by using openat, fstatat, fdopendir, etc..
70097
70098         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70099         (HAVE_OPENAT_SUPPORT): Define.
70100         [_LIBC] (fchdir): Don't undef or define; no longer used.
70101         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70102         Now, this `function' always succeeds, and consumes its file descriptor
70103         parameter -- so callers must not close such FDs.  Update callers.
70104         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70105         (diropen): Add parameter, SP.  Adjust all callers.
70106         Implement using diropen_fd, rather than open.
70107         (fts_open): Initialize new member, fts_cwd_fd.
70108         Remove fts_rft-setting code.
70109         (fts_close): Close fts_cwd_fd, if necessary.
70110         (__opendir2): Define in terms of opendir or opendirat,
70111         depending on whether the FST_NOCHDIR flag is set.
70112         (fts_build): Since fts_safe_changedir consumes its FD, and since
70113         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70114         and close the dup'd file descriptor upon failure.
70115         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70116         (fts_safe_changedir): Tweak semantics to reflect that this function
70117         now calls cwd_advance_fd and hence consumes its FD argument.
70118         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70119         [struct FTS] (fts_rft): Remove now-unused member.
70120         [struct FTS] (fts_cycle.state): Improve comment.
70121
70122         * lib/openat.c (openat_needs_fchdir): New function.
70123         * lib/openat.h (openat_needs_fchdir): Declare it.
70124
70125 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70128         Problem and fix reported by Pádraig Brady in
70129         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70130
70131 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70132
70133         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70134
70135 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70136
70137         * lib/memcoll.c (memcoll): Optimize for the common case where the
70138         arguments are bytewise equal.
70139
70140 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         * doc/regexprops-generic.texi: Add a copyright notice.
70143
70144 2006-08-15  Bruno Haible  <bruno@clisp.org>
70145
70146         * modules/tmpdir (License): Change to LGPL.
70147
70148 2006-08-15  Bruno Haible  <bruno@clisp.org>
70149
70150         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70151         module.
70152
70153 2006-08-14  Simon Josefsson  <jas@extundo.com>
70154
70155         * config/srclist.txt: Add gnupload.
70156
70157 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         Change copyright notice from LGPL 2 to GPL 2, since that's the
70160         standard form used in the gnulib repository.
70161         * tests/test-lock.c: Likewise.
70162         * tests/test-stdint.c: Likewise.
70163         * tests/test-tls.c: Likewise.
70164
70165         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70166         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70167         Add copyright notice.
70168
70169         * check-module: Add copyright notice.  Output a copyright
70170         notice if "--version" is specified.
70171         * modules/COPYING: New file.
70172         * tests/test-getaddrinfo.c: Add copyright notice.
70173         * tests/test-verify.c: Likewise.
70174
70175 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70176
70177         Change copyright notice from LGPL 2 to GPL 2, since that's the
70178         standard form used in the gnulib repository.
70179         * lib/lock.c: LGPL -> GPL.
70180         * lib/lock.h: Likewise.
70181         * lib/strnlen1.c: Likewise.
70182         * lib/strnlen1.h: Likewise.
70183         * lib/tls.c: Likewise.
70184         * lib/tls.h: Likewise.
70185         * lib/tmpdir.c: Likewise.
70186
70187         * lib/TODO: Remove; this belongs only in coreutils.
70188
70189 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         Add copyright notices to long-enough files that lack them, since
70192         otherwise the files aren't clearly free.  Use the same notice that
70193         getdate.texi already uses.
70194         * doc/alloca-opt.texi: Add copyright notice.
70195         * doc/alloca.texi: Likewise.
70196         * doc/ctime.texi: Likewise.
70197         * doc/functions.texi: Likewise.
70198         * doc/gcd.texi: Likewise.
70199         * doc/gnulib-tool.texi: Likewise.
70200         * doc/inet_ntoa.texi: Likewise.
70201         * doc/visibility.texi: Likewise.
70202
70203         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70204         * doc/quote.texi: Add copyright notice.
70205
70206         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70207         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70208         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70209         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70210         is now obsolete, and give a pointer to the Sun list.
70211         Add copyright notice.
70212
70213 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * config/srclistvars.sh: Add copyright notice.
70216
70217 2006-08-14  Eric Blake  <ebb9@byu.net>
70218
70219         Import the following change from libc:
70220
70221         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70222
70223         Upstream bug 2997.
70224         * lib/misc/error.c: Add space between program name and message if file
70225         name is missing.
70226
70227 2006-08-12  Karl Berry  <karl@gnu.org>
70228
70229         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70230         remove, these originate in gnulib now.
70231
70232 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70233
70234         * doc/Makefile (standards.info standards.html standards.dvi):
70235         Also depend on make-stds.texi.
70236
70237 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70240         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70241
70242         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70243         in wchar_t.  Problem reported by Eric Blake.
70244
70245         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70246         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70247         Also, help the compiler to keep LEN in a register.
70248
70249 2006-08-11  Eric Blake  <ebb9@byu.net>
70250
70251         * users.txt: Sort.  Add tar.
70252
70253 2006-08-11  Bruno Haible  <bruno@clisp.org>
70254
70255         * users.txt: New file.
70256
70257 2006-08-11  Bruno Haible  <bruno@clisp.org>
70258
70259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70260         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70261
70262 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70263
70264         * modules/snprintf (Depends-on): Remove minmax.
70265         (Maintainer): Add self and Bruno.
70266
70267 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70270         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70271         (EOVERFLOW): Define if the system does not.
70272         Do not include "minmax.h"; it wasn't used.
70273         (snprintf): Don't assume size_t promotes to an unsigned type.
70274         Fix bug when generated string was too long for the buffer: the
70275         buffer's contents are supposed to be the initial prefix of the
70276         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70277         exceeds INT_MAX; do the check ourselves.
70278
70279         Import the following changes from libc:
70280
70281         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70282
70283         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70284         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70285         set wc to the byte which couldn't be converted.
70286         (re_string_reconstruct): Don't clear valid_raw_len before calling
70287         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70288         tip_context using re_string_context_at.
70289
70290         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70291
70292         * lib/posix/regex.h: g++ still cannot handled [restrict].
70293
70294         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70295
70296         * lib/posix/regex.h: Remove special handling for VMS.
70297
70298 2006-08-10  Jim Meyering  <jim@meyering.net>
70299
70300         * modules/same-inode: New module.
70301         * modules/dev-ino: New module.
70302         * modules/cycle-check: Depend on these modules, rather than simply
70303         including their .h files.
70304         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70305         required via m4/cycle-check.m4.
70306         * modules/same: Depend on new same-inode module, rather than
70307         including same-inode.h.
70308         * modules/chdir-safer: New file.
70309
70310         * modules/chown (Depends-on): Add stat-macros.
70311
70312 2006-08-10  Jim Meyering  <jim@meyering.net>
70313
70314         * m4/cycle-check.m4: New file.
70315         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70316         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70317
70318 2006-08-10  Eric Blake  <ebb9@byu.net>
70319
70320         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70321         in from original proposal.
70322
70323 2006-08-10  Eric Blake  <ebb9@byu.net>
70324         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70325
70326         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70327         namespace.
70328
70329 2006-08-10  Bruno Haible  <bruno@clisp.org>
70330
70331         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70332         as well.
70333
70334 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70335
70336         Sync from coreutils.
70337
70338         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70339
70340         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70341         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70342
70343 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         * modules/restrict: Remove; no longer needed now that we assume
70346         Autoconf 2.59 or later.
70347         * MODULES.html.sh: Remove 'restrict'.
70348         * modules/argp (Depends-on): Remove 'restrict'.
70349         * modules/base64 (Depends-on): Likewise.
70350         * modules/gc (Depends-on): Likewise.
70351         * modules/getaddrinfo (Depends-on): Likewise.
70352         * modules/glob (Depends-on): Likewise.
70353         * modules/inet_ntop (Depends-on): Likewise.
70354         * modules/inet_pton (Depends-on): Likewise.
70355         * modules/memxor (Depends-on): Likewise.
70356         * modules/regex (Depends-on): Likewise.
70357         * modules/strtok_r (Depends-on): Likewise.
70358         * modules/time_r (Depends-on): Likewise.
70359
70360 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70361
70362         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70363         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70364         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70365         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70366         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70367         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70368         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70369         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70370
70371         Merge from coreutils.
70372         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70373         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70374         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70375         * m4/time_r.m4 (gl_TIME_R): Likewise.
70376
70377 2006-08-09  Karl Berry  <karl@gnu.org>
70378
70379         * config/srclist.txt: no more gettext-tools, per Bruno.
70380
70381 2006-08-08  Eric Blake  <ebb9@byu.net>
70382
70383         * modules/verror: New module.
70384         * MODULES.html.sh: Document it.
70385
70386 2006-08-08  Eric Blake  <ebb9@byu.net>
70387
70388         * lib/verror.h, lib/verror.c: New files.
70389
70390 2006-08-08  Eric Blake  <ebb9@byu.net>
70391
70392         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70393         verror_at_line output complies with GNU Coding Standards even when
70394         file is NULL.
70395
70396 2006-08-07  Bruno Haible  <bruno@clisp.org>
70397
70398         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70399         versions of AIX.
70400         Reported by Ralf Wildenhues.
70401
70402 2006-08-07  Bruno Haible  <bruno@clisp.org>
70403
70404         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70405         in an AC_DEFUN. Needed so that the autoconf snippets can use
70406         AC_REQUIRE.
70407
70408 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70409
70410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70411         Initialize pkgdata_DATA.
70412         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70413         overriding it.
70414
70415 2006-08-06  Eric Blake  <ebb9@byu.net>
70416
70417         * lib/error.h: Fold in some upstream changes from glibc.
70418         * lib/error.c: Likewise.
70419
70420 2006-08-04  Bruno Haible  <bruno@clisp.org>
70421
70422         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70423         Make the mostlyclean-local rule depend on mostlyclean-generic.
70424         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70425
70426 2006-07-31  Bruno Haible  <bruno@clisp.org>
70427
70428         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70429         <stdlib.h>, <string.h>.
70430
70431 2006-07-30  Bruno Haible  <bruno@clisp.org>
70432
70433         * modules/readlink (License): Change to LGPL.
70434
70435 2006-07-30  Bruno Haible  <bruno@clisp.org>
70436
70437         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70438         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70439         set PKGDATADIR to point to it.
70440
70441 2006-07-30  Bruno Haible  <bruno@clisp.org>
70442
70443         * modules/csharpexec (configure.ac): Comment out macro invocation.
70444         * modules/javaexec (configure.ac): Likewise.
70445         * modules/javacomp-script (configure.ac): Likewise.
70446
70447         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70448
70449 2006-07-30  Bruno Haible  <bruno@clisp.org>
70450
70451         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70452         linked-list.
70453
70454 2006-07-30  Bruno Haible  <bruno@clisp.org>
70455
70456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70457
70458 2006-07-30  Bruno Haible  <bruno@clisp.org>
70459
70460         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70461         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70462         get removed.
70463
70464 2006-07-29  Bruno Haible  <bruno@clisp.org>
70465
70466         Make it possible for gnulib-tool to work with locally modified or
70467         augmented gnulib repositories.
70468         * gnulib-tool (func_usage): Document --local-dir option.
70469         (local_gnulib_dir): New variable.
70470         Handle --local-dir option.
70471         (func_lookup_file): New function.
70472         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70473         (func_get_description, func_get_filelist, func_get_description,
70474         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70475         func_get_automake_snippet, func_get_include_directive,
70476         func_get_license, func_get_maintainer): Use func_lookup_file.
70477         (func_import, func_create_testdir): Use func_lookup_file.
70478
70479 2006-07-29  Bruno Haible  <bruno@clisp.org>
70480
70481         * modules/setenv (Depends-on): Add unistd.
70482
70483 2006-07-29  Bruno Haible  <bruno@clisp.org>
70484
70485         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70486
70487 2006-07-29  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70490
70491 2006-07-29  Bruno Haible  <bruno@clisp.org>
70492
70493         * gnulib-tool (import, update): If there is no Makefile.am, look at
70494         aclocal.m4, instead of bailing out.
70495
70496 2006-07-29  Bruno Haible  <bruno@clisp.org>
70497
70498         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70499         Categorize the options by when they are useful.
70500
70501 2006-07-29  Bruno Haible  <bruno@clisp.org>
70502
70503         * gnulib-tool (func_usage): Document option --no-libtool.
70504         Handle option --no-libtool.
70505         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70506         for changed semantics of $libtool variable.
70507         (func_import): Likewise. If libtool is not used, show this through
70508         an option --no-libtool.
70509         (func_create_testdir): Update.
70510
70511 2006-07-29  Bruno Haible  <bruno@clisp.org>
70512
70513         * gnulib-tool (func_import): Extend error message about missing
70514         --doc-base.
70515
70516 2006-07-29  Bruno Haible  <bruno@clisp.org>
70517
70518         * gnulib-tool (func_import): Don't create the $docbase directory if
70519         there is no file to store there.
70520
70521 2006-07-29  Bruno Haible  <bruno@clisp.org>
70522
70523         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70524         relevant, look for configure.ac there, not in the current directory.
70525         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70526
70527 2006-07-29  Bruno Haible  <bruno@clisp.org>
70528
70529         * gnulib-tool (SORT): New variable.
70530         (func_usage): Undocument --assume-autoconf option.
70531         Remove --assume-autoconf option handling.
70532         (autoconf_minversion): Determine from the contents of configure.ac.
70533         (func_import): Remove autoconf_minversion handling.
70534         Suggested by Eric Blake.
70535
70536 2006-07-29  Bruno Haible  <bruno@clisp.org>
70537
70538         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70539
70540 2006-07-29  Bruno Haible  <bruno@clisp.org>
70541
70542         * config/srclist.txt (*setenv.[ch]): Remove rules.
70543
70544 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70545
70546         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70547
70548 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70549
70550         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70551         arpa/inet.h.
70552
70553 2006-07-28  Simon Josefsson  <jas@extundo.com>
70554
70555         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70556         * modules/inet_pton (Depends-on): Likewise.
70557
70558 2006-07-28  Simon Josefsson  <jas@extundo.com>
70559
70560         * m4/netinet_in_h.m4: New file.
70561
70562 2006-07-28  Simon Josefsson  <jas@extundo.com>
70563
70564         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70565         #include's.
70566
70567 2006-07-28  Simon Josefsson  <jas@extundo.com>
70568
70569         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70570         #include's.
70571
70572 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70573
70574         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70575         setgid on directories only if they set these bits.
70576         * lib/modechange.h: Remove obsolete comment about masks.
70577
70578 2006-07-28  Eric Blake  <ebb9@byu.net>
70579
70580         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70581         macro expansion.
70582
70583 2006-07-28  Bruno Haible  <bruno@clisp.org>
70584
70585         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70586
70587 2006-07-28  Bruno Haible  <bruno@clisp.org>
70588
70589         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70590
70591 2006-07-28  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70594         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70595         Define fallbacks.
70596         Avoids link error on FreeBSD 4.x.
70597         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70598
70599         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70600         encoding.
70601         * lib/mbswidth.c (iswcntrl): Likewise.
70602
70603 2006-07-27  Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70606         test.
70607
70608 2006-07-27  Bruno Haible  <bruno@clisp.org>
70609
70610         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70611         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70612         defined.
70613
70614 2006-07-26  Eric Blake  <ebb9@byu.net>
70615
70616         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70617
70618 2006-07-26  Eric Blake  <ebb9@byu.net>
70619
70620         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70621         like mingw that lack mkstemp.
70622         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70623         avoid compilation warning on mingw.
70624
70625 2006-07-26  Bruno Haible  <bruno@clisp.org>
70626
70627         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70628         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70629         INT_FAST*_MIN, INTPTR_MIN.
70630
70631 2006-07-25  Bruno Haible  <bruno@clisp.org>
70632
70633         * modules/version-etc (Depends-on): Add stdarg.
70634
70635 2006-07-25  Bruno Haible  <bruno@clisp.org>
70636
70637         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70638         complex commands.
70639
70640 2006-07-25  Bruno Haible  <bruno@clisp.org>
70641
70642         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70643         defined in <stdarg.h> or config.h.
70644
70645 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70648         (gl_STDIO_SAFER): Remove.
70649
70650 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * MODULES.html.sh (File stream based Input/Output):
70653         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70654         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70655         * modules/fopen-safer, modules/tmpfile-safer: New files.
70656         * modules/stdio-safer: Remove.
70657
70658 2006-07-24  Bruno Haible  <bruno@clisp.org>
70659
70660         * modules/tmpdir: New file.
70661         * MODULES.html.sh (File system functions): Add it.
70662
70663 2006-07-24  Bruno Haible  <bruno@clisp.org>
70664
70665         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70666         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70667
70668 2006-07-24  Bruno Haible  <bruno@clisp.org>
70669
70670         * modules/clean-temp: New file.
70671
70672 2006-07-24  Bruno Haible  <bruno@clisp.org>
70673
70674         * m4/tmpdir.m4: New file, from GNU gettext.
70675
70676 2006-07-24  Bruno Haible  <bruno@clisp.org>
70677
70678         * lib/tmpdir.h: New file, from GNU gettext.
70679         * lib/tmpdir.c: New file, from GNU gettext.
70680
70681 2006-07-24  Bruno Haible  <bruno@clisp.org>
70682
70683         * lib/clean-temp.h: New file, from GNU gettext.
70684         * lib/clean-temp.c: New file, from GNU gettext.
70685
70686 2006-07-23  Eric Blake  <ebb9@byu.net>
70687
70688         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70689         (Depends-on): Add binary-io.
70690
70691 2006-07-23  Eric Blake  <ebb9@byu.net>
70692
70693         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70694
70695 2006-07-23  Eric Blake  <ebb9@byu.net>
70696
70697         * lib/tmpfile-safer.c: New file.
70698         * lib/stdio-safer.h (fopen_safer): Add prototype.
70699         * lib/stdio--.h (tmpfile): Make safer.
70700
70701 2006-07-23  Bruno Haible  <bruno@clisp.org>
70702
70703         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70704         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70705         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70706         gl_linked_remove_at): Use it.
70707
70708 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70709         and Simon Josefsson <jas@extundo.com>
70710
70711         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70712
70713         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70714
70715 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70716
70717         * modules/close-stream: New file.
70718         * modules/closeout (Description): Make it clear that it exits
70719         with a diagnostic on error.
70720         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70721         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70722
70723 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * m4/close-stream.m4: New file.
70726
70727 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * lib/close-stream.c, lib/close-stream.h: New files.
70730
70731 2006-07-22  Bruno Haible  <bruno@clisp.org>
70732
70733         Merge from GNU gettext 0.15.
70734
70735         2006-05-01  Bruno Haible  <bruno@clisp.org>
70736
70737                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70738
70739         2006-07-22  Bruno Haible  <bruno@clisp.org>
70740
70741                 * modules/javaversion: New file.
70742                 * MODULES.html.sh (Java): Add javaversion.
70743
70744         2006-03-12  Bruno Haible  <bruno@clisp.org>
70745
70746                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70747
70748         2005-12-04  Bruno Haible  <bruno@clisp.org>
70749
70750                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70751                 (untested).
70752
70753         2006-06-21  Bruno Haible  <bruno@clisp.org>
70754
70755                 Avoid warnings from recent versions of mcs.
70756                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70757                 -o, -L, -r any more. Use options documented since mcs-1.0
70758                 instead. Similarly for -g.
70759
70760         2005-12-04  Bruno Haible  <bruno@clisp.org>
70761
70762                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70763                 .resources, not .resource.
70764
70765         2005-07-09  Bruno Haible  <bruno@clisp.org>
70766
70767                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70768                 add a .dll suffix.
70769                 Reported by Mark Junker <mjscod@gmx.de>.
70770
70771         2006-07-22  Bruno Haible  <bruno@clisp.org>
70772
70773                 * modules/gettext: Upgrade to gettext-0.15.
70774                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70775                 m4/visibility.m4.
70776                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70777
70778 2006-07-22  Bruno Haible  <bruno@clisp.org>
70779
70780         Merge from GNU gettext 0.15.
70781
70782         2006-03-25  Bruno Haible  <bruno@clisp.org>
70783
70784                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70785
70786         2006-07-21  Bruno Haible  <bruno@clisp.org>
70787
70788                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70789                 "1.1".
70790
70791         2006-05-09  Bruno Haible  <bruno@clisp.org>
70792
70793                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70794                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70795                 for the conftestver execution.
70796
70797         2006-05-01  Bruno Haible  <bruno@clisp.org>
70798
70799                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70800                 optional target-version argument. Verify that the compiler
70801                 groks source of the specified source-version, or add -source
70802                 option as necessary. Verify that the compiler produces
70803                 bytecode in the specified target-version, or add -target and
70804                 -source options as necessary. Make the result of the test
70805                 available as variable CONF_JAVAC. Also log error output in
70806                 config.log.
70807
70808         2006-03-11  Bruno Haible  <bruno@clisp.org>
70809
70810                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70811
70812         2006-05-09  Bruno Haible  <bruno@clisp.org>
70813
70814                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70815                 CLASSPATH_SEPARATOR to a semicolon.
70816
70817         2006-03-12  Bruno Haible  <bruno@clisp.org>
70818
70819                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70820                 available as variable CONF_JAVA, for subsequent autoconf
70821                 tests. Also log error output in config.log.
70822
70823         2006-07-19  Bruno Haible  <bruno@clisp.org>
70824
70825                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70826                 that getline works on glibc2 systems. Needed to avoid trouble
70827                 in relocatable.c.
70828                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70829
70830         2005-12-04  Bruno Haible  <bruno@clisp.org>
70831
70832                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70833                 launcher (untested).
70834
70835         2005-12-04  Bruno Haible  <bruno@clisp.org>
70836
70837                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70838
70839         2006-07-22  Bruno Haible  <bruno@clisp.org>
70840
70841                 * gettext.m4: Update from GNU gettext-0.15.
70842                 * nls.m4: Likewise.
70843                 * po.m4: Likewise.
70844                 * inttypes-pri.m4: Likewise.
70845                 * inttypes-h.m4: Renamed from inttypes.m4.
70846                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70847
70848 2006-07-22  Bruno Haible  <bruno@clisp.org>
70849
70850         Merge from GNU gettext 0.15.
70851
70852         2005-07-05  Bruno Haible  <bruno@clisp.org>
70853
70854                 * printf-args.c (printf_fetchargs): Work around broken
70855                 definition of wint_t on mingw.
70856
70857         2005-02-12  Bruno Haible  <bruno@clisp.org>
70858
70859                 * xallocsa.h: Add extern "C" for C++.
70860
70861         2006-05-17  Bruno Haible  <bruno@clisp.org>
70862
70863                 Cygwin portability.
70864                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70865
70866         2006-04-30  Bruno Haible  <bruno@clisp.org>
70867
70868                 * progreloc.c: Include <mach-o/dyld.h> if available.
70869                 (find_executable): Use _NSGetExecutablePath when possible.
70870
70871         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70872
70873                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70874                 function.
70875
70876         2005-12-29  Bruno Haible  <bruno@clisp.org>
70877
70878                 * progreloc.c (set_program_name_and_installdir): Fix
70879                 compilation error.
70880
70881         2005-12-04  Bruno Haible  <bruno@clisp.org>
70882
70883                 Cygwin portability.
70884                 * progreloc.c: Include <windows.h> also on Cygwin.
70885                 (find_executable): Add support for Cygwin.
70886                 (set_program_name_and_installdir): Handle also platforms with
70887                 nonempty EXEEXT.
70888
70889         2006-07-11  Bruno Haible  <bruno@clisp.org>
70890
70891                 * javacomp.c: Fix a comment.
70892                 Reported by Jim Meyering.
70893
70894         2006-04-30  Bruno Haible  <bruno@clisp.org>
70895
70896                 * javacomp.h (compile_java_class): Add source_version,
70897                 target_version arguments.
70898                 * javacomp.c: Rewritten to choose only a compiler that
70899                 respects the specified source_version and target_version.
70900
70901         2006-06-27  Bruno Haible  <bruno@clisp.org>
70902
70903                 Assume correct S_ISDIR macro.
70904                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70905
70906         2006-07-22  Bruno Haible  <bruno@clisp.org>
70907
70908                 * javaversion.h: New file, from GNU gettext.
70909                 * javaversion.c: New file, from GNU gettext.
70910                 * javaversion.java: New file, from GNU gettext.
70911                 * javaversion.class: New file, from GNU gettext.
70912
70913         2006-05-17  Bruno Haible  <bruno@clisp.org>
70914
70915                 Cygwin portability.
70916                 * javaexec.c (execute_java_class): Test for jview program
70917                 also on Cygwin.
70918
70919         2006-04-09  Bruno Haible  <bruno@clisp.org>
70920
70921                 * fatal-signal.c: Don't include string.h.
70922                 (at_fatal_signal): Use a copying loop instead of memcpy.
70923
70924         2005-12-04  Bruno Haible  <bruno@clisp.org>
70925
70926                 * csharpexec.c: Add support for 'clix' launcher (untested).
70927                 (execute_csharp_using_sscli): New function.
70928                 (execute_csharp_program): Call it.
70929
70930         2006-06-21  Bruno Haible  <bruno@clisp.org>
70931
70932                 Avoid warnings from recent versions of mcs.
70933                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70934                 -o, -L, -r any more. Use options documented since mcs-1.0
70935                 instead. Similarly for -g.
70936
70937         2005-07-09  Bruno Haible  <bruno@clisp.org>
70938
70939                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70940                 add a .dll suffix.
70941                 Reported by Mark Junker <mjscod@gmx.de>.
70942
70943         2006-06-17  Bruno Haible  <bruno@clisp.org>
70944
70945                 * config.charset: Update for NetBSD 3.0.
70946
70947         2006-05-17  Bruno Haible  <bruno@clisp.org>
70948
70949                 Cygwin portability.
70950                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70951
70952         2006-05-16  Bruno Haible  <bruno@clisp.org>
70953
70954                 * localcharset.c [CYGWIN]: Include <windows.h>.
70955                 (get_charset_aliases): For Cygwin, return the same CPxxx
70956                 aliases list as under WIN32.
70957                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70958                 the environment variables. Fall back to GetACP().
70959
70960         2006-04-05  Bruno Haible  <bruno@clisp.org>
70961
70962                 * config.charset: Update Juan Manuel Guerrero's address.
70963
70964         2005-02-12  Bruno Haible  <bruno@clisp.org>
70965
70966                 * allocsa.h: Add extern "C" for C++.
70967
70968         2005-02-10  Bruno Haible  <bruno@clisp.org>
70969
70970                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70971                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70972
70973         2006-07-22  Bruno Haible  <bruno@clisp.org>
70974
70975                 * gettext.h: Update to GNU gettext-0.15.
70976
70977 2006-07-22  Bruno Haible  <bruno@clisp.org>
70978
70979         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70980         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70981         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70982
70983 2006-07-21  Eric Blake  <ebb9@byu.net>
70984
70985         * modules/stdlib-safer: New file.
70986         * MODULES.html.sh (File stream based Input/Output): Add
70987         stdlib-safer.
70988
70989 2006-07-21  Eric Blake  <ebb9@byu.net>
70990
70991         * lib/stdlib-safer.h: New file from coreutils, required by
70992         stdlib--.h.
70993
70994 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70997
70998 2006-07-20  Bruno Haible  <bruno@clisp.org>
70999
71000         * gnulib-tool: Recognize new option --assume-autoconf.
71001         (autoconf_minversion): New variable.
71002         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71003
71004 2006-07-20  Bruno Haible  <bruno@clisp.org>
71005
71006         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71007
71008 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71009
71010         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71011         Reindent and repaginate.
71012
71013 2006-07-19  Derek Price  <derek@ximbiot.com>
71014
71015         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71016         Correct grammar.
71017
71018 2006-07-17  Bruno Haible  <bruno@clisp.org>
71019
71020         * modules/list: New file.
71021         * modules/array-list: New file.
71022         * modules/carray-list, modules/carray-list-tests: New files.
71023         * modules/linked-list, modules/linked-list-tests: New files.
71024         * modules/avltree-list, modules/avltree-list-tests: New files.
71025         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71026         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71027         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71028         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71029         * modules/oset: New file.
71030         * modules/array-oset: New file.
71031         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71032         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71033         * tests/test-carray_list.c: New file.
71034         * tests/test-linked_list.c: New file.
71035         * tests/test-avltree_list.c: New file.
71036         * tests/test-rbtree_list.c: New file.
71037         * tests/test-linkedhash_list.c: New file.
71038         * tests/test-avltreehash_list.c: New file.
71039         * tests/test-rbtreehash_list.c: New file.
71040         * tests/test-avltree_oset.c: New file.
71041         * tests/test-rbtree_oset.c: New file.
71042         * MODULES.html.sh (Container data structures): New section.
71043
71044 2006-07-17  Bruno Haible  <bruno@clisp.org>
71045
71046         * m4/gl_list.m4: New file.
71047
71048 2006-07-17  Bruno Haible  <bruno@clisp.org>
71049
71050         * lib/gl_list.h: New file.
71051         * lib/gl_list.c: New file.
71052         * lib/gl_array_list.h: New file.
71053         * lib/gl_array_list.c: New file.
71054         * lib/gl_carray_list.h: New file.
71055         * lib/gl_carray_list.c: New file.
71056         * lib/gl_linked_list.h: New file.
71057         * lib/gl_linked_list.c: New file.
71058         * lib/gl_anylinked_list1.h: New file.
71059         * lib/gl_anylinked_list2.h: New file.
71060         * lib/gl_avltree_list.h: New file.
71061         * lib/gl_avltree_list.c: New file.
71062         * lib/gl_anyavltree_list1.h: New file.
71063         * lib/gl_anyavltree_list2.h: New file.
71064         * lib/gl_rbtree_list.h: New file.
71065         * lib/gl_rbtree_list.c: New file.
71066         * lib/gl_anyrbtree_list1.h: New file.
71067         * lib/gl_anyrbtree_list2.h: New file.
71068         * lib/gl_anytree_list1.h: New file.
71069         * lib/gl_anytree_list2.h: New file.
71070         * lib/gl_linkedhash_list.h: New file.
71071         * lib/gl_linkedhash_list.c: New file.
71072         * lib/gl_anyhash_list1.h: New file.
71073         * lib/gl_anyhash_list2.h: New file.
71074         * lib/gl_avltreehash_list.h: New file.
71075         * lib/gl_avltreehash_list.c: New file.
71076         * lib/gl_rbtreehash_list.h: New file.
71077         * lib/gl_rbtreehash_list.c: New file.
71078         * lib/gl_anytreehash_list1.h: New file.
71079         * lib/gl_anytreehash_list2.h: New file.
71080
71081         * lib/gl_oset.h: New file.
71082         * lib/gl_oset.c: New file.
71083         * lib/gl_array_oset.h: New file.
71084         * lib/gl_array_oset.c: New file.
71085         * lib/gl_avltree_oset.h: New file.
71086         * lib/gl_avltree_oset.c: New file.
71087         * lib/gl_rbtree_oset.h: New file.
71088         * lib/gl_rbtree_oset.c: New file.
71089         * lib/gl_anytree_oset.h: New file.
71090
71091 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71092
71093         * m4/mkancesdirs.m4: New file.
71094         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71095         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71096         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71097         it.
71098
71099 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71102         * lib/mkancesdirs.h: New files.
71103         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71104         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71105         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71106         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71107         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71108         callers changed.  Revamp internals significantly, by not
71109         attempting to create directories that are temporarily more
71110         permissive than the final results.  Do not attempt to use
71111         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71112         This removes some race conditions, fixes some bugs, and simplifies
71113         things.  Use new dirchownmod function to do owner and mode changes.
71114         * lib/mkdir-p.h: Likewise.
71115         * lib/modechange.c (octal_to_mode): New function.
71116         (struct mode_change): New member mentioned.
71117         (make_node_op_equals): New arg mentioned.  All callers changed.
71118         (mode_compile): Keep track of which mode bits the user has explicitly
71119         mentioned.
71120         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71121         New arg PMODE_BITS, to keep track of which mode bits the user
71122         mentioned; it treats S_ISUID and S_ISGID speciall.
71123         All callers changed.
71124         * lib/modechange.h: Likewise.
71125
71126 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * MODULES.html.sh: Add mkancestors.
71129         * modules/mkancesdirs: New module.
71130         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71131         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71132         The chdir-safer and afs files are now orphans; I'll remove them
71133         unless someone speaks up.
71134         Add lib/dirchownmod.c, lib/dirchownmod.h.
71135         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71136         Add lchown, mkancesdirs.
71137         (Maintainer): Add self.
71138
71139 2006-07-15  Karl Berry  <karl@gnu.org>
71140
71141         * gnulib-tool: help message wording/arrangement.
71142
71143 2006-07-14  Simon Josefsson  <jas@extundo.com>
71144
71145         * doc/gnulib.texi (Libtool and Windows): New section.
71146
71147 2006-07-12  Simon Josefsson  <jas@extundo.com>
71148
71149         * modules/gendocs (License): Fix license, approved by Karl.
71150
71151 2006-07-12  Eric Blake  <ebb9@byu.net>
71152
71153         * MODULES.html.sh: Add gendocs.
71154
71155 2006-07-11  Eric Blake  <ebb9@byu.net>
71156
71157         * modules/fdl: New module, to install doc/fdl.texi.
71158         * MODULES.html.sh: Add new section for documentation modules.
71159         * gnulib-tool: Avoid space-tab.
71160         (--doc-base): New option, to manage files from doc.
71161
71162 2006-07-11  Eric Blake  <ebb9@byu.net>
71163
71164         * m4/absolute-header.m4: Fix comments to match recent change.
71165
71166 2006-07-11  Eric Blake  <ebb9@byu.net>
71167
71168         * gnulib-tool: List --doc-base before --tests-base.
71169
71170 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71171
71172         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71173
71174 2006-07-11  Bruno Haible  <bruno@clisp.org>
71175
71176         * README: Mention where to put documentation.
71177
71178 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71179
71180         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71181
71182 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71183
71184         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71185         to stdint.m4.
71186
71187 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71190         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71191         "no/such/file/stdint.h" when there is no such file, so that
71192         the resulting C code can be parsed by dodgy compilers.
71193         Problems reported by Bob Proulx.
71194
71195 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71196
71197         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71198         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71199         macros into the GNU _D_EXACT_NAMLEN.
71200         * lib/savedir.c:  Likewise.
71201         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71202
71203 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71204         and Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71207         * m4/savedir.m4:
71208         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71209         macros into the GNU _D_EXACT_NAMLEN.
71210
71211 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71214         around the absolute name, to work around a problem with the HP-UX
71215         11.23 native C compiler, reported by Bob Proulx.
71216
71217 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * doc/maintain.texi, make-stds.texi: Sync from
71220         <http://savannah.gnu.org/projects/gnustandards>.
71221
71222 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71223
71224         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71225
71226 2006-07-09  Jim Meyering  <jim@meyering.net>
71227
71228         * m4/glob.m4: Remove a doubled word in a comment.
71229
71230 2006-07-09  Jim Meyering  <jim@meyering.net>
71231
71232         * lib/argp-pv.c: Remove a doubled word in a comment.
71233         * lib/check-version.c (check_version): Likewise.
71234         * lib/javacomp.c (compile_java_class): Likewise.
71235
71236 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71239         for the benefit of people using Autoconf 2.60.  If you want to
71240         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71241         (or m4/onceonly.m4, if pre-2.57) manually.
71242
71243 2006-07-08  Jim Meyering  <jim@meyering.net>
71244
71245         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71246         comment.
71247         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71248         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71249         comment.
71250
71251 2006-07-08  Jim Meyering  <jim@meyering.net>
71252
71253         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71254
71255 2006-07-07  Simon Josefsson  <jas@extundo.com>
71256
71257         * tests/test-crc.c: Change expected crc value, the test vector
71258         were probably computed using the old broken crc.c?
71259
71260 2006-07-06  Simon Josefsson  <jas@extundo.com>
71261
71262         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71263         now the canonical place for the M4 file).
71264
71265         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71266         from the sys_socket dependency now.
71267
71268         * modules/inet_pton (Files): Ditto.
71269
71270         * modules/inet_ntop (Files): Ditto.
71271
71272 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71273
71274         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71275         not gl_PREREQ_GETUSERSHELL.
71276
71277 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71278
71279         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71280         with only one argument, for Autoconf 2.60.
71281         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71282         expand to nothing, so add a shell command to avoid syntax error.
71283         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71284
71285 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71286
71287         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71288
71289 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71290
71291         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71292         no longer needed.  Check for isblank decl.
71293         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71294         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71295         of existence.
71296
71297 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71298
71299         * lib/getloadavg.c: Use __VMS, not VMS.
71300         * lib/getopt.c: Likewise.
71301         * lib/getpagesize.h: Likewise.
71302         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71303         and probably does not work.
71304
71305 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * lib/.cppi-disable: Add wcwidth.
71308         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71309         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71310         (ISGRAPH): Remove.  All uses changed to isgraph.
71311         (FOLD) [!defined _LIBC]: Remove special case.
71312         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71313         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71314         HAVE_ISBLANK.
71315         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71316         case.
71317
71318 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71319
71320         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71321         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71322         brackets.  Other minor changes to suppress some compiler
71323         warnings.
71324
71325 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71326         and Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71329         of invoking obsolescent AC_HEADER_DIRENT macro.
71330         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71331         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71332         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71333         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71334         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71335         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71336         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71337         * m4/readdir.m4: Remove; no longer needed.
71338
71339 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71340         and Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71343         Don't worry about this obsolete case any more.
71344         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71345         directories.
71346         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71347         worry about this obsolete case any more.
71348         * lib/fts.c: Likewise.
71349         * lib/getcwd.c: Likewise.
71350         * lib/glob.h: Likewise.
71351         * lib/savedir.c: Likewise.
71352
71353 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71354
71355         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71356         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71357         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71358         needed.
71359         All uses removed.
71360         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71361         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71362         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71363         needed.
71364         * m4/getdate.m4 (gl_GETDATE): Likewise.
71365         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71366         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71367         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71368         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71369         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71370         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71371         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71372         needed.
71373
71374 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71375
71376         * lib/memcasecmp.c: Include <limits.h>.
71377         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71378         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71379         Don't assume isdigit succeeds only on '0' through '9'.
71380
71381 2006-07-05  Eric Blake  <ebb9@byu.net>
71382
71383         * modules/getaddrinfo (Depends-on): Add snprintf.
71384
71385 2006-07-05  Eric Blake  <ebb9@byu.net>
71386
71387         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71388         to avoid 'header present but could not be compiled' on cygwin.
71389
71390 2006-07-05  Eric Blake  <ebb9@byu.net>
71391
71392         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71393         missing from netdb.h.
71394         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71395
71396 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71397
71398         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71399         no longer needed.
71400         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71401         * m4/getdate.m4 (gl_GETDATE): Likewise.
71402         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71403         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71404         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71405         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71406         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71407
71408 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71409
71410         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71411         All uses of is_space replaced by isspace.
71412         * lib/exit.h: Don't talk about STDC_HEADERS.
71413         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71414         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71415         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71416         replaced by isprint etc.
71417         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71418         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71419         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71420         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71421         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71422         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71423
71424 2006-07-05  Bruno Haible  <bruno@clisp.org>
71425
71426         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71427         the function exists, before testing against AIX.
71428         Reported by Martin Lambers <marlam@marlam.de>.
71429
71430 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71433         From Mark D. Baushke.
71434
71435 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71438         to the absolute name, not just one, to bypass Sun C 5.8's
71439         "warning: #include of /usr/include/... may be non-portable".
71440
71441 2006-07-04  Eric Blake  <ebb9@byu.net>
71442
71443         * modules/dirname-tests: New test module.
71444         * tests/test-dirname.c: New file, replacing dirname.c
71445         TEST_DIRNAME section that was recently deleted.
71446
71447 2006-07-04  Bruno Haible  <bruno@clisp.org>
71448
71449         Assume ANSI C header files and <ctype.h> functions.
71450         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71451         (mbsnwidth): Use isprint, iscntrl instead.
71452
71453 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         Merge from coreutils.
71456         * MODULES.html.sh: Add xstrtold.
71457         * modules/xstrtold: New file.
71458         * modules/cycle-check (Files): Add lib/same-inode.h.
71459         * modules/dirname (Files): Add m4/double-slash-root.m4.
71460         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71461         * modules/mkdir-p (Files): Add lib/same-inode.h.
71462         * modules/same (Files): Add lib/same-inode.h.
71463
71464 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71467         This is to keep the terminology clean; POSIX talks about
71468         "absolute pathnames", not "full pathnames", but the GNU
71469         Coding Standards say to use "path" for something else;
71470         so use "absolute" to keep both sides happy.
71471         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71472         Set gl_absolute_header, not gl_full_header_path.
71473         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71474         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71475         All uses changed.
71476
71477         Merge from coreutils.
71478
71479         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71480
71481         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71482         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71483         want to require the building of c-strtod.o.
71484         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71485         needs -lm directly.
71486         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71487
71488         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71489
71490         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71491         --as-needed option if available.  Problem reported by Albert Chin in
71492         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71493         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71494         cc merely issues a bunch of annoying warnings for --as-needed
71495         (this problem was reported by Bob Proulx).  Also, try linking with
71496         -lm to detect a bug in binutils 2.16 (this problem was reported
71497         by Ralf Wildenhues).
71498
71499         2006-06-18  Jim Meyering  <jim@meyering.net>
71500
71501         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71502         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71503         macro.
71504         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71505         also check for glibc-2.4's abort-inducing bug.
71506
71507         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71508         Low-probability clean-up should be to use rmdir to get rid of
71509         the just-created directory, not unlink.
71510
71511         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71512         configure fail, and request a bug report to inform us about it.
71513         Add a comment that, barring reports to the contrary, in 2007 we'll
71514         assume ftruncate is universally available.
71515
71516         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71519
71520         2006-03-12  Jim Meyering  <jim@meyering.net>
71521
71522         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71523         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71524         * m4/same.m4 (gl_SAME): Likewise.
71525         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71526
71527         2006-03-11  Eric Blake  <ebb9@byu.net>
71528
71529         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71530         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71531         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71532         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71533
71534 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71537         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71538         reported by Mark D. Baushke, one in
71539         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71540
71541         Merge from coreutils.
71542
71543         * lib/.cppi-disable: Add stdint_.h.
71544         * lib/.cvsignore: Add stdint.h.
71545
71546         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71549         both double and long double versions.
71550         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71551         * lib/xstrtold.c: New file.
71552         * lib/xstrtod.h (xstrtold): New decl.
71553
71554         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71555
71556         * lib/filemode.c (setst): Remove.
71557         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71558         (arguably) clearer, and the generated code is a bit smaller on my
71559         Debian GNU/Linux stable x86 host.
71560
71561         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71564         Assume that filemode.h includes sys/types.h and sys/stat.h.
71565         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71566         (ftypelet): Reorder to put common cases first, for efficiency.
71567         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71568         to do 'M'.
71569         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71570         of 10, for compatibility with FreeBSD.  All callers changed.
71571         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71572         types that can't be deduced solely from st_mode.  First arg is now a
71573         const pointer.
71574         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71575         (strmode): Renamed from mode_string.
71576         (filemodestring): New decl.
71577         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71578         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71579         needed.
71580         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71581
71582         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71585         fsusage.h now does that.  Include fsusage.h first, to test interface.
71586         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71587         at most one method (the old code could have generated decls that
71588         didn't conform to C89, not that this was ever exercised).
71589         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71590
71591         2006-03-19  Jim Meyering  <jim@meyering.net>
71592
71593         Work even in a chroot where d_ino values for entries in "/"
71594         don't match the stat.st_ino values for the same names.
71595         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71596         number, iterate through all entries again, using lstat instead.
71597         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71598         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71599
71600         * lib/getcwd.c (__getcwd): Clarify a comment.
71601         Use memcpy in place of a call to strcpy.
71602
71603         2006-03-12  Jim Meyering  <jim@meyering.net>
71604
71605         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71606         matches that of the current directory (which we're about to chdir ".."
71607         out of), then save the dev-ino of the parent, instead.
71608
71609         * lib/same-inode.h (SAME_INODE): New file/macro.
71610         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71611         Include "same-inode.h", instead.
71612         * lib/same.c: Likewise.
71613         * lib/cycle-check.h: Include "same-inode.h".
71614         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71615         * lib/cycle-check.c (SAME_INODE): Remove definition.
71616         * lib/root-dev-ino.h: Include "same-inode.h".
71617
71618         2006-03-11  Eric Blake  <ebb9@byu.net>
71619
71620         * lib/same.c (same_name): s/base_name/last_component/
71621         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71622         * lib/filenamecat.c (file_name_concat): Likewise.
71623
71624         2006-03-11  Eric Blake  <ebb9@byu.net>,
71625                     Paul Eggert  <eggert@cs.ucla.edu>
71626
71627         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71628         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71629         drive prefix.
71630         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71631         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71632         (last_component): New method.
71633         * lib/dirname.c (dir_len): Determine when drive letters need a
71634         subsequent slash.  Preserve // when it is special.
71635         (dir_name): Don't append dot when drive letter is absolute.
71636         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71637         * lib/basename.c (base_name): New semantics - malloc the result.
71638         Preserve // when it is special.  Preserve relative files that look
71639         like drive letters.
71640         (base_len): Preserve // when it is special.
71641         (last_component): New method, similar to old base_name semantics.
71642         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71643         base_name.  Strip redundant slashes from ///.
71644
71645 2006-07-03  Jim Meyering  <jim@meyering.net>
71646
71647         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71648         macro is used before the first cycle_check call.
71649
71650 2006-07-03  Eric Blake  <ebb9@byu.net>
71651
71652         * modules/dirname (Depends-on): Add xstrndup.
71653
71654 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71657         test cases, so that config.log is a bit easier to follow.
71658
71659 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71662         both are 64 bits, since this seems to be the tradition, and this
71663         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71664         we ever run into a host that prefers long long to long in this
71665         case, we'll need another configure-time test.  Problem reported by
71666         Jim Meyering.
71667
71668 2006-07-02  Eric Blake  <ebb9@byu.net>
71669
71670         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71671
71672 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * modules/inttypes (Depends-on): No longer depends on stdint.
71675         * modules/stdint (Description): Say more about assumptions.
71676         Say that the fast types might differ.  Say macros are used.
71677         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71678         (Makefile.am): Revise list of substituted symbols to match
71679         new stdint.m4.
71680         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71681         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71682         * tests/test-stdint.c (verify_same_types)
71683         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71684         the code conforms to C99/C89.
71685         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71686         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71687
71688 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71691         but fix a bug, by requiring at least 64 bits.
71692         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71693         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71694         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71695         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71696
71697         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71698         changes.  Make 2.59 a prerequisite.  Check and substitute for
71699         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71700         inttypes.h.  Do not use special include files; just use the
71701         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71702         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71703         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71704         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71705         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71706         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71707         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71708         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71709         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71710         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71711         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71712         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71713         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71714         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71715         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71716         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71717         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71718         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71719         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71720         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71721         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71722         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71723         not check for things that C99 does not require, e.g., int8_t.  If
71724         a test isn't needed unless <stdint.h> isn't working, and is
71725         unlikely to be needed for any other reason, then don't do it
71726         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71727         size_t, since we assume C89 freestanding at least.  Do not check
71728         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71729         the right thing even if the types are not defined.  Instead use:
71730         (gl_STDINT_TYPE_PROPERTIES): New macro.
71731         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71732         testing whether <sys/types.h> clashes, as Autoconf does this for
71733         us now.  All uses removed.
71734         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71735         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71736         (gl_CHECK_TYPE_SAME):
71737         Remove; no longer needed.
71738         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71739         exists, since we'll return 0 anyway in that case.
71740         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71741
71742 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71745         possible collision with system files.
71746         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71747         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71748         WCHAR_MIN and WCHAR_MAX in this case.
71749         (<stddef.h>): Do not include; no longer needed.
71750         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71751         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71752         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71753         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71754         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71755         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71756         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71757         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71758         !defined(__c99))]: Include in this case too, since it's harmless
71759         now.
71760         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71761         dangerous to do so.
71762         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71763         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71764         (_STDINT_MIN, _STDINT_MAX): New macros.
71765         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71766         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71767         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71768         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71769         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71770         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71771         macros, not typedefs; this simplifies things quite a bit.
71772         Use long int for all types narrower than int64_t.
71773         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71774         Define in terms of long long int or int64_t or long int,
71775         not int64_t or int32_t.  This saves some compile-time testing.
71776         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71777         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71778         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71779         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71780         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71781         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71782         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71783         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71784         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71785         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71786         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71787         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71788         undef any previous version and define our own version, for
71789         simplicity and consistency with the new macros for types.
71790         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71791         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71792         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71793         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71794         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71795         @WINT_T_SUFFIX@ to keep things simple here.
71796         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71797         Simplify by assuming typical 8/16/32/64 host, since we're
71798         already doing that elsewhere anyway.
71799         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71800         and assume long long int is 64 bits if available.  This
71801         speeds up 'configure'.
71802
71803 2006-07-01  Eric Blake  <ebb9@byu.net>
71804
71805         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71806         Reported by Andreas Buening.
71807
71808 2006-07-01  Eric Blake  <ebb9@byu.net>
71809
71810         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71811
71812 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71813
71814         * lib/getaddrinfo.c: fixed typo
71815
71816 2006-06-29  Jim Meyering  <jim@meyering.net>
71817
71818         * modules/strftime (Maintainer): Add my name, since with the
71819         FPRINTFTIME changes strftime.c has forked from glibc.
71820
71821 2006-06-29  Eric Blake  <ebb9@byu.net>
71822
71823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71824
71825 2006-06-29  Eric Blake  <ebb9@byu.net>
71826
71827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71828
71829 2006-06-29  Eric Blake  <ebb9@byu.net>
71830
71831         * lib/stat_.h: New file.
71832
71833 2006-06-29  Eric Blake  <ebb9@byu.net>
71834
71835         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71836         unused static function.
71837
71838 2006-06-29  Eric Blake  <ebb9@byu.net>
71839
71840         * doc/functions.texi (Function Portability): Document missing lstat
71841         on mingw.
71842
71843 2006-06-29  Eric Blake  <ebb9@byu.net>
71844
71845         * MODULES.html.sh: Add sys_stat.
71846         * modules/sys_stat: New module.
71847         * modules/mkstemp (Depends-on): Add sys_stat.
71848
71849 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71850
71851         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71852
71853 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71854
71855         * m4/c-bs-a.m4: Removed.
71856
71857 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71858
71859         * lib/strftime.c: Assume strftime() exists.
71860
71861 2006-06-29  Derek Price  <derek@ximbiot.com>
71862
71863         * modules/c-bs-a: Removed - \a is C89.
71864         * MODULES.html.sh: Remove c-bs-a.
71865
71866 2006-06-29  Bruno Haible  <bruno@clisp.org>
71867
71868         * modules/wcwidth (License): Change to LGPL.
71869
71870 2006-06-28  Simon Josefsson  <jas@extundo.com>
71871
71872         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71873         on _WIN32.
71874
71875         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71876         getnameinfo.
71877
71878 2006-06-28  Simon Josefsson  <jas@extundo.com>
71879
71880         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71881
71882 2006-06-28  Simon Josefsson  <jas@extundo.com>
71883
71884         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71885         functions there.  It will succeed on Windows XP, but on Windows
71886         2000 and (presumably) earlier, it will fail, and use the internal
71887         re-implementation.
71888         (use_win32_p): New function.
71889         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71890         Support AI_NUMERICSERV to disable getservbyname.
71891         (getnameinfo): New function, only supports
71892         NI_NUMERICHOST|NI_NUMERICSERV for now.
71893
71894         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71895         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71896         getnameinfo.
71897
71898 2006-06-28  Eric Blake  <ebb9@byu.net>
71899
71900         * modules/wcwidth: New file.
71901         * modules/mbchar (Depends-on): Add wcwidth.
71902         * modules/mbswidth (Depends-on): Add wcwidth.
71903         * MODULES.html.sh: Add wcwidth.
71904
71905 2006-06-28  Eric Blake  <ebb9@byu.net>
71906
71907         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71909
71910 2006-06-28  Eric Blake  <ebb9@byu.net>
71911
71912         * lib/xvasprintf.h: Fix comments.
71913
71914 2006-06-28  Eric Blake  <ebb9@byu.net>
71915
71916         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71917         * lib/mbswidth.c (wcwidth): Move from here...
71918         * lib/wcwidth.h: ...to this new file.
71919
71920 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71921
71922         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71923
71924         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71925         it's obsolete.
71926         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71927
71928 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71929
71930         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71931         Autoconf 2.60 says this stuff was obsolete.
71932
71933 2006-06-28  Bruno Haible  <bruno@clisp.org>
71934
71935         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71936
71937 2006-06-28  Bruno Haible  <bruno@clisp.org>
71938
71939         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71940         gt_TYPE_WCHAR_T.
71941
71942 2006-06-28  Bruno Haible  <bruno@clisp.org>
71943
71944         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71945         declaration for wcwidth.
71946         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71947
71948 2006-06-28  Bruno Haible  <bruno@clisp.org>
71949
71950         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71951         (mkdir): Define using _mkdir.
71952
71953 2006-06-28  Bruno Haible  <bruno@clisp.org>
71954
71955         * lib/getaddrinfo.h: Fix POSIX URL.
71956         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71957         _WIN32.
71958         (use_win32_p): Make static.
71959         (getaddrinfo): Reject service name if it is empty or does not consist
71960         solely of decimal digits, or if its value is > 65535.
71961         (getnameinfo): Remove useless casts.
71962
71963 2006-06-27  Simon Josefsson  <jas@extundo.com>
71964
71965         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71966         Eggert and Martin Lambers.
71967
71968 2006-06-27  Simon Josefsson  <jas@extundo.com>
71969
71970         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71971         Eggert and Martin Lambers.
71972
71973 2006-06-27  Bruno Haible  <bruno@clisp.org>
71974
71975         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71976         result to 0, not to empty.
71977         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71978
71979 2006-06-27  Bruno Haible  <bruno@clisp.org>
71980
71981         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71982
71983 2006-06-26  Simon Josefsson  <jas@extundo.com>
71984
71985         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71986         present.
71987
71988 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71991         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71993
71994 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71995
71996         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71997
71998 2006-06-26  Bruno Haible  <bruno@clisp.org>
71999
72000         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72001
72002 2006-06-26  Bruno Haible  <bruno@clisp.org>
72003
72004         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72005
72006 2006-06-26  Bruno Haible  <bruno@clisp.org>
72007
72008         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72009         SGI C compiler in pre-C99 mode.
72010         Suggested by Mark D. Baushke and Larry Jones.
72011
72012 2006-06-26  Bruno Haible  <bruno@clisp.org>
72013
72014         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72015         WCHAR_MAX.
72016         Reported by Mark D. Baushke and Larry Jones.
72017
72018 2006-06-26  Bruno Haible  <bruno@clisp.org>
72019
72020         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72021         in pre-C99 mode.
72022         Suggested by Mark D. Baushke and Larry Jones.
72023
72024 2006-06-23  Simon Josefsson  <jas@extundo.com>
72025             Bruno Haible  <bruno@clisp.org>
72026
72027         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72028         Emit mostlyclean-local rule.
72029         (func_emit_tests_Makefile_am): Likewise.
72030         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72031
72032 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72033
72034         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72035
72036 2006-06-23  Bruno Haible  <bruno@clisp.org>
72037
72038         * tests/test-stdint.c: Update to match ISO C 99 Technical
72039         Corrigendum 1.
72040
72041 2006-06-23  Bruno Haible  <bruno@clisp.org>
72042
72043         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72044
72045 2006-06-23  Bruno Haible  <bruno@clisp.org>
72046
72047         * lib/stdint_.h: Treat IRIX like OpenBSD.
72048
72049 2006-06-23  Bruno Haible  <bruno@clisp.org>
72050
72051         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72052         ISO C 99 Technical Corrigendum 1.
72053
72054 2006-06-22  Simon Josefsson  <jas@extundo.com>
72055
72056         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72057         MinGW.
72058
72059 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72060
72061         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72062         needed.  Some compiler complained about some of them.  Problem reported
72063         by Larry Jones in
72064         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72065
72066 2006-06-21  Simon Josefsson  <jas@extundo.com>
72067
72068         * tests/test-getaddrinfo.c: New file.
72069
72070         * modules/getaddrinfo-tests: New file.
72071
72072         * MODULES.html.sh: Add inet_pton.
72073
72074         * modules/inet_pton: New file.
72075
72076 2006-06-21  Simon Josefsson  <jas@extundo.com>
72077
72078         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72079         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72080         of using the (limited) gnulib implementation on Windows XP.
72081
72082         * m4/inet_pton.m4: New file.
72083
72084 2006-06-21  Simon Josefsson  <jas@extundo.com>
72085
72086         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72087         variable.
72088
72089         * lib/socket_.h: Don't define WINVER.
72090
72091         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72092         slightly modified to work in gnulib.
72093
72094 2006-06-21  Simon Josefsson  <jas@extundo.com>
72095
72096         * doc/gnulib.texi (Windows sockets): Add.
72097
72098 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * lib/read-file.c (fread_file): Start with buffer allocation of
72101         0 bytes rather than 1 byte; this simplifies the code.
72102         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72103         code to free buffer and save/restore errno.
72104         (internal_read_file): Remove unused local.
72105
72106 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72109         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72110         Problem reported by Denis Excoffier in
72111         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72112
72113 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72114
72115         * modules/sys_socket, modules/socklen: Include sys/types since
72116         FreeBSD 4.x's sys/socket.h needs it.
72117
72118 2006-06-19  Simon Josefsson  <jas@extundo.com>
72119
72120         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72121
72122 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72123
72124         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72125
72126 2006-06-19  Bruno Haible  <bruno@clisp.org>
72127
72128         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72129         and FULL_PATH_INTTYPES_H in angle brackets.
72130         Reported by Mark D. Baushke <mdb@gnu.org>.
72131
72132 2006-06-17  Eric Blake  <ebb9@byu.net>
72133
72134         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72135         errno.
72136
72137 2006-06-17  Bruno Haible  <bruno@clisp.org>
72138
72139         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72140         <sys/inttypes.h>.
72141
72142 2006-06-17  Bruno Haible  <bruno@clisp.org>
72143
72144         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72145         whether errno is declared. Assume <errno.h> declares errno.
72146
72147 2006-06-17  Bruno Haible  <bruno@clisp.org>
72148
72149         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72150
72151 2006-06-17  Bruno Haible  <bruno@clisp.org>
72152
72153         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72154         problem on Solaris 2.5.1.
72155
72156 2006-06-16  Eric Blake  <ebb9@byu.net>
72157
72158         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72159         * lib/unicodeio.c [!defined errno]: Likewise.
72160         * lib/strtol.c [!defined errno]: Likewise.
72161         * lib/strtod.c [!defined errno]: Likewise.
72162
72163 2006-06-15  Eric Blake  <ebb9@byu.net>
72164
72165         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72166
72167 2006-06-15  Eric Blake  <ebb9@byu.net>
72168
72169         * config/srclist.txt (ssize_t.m4): Lose sync.
72170
72171 2006-06-15  Bruno Haible  <bruno@clisp.org>
72172
72173         * modules/stdint (Files): Include m4/full-header-path.m4,
72174         m4/size_max.m4, m4/wchar_t.m4.
72175         (Makefile.am): Many more substitutions.
72176         * modules/stdint-tests: New file.
72177         * tests/test-stdint.c: New file.
72178
72179 2006-06-15  Bruno Haible  <bruno@clisp.org>
72180
72181         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72182         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72183         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72184         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72185         gl_CHECK_TYPE_SAME): New macros.
72186
72187 2006-06-15  Bruno Haible  <bruno@clisp.org>
72188
72189         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72190
72191 2006-06-15  Bruno Haible  <bruno@clisp.org>
72192
72193         * lib/stdint_.h: Rewritten to be fully auto-configured.
72194         Fixes bug on HP-UX/IA64.
72195
72196 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72197
72198         * lib/getdate.y (__attribute__): Don't define if already defined.
72199         Problem reported by Larry Jones.
72200         * lib/utimens.c (__attribute__): Likewise.
72201
72202 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72203
72204         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72205         reported by Andreas Schwab.
72206
72207 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72208             Bruno Haible  <bruno@clisp.org>
72209
72210         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72211         check for the declaration of strnlen and a run test that exposes the
72212         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72213         rpl_strndup.
72214
72215 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72216             Bruno Haible  <bruno@clisp.org>
72217
72218         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72219
72220 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72221
72222         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72223         compile test, for Tru64 4.0D.
72224
72225 2006-05-28  Karl Berry  <karl@gnu.org>
72226
72227         * config/srclist.txt (printf-args.c): lose sync.
72228
72229 2006-05-26  Martin Lambers  <marlam@marlam.de>
72230
72231         * lib/getpass.c: Updates the test for the native W32 API, and adds
72232         missing includes, thus fixing compilation warnings.
72233
72234 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72235
72236         * lib/exclude.c (exclude_fnmatch): New function.
72237         (excluded_file_name): Call exclude_fnmatch.
72238         * lib/exclude.h (excluded_file_name): New prototype
72239
72240 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72241
72242         * lib/tempname.c (small_open, large_open): New macros.
72243         (__open, __open64) [!_LIBC]: Remove.
72244         (__gen_tempname): Use small_open and large_open instead of __open
72245         and __open64.  This fixes a portability bug on HP-UX 11.11i
72246         reported by Simon Wing-Tang in
72247         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72248
72249 2006-05-24  Bruno Haible  <bruno@clisp.org>
72250
72251         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72252         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72253         Reported by Thorsten Maerz <torte@netztorte.de> via
72254         Aaron Stone <aaron@serendipity.cx>.
72255
72256 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72257
72258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72259         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72260         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72261         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72262         not really conditional on the cache.
72263         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72264
72265 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72266
72267         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72268         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72269         (my_usleep): Don't mishandle maximum value.
72270
72271 2006-05-19  Jim Meyering  <jim@meyering.net>
72272
72273         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72274
72275 2006-05-17  Bruno Haible  <bruno@clisp.org>
72276
72277         Cygwin portability.
72278         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72279
72280 2006-05-17  Bruno Haible  <bruno@clisp.org>
72281
72282         * lib/stdint_.h: Fix recognition of Cygwin.
72283
72284 2006-05-15  Bruno Haible  <bruno@clisp.org>
72285
72286         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72287         on libtool patch by Ralf Wildenhues.
72288
72289 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72292         test for C99 conformance; (bool) 0.5 is an integer constant
72293         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72294         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72295
72296 2006-05-11  Simon Josefsson  <jas@extundo.com>
72297
72298         * m4/xvasprintf.m4: Fix obvious typo.
72299
72300 2006-05-11  Jim Meyering  <jim@meyering.net>
72301
72302         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72303         James Lemley.
72304
72305 2006-05-10  Simon Josefsson  <jas@extundo.com>
72306
72307         * lib/md4.c: Typo fix, update copyright years.
72308         (K1, K2): Don't use L because it turn computations into 64-bit on
72309         64-bit platforms.
72310
72311 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72314         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72315         unwanted sign propagation, e.g., on hosts with 64-bit int.
72316         There still are some problems with reeelly weird theoretical hosts
72317         (e.g., 33-bit int) but it's not worth worrying about now.
72318         * lib/sha1.c (rol): Likewise.
72319         (K1, K2, K3, K4): Remove unnecessary L suffix.
72320
72321 2006-05-10  Bruno Haible  <bruno@clisp.org>
72322
72323         * lib/des.c: Cast to avoid warnings.
72324
72325 2006-05-09  Bruno Haible  <bruno@clisp.org>
72326
72327         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72328         (Depends-on): Depend also on xsize, stdarg.
72329         (configure.ac): Add gl_XVASPRINTF.
72330
72331 2006-05-09  Bruno Haible  <bruno@clisp.org>
72332
72333         * m4/xvasprintf.m4: New file.
72334
72335 2006-05-09  Bruno Haible  <bruno@clisp.org>
72336
72337         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72338         (EOVERFLOW): Define fallback value.
72339         (xstrcat): New function.
72340         (xvasprintf): Recognize the special case of a string concatenation.
72341
72342 2006-05-08  Eric Blake  <ebb9@byu.net>
72343
72344         * gnulib-tool (func_version): Base copyright year on CVS date.
72345         (func_emit_copyright_notice): New function.
72346         (func_emit_lib_Makefile_am): Use it.
72347         (func_emit_tests_Makefile_am): Likewise.
72348         (func_import): Likewise.
72349
72350 2006-05-08  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/stdarg: New file.
72353         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72354
72355 2006-05-08  Bruno Haible  <bruno@clisp.org>
72356
72357         * m4/stdarg.m4: New file, from GNU gettext.
72358
72359 2006-05-08  Bruno Haible  <bruno@clisp.org>
72360
72361         * config/srclist.txt (build-aux/config.rpath): different from latest
72362         release.
72363
72364 2006-05-08  Bruno Haible  <bruno@clisp.org>
72365
72366         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72367
72368 2006-05-05  Jim Meyering  <jim@meyering.net>
72369
72370         * m4/warning.m4: New file, derived from bison's file by the same name.
72371
72372 2006-05-03  Bruno Haible  <bruno@clisp.org>
72373
72374         * lib/stdint_.h: Shorter URL.
72375         * lib/inttypes.h: Likewise.
72376
72377 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72380
72381 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * lib/verify.h: Document the internals better.  Most of this change
72384         was written by Bruno Haible.
72385
72386 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         * doc/verify.texi: New file, partly based on a proposal by
72389         Bruno Haible.
72390
72391 2006-05-02  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72394         test from here...
72395         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72396
72397 2006-04-29  Bruno Haible  <bruno@clisp.org>
72398
72399         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72400         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72401
72402 2006-04-29  Bruno Haible  <bruno@clisp.org>
72403
72404         * gnulib-tool: Make --update option actually work.
72405
72406 2006-04-29  Bruno Haible  <bruno@clisp.org>
72407
72408         * doc/gcd.texi: New file.
72409         * doc/gnulib.texi: Include it.
72410
72411 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72412
72413         * lib/getdate.y (get_date): When adding relative date, start with the
72414         initial time, not with the result of the first mktime call.
72415
72416 2006-04-25  Bruno Haible  <bruno@clisp.org>
72417
72418         * gnulib-tool (func_import): Output the include directives in three
72419         blocks, sorted separately.
72420         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72421
72422 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72425         to define main with arguments, for C++.  Reported by Eric Blake.
72426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72427         Prefer 'int main ()' to 'int main (void)', for C++.
72428         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72429         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72430         for 'main', for C99 and C++.
72431
72432 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72435         Don't assume that exit status -1 is valid.
72436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72437         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72438         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72439         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72440         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72441         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72442         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72443         functions can be used without declaring them, or that you can
72444         exit with status -1.
72445         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72446
72447 2006-04-24  Karl Berry  <karl@gnu.org>
72448
72449         * config/srclist.txt (longdouble.m4): sync lost.
72450
72451 2006-04-24  Eric Blake  <ebb9@byu.net>
72452
72453         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72454
72455 2006-04-24  Bruno Haible  <bruno@clisp.org>
72456
72457         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72458         poll() implementation in AIX.
72459         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72460
72461 2006-04-24  Bruno Haible  <bruno@clisp.org>
72462
72463         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72464         assigned exactly once.
72465
72466 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72467             Bruno Haible  <bruno@clisp.org>
72468
72469         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72470         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72471         for AM_CPPFLAGS.
72472
72473 2006-04-23  Bruno Haible  <bruno@clisp.org>
72474
72475         * modules/copy-file: Depend on unistd.
72476         * modules/execute: Likewise.
72477         * modules/fatal-signal: Likewise.
72478         * modules/findprog: Likewise.
72479         * modules/mkdtemp : Likewise.
72480         * modules/pipe: Likewise.
72481         * modules/wait-process: Likewise.
72482
72483 2006-04-23  Bruno Haible  <bruno@clisp.org>
72484
72485         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72486         condition was already detected.
72487         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72488
72489 2006-04-23  Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/copy-file.c: Include <unistd.h> unconditionally.
72492         * lib/execute.c: Likewise.
72493         * lib/fatal-signal.c: Likewise.
72494         * lib/findprog.c: Likewise.
72495         * lib/mkdtemp.c: Likewise.
72496         * lib/pipe.h: Likewise.
72497         * lib/pipe.c: Likewise.
72498         * lib/wait-process.h: Likewise.
72499
72500 2006-04-23  Bruno Haible  <bruno@clisp.org>
72501
72502         * gnulib-tool (func_usage): Fix --import description. Document
72503         --update.
72504         (func_import): Create temporary file in a temporary directory, if
72505         --dry-run is specified. Silence errors from 'grep' when there are no
72506         m4 files in $m4dir.
72507         (func_create_testdir): Silence errors from 'grep' when there are no
72508         m4 files in $m4dir.
72509         Reported by Karl Berry <karl@freefriends.org>.
72510
72511 2006-04-20  Bruno Haible  <bruno@clisp.org>
72512
72513         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72514         one argument, so that the code will be portable to Autoconf 2.60.
72515         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72516         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72517         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72518
72519 2006-04-19  Derek Price  <derek@ximbiot.com>
72520             Eric Blake  <ebb9@byu.net>
72521
72522         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72523         rather than "/full/path.h".  Update comment to match.  Shorten &
72524         generalize m4_translit call via AS_TR_CPP.
72525
72526 2006-04-19  Derek Price  <derek@ximbiot.com>
72527             Eric Blake  <ebb9@byu.net>
72528
72529         * lib/inttypes.h: Correct grammar in comment.
72530
72531 2006-04-18  Derek Price  <derek@ximbiot.com>
72532             Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         * modules/inttypes: New file.
72535         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72536
72537 2006-04-18  Derek Price  <derek@ximbiot.com>
72538             Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72541         New files.
72542
72543 2006-04-18  Derek Price  <derek@ximbiot.com>
72544             Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * lib/inttypes.h: New file.
72547         * lib/strtoimax.c: Assume <inttypes.h>.
72548
72549 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72550
72551         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72552         isn't mounted.  Problem reported by Kir Kolyshkin.
72553
72554 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72557         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72558         Derek R. Price.
72559         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72560         implementation.
72561
72562 2006-04-12  Eric Blake  <ebb9@byu.net>
72563
72564         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72565         is now done automatically by the corresponding Autoconf macro.
72566
72567 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72570         time_r.h.
72571
72572 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         Merge regex changes from libc, removing some of our
72575         POSIX-conformance changes that were rejected and redoing them in a
72576         less-intrusive way.
72577
72578         * lib/regcomp.c (re_compile_internal, init_dfa):
72579         Length arg is now size_t, not Idx.  All uses changed.
72580         (peek_token): Forward decl now says internal_function.
72581         (__re_error_msgid, __re_error_msgid_idx):
72582         Now static rather than extern with attribute_hidden.
72583         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72584         For some reason libc prefers K&R style defns for external functions.
72585         (regerror) [!defined _LIBC]: Likewise.
72586         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72587         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72588         (build_range_exp, build_collating_symbol):
72589         Use K&R-style defn.
72590         (re_compile_fastmap): Use '\0' to memset, not 0.
72591         (utf8_sb_map): Make the calculations more obvious.
72592         (init_dfa, parse_bracket_exp, build_charclass_op):
72593         Call calloc and cast result, as glibc does.
72594         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72595         (build_range_exp, build_collating_symbol):
72596         Now internal functions.
72597
72598         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72599
72600         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72601         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72602         Don't depend on VMS; depend on __VMS instead, for POSIX
72603         namespace cleanness.
72604         (regoff_t): Define to ssize_t, not long int.
72605
72606         Remove the REG_ macros named below.  Instead, make the old names
72607         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72608         __USE_GNU_REGEX.
72609         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72610         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72611         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72612         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72613         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72614         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72615         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72616         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72617         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72618         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72619         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72620         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72621         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72622         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72623         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72624         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72625         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72626         (REG_NREGS):
72627         Remove.  All uses replaced by the old RE_* names.
72628         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72629         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72630         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72631         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72632         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72633         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72634         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72635         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72636         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72637         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72638         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72639         Don't bother having these macros be independent of each others'
72640         values, since they no longer exist in the POSIX name space.
72641
72642         Rename the following member names back to their old names,
72643         unless !__USE_GNU_REGEX.  All uses changed back.
72644         (buffer): Renamed from re_buffer.
72645         (allocated): Renamed from re_allocated.
72646         (used): Renamed from re_used.
72647         (syntax): Renamed from re_syntax.
72648         (fastmap): Renamed from re_fastmap.
72649         (translate): Renamed from re_translate.
72650         (can_be_null): Renamed from re_can_be_null.
72651         (regs_allocated): Renamed from re_regs_allocated.
72652         (fastmap_accurate): Renamed from re_fastmap_accurate.
72653         (no_sub): Renamed from re_no_sub.
72654         (not_bol): Renamed from re_not_bol.
72655         (not_eol): Renamed from re_not_eol.
72656         (newline_anchor): Renamed from re_newline_anchor.
72657         (num_regs): Renamed from rm_num_regs.
72658         (start): Renamed from rm_start.
72659         (end): Renamed from rm_end.
72660
72661         (free_state): Move up a bit.
72662
72663         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72664         #define to be empty.
72665         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72666         when that is what is intended.
72667         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72668         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72669         (MAX): New macro.
72670         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72671         All uses changed back to re_malloc, etc.  It's now the caller's
72672         responsibility to check for overflow; all callers changed.
72673         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72674         (re_x2nrealloc): Remove.
72675         (free_state): Remove decl.
72676
72677         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72678         (re_set_registers, re_exec):
72679         Use K&R-style defn.
72680
72681         2006-01-31  Roland McGrath  <roland@redhat.com>
72682
72683         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72684         Reported by Mike Frysinger <vapier@gentoo.org>.
72685
72686         2006-01-15  Andreas Jaeger  <aj@suse.de>
72687
72688         [BZ #1950]
72689         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72690         build_wcs_upper_buffer change.
72691         (build_wcs_upper_buffer): Change return type.
72692
72693         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72694
72695         * lib/regex_internal.h: Include <stdint.h> if available.
72696
72697         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72698
72699         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72700
72701         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72702
72703         * lib/regcomp.c: Adjust for changed secondary hash function.
72704
72705         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72706
72707         * lib/regex.h: Pretty printing.
72708         Clean up namespace a bit.
72709
72710         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72711
72712         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72713         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72714
72715         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72716                     Ulrich Drepper  <drepper@redhat.com>
72717
72718         [BZ #1302]
72719         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72720         changed.
72721         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72722
72723         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72724
72725         [BZ #281]
72726         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72727         * lib/regcomp.c: Remove unnecessary uses of
72728         unsigned RE_TRANSLATE_TYPE.
72729         * lib/regex_internal.h: Likewise.
72730         * lib/regex_internal.c: Likewise.
72731         * lib/regexec.c: Likewise.
72732         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72733
72734         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72735
72736         * lib/regexec.c (find_recover_state): Remove unnecessary
72737         initialization.
72738         (transit_state_bkref): Make DFA a const pointer.
72739         (get_subexp): Likewise.
72740         (check_arrival): Likewise.
72741         (update_cur_sifted_state): Likewise.
72742         (re_search_internal): Likewise.
72743         (prune_impossible_nodes): Likewise.
72744         (acquire_init_state_context): Likewise.
72745         (proceed_next_node): Likewise.
72746         (set_regs): Likewise.
72747         (free_fail_stack_return): Likewise.
72748         (check_arrival_expand_ecl): Mark DFA parameter as const.
72749         (check_arrival_expand_ecl_sub): Likewise.
72750         (check_subexp_limits): Likewise.
72751         (sub_epsilon_src_nodes):  Likewise.
72752         (add_epsilon_src_nodes):  Likewise.
72753         (merge_state_array): Likewise.
72754         (update_regs): Likewise.
72755         (build_trtable): Likewise.
72756         (sift_states_backward): Mark MCTX parameter as const.
72757         (build_sifted_states): Likewise.
72758         (update_cur_sifted_state): Likewise.
72759         (sift_states_mkref): Likewise.
72760         (check_arrival_expand_ecl): Mark eclosure as const.
72761         (check_dst_limits_calc_pos_1): Likewise.
72762         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72763         pointer.
72764
72765         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72766
72767         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72768         (transit_state_sb): Likewise.
72769         (transit_state_mb): Likewise.
72770         (sift_states_iter_mb): Likewise.
72771         (check_arrival_add_next_nodes): Likewise.
72772         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72773         [_LIBC] (re_search_2_stub): Use mempcpy.
72774
72775         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72776         mbrtowc for very simple UTF-8 case.
72777
72778         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72779         a pointer-to-const.
72780         (re_acquire_state_context): Likewise.
72781         * lib/regex_internal.h: Adjust prototypes.
72782
72783         * lib/regex.c: Prevent using C++ compilers.
72784
72785         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72786         (re_acquire_state_context): Likewise.
72787
72788 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * modules/regex (Depends-on): Add ssize_t.
72791
72792 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72793
72794         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72795         translation table.
72796
72797 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72800
72801 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72802             Bruno Haible  <bruno@clisp.org>
72803
72804         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72805         <sys/types.h> and <inttypes.h>.
72806
72807 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72808
72809         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72810         `__error_t_defined', so argp.h will not typedef the former.
72811
72812 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72815         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72816         glibc names.  Even if glibc is changed to conform to POSIX, the
72817         traditional names will be available anyway, since regex depends on
72818         the extensions module.  Also, fix a longstanding typo in the
72819         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72820         reported by Emanuele Giaquinta.  Also, change sense of cached
72821         variable, so that the message makes sense.
72822
72823 2006-03-24  Simon Josefsson  <jas@extundo.com>
72824
72825         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72826         including some doc fixes.
72827         (base64_encode_alloc): Fix +1 bug on allocation failures.
72828
72829 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72830
72831         * lib/base64.c (base64_encode): Do not read past end of array with
72832         unsanitized input on systems with CHAR_BIT > 8.
72833
72834 2006-03-24  Eric Blake  <ebb9@byu.net>
72835
72836         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72837
72838 2006-03-22  Karl Berry  <karl@gnu.org>
72839
72840         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72841         * config/srclistvars.sh (COREUTILS): new var.
72842
72843 2006-03-17  Jim Meyering  <jim@meyering.net>
72844
72845         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72846         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72847
72848 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72851         no longer needs it.  Instead, check that regoff_t is as least
72852         as wide as ptrdiff_t.
72853
72854         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72855         so that our regex.h stays compatible with the installed regex.
72856         This is helpful for installers who configure --without-included-regex.
72857         Problem reported by Emanuele Giaquinta.
72858
72859 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72862         Typedef to long int, not to off_, as POSIX will likely change
72863         in that direction.
72864
72865 2006-03-15  Eric Blake  <ebb9@byu.net>
72866
72867         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72868
72869 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72870
72871         * lib/argp-help.c (validate_uparams): Fix typo
72872         * lib/argp-parse.c (argp_default_options): Consistently begin help
72873         messages with a lowercase letter.
72874
72875 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72878         overrun buffers and shouldn't be used (much as gets shouldn't be
72879         used).
72880         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72881
72882 2006-03-08  Simon Josefsson  <jas@extundo.com>
72883
72884         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72885         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72886
72887 2006-03-08  Simon Josefsson  <jas@extundo.com>
72888
72889         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72890         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72891
72892 2006-03-08  Simon Josefsson  <jas@extundo.com>
72893
72894         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72895         signal that configure disabled the device.
72896
72897 2006-03-08  Simon Josefsson  <jas@extundo.com>
72898
72899         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72900         languages.
72901
72902 2006-03-07  Simon Josefsson  <jas@extundo.com>
72903
72904         * modules/getopt (Depends-on): Add unistd.
72905
72906         * modules/unistd: New file.
72907
72908 2006-03-07  Simon Josefsson  <jas@extundo.com>
72909
72910         * modules/gc-random: New file.
72911
72912 2006-03-07  Simon Josefsson  <jas@extundo.com>
72913
72914         * m4/unistd_h.m4: New file.
72915
72916 2006-03-07  Simon Josefsson  <jas@extundo.com>
72917
72918         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72919         test to be side-effect free by storing the result in the cache
72920         variable gl_cv_lib_readline, and moving the assignment of
72921         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72922         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72923
72924 2006-03-07  Simon Josefsson  <jas@extundo.com>
72925
72926         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72927         error on missing devices (the functions will return an error).
72928
72929         * m4/gc.m4: Move random stuff to gc-random.m4
72930
72931 2006-03-07  Simon Josefsson  <jas@extundo.com>
72932
72933         * lib/unistd_.h: New file.
72934
72935 2006-03-07  Simon Josefsson  <jas@extundo.com>
72936
72937         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72938
72939 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72940
72941         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72942         Problem reported by Juan Manuel Guerrero.
72943
72944 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72947         the unistd module.
72948         * lib/getlogin_r.c: Likewise.
72949         * lib/getlogin_r.h: Likewise.
72950         * lib/glob.c: Likewise.
72951         * lib/pagealign_alloc.c: Likewise.
72952         * lib/unistd_.h: Remove; no longer needed.
72953
72954 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72955
72956         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72957         Add unistd.
72958         * modules/c-stack (Depends-on): Add unistd.
72959         * modules/getlogin_r: Likewise.
72960         * modules/glob: Likewise.
72961         * modules/pagealign_alloc: Likewise.
72962         * modules/unistd (Files): Remove lib/unistd_.h.
72963         (EXTRA_DIST): Remove.
72964         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72965         need unistd_.h.
72966         (MOSTLYCLEANFILES): Remove unistd.h-t.
72967
72968 2006-03-03  Simon Josefsson  <jas@extundo.com>
72969
72970         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72971
72972 2006-03-03  Simon Josefsson  <jas@extundo.com>
72973
72974         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72975         libidn and bison.
72976
72977 2006-03-03  Simon Josefsson  <jas@extundo.com>
72978
72979         * build-aux/maint.mk: Add indent target.
72980
72981 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72982
72983         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72984         our replacement poll.h in any case, to avoid a differing
72985         declaration from a system header.  Seen on AIX.
72986
72987 2006-03-01  Simon Josefsson  <jas@extundo.com>
72988
72989         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72990         <kasal@ucw.cz>.
72991
72992 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * modules/gettime (Depends-on): Add extensions module.
72995         * modules/nanosleep (Depends-on): Likewise.
72996         * modules/settime (Depends-on): Likewise.
72997
72998 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72999
73000         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73001         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73002         pedantically.
73003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73004         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73005
73006         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73007         not "==".  Reported by Ralf Wildenhues.
73008
73009 2006-03-01  Karl Berry  <karl@gnu.org>
73010
73011         * doc/Copyright/request-*: new files, synced from gnuorg.
73012
73013 2006-03-01  Karl Berry  <karl@gnu.org>
73014
73015         * config/srclist.txt (Copyright/*): new entries.
73016
73017 2006-02-28  Simon Josefsson  <jas@extundo.com>
73018
73019         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73020
73021 2006-02-27  Simon Josefsson  <jas@extundo.com>
73022
73023         * lib/base64.h: Indent #define's.  From Jim Meyering
73024         <jim@meyering.net>.
73025
73026 2006-02-27  Jim Meyering  <jim@meyering.net>
73027
73028         Revert the change of 2006-02-24, so these files can continue
73029         to be sync'd from gettext.
73030         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73031         of `config.h'.
73032
73033 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * modules/intprops: New file.
73036         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73037         Add intprops.
73038         * modules/getloadavg (Files): Remove lib/intprops.h.
73039         (Depends-on): Add intprops.
73040         * modules/human: Likewise.
73041         * modules/inttostr: Likewise.
73042         * modules/openat: Likewise.
73043         * modules/sig2str: Likewise.
73044         * modules/userspec: Likewise.
73045         * modules/utimecmp: Likewise.
73046         * modules/xnanosleep: Likewise.
73047         * modules/xstrtol: Likewise.
73048
73049 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73050
73051         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73052         * modules/lock-tests (TESTS): Use $(EXEEXT).
73053         * modules/tls-tests: Likewise.
73054         * modules/argp-tests: Likewise.
73055         (check_PROGRAMS): New var, replacing...
73056         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73057
73058 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73059
73060         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73061         `config.h'.
73062
73063 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73066
73067 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73068
73069         Sync from coreutils.
73070         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73071         gl_CHDIR_SAFER.
73072
73073 2006-02-22  Jim Meyering  <jim@meyering.net>
73074
73075         Sync from coreutils.
73076         * m4/chdir-safer.m4: New file.
73077
73078 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73079
73080         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73081         AT_FDCWD exceeds INT_MAX.
73082         * lib/openat.h (AT_FDCWD): Likewise.
73083
73084 2006-02-17  Eric Blake  <address@hidden>
73085
73086         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73087
73088 2006-02-16  Simon Josefsson  <jas@extundo.com>
73089
73090         * modules/getaddrinfo (Depends-on): Add sys_socket.
73091
73092 2006-02-15  Simon Josefsson  <jas@extundo.com>
73093
73094         * build-aux/maint.mk: Add dsyntax-check rule.
73095
73096 2006-02-15  Eric Blake  <ebb9@byu.net>
73097
73098         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73099         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73100         'present but cannot compile' warnings on cygwin.
73101         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73102         use ws2tcpip.h if sys/socket.h works.
73103         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73104         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73105
73106 2006-02-14  Simon Josefsson  <jas@extundo.com>
73107
73108         * modules/maintainer-makefile (Files): Rename.
73109
73110         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73111         and (the local) Makefile.cfg to maint-cfg.mk.
73112
73113         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73114         to the latter.
73115
73116         * modules/maintainer-makefile: New module.
73117
73118         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73119         severaly stripped to make it possible to build it up from scratch
73120         with reliable tests.
73121
73122         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73123         fixes to permit overriding the default actions when configure and
73124         makefile are not available.
73125
73126 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         Sync from coreutils.
73129         * modules/lstat (Depends-on): Don't depend on xalloc.
73130         (License): Change from GPL to LGPL, since this is now simply a
73131         replacement for a libc function.
73132
73133 2006-02-14  Jim Meyering  <jim@meyering.net>
73134
73135         Sync from coreutils.
73136
73137         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73138         failure on deficient systems, and simplify gnulib lgpl dependencies.
73139         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73140         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73141
73142         * lib/xalloc-die.c: Remove unused definition of N_.
73143
73144 2006-02-14  Jim Meyering  <jim@meyering.net>
73145
73146         Sync from coreutils.
73147         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73148         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73149         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73150         double-quote uses of that variable, to accommodate the rare case in
73151         which getmntent is available in none of the libraries checked.  This
73152         happens at least on FreeBSD 5.0.
73153
73154 2006-02-13  Simon Josefsson  <jas@extundo.com>
73155
73156         * gnulib-tool (Usage): Fix --import, from
73157         karl@freefriends.org (Karl Berry).
73158
73159 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73160
73161         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73162
73163 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73164
73165         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73166         "autoupdate" on 2005-12-12.
73167
73168 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * modules/closeout (Depends-on): Remove atexit.
73171
73172 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73175         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73176
73177 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73178
73179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73180         __EXTENSIONS__ if this causes compilation to fail.  Problem
73181         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73182         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73183
73184 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73187         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73189         All uses changed.
73190
73191 2006-01-26  Simon Josefsson  <jas@extundo.com>
73192
73193         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73194         prototype is visible on mingw32.
73195
73196         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73197         for mingw32.
73198
73199         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73200         mingw32).
73201
73202 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73205         attempt to open for write; this always fails, at least on POSIX
73206         hosts.  This reinstates the 2006-01-09 change, which was
73207         inadvertently removed.
73208
73209 2006-01-26  Bruno Haible  <bruno@clisp.org>
73210
73211         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73212         Reported by Paul Eggert.
73213
73214 2006-01-26  Bruno Haible  <bruno@clisp.org>
73215             Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * lib/stdbool_.h (_Bool)
73218         [(! (defined __cplusplus || defined __BEOS__)
73219           && !defined __GNUC__
73220           && !(defined __HP_cc || defined __xlc__
73221                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73222                || defined __sgi))]:
73223         #define to signed char in these cases too; this simplifies
73224         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73225         etc., separately) and makes it more conservative.
73226
73227 2006-01-25  Simon Josefsson  <jas@extundo.com>
73228
73229         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73230         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73231         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73232
73233 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73234
73235         * lib/argp-namefrob.h: Bugfix. Remove stray #
73236
73237 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73240         so that we test the test.
73241         Check for yet another HP-UX cc bug involving *bool |= bool.
73242
73243 2006-01-25  Karl Berry  <karl@gnu.org>
73244
73245         * config/srclist.txt (vasnprintf.c): sync lost.
73246
73247 2006-01-25  Jim Meyering  <jim@meyering.net>
73248
73249         Sync from the stable (b5) branch of coreutils:
73250
73251         * lib/fts.c (fts_children): Don't let close() clobber errno from
73252         failed fchdir().
73253
73254         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73255         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73256         a dangling symlink.  That can also happen at least for ELOOP.
73257         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73258         FYI, this bug predates the inclusion of fts.c in coreutils.
73259
73260         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73261         in their own block, so pre-c99 compilers don't object.
73262
73263         Avoid the double-free (first in fts_read, second in fts_close) that
73264         would occur when an `active' directory is made inaccessible (e.g.,
73265         via chmod a-x) during a traversal.
73266         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73267         before returning.  Reproduce this failure by
73268         mkdir -p a/b; cd a; chmod a-x . b
73269         Reported by Stavros Passas.
73270
73271 2006-01-25  Jim Meyering  <jim@meyering.net>
73272
73273         * lib/fileblocks.c: Remove more useless parentheses.
73274         * lib/readutmp.h: Likewise.
73275
73276 2006-01-25  Bruno Haible  <bruno@clisp.org>
73277
73278         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73279         warnings.
73280         Reported by Paul Eggert.
73281
73282 2006-01-25  Bruno Haible  <bruno@clisp.org>
73283
73284         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73285         rid of a trap command. For Solaris sh.
73286         Reported by Mark D. Baushke <mdb@gnu.org>.
73287
73288 2006-01-24  Simon Josefsson  <jas@extundo.com>
73289
73290         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73291         Bruno.
73292
73293 2006-01-24  Karl Berry  <karl@gnu.org>
73294
73295         * config/srclist.txt (argp-namefrob.h): sync lost.
73296
73297 2006-01-24  Jim Meyering  <jim@meyering.net>
73298
73299         * modules/openat (Files): Add lib/intprops.h.
73300         From Mark D. Baushke.
73301
73302 2006-01-24  Jim Meyering  <jim@meyering.net>
73303
73304         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73305         Reported by Mark D. Baushke.
73306
73307 2006-01-24  Jim Meyering  <jim@meyering.net>
73308
73309         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73310
73311 2006-01-24  Bruno Haible  <bruno@clisp.org>
73312
73313         * modules/strnlen (Maintainer): Change from glibc to all.
73314
73315 2006-01-24  Bruno Haible  <bruno@clisp.org>
73316
73317         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73318         Patch by Paul Eggert.
73319
73320 2006-01-24  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73323         already has it.
73324         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73325         2005-11-26.
73326
73327         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73328         'signed char' to avoid problems with the built-in _Bool type.
73329         Reported by Paul Eggert on 2005-11-26.
73330
73331 2006-01-24  Bruno Haible  <bruno@clisp.org>
73332
73333         * gnulib-tool (func_import): Avoid constructing complicated sed
73334         expressions inside backquote.
73335         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73336
73337 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73338
73339         These changes imported from libc.
73340         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73341         test and two separate function calls.
73342         * lib/strndup.c (__strndup): Add libc_hidden_def.
73343
73344 2006-01-23  Simon Josefsson  <jas@extundo.com>
73345
73346         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73347         Remove the test_*_SOURCES variable: automake infers it by default.
73348         * modules/tls-tests: Likewise.
73349
73350 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73351
73352         Work around porting bugs reported by Dieter in
73353         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73354         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73355         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73356         Include "getopt.h" first, to check interface.
73357         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73358         !HAVE_DECL_GETENV.
73359         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73360         (__strndup): Revert to K&R-style function dfns, the glibc style.
73361         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73362         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73363         Include strnlen.h first, to get prototype properly.
73364         (strnlen): Renamed from __strnlen.
73365         Remove weak alias.
73366
73367 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73370
73371 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73372
73373         * config/srclist.txt: Adjust to reflect glibc reorganization.
73374         This affects only comments.
73375
73376 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73377
73378          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73379          Reported by Bruce Korb <bkorb@gnu.org>.
73380
73381 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73384         to pacify gcc -Wswitch-default.
73385
73386 2006-01-22  Bruno Haible  <bruno@clisp.org>
73387
73388         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73389         temporary buffer for sprintf, take into account the precision also
73390         for 'd', 'i', 'u', 'o', 'x', 'X'.
73391
73392 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73393
73394         * modules/argp-tests: New module
73395         * tests/test-argp.c: New file
73396         * tests/test-argp-2.sh: New file
73397
73398 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73399
73400         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73401         (__argp_base_name): Removed
73402         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73403         typo.
73404         (__argp_base_name): Provide macro definition or extern declaration
73405         depending on the configuration
73406
73407 2006-01-20  Simon Josefsson  <jas@extundo.com>
73408
73409         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73410
73411 2006-01-20  Simon Josefsson  <jas@extundo.com>
73412
73413         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73414
73415 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73418         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73419         Suggested by Bruno Haible.
73420
73421 2006-01-20  Karl Berry  <karl@gnu.org>
73422
73423         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73424         until changes propagate, I guess.
73425
73426 2006-01-19  Simon Josefsson  <jas@extundo.com>
73427
73428         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73429
73430 2006-01-19  Simon Josefsson  <jas@extundo.com>
73431
73432         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73433
73434 2006-01-19  Simon Josefsson  <jas@extundo.com>
73435
73436         * gnulib-tool: Set check_PROGRAMS.
73437
73438         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73439         modules/des-tests, modules/gc-arcfour-tests,
73440         modules/gc-arctwo-tests, modules/gc-des-tests,
73441         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73442         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73443         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73444         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73445         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73446         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73447         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73448         test_*_SOURCES.
73449
73450 2006-01-18  Simon Josefsson  <jas@extundo.com>
73451
73452         * modules/socklen (Depends-on): Depend on sys_socket.
73453
73454 2006-01-18  Simon Josefsson  <jas@extundo.com>
73455
73456         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73457         modules/des-tests, modules/gc-arcfour-tests,
73458         modules/gc-arctwo-tests, modules/gc-des-tests,
73459         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73460         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73461         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73462         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73463         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73464         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73465         $(EXEEXT) to automake TESTS variable, for mingw32.
73466
73467 2006-01-17  Simon Josefsson  <jas@extundo.com>
73468
73469         * modules/socklen (Include): Need sys/socket.h.
73470
73471 2006-01-17  Bruno Haible  <bruno@clisp.org>
73472
73473         * modules/ssize_t (Include): Add <sys/types.h>.
73474
73475 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73478         it's not portable and it doesn't work with cross-compiles.
73479         Problem reported by Bruno Haible.  Fix missing-$ typo in
73480         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73481         -zignore from being used with Sun's C compiler.
73482
73483 2006-01-12  Simon Josefsson  <jas@extundo.com>
73484
73485         * lib/base64.c: Fix warning, reported by Bruno Haible
73486         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73487
73488 2006-01-12  Bruno Haible  <bruno@clisp.org>
73489
73490         * modules/ldd: New file.
73491         * build-aux/ldd.sh.in: New file.
73492         * MODULES.html.sh (Support for building libraries and executables): Add
73493         ldd.
73494
73495 2006-01-12  Bruno Haible  <bruno@clisp.org>
73496
73497         * m4/ldd.m4: New file.
73498
73499 2006-01-12  Bruno Haible  <bruno@clisp.org>
73500
73501         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73502         endless loop while replacing $auxdir with build-aux.
73503
73504 2006-01-11  Simon Josefsson  <jas@extundo.com>
73505
73506         * lib/stdint_.h (SIZE_MAX): Add missing (.
73507
73508 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         Sync from coreutils.
73511         * lib/md5.c: Fix commentary typos.
73512         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73513         * lib/md5.h (__attribute__): Remove; unused.
73514         * lib/sha1.c: Fix commentary to match md5 better.
73515         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73516         so that we don't need to worry about alignment.  All uses changed.
73517         This merges the 2005-10-28 md5 change into sha1.
73518
73519 2006-01-11  Jim Meyering  <jim@meyering.net>
73520
73521         Sync from coreutils.
73522         * lib/md5.c (OP): Fix spacing.
73523
73524 2006-01-11  Bruno Haible  <bruno@clisp.org>
73525
73526         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73527         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73528         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73529
73530 2006-01-11  Bruno Haible  <bruno@clisp.org>
73531
73532         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73533         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73534         the "early" section as well.
73535
73536 2006-01-11  Bruno Haible  <bruno@clisp.org>
73537
73538         Avoid "ar: no archive members specified" error on MacOS X.
73539         * gnulib-tool (func_modules_add_dummy): New function.
73540         (func_import, func_create_testdir): Invoke it.
73541
73542 2006-01-11  Bruno Haible  <bruno@clisp.org>
73543
73544         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73545         with $auxdir in AC_CONFIG_FILES statements.
73546
73547 2006-01-11  Bruno Haible  <bruno@clisp.org>
73548
73549         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73550         Initialize also noinst_HEADERS to empty.
73551
73552 2006-01-11  Bruno Haible  <bruno@clisp.org>
73553
73554         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73555         variables.
73556         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73557         autoreconf.
73558
73559 2006-01-11  Bruno Haible  <bruno@clisp.org>
73560
73561         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73562         overridable by the user.
73563         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73564
73565 2006-01-10  Simon Josefsson  <jas@extundo.com>
73566
73567         * modules/sys_socket: New file.
73568
73569 2006-01-10  Simon Josefsson  <jas@extundo.com>
73570
73571         * m4/sys_socket_h.m4: New file.
73572
73573 2006-01-10  Simon Josefsson  <jas@extundo.com>
73574
73575         * lib/socket_.h: New file.
73576
73577 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * modules/readutmp (Maintainer): Add myself.
73580
73581 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73584         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73585         People who are still concerned with buggy memcmp implementations
73586         can invoke gl_FUNC_MEMCMP themselves.
73587
73588 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         * lib/regex_internal.h (BITSET_WORD_BITS):
73591         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73592         preprocessor mishandles large unsigned values as if they were signed.
73593         Problem reported by Claudio Fontana in
73594         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73595
73596 2006-01-10  Jim Meyering  <jim@meyering.net>
73597
73598         Avoid the double-free (first in fts_read, second in fts_close) that
73599         would occur when an `active' directory is made inaccessible (e.g.,
73600         via chmod a-x) during a traversal.
73601         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73602         before returning.  Reproduce this failure by
73603         mkdir -p a/b; cd a; chmod a-x . b
73604         Reported by Stavros Passas.
73605
73606         Sync from coreutils.
73607         * lib/sha1.c: Tweak grammar in a comment.
73608
73609 2006-01-10  Jim Meyering  <jim@meyering.net>
73610
73611         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73612         Patch by Joerg Sonnenberger.
73613
73614 2006-01-10  Bruno Haible  <bruno@clisp.org>
73615
73616         * modules/readutmp: Depend on module free.
73617         * modules/strtok_r: Depend on module restrict.
73618
73619 2006-01-10  Bruno Haible  <bruno@clisp.org>
73620
73621         * modules/gettext (configure.ac): Add an invocation of
73622         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73623
73624 2006-01-10  Bruno Haible  <bruno@clisp.org>
73625
73626         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73627         Reported by Werner Lemberg <wl@gnu.org>.
73628
73629 2006-01-10  Bruno Haible  <bruno@clisp.org>
73630
73631         * lib/localcharset.c: Update from GNU gettext.
73632
73633 2006-01-10  Bruno Haible  <bruno@clisp.org>
73634
73635         * lib/argp.h (__const): Remove macro. Use const instead.
73636         * lib/argp-fmtstream.h (__const): Likewise.
73637         * lib/glob_.h (__const): Remove macro.
73638         * lib/glob-libc.h: Use const instead of __const.
73639
73640 2006-01-10  Bruno Haible  <bruno@clisp.org>
73641
73642         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73643         variable.
73644         Needed to avoid an automake error regarding the 'gettext' module.
73645
73646 2006-01-09  Simon Josefsson  <jas@extundo.com>
73647
73648         * modules/inet_ntop (Depends-on): Add restrict.
73649
73650 2006-01-09  Simon Josefsson  <jas@extundo.com>
73651
73652         * modules/gc-rijndael-tests (License): Put under LGPL.
73653
73654         * modules/gc-des-tests (License): Likewise.
73655
73656         * modules/gc-arcfour-tests (License): Likewise.
73657
73658         * modules/gc-arctwo-tests (License): Likewise.
73659
73660         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73661
73662         * modules/gc-hmac-sha1-tests (Files): Likewise.
73663
73664         * modules/gc-hmac-md5-tests (License): Likewise.
73665
73666         * modules/gc-sha1-tests (License): Likewise.
73667
73668         * modules/gc-md5-tests (License): Likewise.
73669
73670         * modules/gc-md4-tests (License): Likewise.
73671
73672         * modules/gc-md2-tests (License): Likewise.
73673
73674         * modules/gc-tests (License): Likewise.
73675
73676         * modules/des-tests (License): Likewise.
73677
73678         * modules/md4-tests (License): Likewise.
73679
73680         * modules/md2-tests (License): Likewise.
73681
73682 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73683
73684         Sync from coreutils:
73685
73686         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73687         * modules/lib-ignore: New file.
73688         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73689         chdir-safer.m4, lchmod.m4.
73690         * modules/openat: Add mkdirat.c, openat-priv.h.
73691
73692 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         Sync from coreutils.
73695         * m4/lib-ignore.m4: New file.
73696         * m4/lchmod.m4: New file.
73697
73698 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         Sync from coreutils.
73701         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73702         for write access: POSIX says that must fail.
73703         * lib/fts.c (diropen): Likewise.
73704         * lib/save-cwd.c (save_cwd): Likewise.
73705         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73706         well, for minor improvements on hosts that lack O_DIRECTORY.
73707         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73708         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73709         Fall back on chown if open failed with EACCES.
73710
73711         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73712         Report an error at compile-time if only a 1-second nominal clock
73713         resolution is found.
73714
73715         * lib/lchmod.h: New file.
73716         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73717         (make_dir_parents): Use lchown rather than chown, and
73718         lchmod rather than chmod.
73719
73720         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73721         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73722         "proc" reported by n0dalus.
73723
73724         * lib/mountlist.c: Include <limits.h>.
73725         (dev_from_mount_options)
73726         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73727         New function.  It no longer assumes "dev=" has the System V meaning
73728         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73729         (read_file_system_list)
73730         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73731         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73732         dev= in that case.
73733
73734         * lib/posixtm.h (PDS_PRE_2000): New macro.
73735         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73736         allow_century.  All usages changed.  Reject dates outside the range
73737         1969-1999 if PDS_PRE_2000 is used.
73738
73739 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73740
73741         Sync from coreutils.
73742         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73743         (Time of day items): Mention the possibility of leap seconds.
73744         Problem reported by Dr. David Alan Gilbert.
73745
73746 2006-01-09  Jim Meyering  <jim@meyering.net>
73747
73748         Sync from coreutils.
73749
73750         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73751
73752         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73753
73754         * lib/modechange.c (mode_compile): Reject an invalid mode string
73755         that starts with an octal digit.  From Andreas Gruenbacher.
73756
73757         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73758         and dup to open_safer and dup_safer, respectively.
73759         (openat_permissive): Fix typo in comment.
73760
73761         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73762         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73763         (_): Remove; no longer needed.
73764         (openat): Renamed from rpl_openat; no need for rpl_openat
73765         since openat.h renames openat for us.
73766         Replace most of the body with a call to openat_permissive,
73767         to avoid duplicate code.
73768         Port to (probably hypothetical) environments were mode_t is
73769         wider than int.
73770         (openat_permissive): Require mode arg, so that we can check
73771         types better.  Put it just after flags.  Change cwd failure
73772         indicator from pointer-to-bool to pointer-to-errno-value.
73773         All callers changed.
73774         Invoke openat_save_fail and/or openat_restore_fail if
73775         cwd_errno is null, so that openat can call us.
73776         (openat_permissive, fdopendir, fstatat, unlinkat):
73777         Simplify errno handling to avoid some duplicate code,
73778         as it's OK to set errno on success.
73779         * lib/openat.h: Revamp code so that function macros depend on
73780         __OPENAT_PREFIX only, not also on AT_FDCWD.
73781         (openat_ro): Remove.  Caller changed to use openat_permissive.
73782         (openat_permissive): Now a macro, if not a function.
73783         (openat_restore_fail, openat_save_fail): Now always functions,
73784         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73785
73786         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73787         and openat.c.
73788         * lib/mkdirat.c: Include openat-priv.h.
73789         Remove definitions of macros defined therein.
73790         * lib/openat.c: Likewise.
73791
73792         * lib/mkdirat.c (mkdirat): New file and function.
73793         * lib/openat.h (mkdirat): Declare.
73794
73795         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73796
73797         * lib/openat.h (openat_permissive): Declare.
73798         (openat_ro): Define.
73799
73800         * lib/openat.c (EXPECTED_ERRNO): New macro.
73801         (openat_permissive): New function -- used in remove.c rewrite.
73802         (all functions): Set errno just before returning, only if there
73803         was an actual failure.
73804         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73805
73806         Emulate openat-family functions using Linux's procfs, if possible.
73807         Idea and some code based on Ulrich Drepper's glibc changes.
73808
73809         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73810         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73811         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73812         before falling back on save_cwd and restore_cwd.
73813         (fdopendir, fstatat, unlinkat): Likewise.
73814
73815         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73816         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73817
73818         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73819         as second argument to va_arg.  Otherwise, some versions of gcc
73820         warn that `if this code is reached, the program will abort'.
73821
73822 2006-01-09  Jim Meyering  <jim@meyering.net>
73823
73824         Sync from coreutils.
73825         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73826         Require openat-priv.h.
73827
73828 2006-01-09  Bruno Haible  <bruno@clisp.org>
73829
73830         * modules/strnlen (Include): Use strnlen.h.
73831
73832 2006-01-09  Bruno Haible  <bruno@clisp.org>
73833
73834         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73835
73836 2006-01-09  Bruno Haible  <bruno@clisp.org>
73837
73838         * lib/sysexit_.h (EX_OK): New macro.
73839         Suggested by Martin Lambers <marlam@marlam.de>.
73840
73841 2006-01-09  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73844         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73845
73846 2006-01-09  Bruno Haible  <bruno@clisp.org>
73847
73848         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73849         numbers.
73850
73851 2006-01-09  Bruno Haible  <bruno@clisp.org>
73852
73853         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73854         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73855         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73856         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73857
73858 2006-01-09  Bruno Haible  <bruno@clisp.org>
73859
73860         * build-aux/javacomp.sh.in: New file, moved from lib/.
73861         * modules/javacomp-script (Files): Update.
73862         (configure.ac): Add AC_CONFIG_FILES invocation.
73863         (EXTRA_DIST): Remove variable.
73864
73865         * build-aux/javaexec.sh.in: New file, moved from lib/.
73866         * modules/javaexec (Files): Update.
73867         (configure.ac): Add AC_CONFIG_FILES invocation.
73868         (EXTRA_DIST): Remove javaexec.sh.in.
73869
73870         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73871         * modules/csharpcomp-script (Files): Update.
73872         (configure.ac): Add AC_CONFIG_FILES invocation.
73873         (EXTRA_DIST): Remove variable.
73874
73875         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73876         * modules/csharpexec (Files): Update.
73877         (configure.ac): Add AC_CONFIG_FILES invocation.
73878         (EXTRA_DIST): Remove csharpexec.sh.in.
73879
73880 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73881
73882         Sync from coreutils.
73883
73884         Add POSIX ACL support
73885         * lib/acl.h (copy_acl, set_acl): Add declarations.
73886         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73887         systems other than Linux.
73888         (chmod_or_fchmod): New function: use fchmod when possible,
73889         and chmod otherwise.
73890         (file_has_acl): Add a POSIX ACL implementation, with a
73891         Linux-specific subcase.
73892         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73893         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73894         acls are unsupported.
73895         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73896         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73897         are unsupported.
73898
73899 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73900
73901         Sync from coreutils.
73902         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73903
73904 2006-01-07  Bruno Haible  <bruno@clisp.org>
73905
73906         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73907         gl_EARLY.
73908
73909 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73912         Problem reported for Mingw by Mark Junker.
73913
73914 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * README: Gnulib normally doesn't generate a tarball.
73917
73918 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73921         long int, not int, for nanosecond counts, so that people who are
73922         used to POSIX struct timespec won't be surprised.  Reported by Jim
73923         Meyering.
73924
73925 2005-12-28  Bruno Haible  <bruno@clisp.org>
73926
73927         * build-aux/config.rpath: Update from GNU gettext.
73928
73929 2005-12-16  Jim Meyering  <jim@meyering.net>
73930
73931         * modules/fprintftime: New module.
73932         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73933
73934 2005-12-16  Jim Meyering  <jim@meyering.net>
73935
73936         * m4/fprintftime.m4: New file.
73937
73938 2005-12-16  Jim Meyering  <jim@meyering.net>
73939
73940         * lib/fprintftime.c, lib/fprintftime.h: New files.
73941
73942 2005-12-15  Simon Josefsson  <jas@extundo.com>
73943
73944         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73945         new m4/socklen.m4.
73946
73947 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73948
73949         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73950         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73951
73952 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73953
73954         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73955         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73956         struct uparams is valid. Fall back to the default values if it is
73957         not.
73958
73959 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73960
73961         * modules/argp (Files): Add argp-pin.c
73962         (Depends-on): dirname
73963         (lib_SOURCES): Add argp-pin.c
73964
73965 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73966
73967         * m4/argp.m4:  Check if program_invocation_name and
73968         program_invocation_short_name are declared and define appropriate
73969         macros if they are not.
73970
73971 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73972
73973         * lib/argp-help.c (__argp_base_name): New function
73974         (__argp_short_program_name): Rewrite using __argp_base_name
73975         * lib/argp-namefrob.h: Define program_invocation_name and
73976         program_invocation_short_name if requested
73977         (__argp_base_name): Add prototype
73978         * lib/argp-parse.c (argp_def): Use gettext wrappers
73979         (argp_default_parser): Use __argp_base_name
73980         * lib/argp-pin.c: New file. Defines program_invocation_name and
73981         program_invocation_short_name on systems that lack them.
73982
73983 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73984
73985         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73986         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73987         porting problem reported by Georg Schwarz in
73988         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73989
73990 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73991
73992         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73993         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73994         porting problem reported by Georg Schwarz in
73995         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73996
73997 2005-12-05  Bruno Haible  <bruno@clisp.org>
73998
73999         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74000         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74001         Reported by Mark Junker <mjscod@gmx.de>.
74002
74003 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74004
74005         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74006         Use implementation from Albert Chin, with some
74007         comments/corrections by Stepan Kasal and myself.
74008
74009 2005-12-02  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool (func_import): Accept GPLed build tool modules when
74012         --lgpl is given.
74013         * modules/csharpcomp-script: New file.
74014         * modules/csharpcomp: Depend on it.
74015         * modules/javacomp-script: New file.
74016         * modules/javacomp: Depend on it.
74017         Suggested by Simon Josefsson.
74018
74019 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74022         statement, to work around an HP-UX 10.20 compiler bug reported by
74023         Peter O'Gorman.
74024
74025 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * modules/savedir (Depends-on): Add openat.
74028
74029 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74032         (uintmax_t) [defined uintmax_t]: Do not declare.
74033         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74034         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74035         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74036         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74037         sake of portability to weird hosts that C allows (though we don't
74038         know of any practical examples).
74039
74040         * lib/savedir.h (fdsavedir): New decl.
74041         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74042         contains most of the former guts of savedir.
74043         (savedir): Use savedirstream.
74044         Include "openat.h".
74045
74046 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74047
74048         * modules/obstack (Files): Add m4/ulonglong.m4.
74049         Problem reported by Davide Angelocola.
74050
74051 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74052
74053         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74054         coreutils no longer futzes with rounding modes.
74055
74056 2005-11-14  Jim Meyering  <jim@meyering.net>
74057
74058         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74059         replacement of mkstemp.
74060
74061 2005-11-10  Simon Josefsson  <jas@extundo.com>
74062
74063         * lib/readline.c: Remove EOL.
74064
74065 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * modules/gethrxtime (Depends-on): Add gettime.
74068
74069 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74070
74071         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74072         or gettimeofday; no longer needed.
74073
74074 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74077         time business.
74078         (gethrxtime) [! (HAVE_NANOUPTIME
74079         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74080         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74081         our own approximation.
74082
74083 2005-11-08  Eric Blake  <ebb9@byu.net>
74084
74085         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74086
74087 2005-11-08  Eric Blake  <ebb9@byu.net>
74088
74089         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74090
74091 2005-11-04  Bruno Haible  <bruno@clisp.org>
74092
74093         * gnulib-tool: Implement --update mode.
74094
74095 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         Fix porting problem reported by Theodoros V. Kalamatianos.
74098         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74099         Don't assume that futimes failing means we must fail.
74100
74101 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74104         variables to suggest the intended function of the PATH_MAX check.
74105
74106 2005-10-30  Kean Johnston  <jkj@sco.com>
74107
74108         Trivial changes to support SCO systems.
74109         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74110         as PATH_MAX.
74111         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74112         where __ptr is null when no I/O is pending.
74113
74114 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74117         leave errno alone.  Problem reported by Dmitry V. Levin.
74118
74119 2005-10-28  Simon Josefsson  <jas@extundo.com>
74120
74121         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74122         Test more.
74123
74124         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74125
74126         * modules/md2, modules/md2-tests: New files.
74127
74128 2005-10-28  Simon Josefsson  <jas@extundo.com>
74129
74130         * m4/inet_ntop.m4: More tests.
74131
74132         * m4/gc-md2.m4, md2.m4: New file.
74133
74134 2005-10-28  Simon Josefsson  <jas@extundo.com>
74135
74136         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74137         "restrict" keywords, as per POSIX.  Protect the function
74138         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74139         Don't use K&R prototypes.  Check the sprintf return values.
74140         Re-define EAFNOSUPPORT if not present.  Indent.
74141
74142         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74143         suggested by Bruno Haible <bruno@clisp.org>.
74144
74145         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74146
74147         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74148
74149         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74150         libgcrypt).
74151
74152         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74153
74154         * lib/md2.h, lib/md2.c: New files.
74155
74156 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74157
74158         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74159         errno alone.  Problem reported by Frederic Jolliton.
74160
74161 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74162
74163         * modules/verify (License): Change from GPL to LGPL.  This is a
74164         tiny module and there are apparently near-equivalents that are
74165         under the BSD license.
74166
74167 2005-10-24  Simon Josefsson  <jas@extundo.com>
74168
74169         * modules/sha1: Relicense to LGPL.
74170
74171 2005-10-24  Simon Josefsson  <jas@extundo.com>
74172
74173         * lib/md4.h: Shrink buffer size, now that we changed the type.
74174
74175 2005-10-23  Simon Josefsson  <jas@extundo.com>
74176
74177         * gnulib-tool (func_import): Fix --tests-base.
74178
74179 2005-10-22  Simon Josefsson  <jas@extundo.com>
74180
74181         * modules/arcfour (Depends-on): Need stdint.
74182
74183 2005-10-22  Simon Josefsson  <jas@extundo.com>
74184
74185         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74186         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74187
74188 2005-10-22  Simon Josefsson  <jas@extundo.com>
74189
74190         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74191         suggested by Bruno Haible <bruno@clisp.org>.
74192
74193 2005-10-22  Simon Josefsson  <jas@extundo.com>
74194
74195         * lib/crc.h: Include stddef.h, for size_t.
74196
74197 2005-10-22  Simon Josefsson  <jas@extundo.com>
74198
74199         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74200         arcfour_context struct (simplify test vector testing in GNU
74201         Shishi).
74202
74203 2005-10-21  Simon Josefsson  <jas@extundo.com>
74204
74205         * modules/des, modules/des-tests: New files.
74206
74207         * modules/gc-des, modules/gc-des-tests: New files.
74208
74209         * tests/test-des.c, tests/test-gc-des.c: New file.
74210
74211 2005-10-21  Simon Josefsson  <jas@extundo.com>
74212
74213         * modules/arctwo, modules/arctwo-tests: New files.
74214
74215         * tests/test-arctwo.c: New file.
74216
74217         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74218
74219         * tests/test-gc-arctwo.c: New file.
74220
74221 2005-10-21  Simon Josefsson  <jas@extundo.com>
74222
74223         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74224         Bruno Haible <bruno@clisp.org>.
74225
74226         * m4/gc-des.m4: New file.
74227
74228 2005-10-21  Simon Josefsson  <jas@extundo.com>
74229
74230         * m4/arctwo.m4: New file.
74231
74232         * m4/gc-arctwo.m4: New file.
74233
74234 2005-10-21  Simon Josefsson  <jas@extundo.com>
74235
74236         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74237         block.
74238
74239 2005-10-21  Simon Josefsson  <jas@extundo.com>
74240
74241         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74242         <bruno@clisp.org>.
74243
74244         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74245
74246         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74247         Bruno Haible <bruno@clisp.org>.
74248
74249         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74250         <bruno@clisp.org>.
74251
74252 2005-10-21  Simon Josefsson  <jas@extundo.com>
74253
74254         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74255
74256 2005-10-21  Simon Josefsson  <jas@extundo.com>
74257
74258         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74259
74260 2005-10-21  Simon Josefsson  <jas@extundo.com>
74261
74262         * lib/des.h, lib/des.c: New files.
74263
74264         * lib/gc-gnulib.c: Support DES.c
74265
74266 2005-10-21  Simon Josefsson  <jas@extundo.com>
74267
74268         * lib/arctwo.h, lib/arctwo.c: New files.
74269
74270         * lib/gc-gnulib.c: Support ARCTWO.
74271
74272 2005-10-21  Simon Josefsson  <jas@extundo.com>
74273
74274         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74275         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74276
74277 2005-10-21  Simon Josefsson  <jas@extundo.com>
74278
74279         * gnulib-tool (func_import, func_create_testdir): Define automake
74280         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74281         Makefile.am snippet),
74282         suggested by Bruno Haible <bruno@clisp.org>.
74283
74284         * modules/gc (Makefile.am): Use it.
74285
74286 2005-10-21  Bruno Haible  <bruno@clisp.org>
74287
74288         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74289         patch.
74290
74291 2005-10-19  Simon Josefsson  <jas@extundo.com>
74292
74293         * tests/test-gc-rijndael.c: New file.
74294
74295         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74296
74297 2005-10-19  Simon Josefsson  <jas@extundo.com>
74298
74299         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74300         interface too.
74301
74302 2005-10-19  Simon Josefsson  <jas@extundo.com>
74303
74304         * tests/test-gc-arcfour.c: New file.
74305
74306         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74307
74308 2005-10-19  Simon Josefsson  <jas@extundo.com>
74309
74310         * modules/gc-md4, modules/gc-md4-tests: New file.
74311
74312         * tests/test-gc-md4.c: New file.
74313
74314 2005-10-19  Simon Josefsson  <jas@extundo.com>
74315
74316         * m4/gc-md4.m4: New file.
74317
74318 2005-10-19  Simon Josefsson  <jas@extundo.com>
74319
74320         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74321         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74322         <kasal@ucw.cz>.
74323
74324 2005-10-19  Simon Josefsson  <jas@extundo.com>
74325
74326         * m4/gc-arcfour.m4: New file.
74327
74328         * m4/gc-rijndael.m4: New file.
74329
74330 2005-10-19  Simon Josefsson  <jas@extundo.com>
74331
74332         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74333
74334 2005-10-19  Simon Josefsson  <jas@extundo.com>
74335
74336         * lib/gc-gnulib.c: Support ARCFOUR.
74337
74338 2005-10-19  Simon Josefsson  <jas@extundo.com>
74339
74340         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74341         support.
74342
74343         * lib/gc.h: Add ECB enum type.
74344
74345         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74346
74347 2005-10-18  Simon Josefsson  <jas@extundo.com>
74348
74349         * tests/test-md5.c: New file.
74350
74351         * modules/md5-tests: New file.
74352
74353 2005-10-18  Simon Josefsson  <jas@extundo.com>
74354
74355         * tests/test-md4.c: New file.
74356
74357         * modules/md4, modules/md4-tests: New files.
74358
74359 2005-10-18  Simon Josefsson  <jas@extundo.com>
74360
74361         * m4/md4.m4: New file.
74362
74363 2005-10-18  Simon Josefsson  <jas@extundo.com>
74364
74365         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74366
74367 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74368
74369         * gnulib-tool (func_create_testdir): Omit the second check whether
74370         BUILT_SOURCES in nonempty.
74371
74372 2005-10-17  Simon Josefsson  <jas@extundo.com>
74373
74374         * tests/test-rijndael.c: New file.
74375
74376 2005-10-17  Simon Josefsson  <jas@extundo.com>
74377
74378         * modules/sha1: Depend on stdint instead of md5.
74379
74380         * modules/md5: Depend on stdint, remove uint32_t.
74381
74382 2005-10-17  Simon Josefsson  <jas@extundo.com>
74383
74384         * modules/gc-sha1-tests: New file.
74385
74386         * tests/test-gc-sha1.c: New file.
74387
74388 2005-10-17  Simon Josefsson  <jas@extundo.com>
74389
74390         * m4/md5.m4: Remove call to uint32_t.m4.
74391
74392 2005-10-17  Simon Josefsson  <jas@extundo.com>
74393
74394         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74395
74396         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74397         md5.h.
74398
74399         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74400
74401         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74402
74403 2005-10-17  Simon Josefsson  <jas@extundo.com>
74404
74405         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74406
74407 2005-10-17  Simon Josefsson  <jas@extundo.com>
74408
74409         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74410
74411 2005-10-17  Simon Josefsson  <jas@extundo.com>
74412
74413         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74414
74415         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74416
74417 2005-10-17  Bruno Haible  <bruno@clisp.org>
74418
74419         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74420         that it can also be used in a test.
74421
74422 2005-10-16  Bruno Haible  <bruno@clisp.org>
74423
74424         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74425         TESTS_ENVIRONMENT, so that individual tests can augment it.
74426
74427         * gnulib-tool (func_create_testdir): Use an intermediate target for
74428         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74429         macros, like $(ALLOCA_H), which cannot be passed through the command
74430         line.
74431
74432 2005-10-15  Simon Josefsson  <jas@extundo.com>
74433
74434         * modules/rijndael-tests: New file.
74435
74436         * modules/rijndael: New file.
74437
74438 2005-10-15  Simon Josefsson  <jas@extundo.com>
74439
74440         * m4/rijndael.m4: New file.
74441
74442 2005-10-15  Simon Josefsson  <jas@extundo.com>
74443
74444         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74445
74446         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74447
74448 2005-10-14  Simon Josefsson  <jas@extundo.com>
74449
74450         * tests/test-arcfour.c: New file.
74451
74452         * modules/arcfour, modules/arcfour-tests: New files.
74453
74454 2005-10-14  Simon Josefsson  <jas@extundo.com>
74455
74456         * m4/arcfour.m4: New file.
74457
74458 2005-10-14  Simon Josefsson  <jas@extundo.com>
74459
74460         * lib/arcfour.h, lib/arcfour.c: New files.
74461
74462 2005-10-14  Roland McGrath  <roland@redhat.com>
74463
74464         Import from libc.  [BZ #1331]
74465         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74466         macro argument.
74467         Reported by Matej Vela <vela@debian.org>.
74468
74469 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74472         include <wchar.h>; no longer needed.
74473
74474 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74477
74478 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74479         and  Ulrich Drepper  <drepper@redhat.com>
74480
74481         Import from libc.
74482         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74483         instead of inline stream orientation test and two separate
74484         function calls.  Pay no attention to USE_IN_LIBIO.
74485
74486 2005-10-13  Simon Josefsson  <jas@extundo.com>
74487
74488         * modules/gc-hmac-md5-tests: New file.
74489
74490         * tests/test-gc-hmac-sha1.c: New file.
74491
74492         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74493
74494         * modules/gc-hmac-md5-tests: New file.
74495
74496         * tests/test-gc-md5.c: New file.
74497
74498         * modules/gc-md5-tests: New file.
74499
74500 2005-10-13  Simon Josefsson  <jas@extundo.com>
74501
74502         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74503         Move memory allocation outside of loop.
74504
74505 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74506
74507         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74508         intermediate directory is in a read-only file system.  Problem
74509         reported by Eric Blake.
74510
74511 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74512
74513         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74514
74515 2005-10-12  Simon Josefsson  <jas@extundo.com>
74516
74517         * tests/test-hmac-sha1.c: New file.
74518
74519         * modules/hmac-sha1-tests: New file.
74520
74521         * modules/hmac-sha1: New file.
74522
74523 2005-10-12  Simon Josefsson  <jas@extundo.com>
74524
74525         * modules/gc-sha1: New file.
74526
74527 2005-10-12  Simon Josefsson  <jas@extundo.com>
74528
74529         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74530
74531         * tests/test-gc-pbkdf2-sha1.c: New file.
74532
74533 2005-10-12  Simon Josefsson  <jas@extundo.com>
74534
74535         * modules/gc-md5, modules/gc-hmac-md5: New files.
74536
74537         * modules/gc (Files): Remove md5, memxor and hmac files.
74538
74539 2005-10-12  Simon Josefsson  <jas@extundo.com>
74540
74541         * m4/gc-pbkdf2-sha1.m4: New file.
74542
74543         * m4/gc-hmac-sha1.m4: New file.
74544
74545         * m4/gc-sha1: New file.
74546
74547         * m4/hmac-sha1.m4: New file.
74548
74549 2005-10-12  Simon Josefsson  <jas@extundo.com>
74550
74551         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74552
74553         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74554
74555 2005-10-12  Simon Josefsson  <jas@extundo.com>
74556
74557         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74558         suggested by Bruno Haible <bruno@clisp.org>.
74559
74560 2005-10-12  Simon Josefsson  <jas@extundo.com>
74561
74562         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74563
74564 2005-10-12  Simon Josefsson  <jas@extundo.com>
74565
74566         * lib/gc-pbkdf2-sha1.c: New file.
74567
74568         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74569
74570 2005-10-12  Simon Josefsson  <jas@extundo.com>
74571
74572         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74573
74574         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74575
74576 2005-10-12  Simon Josefsson  <jas@extundo.com>
74577
74578         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74579         GC_USE_HMAC_MD5, respectively.
74580
74581         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74582         (gc_md5): Fix typo.
74583
74584         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74585
74586         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74587
74588         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74589
74590 2005-10-12  Bruno Haible  <bruno@clisp.org>
74591
74592         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74593         Reported by Stepan Kasal <kasal@ucw.cz>.
74594
74595 2005-10-11  Simon Josefsson  <jas@extundo.com>
74596
74597         * tests/test-crc.c: New file.
74598
74599         * modules/crc, modules/crc-tests: New files.
74600
74601 2005-10-11  Simon Josefsson  <jas@extundo.com>
74602
74603         * m4/crc.m4: New file.
74604
74605 2005-10-11  Simon Josefsson  <jas@extundo.com>
74606
74607         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74608
74609         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74610
74611         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74612
74613 2005-10-11  Simon Josefsson  <jas@extundo.com>
74614
74615         * lib/crc.h, lib/crc.c: New files.
74616
74617         * lib/gc.h (gc_hash_buffer): Add doc.
74618
74619 2005-10-11  Bruno Haible  <bruno@clisp.org>
74620
74621         * modules/c-strcasestr: New file.
74622         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74623
74624 2005-10-11  Bruno Haible  <bruno@clisp.org>
74625
74626         * modules/c-strcase: New file.
74627         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74628
74629 2005-10-11  Bruno Haible  <bruno@clisp.org>
74630
74631         * lib/strcasecmp.c: Include limits.h.
74632         (strcasecmp): Avoid integer overflow on exotic platforms.
74633         * lib/strncasecmp.c: Include limits.h.
74634         (strncasecmp): Avoid integer overflow on exotic platforms.
74635         Reported by Paul Eggert.
74636
74637 2005-10-11  Bruno Haible  <bruno@clisp.org>
74638
74639         * lib/c-strcasestr.h: New file, from GNU gettext.
74640         * lib/c-strcasestr.c: New file, from GNU gettext.
74641
74642 2005-10-11  Bruno Haible  <bruno@clisp.org>
74643
74644         * lib/c-strcase.h: New file, from GNU gettext.
74645         * lib/c-strcasecmp.c: New file, from GNU gettext.
74646         * lib/c-strncasecmp.c: New file, from GNU gettext.
74647
74648 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74649
74650         * modules/mempcpy (License): GPL -> LGPL.
74651         * modules/strchrnul (License): Likewise.
74652         * modules/sysexits (License): Likewise.
74653
74654 2005-10-08  Simon Josefsson  <jas@extundo.com>
74655
74656         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74657
74658 2005-10-07  Simon Josefsson  <jas@extundo.com>
74659
74660         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74661
74662 2005-10-06  Simon Josefsson  <jas@extundo.com>
74663
74664         * tests/test-hmac-md5.c: New file.
74665
74666         * modules/hmac-md5-tests: New file.
74667
74668         * modules/hmac-md5: New file.
74669
74670 2005-10-06  Simon Josefsson  <jas@extundo.com>
74671
74672         * m4/hmac-md5.m4: New file.
74673
74674         * m4/memxor.m4: Require gl_C_RESTRICT.
74675
74676 2005-10-06  Simon Josefsson  <jas@extundo.com>
74677
74678         * lib/memxor.c (memxor): Avoid casts and warnings.
74679
74680 2005-10-06  Simon Josefsson  <jas@extundo.com>
74681
74682         * lib/hmac-md5.c: New file.
74683
74684         * lib/hmac.h: New file.
74685
74686 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74687
74688         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74689         promotes to int, not unsigned int, to catch the AIX 5.3
74690         compiler bug.
74691
74692 2005-10-05  Simon Josefsson  <jas@extundo.com>
74693
74694         * modules/memxor: New file.
74695
74696         * modules/iconv (Files): Move config.rpath to havelib, it is used
74697         there.
74698
74699         * modules/havelib (Files): Add config.rpath.
74700
74701 2005-10-05  Simon Josefsson  <jas@extundo.com>
74702
74703         * m4/memxor.m4: New file.
74704
74705 2005-10-05  Simon Josefsson  <jas@extundo.com>
74706
74707         * lib/memxor.c (memxor): Fix compiler error.
74708
74709         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74710         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74711
74712         * lib/memxor.h, lib/memxor.c: New files.
74713
74714         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74715         we assume all systems have it, suggested by Jim Meyering
74716         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74717         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74718         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74719         same reasons.
74720
74721 2005-10-05  Simon Josefsson  <jas@extundo.com>
74722
74723         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74724
74725 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74728         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74729         needed, since the source code now assumes these .h files.
74730
74731 2005-10-05  Derek Price  <derek@ximbiot.com>
74732
74733         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74734
74735 2005-10-05  Bruno Haible  <bruno@clisp.org>
74736
74737         * modules/stdint (License): Change to LGPL.
74738
74739 2005-10-04  Simon Josefsson  <jas@extundo.com>
74740
74741         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74742         D. Baushke" <mdb@gnu.org>.
74743
74744 2005-10-04  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/verify.h (verify_true): Provide alternative definition for C++.
74747
74748 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74749
74750         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74751         (SSIZE_MAX): New macro, if not already defined.
74752         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74753         than 2 GiB.
74754
74755 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         Sync from coreutils.
74758         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74759         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74760         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74761         ULLONG_MAX doesn't work with 2.7.2.1.
74762
74763 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74766         From Ben Pfaff.
74767
74768         * modules/exclude (Depends-on): Depend on verify.
74769         * modules/strtoimax (Depends-on): Likewise.
74770         * modules/utimecmp (Depends-on): Likewise.
74771
74772 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         * lib/exclude.c: Include verify.h.
74775         (verify): Remove.  All callers changed to use verify.h's version.
74776         * lib/strtoimax.c: Likewise.
74777         * lib/utimecmp.c: Likewis.e
74778
74779         Sync from coreutils.
74780         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74781         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74782         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74783         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74784         bother returning ENOSYS if settimeofday or stime fails; just let
74785         them return whatever errno they want to return.
74786         * lib/utimens.c: Include unistd.h, for dup2.
74787         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74788         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74789
74790 2005-10-02  Jim Meyering  <jim@meyering.net>
74791
74792         Sync from coreutils.
74793         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74794         from glibc-2.2.5 that fails for read-only files.
74795
74796 2005-10-02  Jim Meyering  <jim@meyering.net>
74797
74798         Sync from coreutils.
74799         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74800         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74801         `#if HAVE_CONFIG_H'.
74802         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74803         Remove AT_FDCWD test.
74804         Do not consume the fd unless successful.
74805         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74806         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74807         block, so that we don't even try to compile it if settimeofday is
74808         available.  This works around a compilation failure on OSF1 V5.1,
74809         due to stime requiring a `long int*' while tv_sec is `int'.
74810
74811 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74812
74813         Sync from coreutils.
74814         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74815         against `yes', rather than just testing for nonempty.
74816
74817 2005-10-01  Simon Josefsson  <jas@extundo.com>
74818
74819         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74820         and Darwin.
74821
74822         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74823         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74824         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74825         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74826         Check if struct addrinfo is declared.
74827
74828 2005-10-01  Simon Josefsson  <jas@extundo.com>
74829
74830         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74831         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74832         AI_* and EAI_* definitions.  Protect function declarations.
74833
74834 2005-10-01  Jim Meyering  <jim@meyering.net>
74835
74836         Sync from coreutils.
74837
74838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74839         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74840         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74842         in the inet and nsl libraries.  Required on Solaris 5.7.
74843
74844 2005-10-01  Jim Meyering  <jim@meyering.net>
74845
74846         Sync from coreutils.
74847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74848         in the inet and nsl libraries.  Required on Solaris 5.7.
74849
74850 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74851
74852         * lib/getdelim.c (getdelim): Remove unused variables.
74853
74854 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74855
74856         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74857         so that the code works even with ancient cpp.  Portability problem
74858         with GCC 2.7.2.1 reported by Thomas M.Ott.
74859
74860 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * modules/regex (Depends-on): Add strcase.
74863
74864         * modules/gethostname (Licence): Change from GPL to LGPL, since
74865         gethostname.c is a trivial implementation of a standard library
74866         function.
74867         * modules/poll (License): Change from GPL to LGPL, since it's
74868         derived from LGPL code.
74869
74870 2005-09-27  Jim Meyering  <jim@meyering.net>
74871
74872         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74873         HAVE_CONFIG_H.
74874
74875         * lib/intprops.h (signed_type_or_expr__): Define.
74876         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74877         for unsigned types.
74878
74879 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         * lib/verify.h (verify_expr): Remove, replacing with:
74882         (verify_true): New macro that returns true instead of void.
74883         (verify_type__): Remove.
74884         (verify): Use verify_true rather than verify_type__.
74885
74886 2005-09-26  Bruno Haible  <bruno@clisp.org>
74887
74888         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74889         is necessary.
74890         (lib_SOURCES): Remove mbchar.c.
74891         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74892         (Files): Add m4/mbrtowc.m4.
74893         * modules/mbiter: Likewise.
74894         * modules/mbuiter: Likewise.
74895
74896 2005-09-26  Bruno Haible  <bruno@clisp.org>
74897
74898         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74899         compile mbchar.c if they are not both present.
74900         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74901         * m4/mbiter.m4 (gl_MBITER): Likewise.
74902         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74903         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74904         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74905
74906 2005-09-25  Jim Meyering  <jim@meyering.net>
74907
74908         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74909         also uses socklen_t.
74910
74911 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         * lib/utimens.c (ENOSYS): Define if not already defined.
74914         (futimens): Support having a null PATH if the file descriptor
74915         is nonnegative.
74916
74917         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74918         Remove.
74919         (__attribute): Define to empty unless GCC 3.1 or later.
74920         This works around a core dump on OpenBSD 3.4, which has GCC
74921         2.95.3, which dumps core when given __attribute__(()).  It also
74922         simplifies other tests, since we really don't want to bother with
74923         worrying about which ancient version of GCC supported what.
74924         Original problem reported by Yoann Vandoorselaere, with part of
74925         the fix suggested by Derek Price.
74926
74927 2005-09-24  Jim Meyering  <jim@meyering.net>
74928
74929         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74930         so we can once again use a positive bitfield width of 1 -- now we
74931         don't have to explain why we were using a bitfield width of 2.
74932
74933 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74934
74935         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74936         and similarly for the other external symbols.  Problem reported
74937         by James Gallager.
74938
74939         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74940         bug reported by Jim Meyering.
74941
74942         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74944         not needed, since socklen is a prerequisite module.
74945
74946 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74949         Problem reported by Eric Blake.
74950         (getaddrinfo): Initialize se so that it's not garbage.
74951         Redo internal storage allocation so that it doesn't make unportable
74952         assumptions about alignment.
74953         Fix a memory leak.
74954
74955         * lib/utimens.c (futimens): Use futimesat if available.
74956         Prefer it to futimes since it doesn't have the futimes bug.
74957
74958         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74959         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74960         Instead, declare a function that returns a pointer to an array,
74961         and use verify_type__ to declare the size of the array.
74962         Problem and germ of a solution reported by Bruno Haible.
74963         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74964         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74965
74966 2005-09-23  Jim Meyering  <jim@meyering.net>
74967
74968         Sync from coreutils.
74969         Correct build failure (socklen_t not defined) on at least
74970         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74971         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74972
74973 2005-09-23  Jim Meyering  <jim@meyering.net>
74974
74975         * modules/getaddrinfo (Depends-on): Add socklen.
74976
74977 2005-09-23  Bruno Haible  <bruno@clisp.org>
74978
74979         * tests/test-verify.c: New file.
74980
74981 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74982
74983         Sync from coreutils.
74984
74985         * modules/argmatch (Depends-on): Add verify.
74986         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74987         unistd-safer.
74988         * modules/save-cwd (Depends-on): Likewise.
74989
74990         * modules/openat (Files): Add lib/openat-die.c.
74991         (Depends-on): Remove error, exitfail.
74992         Add dirname.
74993
74994         * modules/verify: New file.
74995         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74996         with "verify" module.
74997
74998 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         Sync from coreutils.
75001
75002         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75003         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75004         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75005         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75006         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75007         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75008         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75009         Don't bother checking for string.h, stdlib.h, unistd.h.
75010         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75011         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75012         module's job.
75013         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75014         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75015
75016         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75017         (gl_GETDATE): Use it.
75018
75019         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75020
75021 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         Sync from coreutils.
75024
75025         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75026         stat-time.h.
75027         * lib/argmatch.h: Include verify.h
75028         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75029         (ARGMATCH_ASSERT): Remove; unused.
75030         * lib/canonicalize.c: Assume STDC_HEADERS.
75031         * lib/exclude.c: Include "strcase.h".
75032         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75033         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75034         and stdio-safer.h.
75035         (getusershell): Call fopen, not fopen_safer.
75036         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75037         Do not include unistd-safer.h.
75038         (save_cwd): Don't call fd_safer; no longer needed
75039         now that we include fcntl--.h.
75040
75041         * lib/getdate.y (relative_time): New type.
75042         (RELATIVE_TIME_0): New constant.
75043         (parser_control): Use relative_time instead of doing it ourselves.
75044         (%union): Add new relative_time rel member.
75045         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75046         Now typeless.
75047         (relunit, relunit_snumber): Now of type rel.
75048         (zone, rel, relunit, get_date): Adjust to above changes.
75049
75050         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75051         Do not include unistd-safer.h.
75052         (getloadavg): Don't call fd_safer; no longer needed
75053         now that we include fcntl--.h.
75054
75055         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75056         (make_dir_parents): Treat ENOSYS like EEXIST.
75057
75058         Improve quality of diagnostics on restore_cwd failure.
75059         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75060         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75061         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75062         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75063         each time through the loop.  Do not diagnose restore_cwd failure;
75064         that is the caller's job (and perhaps the caller does not care).
75065
75066         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75067         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75068         If the file already exists but is not a directory, don't bother
75069         to try to make its parents.
75070         Close potential file descriptor leak if we can't chdir("/") (!).
75071         Don't always return true if chdir($PWD) fails; return true only
75072         if the requested action was done successfully (except for the
75073         chdir($PWD)).
75074         Don't log final directory unless we actually made it.
75075         Refactor to avoid duplicate code to fix up permissions.
75076         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75077
75078         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75079         to make it a bit faster and (I hope) clearer.
75080         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75081         Fix bug in formats like %2N.
75082
75083         * lib/verify.h: New file.
75084
75085 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75086
75087         Sync from coreutils.
75088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75089
75090 2005-09-22  Jim Meyering  <jim@meyering.net>
75091
75092         Sync from coreutils.
75093
75094         * m4/lstat.m4 (gl_FUNC_LSTAT):
75095         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75096         Remove obsolete comment.
75097         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75098         * m4/xstrtod.m4: Likewise.
75099
75100         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75101
75102 2005-09-22  Jim Meyering  <jim@meyering.net>
75103
75104         Sync from coreutils.
75105
75106         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75107
75108         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75109         the .tm_year member, since otherwise gcc-4.0 would now warn about
75110         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75111
75112         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75113         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75114
75115         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75116         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75117         when run in a time zone for which daylight savings time is in effect
75118         for the starting date.
75119
75120         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75121         stop us from restricting permissions of just-created absolute-named
75122         directories.
75123         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75124         to restore initial working directory.
75125         * lib/mkdir-p.c (make_dir_parents): New parameter:
75126         different_working_dir, to tell caller if/when we change the working
75127         directory and are unable to return to the initial one.
75128         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75129         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75130         `return false'.  This fixes a bug introduced on 2004-07-30.
75131
75132         * lib/openat.c (fdopendir): Be sure to close the supplied
75133         file descriptor before returning.  This makes our replacement
75134         implementation a little closer to Solaris's, where fdopendir
75135         ties the file descriptor to the returned DIR* pointer.
75136         * lib/openat.c (unlinkat): New function.
75137         * lib/openat.h (unlinkat): Add prototype.
75138         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75139         (openat_restore_fail): Rename from openat_restore_die.
75140         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75141
75142         Provide an alternative to exiting immediately upon save_cwd or
75143         restore_cwd failure.  Now, an application can arrange e.g.,
75144         to perform a longjump in that case.
75145         * lib/openat.c: Include dirname.h.
75146         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75147         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75148         and openat_restore_die rather than calling error directly.
75149         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75150
75151         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75152         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75153         define.
75154
75155         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75156         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75157                             int utc, int nanoseconds);
75158         Background:
75159         date should not have to allocate a megabyte of virtual memory to
75160         handle a format argument like +%1048575T.  When implemented with
75161         strftime, it must allocate such a buffer, use strftime to fill it
75162         in, print it, then free it.
75163         With fprintftime, it simply prints everything and exits.
75164         With no need for memory allocation, that's one fewer way to fail.
75165         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75166         optional field width, not before, so we accept %9:z, not %:9z.
75167         (my_strftime): Be sure to use L_('x') for literals.
75168
75169         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75170         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75171         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75172         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75173         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75174         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75175         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75176         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75177         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75178         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75179         * lib/xgethostname.c, lib/xreadlink.c:
75180         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75181
75182         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75183         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75184         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75185         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75186         and don't include <sys/file.h>).
75187
75188 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75189
75190         Sync from coreutils.
75191
75192         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75193         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75194         [!LDAV_DONE]: Avoid unused variable warning.
75195
75196 2005-09-21  Bruno Haible  <bruno@clisp.org>
75197
75198         * lib/unicodeio.h (unicode_to_mb): New declaration.
75199
75200 2005-09-20  Derek Price  <derek@ximbiot.com>
75201
75202         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75203         getaddrinfo.h.
75204
75205 2005-09-20  Bruno Haible  <bruno@clisp.org>
75206
75207         * gnulib-tool: Remove trailing slashes from the values specified for
75208         --source-base, --m4-base, --tests-base, --aux-dir.
75209         Suggested by Simon Josefsson <jas@extundo.com>.
75210
75211 2005-09-20  Bruno Haible  <bruno@clisp.org>
75212
75213         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75214         func_modules_to_filelist, func_import, func_create_testdir): Make all
75215         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75216         change when gnulib-tool is invoked in a different locale.
75217
75218 2005-09-19  Simon Josefsson  <jas@extundo.com>
75219
75220         * m4/socklen.m4: Fix typo.
75221
75222 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75223
75224         Use a consistent style for including <config.h>.
75225         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75226         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75227         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75228         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75229         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75230         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75231         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75232         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75233         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75234         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75235         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75236         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75237         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75238         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75239         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75240         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75241         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75242         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75243         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75244         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75245         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75246         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75247         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75248         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75249         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75250         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75251         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75252         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75253         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75254         lib/xstrtoumax.c, lib/yesno.c:
75255         Standardize inclusion of config.h.
75256         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75257         lib/inttostr.h:  Removed inclusion of config.h from header files.
75258         * lib/inttostr.c:  Adjusted in-tree users.
75259         * lib/timespec.h: Remove superfluous warning to include config.h.
75260         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75261         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75262         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75263         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75264         config.h with HAVE_CONFIG_H.
75265
75266 2005-09-19  Jim Meyering  <jim@meyering.net>
75267
75268         * modules/pathmax (License): Change to LGPL.
75269
75270 2005-09-19  Derek Price  <derek@ximbiot.com>
75271
75272         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75273
75274 2005-09-19  Bruno Haible  <bruno@clisp.org>
75275
75276         * gnulib-tool (import): Provide default for --tests-base.
75277
75278 2005-09-19  Bruno Haible  <bruno@clisp.org>
75279
75280         * doc/quote.texi: New file, extracted from gnulib.texi.
75281         * doc/ctime.texi: New file, extracted from gnulib.texi.
75282         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75283         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75284         * doc/gnulib.texi: Include them.
75285
75286 2005-09-18  Bruno Haible  <bruno@clisp.org>
75287
75288         Portability fix.
75289         * gnulib-tool (func_readlink): New function.
75290         (func_ln_if_changed): Use it.
75291
75292 2005-09-18  Bruno Haible  <bruno@clisp.org>
75293
75294         * gnulib-tool: Support --with-tests also with --import.
75295         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75296         (func_import): Use variables $testsbase and $inctests. Emit a
75297         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75298         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75299         SUBDIRS += $testsdir.
75300         (func_create_testdir): Update.
75301
75302 2005-09-18  Bruno Haible  <bruno@clisp.org>
75303
75304         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75305         instead of $dry_run.
75306         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75307         (func_ln_if_changed): Don't handle dry-run here.
75308         (func_import): In dry-run mode, detect more precisely which actions
75309         would be performed, and don't use "...ing" verbs.
75310
75311 2005-09-18  Bruno Haible  <bruno@clisp.org>
75312
75313         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75314         (func_import): Use join on two temporary files instead of three nested
75315         loops, in order to determine which files are new or old.
75316
75317 2005-09-18  Bruno Haible  <bruno@clisp.org>
75318
75319         * gnulib-tool (func_import): Comment out code that spits out the
75320         new files with --dry-run.
75321
75322 2005-09-18  Bruno Haible  <bruno@clisp.org>
75323
75324         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75325
75326 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * lib/stat-time.h: New file.
75329         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75330         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75331         in a different way.
75332         (timespec_cmp): New function.
75333         * lib/utimecmp.c: Include stat-time.h.
75334         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75335         members exist, not on the obsolescent ST_MTIM_NSEC.
75336         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75337
75338 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75341
75342 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * MODULES.html.sh (File system functions): Add stat-time.
75345         * modules/stat-time: New file.
75346         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75347         is now done in a different way, by the stat-time module.
75348         * modules/utimecmp (Depends-on): Add stat-time.
75349
75350 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * m4/st_mtim.m4: Remove.  Superseded by...
75353         * m4/stat-time.m4: New file.
75354         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75355         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75356
75357 2005-09-15  Derek Price  <derek@ximbiot.com>
75358
75359         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75360
75361 2005-09-15  Derek Price  <derek@ximbiot.com>
75362
75363         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75364         * lib/regex_internal.c: Ditto, using this...
75365         (__GNUC_PREREQ): ...new macro.
75366         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75367         using...
75368         (__GNUC_PREREQ): ...this new macro.
75369
75370         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75371
75372 2005-09-15  Derek Price  <derek@ximbiot.com>
75373             Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75376         changes, consolidating in...
75377         * lib/regex_internal.h: ...this file.
75378
75379 2005-09-13  Jim Meyering  <jim@meyering.net>
75380
75381         * lib/canon-host.c: Filter through gnu indent and reword comments
75382         slightly.
75383         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75384
75385 2005-09-13  Derek Price  <derek@ximbiot.com>
75386
75387         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75388         failure.
75389         Reported by Jim Meyering  <jim@meyering.net>.
75390
75391 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75392
75393         * lib/base64.c: Typo.
75394         (base64_encode): Put b64str in initialized data section.
75395
75396 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         Merge glibc and coreutils changes into gnulib, plus a few
75399         extra fixes.
75400         * lib/md5.c: Use #error rather than a string.
75401         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75402         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75403         (__attribute__): Define to empty for non recent-GCC.
75404         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75405         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75406         Renamed from their non-__ counterparts, with new macros replacing
75407         them if not _LIBC.  Add __THROW attribute.
75408         (rol): Remove.
75409         (struct md5_ctx): Align buffer if using GCC.
75410         * lib/sha1.h (struct sha1_ctx): Likewise.
75411         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75412         The old name was backwards.
75413         (NOTSWAP): Remove; not used.
75414         (rol): New macro, moved here from md5.h.
75415         (sha1_process_block): Remove a FIXME that doesn't make sense.
75416
75417 2005-09-12  Derek Price  <derek@ximbiot.com>
75418
75419         Return usable errors from canon-host.
75420         * lib/canon-host.h: New file.
75421         * lib/canon-host.c (canon_host): Wrap...
75422         (canon_host_r): ...this new function, which now relies exclusively on
75423         getaddrinfo.
75424         (ch_strerror): New function.
75425         (last_cherror): New global.
75426         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75427         interface.
75428         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75429         void *.
75430         (freeaddrinfo): Free ai->ai_canonname when set.
75431
75432 2005-09-12  Derek Price  <derek@ximbiot.com>
75433
75434         Make canon-host require getaddrinfo.
75435         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75436         AC_LIBSOURCE canon-host.h.  Call...
75437         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75438         gl_GETADDRINFO.
75439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75440
75441 2005-09-12  Derek Price  <derek@ximbiot.com>
75442
75443         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75444         LGPL.
75445         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75446
75447 2005-09-12  Derek Price  <derek@ximbiot.com>
75448
75449         * lib/gai_strerror.c: Include config.h when available.  Include
75450         getaddrinfo.h before other headers to test interface.
75451         Reported by Larry Jones <lawrence.jones@ugs.com>.
75452
75453 2005-09-12  Derek Price  <derek@ximbiot.com>
75454             Paul Eggert  <eggert@cs.ucla.edu>
75455
75456         * modules/glob (Files): Add glob-libc.h.
75457
75458 2005-09-12  Derek Price  <derek@ximbiot.com>
75459             Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75462         glob_.h, glob-libc.h.
75463         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75464
75465 2005-09-12  Derek Price  <derek@ximbiot.com>
75466             Paul Eggert  <eggert@cs.ucla.edu>
75467
75468         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75469         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75470         protecting things that should be done only in gnulib contexts.
75471         * lib/glob_.h: New file, containing only the glob things needed for
75472         gnulib.
75473         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75474         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75475         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75476         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75477         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75478         and to respect the namespace rules better.
75479
75480 2005-09-08  Simon Josefsson  <jas@extundo.com>
75481
75482         * modules/socklen: New file.
75483
75484 2005-09-08  Simon Josefsson  <jas@extundo.com>
75485
75486         * m4/socklen.m4: New file.
75487
75488 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75489
75490         * modules/utimens (Files): Add m4/utimbuf.m4, since
75491         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75492         Reported by Sergey Poznyakoff.
75493
75494 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75497         definitions, since that's the preferred style in glibc.
75498         Fix a minor spacing issue, and update copyright notice to match
75499         glibc's.
75500
75501 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75504
75505 2005-09-06  Simon Josefsson  <jas@extundo.com>
75506
75507         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75508         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75509
75510 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75511
75512         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75513         warning.
75514
75515 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75516
75517         * config/srclist.txt: Add glibc bug 1302.
75518
75519 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75520
75521         Change bitset word type from unsigned int to unsigned long int,
75522         as this has better performance on typical 64-bit hosts.
75523         Port bitset code to hosts with unusual word sizes.
75524         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75525         (build_collating_symbol):
75526         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75527         argument is a bitset.  This is merely a style issue, but it makes
75528         it clearer that an entire array is expected.
75529         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75530         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75531         Port to the case where bitset_word is not the same as unsigned int.
75532         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75533         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75534         Likewise.
75535         * lib/regexec.c (check_dst_limits_calc_pos_1,
75536         check_subexp_matching_top):
75537         (build_trtable, group_nodes_into_DFAstates):
75538         Likewise.
75539         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75540         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75541         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75542         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75543         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75544         * lib/regcomp.c (optimize_subexps, lower_subexp):
75545         Work even if bitset_word has holes in its bitwise representation.
75546         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75547         * lib/regexec.c (check_dst_limits_calc_pos_1,
75548         check_subexp_matching_top):
75549         Likewise.
75550         * lib/regex_internal.c (re_string_reconstruct):
75551         Don't assume UCHAR_MAX == 255.
75552         * lib/regex_internal.h (bitset_set_all): Likewise.
75553         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75554         All uses changed.
75555         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75556         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75557         All uses changed.
75558         (BITSET_WORD_MAX): New macro.
75559         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75560         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75561         (bitset_empty, bitset_copy):
75562         Prefer sizeof (bitset) to multiplying it out ourselves.
75563         (bitset_not_merge): Remove; unused.
75564         (bitset_contain): Return bool, not unsigned int with one bit on.
75565         All callers changed.
75566         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75567         alignment than re_node_set; do this by defining a new internal
75568         type struct dests_alloc and using it to allocate memory.
75569
75570 2005-09-05  Bruno Haible  <bruno@clisp.org>
75571
75572         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75573         links.
75574
75575 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75576
75577         * modules/size_max (Makefile.am): Add size_max.h
75578
75579 2005-09-04  Derek Price  <derek@ximbiot.com>
75580
75581         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75582
75583 2005-09-03  Simon Josefsson  <jas@extundo.com>
75584
75585         * gnulib-tool: Fix typo.
75586
75587 2005-09-03  Simon Josefsson  <jas@extundo.com>
75588
75589         * config/srclist.txt: Add glibc bug 1293.
75590
75591 2005-09-03  Derek Price  <derek@ximbiot.com>
75592
75593         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75594         From Larry Jones <lawrence.jones@ugs.com>.
75595
75596 2005-09-02  Simon Josefsson  <jas@extundo.com>
75597
75598         * modules/socklen: New file.
75599
75600 2005-09-02  Simon Josefsson  <jas@extundo.com>
75601
75602         * modules/havelib: New module.
75603
75604         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75605         Use havelib.
75606
75607 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         Check for arithmetic overflow when calculating sizes, to prevent
75610         some buffer-overflow issues.  These patches are conservative, in the
75611         sense that when I couldn't determine whether an overflow was possible,
75612         I inserted a run-time check.
75613         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75614         macros.
75615         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75616         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75617         (re_xnrealloc, re_x2nrealloc): New inline functions.
75618         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75619         parse_bracket_exp):
75620         (build_equiv_class, build_charclass): Check for arithmetic overflow
75621         in size expression calculations.
75622         * lib/regex_internal.c (re_string_realloc_buffers):
75623         (build_wcs_upper_buffer, re_node_set_add_intersect):
75624         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75625         (re_dfa_add_node, register_state): Likewise.
75626         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75627         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75628         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75629         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75630
75631 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75632
75633         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75634         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75635
75636 2005-09-02  Bruno Haible  <bruno@clisp.org>
75637
75638         Support for lib vs. lib64 distinction on biarch platforms.
75639         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75640         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75641         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75642
75643 2005-09-02  Bruno Haible  <bruno@clisp.org>
75644
75645         * gnulib-tool (import): In the other first-use case, provide defaults
75646         as well.
75647
75648 2005-09-02  Bruno Haible  <bruno@clisp.org>
75649
75650         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75651         patches not yet found in the latest gettext release.
75652
75653 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75656         to avoid a collision with bits/local_lim.h in glibc.
75657         All uses changed.  Problem reported by Dmitry V. Levin in
75658         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75659
75660         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75661         bugs in int versus size_t comparisons.
75662         (re_string_context_at): Fix bug where the code assumed that
75663         Idx is signed.
75664
75665         Use bool where appropriate.
75666         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75667         All callers changed.
75668         (calc_eclosure_iter): Likewise, for ROOT arg.
75669         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75670         (build_charclass_op): Likewise, for NON_MATCH arg.
75671         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75672         (re_string_construct_common): Likewise, for ICASE arg.
75673         * lib/regexec.c (re_search_2_stub, re_search_stub):
75674         Likewise, for RET_LEN arg.
75675         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75676         (set_regs): Likewise, for FL_BACKTRACK arg.
75677         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75678         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75679         (calc_eclosure_iter, parse_bracket_exp):
75680         Use bool for internal variables that are booleans.
75681         * lib/regexec.c (re_search_internal, check_matching,
75682         proceed_next_node):
75683         (set_regs, build_sifted_states, sift_states_bkref):
75684         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75685         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75686         (find_collation_sequence_value):
75687         Likewise.
75688         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75689         (re_node_set_compare):
75690         Return bool, not int. All callers changed.
75691         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75692         (build_trtable, check_node_accept): Likewise.
75693         * lib/regex_internal.h: Include stdbool.h.
75694
75695         Fix bugs uncovered when converting to bool.
75696         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75697         failure instead of charging ahead blindly.
75698         * lib/regex_internal.c (register_state): Likewise.
75699         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75700         for freeing internal storage.
75701         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75702         bitset pieces used as boolean, to avoid undefined behavior
75703         on hosts that do int overflow checking.
75704
75705 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * config/srclist.txt: Add glibc bugs 1285-1287.
75708
75709 2005-09-01  Jim Meyering  <jim@meyering.net>
75710
75711         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75712         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75713         Require gl_STAT_MACROS, too.
75714
75715 2005-09-01  Bruno Haible  <bruno@clisp.org>
75716
75717         * gnulib-tool (import): In the first-use case, provide defaults.
75718
75719 2005-09-01  Bruno Haible  <bruno@clisp.org>
75720
75721         * gnulib-tool (func_import): Remove the .tmp files.
75722
75723 2005-09-01  Bruno Haible  <bruno@clisp.org>
75724
75725         * gnulib-tool (func_import): Fix handling of symbolic links.
75726
75727 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75730         old glibc regex code mishandles strings longer than 2**31 bytes.
75731         This patch fixes this when the regex code is used in gnulib
75732         (i.e., outside glibc).
75733
75734         This patch should not affect the use of the regex code inside
75735         glibc.  No doubt this problem also needs to be handled for glibc
75736         as well, but the result will be an incompatible change to the
75737         glibc ABI, and the old ABI will have to be supported too.  That
75738         can be the the subject for another patch.
75739
75740         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75741         governing whether the rest of this patch is active.  By default,
75742         the macro is disabled and the patch has no effect.
75743         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75744         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75745         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75746         (re_match_2, re_set_registers): Use the new types.
75747         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75748         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75749         New macros.
75750         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75751         (re_string_context_at, bin_tree_t, re_dfastate_t):
75752         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75753         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75754         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75755         (re_string_char_size_at, re_string_wchar_at):
75756         (re_string_elem_size_at):
75757         Use the new types and macros to port to 64-bit hosts.
75758         Use unsigned types for internal values, so that the code
75759         mostly works even for arrays larger than SSIZE_MAX.
75760         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75761         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75762         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75763         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75764         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75765         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75766         (calc_inveclosure, parse_dup_op, build_range_exp):
75767         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75768         (fetch_number, create_token_tree, mark_opt_subexp):
75769         Likewise.
75770         * lib/regex_internal.c (re_string_construct_common,
75771         create_ci_newstate):
75772         (create_cd_newstate, re_string_allocate, re_string_construct):
75773         (re_string_realloc_buffers, build_wcs_upper_buffer):
75774         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75775         (re_string_reconstruct, re_string_peek_byte_case):
75776         (re_string_fetch_byte_case, re_string_context_at):
75777         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75778         (re_node_set_init_copy, re_node_set_add_intersect):
75779         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75780         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75781         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75782         (re_acquire_state, re_acquire_state_context, register_state):
75783         Likewise.
75784         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75785         search_cur_bkref_entry):
75786         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75787         (re_search_internal, re_search_2_stub, re_search_stub)
75788         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75789         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75790         (update_cur_sifted_state, check_dst_limits):
75791         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75792         (check_subexp_limits, sift_states_bkref, merge_state_array):
75793         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75794         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75795         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75796         (expand_bkref_cache, check_node_accept_bytes):
75797         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75798         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75799         (acquire_init_state_context, check_halt_node_context):
75800         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75801         (sift_states_backward, clean_state_log_if_needed):
75802         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75803         (find_recover_state, transit_state_sb, transit_state_mb):
75804         (transit_state_bkref, build_trtable, match_ctx_clean):
75805         Likewise.
75806         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75807         to work around an assumption that REG_MISSING is negative.
75808
75809         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75810         (seek_collating_symbol_entry) [defined _LIBC]:
75811         (lookup_collation_sequence_value) [defined _LIBC]:
75812         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75813         Use prototypes rather than old-style function definitions.
75814         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75815         (transit_state_sb) [0]:
75816         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75817
75818         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75819         rm_eo.
75820
75821         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75822         (optimize_subexps, lower_subexp):
75823         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75824         since the signed shift might overflow.  Use 1u<<31 instead.
75825         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75826         Likewise.
75827         * lib/regexec.c (check_dst_limits_calc_pos_1,
75828         check_subexp_matching_top): Likewise.
75829
75830         * lib/regcomp.c (optimize_subexps, lower_subexp):
75831         Use CHAR_BIT rather than 8, for clarity.
75832         * lib/regexec.c (check_dst_limits_calc_pos_1):
75833         (check_subexp_matching_top): Likewise.
75834         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75835         have to worry about portability issues when shifting it left.
75836         Remove no-longer-needed test for table_size > 0.
75837         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75838         in a word, as the resulting behavior is undefined.
75839         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75840         in one case, a <= should have been an <, and in another case the
75841         whole test was missing.
75842         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75843         the standard name CHAR_BIT.
75844         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75845         this is not true on one's complement and signed-magnitude hosts.
75846
75847         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75848         next_last_offset.
75849         (struct re_dfa_t): Remove unused member states_alloc.
75850         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75851
75852 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75855         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75856         and large-file glibc and in 32-bit large-file Solaris.
75857
75858 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75861         lengths fit in regoff_t; this isn't true if regoff_t is the same
75862         width as size_t.
75863         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75864         (= START + RANGE) instead of RANGE.  This avoids overflow
75865         problems when regoff_t is the same width as size_t.
75866         All callers changed.
75867         (re_search_2_stub): Check for overflow when adding the
75868         sizes of the two strings.
75869         (re_search_stub): Check for overflow when adding START
75870         to RANGE; if it occurs, substitute the extreme value.
75871
75872 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75873
75874         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75875
75876 2005-08-31  Jim Meyering  <jim@meyering.net>
75877
75878         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75879         a pointer-to-const.
75880         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75881         (register_state): Likewise.
75882         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75883         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75884         (group_nodes_into_DFAstates): Likewise.
75885
75886 2005-08-31  Jim Meyering  <jim@meyering.net>
75887
75888         * check-module: Add a FIXME comment.
75889
75890 2005-08-31  Eric Blake  <ebb9@byu.net>
75891
75892         * modules/unistd-safer (Files): Add unistd--.h.
75893         * modules/stdio-safer (Files): Add stdio--.h.
75894
75895 2005-08-31  Derek Price  <derek@ximbiot.com>
75896
75897         * lib/getdelim.c (getdelim): Return EOF on EOF.
75898         Reported by Larry Jones <lawrence.jones@ugs.com>.
75899
75900 2005-08-31  Bruno Haible  <bruno@clisp.org>
75901
75902         Avoid unnecessary diffs in the generated lib/Makefile.am.
75903         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75904         the generated files.
75905         (func_import): Don't set cmd.
75906
75907 2005-08-31  Bruno Haible  <bruno@clisp.org>
75908
75909         * lib/strstr.c: Include <stddef.h>, for NULL.
75910         * lib/strcasestr.c: Likewise.
75911         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75912
75913 2005-08-31  Bruno Haible  <bruno@clisp.org>
75914
75915         * gnulib-tool: New option --macro-prefix.
75916         (func_import): Use macro_prefix.
75917         (import): Handle option --macro-prefix.
75918
75919 2005-08-31  Bruno Haible  <bruno@clisp.org>
75920
75921         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75922         Also use new variables cached_lgpl, cached_libtool.
75923
75924 2005-08-31  Bruno Haible  <bruno@clisp.org>
75925
75926         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75927         always instantiating them.
75928
75929 2005-08-31  Bruno Haible  <bruno@clisp.org>
75930
75931         * gnulib-tool (func_import): Read the previous cached settings
75932         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75933         earlier added by gnulib but are now dropped. Warn when a gnulib file
75934         overwrites a non-gnulib file.
75935
75936 2005-08-31  Bruno Haible  <bruno@clisp.org>
75937
75938         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75939         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75940         projects that don't keep autogenerated files in CVS. Put into
75941         actioncmd only the specified modules, not the transitive closure.
75942
75943 2005-08-31  Bruno Haible  <bruno@clisp.org>
75944
75945         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75946         Create directories that shall be filled.
75947         (import): Don't look for gl_* macros in configure.ac. Recurse across
75948         all directories containing a gnulib-cache.m4 files, if meaningful.
75949
75950 2005-08-31  Bruno Haible  <bruno@clisp.org>
75951
75952         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75953         (import): Set seen_libtool when we see gl_LIBTOOL.
75954
75955 2005-08-31  Bruno Haible  <bruno@clisp.org>
75956
75957         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75958         declaration macro definitions from generated gnulib.m4.
75959
75960 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75961
75962         * lib/iconvme.h: Add prototype for iconv_alloc.
75963
75964 2005-08-29  Simon Josefsson  <jas@extundo.com>
75965
75966         * lib/iconvme.c: Fix errno.
75967
75968 2005-08-29  Bruno Haible  <bruno@clisp.org>
75969
75970         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75971         that it works when the directory contains spaces.
75972
75973 2005-08-29  Bruno Haible  <bruno@clisp.org>
75974
75975         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75976
75977 2005-08-29  Bruno Haible  <bruno@clisp.org>
75978
75979         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75980         Emit more advice.
75981
75982 2005-08-29  Bruno Haible  <bruno@clisp.org>
75983         and Stepan Kasal  <kasal@ucw.cz>
75984
75985         * check-module: If more parameters are given, check each of them
75986         separately; add more exceptions, as noted by Jim Meyering.
75987         (check_module): New procedure.
75988         (%exempt_header): Now contains all exceptions.
75989
75990 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75991
75992         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75993
75994 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75995
75996         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75997
75998 2005-08-28  Bruno Haible  <bruno@clisp.org>
75999
76000         * m4/gnulib-tool.m4: New file.
76001
76002 2005-08-27  Jim Meyering  <jim@meyering.net>
76003
76004         * modules/unistd-safer (Files): Add pipe-safer.c.
76005         * modules/fcntl-safer (Files): Add creat-safer.c.
76006
76007 2005-08-27  Jim Meyering  <jim@meyering.net>
76008
76009         * m4/stdlib-safer.m4: New file.  From coreutils.
76010         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76011         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76012         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76013         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76014         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76015
76016 2005-08-27  Jim Meyering  <jim@meyering.net>
76017
76018         * lib/fopen-safer.c: Merge minor changes from coreutils.
76019         * lib/dup-safer.c: Likewise.
76020         * lib/fd-safer.c: Likewise.
76021
76022         Merge from coreutils.
76023         * lib/stdio--.h: New file.
76024         * lib/stdlib--.h: New file.
76025         * lib/mkstemp-safer.c: New file.
76026
76027         GNU tar needs these.
76028         * lib/pipe-safer.c: New file.
76029         * lib/creat-safer.c: New file.
76030         * lib/fcntl--.h (creat): Define to creat_safer.
76031         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76032         * lib/unistd--.h (pipe): Define to pipe_safer.
76033         * lib/unistd-safer.h: Declare pipe_safer.
76034
76035 2005-08-26  Simon Josefsson  <jas@extundo.com>
76036
76037         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76038         Haible <bruno@clisp.org>.
76039
76040 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76041
76042         * lib/regex_internal.h: Remove all references to
76043         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76044         or better.
76045         (bitset_not, bitset_merge, bitset_not_merge):
76046         (bitset_mask, re_string_allocate, re_string_construct):
76047         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76048         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76049         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76050         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76051         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76052         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76053         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76054         (re_acquire_state_context):
76055         Remove unnecessary forward decls.
76056         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76057         Put __attribute at function definition,
76058         now that the function decl has been removed.
76059         * lib/regex_internal.c (re_string_peek_byte_case):
76060         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76061         Likewise.
76062
76063 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76064
76065         * m4/regex.m4: Add AC_PREREQ(2.50).
76066         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76067
76068 2005-08-25  Simon Josefsson  <jas@extundo.com>
76069
76070         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76071         __fsetlocking.
76072
76073 2005-08-25  Simon Josefsson  <jas@extundo.com>
76074
76075         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76076         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76077         GLIBC specific code.
76078
76079 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         Make regex safe for g++.  This fixes one real bug (an "err"
76082         that should have been "*err").  g++ problem reported by
76083         Sam Steingold.
76084         * lib/regex_internal.h (re_calloc): New macro, consistent with
76085         re_malloc etc.  All callers of calloc changed to use re_calloc.
76086         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76087         not int.  All callers changed.
76088         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76089         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76090         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76091         (find_recover_state): Change "err" to "*err"; this fixes what
76092         appears to be a real bug.
76093         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76094         versus int.
76095
76096 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * modules/regex (Depends-on): Add malloc, since the code
76099         assumes that !malloc(0) means failure.
76100
76101 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76104
76105         alloca modernization/simplification for regex.
76106         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76107         needs to be at the start of the file, and can be moved into
76108         regex_internal.h and simplified.
76109         * lib/regex_internal.h: Include <alloca.h>.
76110         (__libc_use_alloca) [!defined _LIBC]: New macro.
76111         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76112         now works outside glibc.
76113
76114 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * config/srclist.txt: Add glibc bugs 1241, 1245.
76117
76118 2005-08-25  Jim Meyering  <jim@meyering.net>
76119
76120         * lib/open-safer.c: Include <config.h>.
76121         Otherwise, we'd lose LARGEFILE support in any file using
76122         e.g. "fcntl--.h"
76123
76124 2005-08-25  Bruno Haible  <bruno@clisp.org>
76125
76126         * m4/minmax.m4: Require autoconf 2.52.
76127         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76128         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76129         alternatives of translit over the alphabet.
76130         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76131
76132 2005-08-24  Simon Josefsson  <jas@extundo.com>
76133
76134         * tests/test-getpass.c: New file.
76135
76136 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76139         for GNU regex features.
76140
76141 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76144         * lib/regex.h (regerror): Likewise.
76145
76146         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76147         requires this.  (The code never needed it.)
76148
76149         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76150         All uses of recently-renamed identifiers changed to use the new,
76151         POSIX-compliant names.  The code will build and run just fine
76152         without these changes, but it's better to eat our own dog food
76153         and use the standard-conforming names.
76154
76155         * lib/regex.h: Fix a multitude of POSIX name space violations.
76156         These changes have an effect only for programs that define
76157         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76158         do not change anything for programs compiled in the normal way.
76159         Also, there is no effect on the ABI.
76160
76161         (_REGEX_SOURCE): New macro.
76162         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76163         defined and _GNU_SOURCE is not; this fixes a name space violation.
76164
76165         Rename the following macros to obey POSIX requirements.
76166         The old names are still visible as macros if _REGEX_SOURCE is defined.
76167         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76168         RE_BACKSLASH_ESCAPE_IN_LISTS.
76169         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76170         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76171         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76172         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76173         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76174         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76175         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76176         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76177         (REG_INTERVALS): renamed from RE_INTERVALS.
76178         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76179         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76180         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76181         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76182         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76183         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76184         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76185         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76186         RE_UNMATCHED_RIGHT_PAREN_ORD.
76187         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76188         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76189         (REG_DEBUG): renamed from RE_DEBUG.
76190         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76191         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76192         unusual, since we can't clash with the POSIX REG_ICASE.
76193         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76194         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76195         (REG_NO_SUB): renamed from RE_NO_SUB.
76196         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76197         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76198         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76199         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76200         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76201         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76202         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76203         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76204         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76205         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76206         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76207         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76208         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76209         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76210         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76211         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76212         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76213         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76214         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76215         (REG_FIXED): Renamed from REGS_FIXED.
76216         (REG_NREGS): Renamed from RE_NREGS.
76217
76218         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76219         of other REG_* macros, since POSIX says the user is allowed to
76220         #undef these macros selectively.
76221
76222         (reg_errcode_t): Update comment stating what other tables need
76223         to be consistent.
76224
76225         Rename the following enum values to obey POSIX requirements.
76226         The old names are still visible as macros.
76227         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76228         is not defined, since GNU is supposed to be a superset of POSIX as
76229         much as possible, and since we want reg_errcode_t to be a signed
76230         type for implementation consistency.
76231         (_REG_NOERROR): Renamed from REG_NOERROR.
76232         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76233         (_REG_BADPAT): Renamed from REG_BADPAT.
76234         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76235         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76236         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76237         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76238         (_REG_EBRACK): Renamed from REG_EBRACK.
76239         (_REG_EPAREN): Renamed from REG_EPAREN.
76240         (_REG_EBRACE): Renamed from REG_EBRACE.
76241         (_REG_BADBR): Renamed from REG_BADBR.
76242         (_REG_ERANGE): Renamed from REG_ERANGE.
76243         (_REG_ESPACE): Renamed from REG_ESPACE.
76244         (_REG_BADRPT): Renamed from REG_BADRPT.
76245         (_REG_EEND): Renamed from REG_EEND.
76246         (_REG_ESIZE): Renamed from REG_ESIZE.
76247         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76248         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76249         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76250         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76251         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76252
76253         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76254         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76255         changed.  But support the old name if the new one is not defined
76256         and if _REGEX_SOURCE.
76257
76258         Change the following member names in struct re_pattern_buffer.
76259         The old names are still supported if !_REGEX_SOURCE.
76260         The new names are always supported, regardless of _REGEX_SOURCE.
76261         (re_buffer): Renamed from buffer.
76262         (re_allocated): Renamed from allocated.
76263         (re_used): Renamed from used.
76264         (re_syntax): Renamed from syntax.
76265         (re_fastmap): Renamed from fastmap.
76266         (re_translate): Renamed from translate.
76267         (re_can_be_null): Renamed from can_be_null.
76268         (re_regs_allocated): Renamed from regs_allocated.
76269         (re_fastmap_accurate): Renamed from fastmap_accurate.
76270         (re_no_sub): Renamed from no_sub.
76271         (re_not_bol): Renamed from not_bol.
76272         (re_not_eol): Renamed from not_eol.
76273         (re_newline_anchor): Renamed from newline_anchor.
76274
76275         Change the following member names in struct re_registers.
76276         The old names are still supported if !_REGEX_SOURCE.
76277         The new names are always supported, regardless of _REGEX_SOURCE.
76278         (rm_num_regs): Renamed from num_regs.
76279         (rm_start): Renamed from start.
76280         (rm_end): Renamed from end.
76281
76282         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76283         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76284         Prepend __ to parameter names.
76285
76286         Undo yesterday's changes.
76287
76288 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76291         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76292         lib/regex.c.
76293
76294 2005-08-24  Jim Meyering  <jim@meyering.net>
76295
76296         Sync from coreutils.
76297         * m4/fcntl-safer.m4: New file.
76298
76299         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76300         and object files for this module.
76301
76302 2005-08-24  Jim Meyering  <jim@meyering.net>
76303
76304         Sync from coreutils.
76305         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76306
76307 2005-08-24  Jim Meyering  <jim@meyering.net>
76308
76309         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76310         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76311
76312 2005-08-24  Jim Meyering  <jim@meyering.net>
76313
76314         * modules/fcntl-safer: New module.
76315         * modules/fts (Depends-on): Add fcntl-safer.
76316         * MODULES.html.sh (File descriptor based Input/Output):
76317         Add fcntl-safer.
76318
76319 2005-08-24  Bruno Haible  <bruno@clisp.org>
76320
76321         Support for unit test modules.
76322         * modules/README: Mention tests modules.
76323         * modules/TEMPLATE-TESTS: New file.
76324         * gnulib-tool: New options --extract-tests-module, --with-tests and
76325         --tests-base (unused for the moment).
76326         (testsbase, inctests): New variables.
76327         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76328         (func_verify_module): Exclude TEMPLATE-TESTS.
76329         (func_verify_nontests_module, func_verify_tests_module): New functions.
76330         (func_get_dependencies): Add implicit dependency for tests modules.
76331         (func_get_tests_module): New function.
76332         (func_modules_transitive_closure): When --with-tests was specified,
76333         include the unit tests as well, unless explicitly avoided.
76334         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76335         (func_emit_tests_Makefile_am): New function.
76336         (func_create_testdir): When --with-tests was specified, emit a
76337         tests/ directory.
76338         * MODULES.html.sh (Future developments): Update.
76339
76340 2005-08-24  Bruno Haible  <bruno@clisp.org>
76341
76342         * modules/tls-tests: New file.
76343         * tests/test-tls.c: New file, from GNU gettext.
76344
76345 2005-08-24  Bruno Haible  <bruno@clisp.org>
76346
76347         * modules/lock-tests: New file.
76348         * tests/test-lock.c: New file, from GNU gettext.
76349
76350 2005-08-24  Bruno Haible  <bruno@clisp.org>
76351
76352         * lib/lock.h: Add multiple inclusion guard.
76353         * lib/tls.h: Add multiple inclusion guard.
76354
76355 2005-08-24  Bruno Haible  <bruno@clisp.org>
76356
76357         * gnulib-tool: Add support for the --aux-dir option to
76358         --create-testdir, --create-megatestdir, --test, --megatest.
76359         (func_create_testdir, func_create_megatestdir): Optionally emit a
76360         AC_CONFIG_AUX_DIR directive.
76361         (create-testdir, create-megatestdir, test, megatest): Provide a
76362         default value for $auxdir.
76363
76364 2005-08-24  Bruno Haible  <bruno@clisp.org>
76365
76366         * gnulib-tool (import): Use compound statement instead of subshell
76367         where possible.
76368
76369 2005-08-24  Bruno Haible  <bruno@clisp.org>
76370
76371         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76372
76373 2005-08-24  Bruno Haible  <bruno@clisp.org>
76374
76375         * gnulib-tool (func_version): Update.
76376
76377 2005-08-24  Bruno Haible  <bruno@clisp.org>
76378
76379         * gnulib-tool (func_import, func_create_testdir,
76380         func_create_megatestdir): Quote all autoconf macro arguments.
76381
76382 2005-08-24  Bruno Haible  <bruno@clisp.org>
76383
76384         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76385         option --force, because --force causes the aclocal.m4 of each
76386         subdirectory to be newer than the corresponding config.h.in.
76387
76388 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76391         All contents moved to gl_REGEX.
76392         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76393         assume that it does.
76394
76395 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * lib/regex.h (REG_NOSYS)
76398         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76399         Define, since POSIX requires it as of 2001.
76400         (_REG_ENOSYS)
76401         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76402         New private symbol, used to keep the enum signed in all cases.
76403         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76404         Youngman in
76405         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76406
76407         * lib/regex_internal.c (re_string_skip_chars, register_state):
76408         (calc_state_hash):
76409         Remove forward decls; no longer needed now that we use prototypes.
76410         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76411         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76412         (clean_state_log_if_needed): Likewise.
76413
76414 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76415
76416         * config/srclist.txt: Add glibc bugs 1231-1233.
76417
76418 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76419
76420         Fix problems reported by Sam Steingold in
76421         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76422         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76423         assumed that reg_errcode_t is a signed type, which is not
76424         necessarily true if _XOPEN_SOURCE is not defined.
76425         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76426         since some compilers warn about it otherwise.
76427
76428 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76429
76430         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76431         (init_word_char, create_initial_state, duplicate_node_closure):
76432         (fetch_token, peek_token_bracket, build_range_exp):
76433         (build_collating_symbol): Remove forward decls; no longer needed
76434         now that we use prototypes.
76435
76436         * lib/regcomp.c:
76437         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76438         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76439         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76440         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76441         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76442         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76443         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76444         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76445         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76446         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76447         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76448         (build_charclass, build_charclass_op, fetch_number, create_tree):
76449         (create_token_tree, mark_opt_subexp, duplicate_tree):
76450         Use prototypes rather than old-style definitions.
76451
76452         * lib/regex_internal.c:
76453         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76454         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76455         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76456         (re_string_reconstruct, re_string_peek_byte_case):
76457         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76458         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76459         (re_node_set_init_copy, re_node_set_add_intersect):
76460         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76461         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76462         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76463         (re_acquire_state, re_acquire_state_context, register_state):
76464         (create_ci_newstate, create_cd_newstate, free_state):
76465         Likewise.
76466         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76467         re_search_2):
76468         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76469         (re_search_internal, prune_impossible_nodes):
76470         (acquire_init_state_context, check_matching, static):
76471         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76472         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76473         (update_regs, sift_states_backward, build_sifted_states):
76474         (clean_state_log_if_needed, merge_state_array):
76475         (update_cur_sifted_state, add_epsilon_src_nodes):
76476         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76477         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76478         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76479         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76480         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76481         (check_arrival, check_arrival_add_next_nodes):
76482         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76483         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76484         (check_node_accept_bytes, check_node_accept, extend_buffers):
76485         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76486         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76487         (sift_ctx_init):
76488         Likewise.
76489
76490         * lib/regex_internal.h:
76491         (re_string_allocate, re_string_construct, re_string_reconstruct):
76492         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76493         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76494         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76495         (re_string_context_at, re_string_peek_byte_case):
76496         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76497         is defined, since we now use prototypes always.
76498
76499         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76500         C89 or better.  All uses removed.
76501
76502 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * config/srclist.txt: Add glibc bugs 1220-1227.
76505
76506 2005-08-20  Jim Meyering  <jim@meyering.net>
76507
76508         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76509         of unused local, dfa.
76510
76511 2005-08-20  Bruno Haible  <bruno@clisp.org>
76512
76513         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76514
76515 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76518         (re_node_set_insert_last, re_dfa_add_node):
76519         Rename local variables to avoid GCC shadowing warnings.
76520
76521 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76524         [defined lint]: Suppress bogus uninitialized-variable warnings.
76525
76526         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76527         and let the caller return REG_ESPACE if out of space.  This
76528         removes an uninitialied-variable warning with GCC 4.0.1, and also
76529         avoids taking the address of a local variable.  All callers
76530         changed.
76531
76532 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76535         $LIBCSRC/posix/regexec.c.
76536         Add glibc bug 1217 for regcomp.c.
76537
76538 2005-08-19  Jim Meyering  <jim@meyering.net>
76539
76540         * lib/regexec.c (proceed_next_node): Redo local variables to
76541         avoid GCC shadowing warnings.
76542
76543 2005-08-18  Bruno Haible  <bruno@clisp.org>
76544
76545         * lib/strstr.c (strstr): Fix return value in multibyte case.
76546         * lib/strcasestr.c (strcasestr): Likewise.
76547
76548 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76551
76552 2005-08-17  Jim Meyering  <jim@meyering.net>
76553
76554         Make the %s format (seconds since the epoch) work for a negative
76555         number and when used with a zero-padded field width, e.g. %015s.
76556
76557         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76558         label so that it precedes the code to set `digits'.  Otherwise,
76559         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76560         print `00-22'.  Now, it prints `-0022', as it should.
76561
76562 2005-08-17  Bruno Haible  <bruno@clisp.org>
76563
76564         * modules/strstr (Files): Add m4/mbrtowc.m4.
76565         (Depends-on): Add mbuiter.
76566
76567 2005-08-17  Bruno Haible  <bruno@clisp.org>
76568
76569         * modules/strcasestr: New file.
76570         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76571         strcasestr.
76572
76573 2005-08-17  Bruno Haible  <bruno@clisp.org>
76574
76575         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76576
76577 2005-08-17  Bruno Haible  <bruno@clisp.org>
76578
76579         * modules/mbuiter: New file.
76580         * MODULES.html.sh (Extended multibyte and wide character utilities):
76581         Add mbuiter.
76582
76583 2005-08-17  Bruno Haible  <bruno@clisp.org>
76584
76585         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76586         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76587
76588 2005-08-17  Bruno Haible  <bruno@clisp.org>
76589
76590         * m4/strcasestr.m4: New file.
76591
76592 2005-08-17  Bruno Haible  <bruno@clisp.org>
76593
76594         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76595         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76596
76597 2005-08-17  Bruno Haible  <bruno@clisp.org>
76598
76599         * lib/strcasestr.h: New file.
76600         * lib/strcasestr.c: New file.
76601
76602 2005-08-17  Bruno Haible  <bruno@clisp.org>
76603
76604         * lib/strcasecmp.c: Use mbuiter.h.
76605
76606 2005-08-17  Bruno Haible  <bruno@clisp.org>
76607
76608         * lib/mbuiter.h: New file.
76609
76610 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76611
76612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76613         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76614         and gl_GETOPT are both invoked via different paths (as happens
76615         with GNU tar CVS because it uses both argp and getopt), the former
76616         wins.
76617
76618 2005-08-16  Bruno Haible  <bruno@clisp.org>
76619
76620         * modules/tls: New file.
76621         * MODULES.html.sh (Multithreading): Add tls.
76622
76623 2005-08-16  Bruno Haible  <bruno@clisp.org>
76624
76625         * modules/strnlen1: New file.
76626         * MODULES.html.sh (String handling): Add strnlen1.
76627
76628 2005-08-16  Bruno Haible  <bruno@clisp.org>
76629
76630         * modules/strcase (Files): Add m4/mbrtowc.m4.
76631         (Depends-on): Add strnlen1, mbchar.
76632
76633 2005-08-16  Bruno Haible  <bruno@clisp.org>
76634
76635         * modules/mbiter: New file.
76636         * MODULES.html.sh (Extended multibyte and wide character utilities):
76637         Add mbiter.
76638
76639 2005-08-16  Bruno Haible  <bruno@clisp.org>
76640
76641         * modules/mbfile: New file.
76642         * MODULES.html.sh (Extended multibyte and wide character utilities):
76643         Add mbfile.
76644
76645 2005-08-16  Bruno Haible  <bruno@clisp.org>
76646
76647         * modules/mbchar: New file.
76648         * MODULES.html.sh (Extended multibyte and wide character utilities):
76649         New section.
76650
76651 2005-08-16  Bruno Haible  <bruno@clisp.org>
76652
76653         * m4/tls.m4: New file, from GNU gettext.
76654
76655 2005-08-16  Bruno Haible  <bruno@clisp.org>
76656
76657         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76658         always.
76659         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76660
76661 2005-08-16  Bruno Haible  <bruno@clisp.org>
76662
76663         * m4/mbiter.m4: New file.
76664
76665 2005-08-16  Bruno Haible  <bruno@clisp.org>
76666
76667         * m4/mbfile.m4: New file.
76668
76669 2005-08-16  Bruno Haible  <bruno@clisp.org>
76670
76671         * m4/mbchar.m4: New file.
76672
76673 2005-08-16  Bruno Haible  <bruno@clisp.org>
76674
76675         * lib/tls.h: New file, from GNU gettext.
76676         * lib/tls.c: New file, from GNU gettext.
76677
76678 2005-08-16  Bruno Haible  <bruno@clisp.org>
76679
76680         * lib/strnlen1.h: New file.
76681         * lib/strnlen1.c: New file.
76682
76683 2005-08-16  Bruno Haible  <bruno@clisp.org>
76684
76685         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76686         (mbi_init): Update.
76687         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76688         NUL byte, not after it.
76689
76690 2005-08-16  Bruno Haible  <bruno@clisp.org>
76691
76692         * lib/strcase.h (strcasecmp): Add note in comments.
76693         * lib/strncasecmp.c: Use code from strcasecmp.c.
76694         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76695         (strcasecmp): Work correctly in multibyte locales.
76696
76697 2005-08-16  Bruno Haible  <bruno@clisp.org>
76698
76699         * lib/mbiter.h: New file.
76700
76701 2005-08-16  Bruno Haible  <bruno@clisp.org>
76702
76703         * lib/mbfile.h: New file.
76704
76705 2005-08-16  Bruno Haible  <bruno@clisp.org>
76706
76707         * lib/mbchar.h: New file.
76708         * lib/mbchar.c: New file.
76709
76710 2005-08-16  Bruno Haible  <bruno@clisp.org>
76711
76712         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76713         the valid ones. Makes the comparison operations transitive:
76714         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76715         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76716
76717 2005-08-15  Simon Josefsson  <jas@extundo.com>
76718
76719         * modules/ssize_t (License): Change to 'unlimited'.
76720
76721         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76722
76723 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76726         Add comments for each pending glibc patch.
76727
76728 2005-08-15  Bruno Haible  <bruno@clisp.org>
76729
76730         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76731         __cplusplus is defined.
76732
76733 2005-08-14  Jim Meyering  <jim@meyering.net>
76734
76735         Sync from coreutils.
76736
76737         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76738         Use the hash-table-based cycle-detection code not just when
76739         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76740         Reported by James Youngman in
76741         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76742         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76743         FTS_TIGHT_CYCLE_CHECK.
76744         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76745         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76746         once again.
76747         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76748         * lib/fts.c (fd_safer): Remove decl.
76749         Include fcntl--.h rather than unistd-safer.h
76750         (fts_safe_changedir): Don't call fd_safer; no longer needed
76751         now that we include fcntl--.h.
76752
76753 2005-08-12  Simon Josefsson  <jas@extundo.com>
76754
76755         * modules/getndelim2: Use ssize_t module.
76756         * modules/getnline: Likewise.
76757         * modules/safe-read: Likewise.
76758         * modules/xreadlink: Likewise.
76759
76760         * modules/ssize_t: New file.
76761
76762 2005-08-12  Simon Josefsson  <jas@extundo.com>
76763
76764         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76765
76766 2005-08-12  Simon Josefsson  <jas@extundo.com>
76767
76768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76769         ssize_t.
76770
76771 2005-08-12  Simon Josefsson  <jas@extundo.com>
76772
76773         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76774         readline, getdelim and check_version.
76775         (Support for systems lacking ISO C 99: Sizes of integer types):
76776         Add size_max.
76777
76778 2005-08-12  Bruno Haible  <bruno@clisp.org>
76779
76780         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76781
76782 2005-08-11  Simon Josefsson  <jas@extundo.com>
76783
76784         * modules/readline: New file.
76785
76786         * modules/strnlen (Files): Add strnlen.h.
76787
76788 2005-08-11  Simon Josefsson  <jas@extundo.com>
76789
76790         * m4/readline.m4: New file.
76791
76792 2005-08-11  Simon Josefsson  <jas@extundo.com>
76793
76794         * lib/readline.h, readline.c: New file.
76795
76796 2005-08-11  Simon Josefsson  <jas@extundo.com>
76797
76798         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76799         gl_AVOID.
76800
76801 2005-08-11  Bruno Haible  <bruno@clisp.org>
76802
76803         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76804
76805 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76806
76807         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76808
76809 2005-08-10  Simon Josefsson  <jas@extundo.com>
76810
76811         * tests/test-iconvme.c: New file.
76812
76813 2005-08-10  Simon Josefsson  <jas@extundo.com>
76814
76815         * m4/strnlen.m4: New file.
76816
76817         * m4/strndup.m4: Don't check for strnlen declaration, done in
76818         strnlen.m4.
76819
76820 2005-08-10  Simon Josefsson  <jas@extundo.com>
76821
76822         * lib/strndup.c: Use strnlen.h.
76823
76824         * lib/strnlen.h: New file.
76825
76826 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76827
76828         * README: Typos.
76829
76830 2005-08-02  Simon Josefsson  <jas@extundo.com>
76831
76832         * modules/readline: New file.
76833
76834 2005-08-02  Simon Josefsson  <jas@extundo.com>
76835
76836         * modules/getdelim: New file.
76837
76838         * modules/getline: Rewrite, don't use getndelim2.
76839
76840 2005-08-02  Simon Josefsson  <jas@extundo.com>
76841
76842         * m4/getline.m4: Separate out getdelim stuff into separate module.
76843
76844         * m4/getdelim.m4: New file.
76845
76846 2005-08-02  Simon Josefsson  <jas@extundo.com>
76847
76848         * lib/getline.h, getline.c: Rewrite.
76849
76850         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76851
76852 2005-07-31  Bruno Haible  <bruno@clisp.org>
76853
76854         * lib/lock.h (gl_lock_initializer): New macro.
76855         (gl_lock_define_initialized): Use it.
76856         (gl_rwlock_initializer): New macro.
76857         (gl_rwlock_define_initialized): Use it.
76858         (gl_recursive_lock_initializer): New macro.
76859         (gl_recursive_lock_define_initialized): Use it.
76860
76861 2005-07-30  Karl Berry  <karl@gnu.org>
76862
76863         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76864         Report from Ben Pfaff, regarding getopt.
76865
76866 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76867
76868         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76869         normal way.
76870         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76871         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76872         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76873         (gl_GETOPT): Use the new macros.  Most of the implementation
76874         is moved to the new macros.  This is for programs like Emacs
76875         that don't want all the functionality of gl_GETOPT.
76876
76877 2005-07-26  Bruno Haible  <bruno@clisp.org>
76878
76879         * m4/lock.m4: Update from GNU gettext.
76880
76881 2005-07-26  Bruno Haible  <bruno@clisp.org>
76882
76883         * lib/lock.h: Update from GNU gettext.
76884         * lib/lock.c: Update from GNU gettext.
76885
76886 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76889         obsolescent AC_TRY_RUN.  Include the default includes files, for
76890         'exit'.
76891
76892 2005-07-24  Bruno Haible  <bruno@clisp.org>
76893
76894         * modules/visibility: New file.
76895         * MODULES.html.sh (Misc): Add visibility.
76896
76897 2005-07-24  Bruno Haible  <bruno@clisp.org>
76898
76899         * m4/visibility.m4: New file.
76900
76901 2005-07-24  Bruno Haible  <bruno@clisp.org>
76902
76903         * doc/visibility.texi: New file.
76904
76905 2005-07-22  Bruno Haible  <bruno@clisp.org>
76906
76907         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76908         $(ALLOCA_H), redundant through BUILT_SOURCES.
76909         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76910         redundant through BUILT_SOURCES.
76911         * modules/byteswap (Makefile.am): Remove explicit dependency on
76912         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76913         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76914         $(FNMATCH_H), redundant through BUILT_SOURCES.
76915         * modules/getopt (Makefile.am): Remove explicit dependency on
76916         $(GETOPT_H), redundant through BUILT_SOURCES.
76917         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76918         redundant through BUILT_SOURCES.
76919         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76920         redundant through BUILT_SOURCES.
76921         * modules/stdbool (Makefile.am): Remove explicit dependency on
76922         $(STDBOOL_H), redundant through BUILT_SOURCES.
76923         * modules/stdint (Makefile.am): Remove explicit dependency on
76924         $(STDINT_H), redundant through BUILT_SOURCES.
76925         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76926         Remove explicit dependency on $(SYSEXITS_H).
76927         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76928
76929 2005-07-18  Simon Josefsson  <jas@extundo.com>
76930
76931         * lib/check-version.c (check_version): Accept identical versions too.
76932
76933 2005-07-18  Bruno Haible  <bruno@clisp.org>
76934
76935         * modules/lock: New file.
76936         * MODULES.html.sh (Multithreading): New section.
76937
76938 2005-07-18  Bruno Haible  <bruno@clisp.org>
76939
76940         * m4/lock.m4: New file, from GNU gettext.
76941
76942 2005-07-18  Bruno Haible  <bruno@clisp.org>
76943
76944         * lib/lock.h: New file, from GNU gettext.
76945         * lib/lock.c: New file, from GNU gettext.
76946
76947 2005-07-18  Bruno Haible  <bruno@clisp.org>
76948
76949         * lib/lock.h (gl_once_t): New type.
76950         (gl_once_define, gl_once): New macros.
76951         * lib/lock.c (fresh_once): New variable.
76952         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76953         functions.
76954
76955 2005-07-16  Simon Josefsson  <jas@extundo.com>
76956
76957         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76958         workaround, suggested by Bruno.
76959
76960 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         * modules/xalloc (Depends-on): Add xalloc-die.
76963         * modules/xvasprintf (Depends-on): Add xalloc-die.
76964
76965 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76968         with a minor change.
76969
76970 2005-07-15  Bruno Haible  <bruno@clisp.org>
76971
76972         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76973         When using lib/poll.c, define poll as rpl_poll.
76974
76975 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * modules/argp (Depends-on): Remove unlocked-io.
76978
76979 2005-07-14  Derek Price  <derek@ximbiot.com>
76980
76981         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76982         for glob symlink bug.
76983
76984 2005-07-14  Bruno Haible  <bruno@clisp.org>
76985
76986         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76987         Instead, test for *_unlocked function declarations directly.
76988
76989 2005-07-11  Simon Josefsson  <jas@extundo.com>
76990
76991         * modules/size_max: New file.
76992
76993         * modules/xsize: Depend on size_max module for size_max.m4.
76994
76995 2005-07-11  Simon Josefsson  <jas@extundo.com>
76996
76997         * lib/size_max.h: New file.
76998
76999 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77002         copyright symbol and the year.
77003         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77004         (version_etc_va): Use parameterized copyright notice.
77005         Reword to conform to the current GNU coding standards.
77006
77007 2005-07-11  Karl Berry  <karl@gnu.org>
77008
77009         * doc/gnulib.texi (Quoting): new node.
77010         (Initial import): more info, from Patrice.
77011
77012 2005-07-11  Bruno Haible  <bruno@clisp.org>
77013
77014         * gnulib-tool (func_usage): Document option --avoid.
77015         (Command line options): Handle --avoid.
77016         (func_acceptable): New function.
77017         (func_modules_transitive_closure): Use it.
77018
77019 2005-07-11  Bruno Haible  <bruno@clisp.org>
77020
77021         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77022         Reported by Jim Meyering.
77023
77024 2005-07-10  Bruno Haible  <bruno@clisp.org>
77025
77026         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77027         Needed when size_t is smaller than 'unsigned int'.
77028         Reported by Paul Eggert.
77029
77030 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77031
77032         * modules/argp (Depends-on): Add unlocked-io
77033
77034 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77035
77036         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77037         block of defines.
77038
77039 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77040
77041         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77042         fix now.
77043
77044 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77045         and Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77048         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77049
77050 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         * modules/regex (Files): Add lib/regex_internal.c,
77053         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77054         (Depends-on): Add extensions.
77055         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77056
77057 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77058
77059         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77060         pathconf.
77061         * m4/same.m4 (gl_SAME): Likewise.
77062         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77063
77064         * m4/regex.m4: Adjust to new libc regex implementation.
77065         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77066         all the .c and .h parts of (the new) regex.
77067         Quote the m4 stuff better.
77068         Check for RE_ICASE bug of old gnulib.
77069         Check for REG_STARTEND of recent libc.
77070         Rename local variables from jm_* to gl_*.
77071         Quote operand of "test -f".
77072         Say "recent enough" version of libc, not "version 2".
77073         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77074         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77075         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77076         Remove check for btowc, isascii.
77077         Require AM_LANGINFO_CODESET.
77078
77079 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77080
77081         * lib/regex.c, regex.h: Sync from libc.
77082         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77083         * lib/regexec.c:
77084         New files, synced from libc, except that regex_internal.h
77085         currently has a small porting fix.
77086
77087 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77088
77089         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77090         regex_internal.c, regexec.c.
77091         Add regex_internal.h too, but as a comment, since the libc version
77092         is currently broken in gnulib mode.
77093
77094 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         Support programs like Emacs that use gnulib but not gettext.
77097         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77098         * modules/gettext-h: New file.
77099         * modules/gettext (Files): Remove lib/gettext.h.
77100         (Depends-on): Add gettext-h.
77101         (Makefile.am): Remove lib_SOURCES.
77102         * modules/argmatch, modules/c-stack, modules/closeout:
77103         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77104         * modules/execute, modules/file-type, modules/getaddrinfo:
77105         * modules/getopt, modules/human, modules/javacomp:
77106         * modules/javaexec, modules/mkdir-p, modules/obstack:
77107         * modules/openat, modules/pagealign_alloc, modules/pipe:
77108         * modules/quotearg, modules/regex, modules/rpmatch:
77109         * modules/unicodeio, modules/userspec, modules/version-etc:
77110         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77111         * modules/xsetenv:
77112         Depend on gettext-h, not gettext.
77113
77114 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * gnulib-tool (func_import): Add support for 'public domain' license.
77117         * modules/alloca, modules/atexit, modules/memmove:
77118         Now public domain, not GPL.
77119         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77120         * modules/realloc, modules/strerror, modules/strtod:
77121         Now LGPL, not GPL.
77122
77123 2005-07-05  Bruno Haible  <bruno@clisp.org>
77124
77125         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77126         autoconf CVS. Needed for mingw.
77127
77128 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         Remove the dependency of the strftime module on the tzset module.
77131         * modules/strftime (Depends-on): Remove dependency on tzset.
77132
77133 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         Remove the dependency of the strftime module on the tzset module.
77136         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77137         gl_FUNC_TZSET_CLOBBER.
77138
77139 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         Remove the dependency of the strftime module on the tzset module.
77142         * lib/strftime.c (my_strftime)
77143         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77144         Copy the input structure, to work around some of the bug with
77145         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77146         Solaris releases, you should also use the tzset module, but we won't
77147         require it as a dependency any more since we don't want LGPLed code
77148         to depend on GPLed code.
77149
77150 2005-07-02  Jim Meyering  <jim@meyering.net>
77151
77152         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77153         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77154         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77155         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77156
77157 2005-07-02  Jim Meyering  <jim@meyering.net>
77158
77159         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77160
77161 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77164         declares only 'struct timespec;' (!).
77165
77166 2005-07-01  Jim Meyering  <jim@meyering.net>
77167
77168         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77169         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77170         * lib/save-cwd.c, tempname.c:
77171         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77172         and don't include <sys/file.h>).
77173
77174 2005-06-29  Jim Meyering  <jim@meyering.net>
77175
77176         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77177         type name.  Use the variable name instead.
77178         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77179         Likewise.
77180
77181 2005-06-28  Simon Josefsson  <jas@extundo.com>
77182
77183         * modules/check-version (Files): Add check-version.m4.
77184
77185 2005-06-28  Simon Josefsson  <jas@extundo.com>
77186
77187         * m4/check-version.m4: New file, suggested by Jim Meyering
77188         <jim@meyering.net>.
77189
77190 2005-06-28  Simon Josefsson  <jas@extundo.com>
77191
77192         * lib/check-version.h, lib/check-version.c: New files.
77193
77194 2005-06-28  Simon Josefsson  <jas@extundo.com>
77195
77196         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77197         collision with global variable.  Better indentation.  Don't
77198         increment buffer pointer beyond buffer end.  Based on comments
77199         from Paul Eggert <eggert@cs.ucla.edu>.
77200
77201         * lib/base64.h: Indent.
77202
77203 2005-06-28  Simon Josefsson  <jas@extundo.com>
77204
77205         * doc/gnulib.texi (Library version handling): New section.
77206
77207 2005-06-28  Jim Meyering  <jim@meyering.net>
77208
77209         * check-module (find_included_lib_files): Hard-code another
77210         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77211         but modules/fts-lgpl (correctly) does not list those files.
77212
77213         * modules/canonicalize (Files): Add lib/pathmax.h.
77214
77215 2005-06-25  Simon Josefsson  <jas@extundo.com>
77216
77217         * modules/check-version: New file.
77218
77219 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77222         initializer of struct addrinfo, as an indication that we don't
77223         care how many members the structure has.
77224
77225 2005-06-24  Derek Price  <derek@ximbiot.com>
77226         and Bruno Haible  <bruno@clisp.org>
77227
77228         Remove stat module & update lstat.
77229         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77230         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77231         * m4/stat.m4: Remove this file.
77232
77233 2005-06-24  Derek Price  <derek@ximbiot.com>
77234         and Bruno Haible  <bruno@clisp.org>
77235
77236         Remove stat module & update lstat.
77237         * lib/stat.c: Remove this file...
77238         (slash_aware_lstat): ...moving this content and its support...
77239         * lib/lstat.c (rpl_lstat): ...into here.
77240         * lib/lstat.h: New file.
77241
77242 2005-06-24  Derek Price  <derek@ximbiot.com>
77243         and Bruno Haible  <bruno@clisp.org>
77244
77245         Remove stat module & update lstat.
77246         * config/srclist.txt (libc sources): Remove stat.
77247
77248 2005-06-24  Derek Price  <derek@ximbiot.com>
77249         and Bruno Haible  <bruno@clisp.org>
77250
77251         Remove stat module & update lstat.
77252         * MODULES.html.sh (stat): Remove.
77253         * MODULES.html: Regenerated.
77254         * modules/lstat (Description): Correct function name.
77255         (Files): Add "lstat.h".
77256         (Depends-on): Remove stat, add xalloc, stat-macros.
77257         * modules/stat: Remove this file.
77258         (Include): Add "lstat.h", remove <sys/stat.h>.
77259
77260 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77263         (ranged_convert): Don't save conversion in a temporary struct.
77264         This causes a warning with GCC 4.0.0, and anyway in the typical
77265         case it's not worth the extra 100 bytes or so of code.
77266         (ranged_convert, __mktime_internal): When calling a function via a
77267         pointer P, use P () rather than (*P) (), as we now assume C89 or
77268         better.
77269
77270 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77273         "who -r" failed to give output.  Problem reported by Tim Waugh.
77274
77275         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77276         (xcalloc): Use it to avoid needless tests.
77277         Problem reported by Jim Meyering.
77278
77279 2005-06-20  Derek Price  <derek@ximbiot.com>
77280
77281         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77282         unnecessary for Autoconfs > 2.59c.
77283
77284 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77285
77286         * lib/argp.h (__option_is_short): Check upper limit of
77287         __key. Isprint() requires its argument to have the value
77288         of an unsigned char or EOF.
77289
77290 2005-06-16  Jim Meyering  <jim@meyering.net>
77291
77292         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77293         when either N or S is zero.
77294
77295 2005-06-16  Derek Price  <derek@ximbiot.com>
77296
77297         * m4/bison.m4: Declare YACC & YFLAGS precious.
77298
77299 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77302         multibyte string or pattern, fall back on unibyte matching.
77303         Problem reported by James Youngman.
77304
77305 2005-06-08  Bruno Haible  <bruno@clisp.org>
77306
77307         * modules/csharpcomp: New file.
77308         * MODULES.html.sh (C#): Add csharpcomp.
77309
77310 2005-06-08  Bruno Haible  <bruno@clisp.org>
77311
77312         * m4/csharpcomp.m4: New file, from GNU gettext.
77313
77314 2005-06-08  Bruno Haible  <bruno@clisp.org>
77315
77316         * lib/csharpcomp.h: New file, from GNU gettext.
77317         * lib/csharpcomp.c: New file, from GNU gettext.
77318         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77319
77320 2005-06-08  Bruno Haible  <bruno@clisp.org>
77321
77322         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77323         warning on mingw.
77324
77325 2005-06-07  Derek Price  <derek@ximbiot.com>
77326
77327         Sync from CVS.
77328         * lib/glob_.h: Indent nested #ifdef.
77329
77330 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77331
77332         Sync from coreutils.
77333         Use "file name" when talking about file names, instead of "filename"
77334         or "path", as per the GNU coding standards.
77335         * lib/mkdir-p.c: Renamed from makepath.c.
77336         (make_dir_parents): Renamed from make_path.  All callers changed.
77337         * lib/mkdir-p.h: Likewise.  All includers changed.
77338         * lib/filenamecat.c: Renamed from path-concat.c.
77339         (file_name_concat): Renamed from path_concat.  All callers changed.
77340         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77341         * lib/filenamecat.h: Likewise.  All includers changed.
77342         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77343         in comments or local variable names.
77344         * lib/basename.c: Likewise.
77345         * lib/canonicalize.c, canonicalize.h: Likewise.
77346         * lib/dirname.c, dirname.h: Likewise.
77347         * lib/euidaccess.c: Likewise.
77348         * lib/exclude.c: Likewise
77349         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77350         * lib/fsusage.c, fsuage.h: Likewise.
77351         * lib/fts.c, fts_.h: Likewise.
77352         * lib/getcwd.c: Likewise.
77353         * lib/getloadavg.c: Likewise.
77354         * lib/mkstemp.c: Likewise.
77355         * lib/mountlist.c, mountlist.h: Likewise.
77356         * lib/openat.c, openat.h: Likewise.
77357         * lib/readlink-stub.c: Likewise.
77358         * lib/readutmp.c, readutmp.h: Likewise.
77359         * lib/rename.c: Likewise.
77360         * lib/rmdir.c: Likewise.
77361         * lib/same.c: Likewise.
77362         * lib/savedir.c: Likewise.
77363         * lib/stripslash.c: Likewise.
77364         * lib/tempname.c: Likewise.
77365         * lib/xreadlink.c: Likewise.
77366         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77367         All uses changed.
77368         * lib/exclude.h: Likewise.
77369
77370         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77371         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77372         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77373         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77374         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77375         files have been getting away with it for years (MORE/BSD 4.3
77376         is extinct now).
77377         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77378         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77379
77380         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77381         Define to 256, not 255, as per modern POSIX.
77382
77383 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         Sync from coreutils.
77386         Use "file name" when talking about file names, instead of "filename"
77387         or "path", as per the GNU coding standards.
77388         * MODULES.html.sh: mkdir-p renamed from makepath.
77389         filenamecat renamed from path-concat.
77390         * modules/filenamecat: Renamed from modules/path-concat.
77391         (Files): filenamecat.h and filenamecat.c renamed from
77392         path-concat.h and path-concat.c.
77393         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77394         (Include): filenamecat.h, not path-concat.h.
77395         * modules/mkdir-p: Renamed from modules/makepath.
77396         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77397         makepath.c.
77398         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77399         (Include): mkdir-p.h, not makepath.h.
77400
77401 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77402
77403         Sync from coreutils.
77404         * m4/mkdir-p.m4: Renamed from makepath.m4.
77405         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77406         Rename files from makepath.c to mkdir-p.c, and from
77407         makepath.h to mkdir-p.h.
77408         * m4/filenamecat.m4: Renamed from path-concat.m4.
77409         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77410         Rename files from path-concat.c to filenamecat.c,
77411         and from path-concat.h to filenamecat.h.
77412         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77413         "file name" in local variables or comments.
77414         * m4/rename.m4: Likewise.
77415
77416 2005-06-01  Bruno Haible  <bruno@clisp.org>
77417
77418         * modules/csharpexec: New file.
77419         * MODULES.html.sh (C#): New section.
77420
77421 2005-06-01  Bruno Haible  <bruno@clisp.org>
77422
77423         * m4/csharp.m4: New file, from GNU gettext.
77424         * m4/csharpexec.m4: New file, from GNU gettext.
77425
77426 2005-06-01  Bruno Haible  <bruno@clisp.org>
77427
77428         * lib/csharpexec.h: New file, from GNU gettext.
77429         * lib/csharpexec.c: New file, from GNU gettext.
77430         * lib/csharpexec.sh.in: New file, from GNU gettext.
77431
77432 2005-05-31  Derek Price  <derek@ximbiot.com>
77433             Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         Sync from cvs.
77436         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77437
77438 2005-05-31  Derek Price  <derek@ximbiot.com>
77439             Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         Sync from cvs.
77442         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77443
77444 2005-05-29  Derek Price  <derek@ximbiot.com>
77445
77446         * config/srclist.txt (glob_.h, glob.c): Add these files.
77447
77448 2005-05-29  Derek Price  <derek@ximbiot.com>
77449
77450         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77451         * modules/glob: New file.
77452         * modules/getlogin_r: Add link to POSIX spec in description.
77453
77454 2005-05-29  Derek Price  <derek@ximbiot.com>
77455             Paul Eggert  <eggert@cs.ucla.edu>
77456
77457         * m4/glob.m4: New file.
77458
77459 2005-05-29  Derek Price  <derek@ximbiot.com>
77460             Paul Eggert  <eggert@cs.ucla.edu>
77461
77462         * lib/glob_.h, lib/glob.c: New files.
77463
77464 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77467         * modules/fts-lgpl (Depends-on): Remove gettext.
77468
77469 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77470
77471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77472         and don't require gt_INTTYPES_PRI.
77473
77474 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77475
77476         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77477
77478         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77479         the configuration hassle isn't worth it.
77480         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77481         (LONGEST_MODIFIER, PRIuMAX): Remove.
77482
77483 2005-05-27  Bruno Haible  <bruno@clisp.org>
77484
77485         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77486
77487 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77490         _POSIX_PTHREAD_SEMANTICS for Solaris.
77491
77492 2005-05-25  Derek Price  <derek@ximbiot.com>
77493
77494         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77495
77496 2005-05-25  Derek Price  <derek@ximbiot.com>
77497             Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77500         * lib/getlogin_r.c, getlogin_r.h: New files.
77501
77502 2005-05-25  Bruno Haible  <bruno@clisp.org>
77503             Derek Price  <derek@ximbiot.com>
77504
77505         * lib/getlogin_r.h: Simplify API documentation.
77506
77507 2005-05-23  Derek Price  <derek@ximbiot.com>
77508
77509         * modules/minmax (Files): Add m4/minmax.m4.
77510         (configure.ac): Add gl_MINMAX.
77511
77512 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77513
77514         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77515         so that unistd-safer.h (GPL'ed code) need not be included.
77516
77517 2005-05-22  Bruno Haible  <bruno@clisp.org>
77518
77519         * m4/minmax.m4: New file.
77520         Based on a patch by Derek Price <derek@ximbiot.com>.
77521
77522 2005-05-22  Bruno Haible  <bruno@clisp.org>
77523
77524         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77525         (INT64_MIN): Fix definition.
77526         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77527
77528         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77529         NEED_SIGNED_INT_TYPES.
77530
77531         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77532         HAVE_SYSTEM_INTTYPES.
77533
77534 2005-05-22  Bruno Haible  <bruno@clisp.org>
77535
77536         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77537         Also include <sys/param.h> if it defines MIN, MAX.
77538         Based on a patch by Derek Price <derek@ximbiot.com>.
77539
77540 2005-05-21  Jim Meyering  <jim@meyering.net>
77541
77542         * modules/fts (Files): Add m4/inttypes-pri.m4.
77543         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77544
77545 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77546
77547         New fts module.
77548         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77549         (setup_dir, free_dir): New functions.
77550         (enter_dir, leave_dir): Define trivial
77551         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77552         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77553         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77554         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77555         Move to fts-cycle.c.
77556         (fts_open): Use setup_dir.
77557         (fts_close): Use free_dir.
77558         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77559         This adds a label and some gotos, but the alternatives were messier.
77560         Check for memory allocation failure when entering a dir.
77561         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77562         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77563         (FTS): New member fts_cycle, that is a union that contains the
77564         old active_dir_ht and cycle_state.  All uses changed to mention
77565         fts_cycle.ht and fts_cycle.state.
77566         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77567         fts.c, with the following changes:
77568         (setup_dir, free_dir): New functions.
77569         (enter_dir): Now returns bool.  Return true if successful, false
77570         if memory exhausted.  All callers changed.
77571         Do not bother partly cleaning up on
77572         memory allocation failure; that is free_dir's job.
77573         However, free ad if hash_insert fails, to avoid memory leak.
77574         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77575         fts->fts_options to see which union member to use.
77576
77577 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77580         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77581
77582 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77585
77586 2005-05-20  Jim Meyering  <jim@meyering.net>
77587
77588         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77589         Now a macro, to pacify GCC.
77590
77591 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77592
77593         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77594         of -1.
77595
77596 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77597
77598         * lib/chown.c (rpl_chown): Return -1 on failure.
77599
77600 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77603         Don't check for stddef.h.
77604         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77605         don't use its results.
77606         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77607         since we include them unconditionally.  Don't require
77608         AM_STDBOOL_H, since stdbool is a prerequisite.
77609         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77610         since we assume C89 or better.
77611         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77612         as we don't use their results.
77613         Don't check for fchdir, memmove, memset, strrchr, as we use
77614         them unconditionally.
77615         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77616         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77617
77618 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77619
77620         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77621         Include <stddef.h> unconditionally, since we assume C89 now.
77622         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77623         * lib/fts.c: Include fts_.h first, to check interface.
77624         Do not include intprops.h; no longer needed.
77625         Include cycle-check.h and hash.h, since fts_.h no longer does.
77626         Remove unnecessary casts of closedir to void.
77627         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77628         decide whether to decrement nlinks.
77629         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77630         (FTS): Use struct hash_table * instead of Hash_table, so that
77631         we no longer need to include hash.h here.
77632
77633 2005-05-18  Jim Meyering  <jim@meyering.net>
77634
77635         * modules/dirfd (License): Change to LGPL.  Most of the code
77636         is already in the public domain.
77637
77638 2005-05-18  Jim Meyering  <jim@meyering.net>
77639
77640         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77641         Reported by Yoann Vandoorselaere.
77642
77643 2005-05-17  Jim Meyering  <jim@meyering.net>
77644
77645         * m4/fts.m4: New file, from coreutils.
77646
77647 2005-05-17  Jim Meyering  <jim@meyering.net>
77648
77649         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77650
77651 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         Sync from coreutils.
77654         * m4/unlinkdir.m4: New file.
77655
77656 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         Sync from coreutils.
77659         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77660         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77661         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77662         White space changes only.
77663         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77664         special.
77665         * lib/yesno.c: Include getline.h, not ctype.h.
77666         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77667         Use getline to remove arbitrary restriction on response length.
77668
77669 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77670
77671         * config/srclist-update: Spell out "Street" in FSF postal
77672         mail address; this is the style the FSF seems to prefer.
77673
77674         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77675         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77676         this updates FSF postal mail address.
77677
77678         Sync from coreutils.
77679         * modules/unlinkdir: New file.
77680         * modules/yesno (Depends-on): Add getline.
77681         * MODULES.html.sh (File system functions): Add unlinkdir.
77682
77683 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77684
77685         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77686         lib/strsep.h:
77687         Change the initial comment to refer to GPL, not LGPL.
77688         gnulib-tool will change it to LGPL as needed.
77689
77690         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77691         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77692         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77693         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77694         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77695         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77696         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77697         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77698         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77699         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77700         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77701         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77702         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77703         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77704         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77705         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77706         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77707         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77708         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77709         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77710         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77711         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77712         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77713         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77714         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77715         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77716         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77717         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77718         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77719         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77720         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77721         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77722         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77723         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77724         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77725         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77726         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77727         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77728         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77729         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77730         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77731         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77732         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77733         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77734         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77735         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77736         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77737         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77738         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77739         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77740         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77741         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77742         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77743         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77744         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77745         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77746         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77747         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77748         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77749         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77750         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77751         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77752         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77753         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77754         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77755         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77756         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77757         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77758         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77759         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77760         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77761         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77762         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77763         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77764         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77765         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77766         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77767         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77768         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77769         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77770         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77771         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77772         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77773         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77774         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77775         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77776         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77777         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77778         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77779         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77780         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77781         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77782         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77783         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77784         lib/yesno.c, lib/yesno.h:
77785         Update FSF postal mail address.
77786
77787 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77790         tests/test-memmem.c, tests/test-stpncpy.c:
77791         Update FSF postal mail address.
77792
77793 2005-05-13  Bruno Haible  <bruno@clisp.org>
77794
77795         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77796         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77797         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77798         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77799         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77800         Add support for 64-bit integers in the MSVC compiler.
77801
77802 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77803
77804         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77805
77806 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77807
77808         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77809
77810 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * doc/getdate.texi (General date syntax): Don't say that date
77813         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77814         Problem reported by Nic Ferrier.
77815
77816 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77817
77818         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77819         specified in ai_socktype. Fix invalid ai_protocol
77820         check. ai_protocol is usually set to 0 or depending on
77821         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77822         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77823         ai_socktype / ai_protocol in the returned addrinfo structure.
77824
77825 2005-05-10  Simon Josefsson  <jas@extundo.com>
77826
77827         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77828         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77829
77830 2005-05-10  Karl Berry  <karl@gnu.org>
77831
77832         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77833         (from http://www.gnu.org/licenses).
77834         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77835         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77836         fdl.texi suffices.
77837
77838 2005-05-10  Karl Berry  <karl@gnu.org>
77839
77840         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77841         (COPYING.DOC): remove.
77842
77843         * config/srclist-update: new FSF address.
77844
77845 2005-05-10  Derek Price  <derek@ximbiot.com>
77846
77847         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77848         possible.
77849
77850 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77851             Bruno Haible  <bruno@clisp.org>
77852
77853         * modules/inet_ntop: New file.
77854         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77855         inet_ntop.
77856
77857 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77858             Bruno Haible  <bruno@clisp.org>
77859
77860         * m4/inet_ntop.m4: New file.
77861
77862 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77863             Bruno Haible  <bruno@clisp.org>
77864
77865         * lib/inet_ntop.h: New file.
77866         * lib/inet_ntop.c: New file, from glibc with modifications.
77867
77868 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77869
77870         * modules/time_r (License): Change to LGPL.
77871         * modules/extensions (License): Change to LGPL.  Actually,
77872         the license is more permissive than that, but currently gnulib-tool
77873         doesn't know how to handle more-permissive licenses.
77874
77875         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77876         Problem reported by Dave Love.
77877
77878 2005-05-08  Jim Meyering  <jim@meyering.net>
77879
77880         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77881         blank.
77882
77883 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77884
77885         * modules/argmatch (Depends-on): Add stdbool.
77886         * modules/backupfile (Depends-on): Likewise.
77887         * modules/chdir-long (Depends-on): Likewise.
77888         * modules/closeout (Depends-on): Likewise.
77889         * modules/cycle-check (Depends-on): Likewise.
77890         * modules/dirname (Depends-on): Likewise.
77891         * modules/fnmatch (Depends-on): Likewise.
77892         * modules/fsusage (Depends-on): Likewise.
77893         * modules/fwriteerror (Depends-on): Likewise.
77894         * modules/getcwd (Depends-on): Likewise.
77895         * modules/getloadavg (Depends-on): Likewise.
77896         * modules/hard-locale (Depends-on): Likewise.
77897         * modules/makepath (Depends-on): Likewise.
77898         * modules/mountlist (Depends-on): Likewise.
77899         * modules/nanosleep (Depends-on): Likewise.
77900         * modules/posixtm (Depends-on): Likewise.
77901         * modules/quotearg (Depends-on): Likewise.
77902         * modules/readtokens (Depends-on): Likewise.
77903         * modules/readtokens0 (Depends-on): Likewise.
77904         * modules/readutmp (Depends-on): Likewise.
77905         * modules/save-cwd (Depends-on): Likewise.
77906         * modules/strftime (Depends-on): Likewise.
77907         * modules/userspec (Depends-on): Likewise.
77908         * modules/utimecmp (Depends-on): Likewise.
77909         * modules/xgetcwd (Depends-on): Likewise.
77910         * modules/xnanosleep (Depends-on): Likewise.
77911         * modules/xstrtod (Depends-on): Likewise.
77912         * modules/yesno (Depends-on): Likewise.
77913
77914 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77917         needless checks.
77918
77919 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         Merge from coreutils.  Among other things,
77922         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77923         * lib/fd-safer.c: New file.
77924         * lib/fcntl-safer.h, open-safer.c: Remove.
77925         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77926         * lib/dup-safer.c: Include unistd-safer.h first.
77927         Don't include errno.h.
77928         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77929         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77930         * lib/file-type.c: Rely on file-type.h change.
77931         * lib/getloadavg.c: Include unistd-safer.h.
77932         (getloadavg): Use safer open.
77933         * lib/getusershell.c: Include "stdio-safer.h".
77934         (getusershell): Use safer fopen.
77935         * lib/long-options.c (long_options): Use NULL rather than 0.
77936         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77937         'free'.
77938         * lib/modechange.c: Likewise.
77939         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77940         (MODE_DONE): New constant.
77941         (struct mode_change): Remove 'next' member.
77942         (make_node_op_equals): New function; like the old one of the
77943         same name, except it allocates an array.
77944         (mode_compile, mode_create_from_ref): Use it.
77945         (mode_compile): Allocate result as an array, not a linked list.
77946         Parse octal string ourself, so that we catch mistakes like "+0".
77947         (mode_adjust): Arg is an array, not a linked list.
77948         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77949         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77950         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77951         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77952         Remove.  This is now stat-macros.h's job.
77953         (talloc): Remove.  All callers replaced by xalloc, so that
77954         our invokers don't have to worry about reporting memory failures.
77955         (make_node_op_equals): Remove.
77956         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77957         New constants.
77958         (struct mode_change): Moved here from modechange.h.
77959         (mode_append_entry): Remove.
77960         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77961         apps to have incorrect behavior.  Use simpler algorithm for head
77962         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77963         Detect more invalid usages rather than having somewhat-random behavior.
77964         Don't insert an "a=" action, as that leads to incorrect behavior.
77965         (mode_compile, mode_create_from_ref): Return NULL on error instead
77966         of an enum, since now there's only one way to have an error.  All
77967         callers changed.
77968         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77969         at the correct time.  Simplify calculation of "+u" and its ilk.
77970         Don't mishandle "+X".
77971         (mode_free): Remove "register" and localize decls.
77972         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77973         (struct mode_change): Move to modechange.c; callers don't
77974         need to see this stuff.
77975         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77976         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77977         (mode_change, mode_adjust): Reflect the new signatures noted above.
77978         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77979         that might redefine system include files.
77980         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77981         (my_usleep): Use NULL rather than (void *) 0.
77982         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77983         Use siginterrupt to specify that system calls should be interrupted.
77984         (rpl_nanosleep): Move initialization of suspended closer to call of
77985         my_usleep.
77986         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77987         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77988         (desirable_utmp_entry): New function.
77989         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77990         using x2nrealloc, to simplify logic.
77991         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77992         size calculation.  Do not assume utmp file is a regular file.
77993         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77994         (READ_UTMP_CHECK_PIDS): New constant.
77995         * lib/save-cwd.c: Include unistd-safer.h.
77996         (save_cwd): Use fd_safer.
77997         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77998         [!_LIBC] Include "stat-macros.h" instead.
77999         * lib/unistd-safer.h (fd_safer): New decl.
78000
78001 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78002
78003         * modules/getloadavg (Depends-on): Add unistd-safer.
78004         * modules/getusershell (Depends-on): Add stdio-safer.
78005         * modules/lstat (Depends-on): Remove xalloc.
78006         * modules/mkstemp (Depends-on): Add stat-macros.
78007         * modules/modechange (Depends-on): Remove xstrtol.
78008         Add stat-macros, xalloc.
78009         * modules/save-cwd (Depends-on): Add unistd-safer.
78010         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78011         * modules/unistd-safer (Files): Add lib/fd-safer.c
78012         (Makefile.am): Remove lib_SOURCES.
78013
78014         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78015         Remove fcntl-safer; unistd-safer supersedes it.
78016
78017 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78020         AC_HEADER_STAT.
78021         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78022         (gl_PREREQ_CHOWN): Remove.
78023         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78024         it.  Don't require AC_HEADER_STAT.
78025         (gl_PREREQ_LSTAT): Remove.
78026         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78027         Don't require AC_HEADER_STAT.
78028         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78029         (gl_PREREQ_RMDIR): Remove.
78030         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78031         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78032         the stat-macros module a prerequisite.
78033         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78034         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78035         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78036         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78037         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78038         variable names.
78039         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78040         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78041         variable prefixes.
78042         * m4/fcntl-safer.m4: Remove.
78043         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78044         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78045         Invoke gl_PREREQ_FD_SAFER.
78046         (gl_PREREQ_FD_SAFER): New macro.
78047         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78048         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78049         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78050         Remove duplicate call to AC_LIBOBJ(readutmp).
78051         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78052
78053         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78054         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78055
78056 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * MODULES.html.sh (Misc): Add byteswap.
78059
78060 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78061
78062         * modules/getcwd (Depends-on): Add extensions.
78063         * modules/openat (Depends-on): Likewise.
78064
78065 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78066
78067         * modules/byteswap: New file.
78068
78069 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78070
78071         * m4/byteswap.m4: New file.
78072
78073 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78074
78075         * lib/byteswap_.h: New file.
78076
78077 2005-04-25  Karl Berry  <karl@gnu.org>
78078
78079         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78080
78081 2005-04-25  Albert Chin  <china@thewrittenword.com>
78082
78083         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78084         Toolkit C bug.
78085
78086 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78087
78088         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78089         (func_ln_if_changed): Remove forcibly for no error message
78090         in case file does not exist.
78091
78092 2005-04-19  Simon Josefsson  <jas@extundo.com>
78093
78094         * gnulib-tool (Options): Make --symlink mean --symbolic.
78095
78096 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78097
78098         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78099
78100 2005-04-16  Simon Josefsson  <jas@extundo.com>
78101
78102         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78103
78104 2005-04-15  Simon Josefsson  <jas@extundo.com>
78105
78106         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78107
78108 2005-04-15  Simon Josefsson  <jas@extundo.com>
78109
78110         * gnulib-tool: Rename --symlink to --symbolic.
78111
78112 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78113
78114         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78115         symbolic links to files instead of copying/moving.  Add --aux-dir,
78116         specifying directory relative --dir where auxiliary build tools
78117         are placed.
78118
78119 2005-04-14  Bruno Haible  <bruno@clisp.org>
78120
78121         * modules/allocsa (License): Change to LGPL.
78122         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78123
78124 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78127         that "UTC +1 second" continues to work.  Problem reported
78128         by Dmitry V. Levin.
78129         (relunit_snumber): New rule.
78130         (relunit): Use it.
78131
78132 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78133
78134         * lib/getdate.y (universal_time_zone_table): New constant.
78135         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78136         universal_time_zone_table.
78137         (lookup_zone): Prefer universal_time_zone_table to
78138         local_time_zone_table, so that "GMT" time stamps are allowed in
78139         London during the summer.  Problem reported by Ian Abbott.
78140
78141 2005-04-12  Jim Meyering  <jim@meyering.net>
78142
78143         * lib/human.c (humblock): Set *options even when returning due to
78144         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78145         warning from gcc-4.
78146
78147 2005-04-09  Jim Meyering  <jim@meyering.net>
78148
78149         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78150         -Wuninitialized: initialize tm0.tm_year.
78151
78152 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78153
78154         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78155         count, since there's no maximum.  All uses changed.
78156         Add member dsts_seen.
78157         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78158         not being INT_MAX.
78159         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78160         Use pc_rels_seen to decide whther a date is absolute.
78161
78162         * lib/getdate.y (number): Don't overwrite year.
78163         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78164         check.
78165
78166 2005-04-02  Simon Josefsson  <jas@extundo.com>
78167
78168         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78169         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78170
78171 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78172
78173         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78174         where no absolute path name can be longer than PATH_MAX.
78175
78176 2005-03-27  Jim Meyering  <jim@meyering.net>
78177
78178         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78179
78180 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78183         "one's complement" -> "ones' complement" in comment, as per Knuth.
78184         "value of type" -> "type or expression" in comment.
78185         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78186
78187 2005-03-26  Jim Meyering  <jim@meyering.net>
78188
78189         Comment nits.
78190         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78191         Correct typos: s/or/of/.
78192
78193 2005-03-26  Jim Meyering  <jim@meyering.net>
78194
78195         * modules/check-include-files: Move to ../ and rename to...
78196         * check-module: ...this.
78197
78198 2005-03-25  Jim Meyering  <jim@meyering.net>
78199
78200         * modules/xvasprintf (Files): Add xalloc.h.
78201
78202 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * modules/gettext (Files): config/config.rpath ->
78205         build-aux/config.rpath
78206         * modules/iconv (Files): Likewise.
78207         Problem reported by Oskar Liljeblad.
78208
78209 2005-03-23  Jim Meyering  <jim@meyering.net>
78210
78211         * modules/check-include-files: New script to check for
78212         missing dependencies, multiple includes, etc.
78213
78214         * modules/c-strtold (Depends-on): Add xalloc.
78215         * modules/c-strtod (Depends-on): Add xalloc.
78216         * modules/hash (Depends-on): Add xalloc.
78217         (Files): Remove lib/xalloc.h.
78218
78219         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78220         * modules/userspec (Files): Add lib/inttostr.h.
78221
78222 2005-03-23  Jim Meyering  <jim@meyering.net>
78223
78224         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78225
78226 2005-03-22  Jim Meyering  <jim@meyering.net>
78227
78228         * modules/stat-macros: New module.
78229         * modules/canonicalize, modules/euidaccess, modules/file-type,
78230         * modules/filemode, modules/lchown, modules/makepath,
78231         * modules/rmdir, modules/stat: Depend on new stat-macros module
78232         rather than listing lib/stat-macros.h manually.
78233         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78234
78235 2005-03-22  Jim Meyering  <jim@meyering.net>
78236
78237         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78238
78239 2005-03-22  Bruno Haible  <bruno@clisp.org>
78240
78241         * config/srclist.txt: Replace target directory 'config' with
78242         'build-aux'.
78243         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78244         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78245         ../build-aux/.
78246
78247 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * modules/chdir-long (Depends-on): Add mempcpy.
78250
78251         * modules/acl, modules/backupfile, modules/c-strtod,
78252         modules/c-strtold, modules/canon-host, modules/canonicalize,
78253         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78254         modules/exclude, modules/exitfail, modules/file-type,
78255         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78256         modules/getdate, modules/getline, modules/getpagesize,
78257         modules/getpass, modules/getugroups, modules/group-member,
78258         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78259         modules/inttostr, modules/long-options, modules/makepath,
78260         modules/md5, modules/memcasecmp, modules/memcoll,
78261         modules/modechange, modules/mountlist, modules/path-concat,
78262         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78263         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78264         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78265         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78266         modules/strftime, modules/strndup, modules/strverscmp,
78267         modules/timespec, modules/unlocked-io, modules/userspec,
78268         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78269         modules/yesno:
78270         Remove lib_SOURCES line from Makefile.am section, as this is now
78271         done automatically by the corresponding Autoconf macro.
78272
78273 2005-03-21  Jim Meyering  <jim@meyering.net>
78274
78275         Changes imported from coreutils.
78276
78277         * lib/cycle-check.c: Don't include xalloc.h.
78278
78279         * lib/path-concat.c: Don't include assert.h.
78280         (path_concat): Remove assertion that would have triggered
78281         for ABASE starting with more than one slash.
78282         Reported by Andreas Schwab.
78283
78284         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78285         properly when ABASE is an absolute file name.
78286         Correct the description of this function.
78287         Include <assert.h>.
78288         Add an assertion and a test driver.
78289         This fixes a bug introduced on 2004-07-02.
78290         Andreas Schwab reported the resulting failure of cp --parents:
78291         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78292
78293 2005-03-21  Jim Meyering  <jim@meyering.net>
78294
78295         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78296         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78297
78298 2005-03-21  Jim Meyering  <jim@meyering.net>
78299         and  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78302         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78303         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78304         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78305         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78306         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78307         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78308         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78309         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78310         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78311         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78312         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78313         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78314         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78315         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78316         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78317         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78318         for these modules.
78319
78320 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78321
78322         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78323         (which shouldn't happen), generate nothing instead of returning 0
78324         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78325
78326 2005-03-16  Bruno Haible  <bruno@clisp.org>
78327
78328         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78329         HAVE_LONGLONG_64BIT.
78330
78331 2005-03-16  Bruno Haible  <bruno@clisp.org>
78332
78333         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78334         HAVE_LONGLONG_64BIT.
78335
78336 2005-03-16  Bruno Haible  <bruno@clisp.org>
78337
78338         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78339         HAVE_LONGLONG_64BIT.
78340
78341 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78344         reliably distinguish strftime failure from empty output on POSIX
78345         hosts.
78346
78347 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78348
78349         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78350         (iconv_string): Don't guess a size-zero buffer, as that might cause
78351         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78352         result would be 'too large', where 'too large' is (heuristically)
78353         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78354         overflow concerns.  This will prevent some unwanted malloc failures
78355         when the inputs are very large.
78356
78357 2005-03-15  Karl Berry  <karl@gnu.org>
78358
78359         * config/srclist.txt (config.rpath): from gettext.
78360         * config/config.rpath: update.
78361
78362 2005-03-15  Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78365         to 'negate'.
78366
78367         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78368         variable.
78369
78370         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78371         results.
78372
78373 2005-03-14  Simon Josefsson  <jas@extundo.com>
78374
78375         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78376         <fx@gnu.org>.
78377
78378 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78379
78380         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78381         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78382         intprops.h.
78383         * lib/strtol.c: Likewise.
78384
78385 2005-03-14  Jim Meyering  <jim@meyering.net>
78386
78387         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78388         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78389         to be nonzero so that we (and caller) can detect the difference
78390         between a valid zero-length expansion and an error return, even
78391         when the underlying strftime fails before writing anything into
78392         that location.
78393
78394 2005-03-14  Bruno Haible  <bruno@clisp.org>
78395
78396         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78397         Update from GNU gettext 0.14.3.
78398
78399 2005-03-10  Jim Meyering  <jim@meyering.net>
78400
78401         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78402
78403 2005-03-10  Jim Meyering  <jim@meyering.net>
78404
78405         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78406         so that this module works on systems without fchdir.
78407
78408 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         Factor int-properties macros into a single file, except for
78411         glibc-related files.
78412         * lib/intprops.h: New file.
78413         * lib/getloadavg.c: Include it instead of limits.h.
78414         (INT_STRLEN_BOUND): Remove.
78415         * lib/human.c: Include intprops.h.
78416         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78417         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78418         302/1000.
78419         * lib/inttostr.h: Include intprops.h instead of limits.h.
78420         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78421         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78422         for consistency with intprops.h.
78423         (time_t_is_integer, twos_complement_arithmetic): Use them.
78424         * lib/sig2str.h: Include <signal.h>, intprops.h.
78425         (INT_STRLEN_BOUND): Remove.
78426         * lib/strftime.c (TYPE_SIGNED): Remove.
78427         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78428         * lib/strtol.c: Adjust comments to match intprops.h.
78429         * lib/userspec.c: Include intprops.h.
78430         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78431         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78432         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78433         instead of rolling our own expressions.
78434         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78435
78436         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78437         instead of int.
78438         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78439         the right thing even if adding 1900 would overflow.  Similarly
78440         for tm_mon + 1 and tm_yday + 1.
78441         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78442         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78443         (DO_SIGNED_NUMBER): New macro.
78444         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78445
78446 2005-03-07  Bruno Haible  <bruno@clisp.org>
78447
78448         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78449
78450 2005-03-07  Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78453
78454 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78455
78456         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78457         (func_import): Only replace files via --import when they have actually
78458         changed.
78459
78460 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78461
78462         * m4/mmap-anon.m4: New file.
78463         * m4/pagealign_alloc.m4: New file.
78464
78465 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78466             Bruno Haible  <bruno@clisp.org>
78467
78468         * modules/pagealign_alloc: New file.
78469         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78470
78471 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78472             Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/pagealign_alloc.h: New file.
78475         * lib/pagealign_alloc.c: New file.
78476
78477 2005-03-03  Bruno Haible  <bruno@clisp.org>
78478
78479         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78480         Use an all-permissive copyright notice, recommended by RMS.
78481
78482 2005-03-02  Bruno Haible  <bruno@clisp.org>
78483
78484         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78485         of AIX, the replacement has to be done only after <string.h> is
78486         included, therefore not in config.h. stpncpy.h does the replacement,
78487         and stpncpy.c uses it.
78488
78489 2005-03-02  Bruno Haible  <bruno@clisp.org>
78490
78491         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78492         stpncpy.c uses it.
78493
78494 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78497         The workaround isn't strictly needed for POSIX conformance, and
78498         it's too much of a pain to configure and maintain.  We'll ask
78499         people to fix their kernels instead.
78500         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78501         (NANOSLEEP_BUG_WORKAROUND): Remove.
78502         (xnanosleep): Remove the workaround.
78503
78504 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78505
78506         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78507         Reported by Derek Price.
78508         (Include): Add "timespec.h".
78509
78510         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78511
78512 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78513
78514         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78515         to detect nanosleep bug.
78516
78517 2005-03-01  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78520
78521 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78522
78523         * modules/gethrxtime: New file.
78524         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78525         (Depends-on): Add gethrxtime.
78526         (configure.ac): Add gl_XNANOSLEEP.
78527         (Makefile.am): Remove lib_SOURCES line.
78528
78529 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78532         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78533
78534 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78537         * lib/timespec.h (gettime): Return void, since it always
78538         succeeds now.  All uses changed.
78539         * lib/gettime.c (gettime): Likewise.
78540         [HAVE_NANOTIME]: Prefer nanotime.
78541         Assume gettimeofday succeeds, as POSIX requires.
78542         Assime time () succeeds, since other code already does.
78543         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78544         (timespec_subtract): Remove.
78545         (NANOSLEEP_BUG_WORKAROUND): New constant.
78546         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78547         things considerably.  Use it only on GNU/Linux hosts, since the
78548         workaround shouldn't be needed elsewhere.
78549
78550 2005-02-24  Bruno Haible  <bruno@clisp.org>
78551
78552         * modules/gettext (Files): Add m4/glibc2.m4.
78553
78554 2005-02-24  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78557         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78558         * m4/progtest.m4:
78559         Update from GNU gettext 0.14.2.
78560         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78561
78562 2005-02-24  Bruno Haible  <bruno@clisp.org>
78563
78564         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78565         * lib/config.charset: Update from GNU gettext 0.14.2.
78566
78567 2005-02-24  Bruno Haible  <bruno@clisp.org>
78568
78569         * lib/gettext.h: Update from GNU gettext 0.14.2.
78570
78571 2005-02-23  Simon Josefsson  <jas@extundo.com>
78572
78573         * m4/iconvme.m4: New file.
78574
78575 2005-02-23  Jim Meyering  <jim@meyering.net>
78576
78577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78578         change.
78579         Thanks to Bruno Haible for catching it.
78580
78581 2005-02-22  Simon Josefsson  <jas@extundo.com>
78582
78583         * modules/iconvme: New file.
78584
78585         * MODULES.html.sh: Add iconvme.
78586
78587 2005-02-22  Simon Josefsson  <jas@extundo.com>
78588
78589         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78590
78591 2005-02-22  Simon Josefsson  <jas@extundo.com>
78592
78593         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78594
78595 2005-02-22  Jim Meyering  <jim@meyering.net>
78596
78597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78598         s/ifndef/ifdef/.
78599
78600 2005-02-20  Neil Conway  <neilc@samurai.com>
78601
78602         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78603         returned by OSX/Darwin if the specified buffer is not large
78604         enough for the hostname.
78605
78606 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78607
78608         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78609         pass it to _help, otherwise the latter coredumps trying to
78610         dereference state.root_argp.
78611
78612 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * modules/chdir-long (Depends-on): Add memrchr.
78615         * modules/memrchr (Files): Add lib/memrchr.h.
78616         (Include): "memrchr.h".
78617
78618 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78621
78622 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78623
78624         * lib/memrchr.h: New file.
78625         * lib/chdir-long.c: Include it.
78626         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78627         Don't bother including stddef.h.
78628
78629 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78632         inclusion.
78633         Include <sys/types.h>, for dev_t.
78634         (ME_DUMMY, ME_REMOTE): Move from here....
78635         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78636         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78637         Dmitry V. Levin.
78638         Include mountlist.h first, to test the interface.
78639
78640 2005-01-29  Bruno Haible  <bruno@clisp.org>
78641
78642         * lib/progname.c (program_name): Initialize.
78643         Needed when linking statically on MacOS X.
78644
78645 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78646
78647         Sync from coreutils.
78648         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78649         (Depends-on): Add c-strtod.
78650         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78651
78652 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         Sync from coreutils.
78655         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78656
78657         Remove files that are specific to coreutils.
78658         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78659
78660 2005-01-28  Bruno Haible  <bruno@clisp.org>
78661
78662         * modules/javacomp: New file.
78663         * MODULES.html.sh (Java): Add javacomp.
78664
78665 2005-01-28  Bruno Haible  <bruno@clisp.org>
78666
78667         * m4/javacomp.m4: New file, from GNU gettext.
78668
78669 2005-01-28  Bruno Haible  <bruno@clisp.org>
78670
78671         * lib/javacomp.sh.in: New file, from GNU gettext.
78672         * lib/javacomp.h: New file, from GNU gettext.
78673         * lib/javacomp.c: New file, from GNU gettext.
78674
78675 2005-01-26  Simon Josefsson  <jas@extundo.com>
78676
78677         * lib/gai_strerror.c: Use GPL in header.
78678
78679 2005-01-26  Bruno Haible  <bruno@clisp.org>
78680
78681         * modules/javaexec: New file.
78682         * MODULES.html.sh (Java): Add javaexec.
78683
78684 2005-01-26  Bruno Haible  <bruno@clisp.org>
78685
78686         * m4/javaexec.m4: New file, from GNU gettext.
78687
78688 2005-01-26  Bruno Haible  <bruno@clisp.org>
78689
78690         * lib/javaexec.sh.in: New file, from GNU gettext.
78691         * lib/javaexec.h: New file, from GNU gettext.
78692         * lib/javaexec.c: New file, from GNU gettext.
78693
78694 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78695
78696         * modules/lchown (Depends-on): Remove lchown.h
78697
78698 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78699
78700         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78701         must be defined if the header file was not found, in order
78702         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78703
78704 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78705
78706         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78707         initializers for struct pentry_state.
78708         (__argp_error): Check return value of __asprintf
78709         (__argp_failure): Translate error message
78710
78711         * lib/argp-parse.c: Removed braces around the expansion of N_()
78712
78713 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78714
78715         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78716         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78717         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78718         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78719         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78720         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78721         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78722         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78723         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78724         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78725         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78726         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78727         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78728         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78729         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78730         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78731         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78732         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78733         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78734         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78735         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78736         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78737         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78738         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78739         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78740         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78741         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78742         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78743         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78744         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78745         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78746         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78747         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78748         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78749         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78750         Use an all-permissive copyright notice, recommended by RMS.
78751
78752 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * modules/chdir-long (Depends-on): Remove mempcpy.
78755
78756 2005-01-21  Jim Meyering  <jim@meyering.net>
78757
78758         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78759         same value as for Solaris 9.
78760
78761         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78762         component length.  This included changing the parameter to be
78763         of type `char *' rather than `char const *'.
78764         * lib/chdir-long.h (chdir_long): Update prototype.
78765
78766         * lib/openat.c (fdopendir, fstatat): New functions.
78767         * lib/openat.h: Include headers required for use of DIR and struct
78768         stat.
78769         [AT_SYMLINK_NOFOLLOW]: Define.
78770         (fdopendir, fstatat): Add prototypes.
78771
78772 2005-01-21  Bruno Haible  <bruno@clisp.org>
78773
78774         * modules/classpath: New file.
78775         * MODULES.html.sh (Java): Add classpath.
78776
78777 2005-01-21  Bruno Haible  <bruno@clisp.org>
78778
78779         * lib/classpath.h: New file, from GNU gettext.
78780         * lib/classpath.c: New file, from GNU gettext.
78781
78782 2005-01-20  Simon Josefsson  <jas@extundo.com>
78783
78784         * modules/version-etc-fsf: New file.
78785
78786 2005-01-20  Simon Josefsson  <jas@extundo.com>
78787
78788         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78789         * lib/version-etc.c: Remove version_etc_copyright.
78790         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78791         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78792
78793 2005-01-20  Simon Josefsson  <jas@extundo.com>
78794
78795         * lib/base64.h (isbase64): Add.
78796
78797         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78798         using a unsigned prototype, don't inline.
78799         (base64_decode): Use it.
78800
78801 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78804         it.
78805
78806 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78807
78808         * lib/save-cwd.c (save_cwd): Remove code to support the case
78809         where fchdir is missing or flaky.
78810
78811 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78812
78813         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78814
78815 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78818         AC_LIBSOURCES now does this.
78819         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78820         with new ullong_max module.
78821
78822 2005-01-19  Bruno Haible  <bruno@clisp.org>
78823
78824         * modules/sh-quote: New file.
78825         * MODULES.html.sh (Executing programs): Add sh-quote.
78826
78827 2005-01-19  Bruno Haible  <bruno@clisp.org>
78828
78829         * lib/sh-quote.h: New file, from GNU gettext.
78830         * lib/sh-quote.c: New file, from GNU gettext.
78831
78832 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78833
78834         Merge from coreutils.
78835         * m4/ullong_max.m4: New file.
78836         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78837         (gl_MACROS): Assume localeconv exists.
78838
78839 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         Merge changes from coreutils, as described below in several
78842         changelogs dated today.
78843
78844         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78845         (O_DIRECTORY): Remove; not needed here, since "." must be
78846         a directory.  All uses removed.
78847         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78848         universal on Suns, and we also need to test for IRIX.
78849         Revamp code to use 'if' rather than '#if'.
78850         Avoid unnecessary comparison of cwd->desc to 0.
78851
78852         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78853         for known valid error numbers rather than observed invalid ones.
78854
78855 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * modules/ullong_max: New file.
78858
78859         * modules/chdir-long, modules/openat: New files.
78860         * modules/save-cwd (Depends-on): Depend on chdir-long.
78861         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78862
78863 2005-01-18  Jim Meyering  <jim@meyering.net>
78864
78865         Merge from coreutils.
78866         * m4/chdir-long.m4, m4/openat.m4: New files.
78867         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78868         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78869         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78870         is sane and DOES follow symlinks.  Besides, testing 20 different
78871         systems found no broken chown implementations.
78872         Prompted by a change in rsync's copy of this macro.
78873         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78874
78875         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78876
78877         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78878         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78879         NULL-means-set-to-current-time semantics.
78880         Remove temporary file immediately, rather than waiting
78881         for configure's at-exit trap code to do it.
78882
78883 2005-01-18  Jim Meyering  <jim@meyering.net>
78884
78885         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78886
78887         * lib/utimens.c (futimens): Account for the fact that futimes
78888         can also fail with errno == ENOSYS or errno == ENOENT.
78889         Patch from Dmitry V. Levin.
78890
78891         Change the name of the robust chdir function from chdir to chdir_long.
78892         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78893         (restore_cwd): Use chdir_long, not chdir.
78894         * lib/chdir-long.c: Renamed from chdir.c.
78895         * lib/chdir-long.h: Renamed from chdir.h.
78896         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78897         Hurd.
78898
78899 2005-01-18  Bruno Haible  <bruno@clisp.org>
78900
78901         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78902         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78903         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78904         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78905         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78906         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78907         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78908         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78909         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78910         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78911         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78912         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78913         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78914         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78915         Use an all-permissive copyright notice, recommended by RMS.
78916
78917 2005-01-18  Bob Proulx  <bob@proulx.com>
78918
78919         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78920         simplify offsetof() macro construct to avoid compile failure with
78921         native HP-UX 11.0 ANSI C compiler.
78922
78923 2005-01-17  Bruno Haible  <bruno@clisp.org>
78924
78925         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78926         redundant because stpncpy.m4 takes care of it.
78927
78928 2005-01-17  Bruno Haible  <bruno@clisp.org>
78929
78930         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78931
78932 2005-01-17  Bruno Haible  <bruno@clisp.org>
78933
78934         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78935         used.
78936
78937 2005-01-17  Bruno Haible  <bruno@clisp.org>
78938
78939         * lib/fwriteerror.h (fwriteerror): Change specification to include
78940         fclose.
78941         * lib/fwriteerror.c: Include <stdbool.h>.
78942         (fwriteerror): At the end, close the file stream. Record whether
78943         stdout was already closed.
78944
78945 2005-01-17  Bruno Haible  <bruno@clisp.org>
78946
78947         * lib/execute.c (environ): Declare if needed.
78948         * lib/pipe.c (environ): Likewise.
78949         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78950
78951 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78952
78953         * modules/argp: Depend on vsnprintf
78954
78955 2005-01-10  Jim Meyering  <jim@meyering.net>
78956
78957         * modules/closeout (Depends-on): Add atexit.
78958
78959 2005-01-06  Bruno Haible  <bruno@clisp.org>
78960
78961         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78962
78963 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78966         definitions to be after all include files, to avoid collisions.
78967         Problem reported by Bob Proulx.
78968
78969 2005-01-04  Jim Meyering  <jim@meyering.net>
78970
78971         Changes imported from coreutils.
78972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78973         as the mkstemp template, use a temporary directory and an
78974         8.3-friendly template to avoid trouble on systems like DJGPP.
78975         Reported by Juan M. Guerrero via Stepan Kasal.
78976         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78977         close. Remove the temporary directory right away, rather than waiting
78978         for configure's at-exit trap code to do it.
78979         Suggestion from Stepan Kasal.
78980
78981 2005-01-01  Simon Josefsson  <jas@extundo.com>
78982
78983         * gnulib-tool: Print #include directives when --import'ing.
78984
78985 2004-12-28  Simon Josefsson  <jas@extundo.com>
78986
78987         * tests/test-base64.c: Include required header files.  Remove
78988         unused variables.
78989
78990 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * modules/error (Depends-on): Remove gettext.
78993
78994 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78997         not needed.  This removes a dependency on the gettext module.
78998         [defined _LIBC]: Do not include <libintl.h>; not needed.
78999
79000 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79003         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79004
79005 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79008         HAVE_DECL_STRTOLD.
79009
79010 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79011
79012         * modules/getdate (Depends-on): Remove alloca-opt.
79013
79014 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79015
79016         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79017
79018 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * lib/argp-parse.c: Include <stddef.h>.
79021         (alignof, alignto): New macros.
79022         (parser_init): Don't assume that void * is aligned sufficiently
79023         for struct option.
79024
79025         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79026         need to extend the stack.
79027         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79028         large.
79029
79030 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79031
79032         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79033
79034 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79035
79036         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79037         (2004-10-24) change.  Apparently this was a false alarm.
79038
79039         * modules/getdate: Depend on alloca-opt, not alloca.
79040
79041 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79044         Remove now-obsolete comment about AIX.
79045         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79046         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79047         (YYMAXDEPTH): New macro.
79048
79049 2004-12-18  Simon Josefsson  <jas@extundo.com>
79050
79051         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79052
79053 2004-12-18  Bruno Haible  <bruno@clisp.org>
79054
79055         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79056
79057 2004-12-18  Bruno Haible  <bruno@clisp.org>
79058
79059         * lib/fatal-signal.c (fatal_signals): Make non-const.
79060         (init_fatal_signals): New function.
79061         (uninstall_handlers, install_handlers): Ignore signals that were set to
79062         SIG_IGN.
79063         (at_fatal_signal): Call init_fatal_signals.
79064         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79065         SIG_IGN.
79066         Reported by Paul Eggert.
79067
79068 2004-12-18  Bruno Haible  <bruno@clisp.org>
79069
79070         * doc/alloca.texi: New file.
79071         * doc/alloca-opt.texi: New file.
79072
79073 2004-12-17  Jim Meyering  <jim@meyering.net>
79074
79075         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79076         Otherwise, install-sh could exit with improper exit status when
79077         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79078
79079 2004-12-16  Simon Josefsson  <jas@extundo.com>
79080
79081         * tests/test-base64.c: Add license.
79082
79083 2004-12-15  Stepan Kasal  <address@hidden>
79084
79085         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79086
79087 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         * modules/getcwd (Files): Add m4/d-ino.m4.
79090         Suggested by Mark D. Baushke.
79091
79092 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         * lib/getdate.y (textint): New member "negative".
79095         (time_zone_hhmm): New function.
79096         Expect 14 shift-reduce conflicts, not 13.
79097         (o_colon_minutes): New rule.
79098         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79099         (yylex): Set the "negative" member of signed numbers.
79100
79101 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79102
79103         * doc/getdate.texi (Time of day items, Time zone items):
79104         Describe new formats +00:00, UTC+00:00.
79105
79106 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79107
79108         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79109         spurious "-l"s.  Problem reported by Stepan Kasal.
79110
79111 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79112
79113         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79114         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79115
79116 2004-12-04  Simon Josefsson  <jas@extundo.com>
79117
79118         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79119         Vandoorselaere <yoann@prelude-ids.org>.
79120
79121 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79122
79123         Changes imported from coreutils.
79124         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79125         exist.
79126         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79127
79128 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         Changes imported from coreutils.
79131         * lib/hard-locale.c: Assume <locale.h> exists.
79132         Include "strdup.h".
79133         (GLIBC_VERSION): New macro.
79134         (hard_locale): Assume setlocale exists.
79135         Rewrite to avoid #ifdef.
79136         Use strdup rather than malloc + strcpy.
79137         * lib/human.c: Assume <locale.h> exists.
79138         (human_readable): Assume localeconv exists.
79139
79140 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79141
79142         * modules/hard-locale (Depends-on): Add strdup.
79143
79144 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79145
79146         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79147         convert T2, not T.  (Imported from libc.)
79148
79149 2004-11-30  Simon Josefsson  <jas@extundo.com>
79150
79151         * modules/restrict (License): Change to LGPL.
79152
79153 2004-11-30  Simon Josefsson  <jas@extundo.com>
79154
79155         * m4/restrict.m4: Add copyright and copying conditions.
79156
79157 2004-11-30  Simon Josefsson  <jas@extundo.com>
79158
79159         * m4/base64.m4: New file.
79160
79161 2004-11-30  Simon Josefsson  <jas@extundo.com>
79162
79163         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79164         base64.
79165
79166         * tests/test-base64.c: New file.
79167
79168         * modules/base64: New file.
79169
79170 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79173         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79174
79175         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79176
79177 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79178
79179         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79180         (__getcwd.c): Don't restore errno; glibc doesn't.
79181         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79182         first, falling back to our code only if its results look suspicious.
79183         Ensure that the resulting buffer is only as large as necessary.
79184
79185         * lib/readutmp.c: Include readutmp.h first.
79186         Include <errno.h>, since readutmp.h no longer does that.
79187         * lib/readutmp.h: Don't include <errno.h>,
79188         <sys/param.h>, <time.h>; not needed to establish interface.
79189         (errno): Remove decl.
79190         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79191         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79192         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79193
79194 2004-11-28  Simon Josefsson  <jas@extundo.com>
79195
79196         * lib/base64.h, base64.c: New file.
79197
79198 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79201
79202 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79205         (Depends-on): Remove pathmax, same.  Add mempcpy.
79206         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79207         (Makefile.am): Append getcwd.h to lib_SOURCES.
79208         (Include): Add getcwd.h.
79209         (Maintainer): Change from Jim Meyering to "all, glibc",
79210         since getdate now uses intended-for-glibc code.
79211         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79212         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79213
79214 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79217         HP's ANSI C compiler.
79218         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79219         Declaring int functions causes warnings on some modern systems and
79220         shouldn't be needed to compile on ancient ones.
79221         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79222         defined.
79223
79224         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79225         with the following changes.
79226         (__set_errno): Parenthesize properly.
79227         Include <stdbool.h>.
79228         (MIN, MAX, MATCHING_INO): New macros.
79229         (__getcwd): Define with prototype, not K&R form.
79230         Use heuristics to allocate default buffer on stack if possible.
79231         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79232         behavior, and to avoid the PATH_MAX limit when computing
79233         ../../../../...
79234         Use MATCHING_INO to compare inode number to file.
79235         Check for arithmetic overflow in size calculations.
79236         Fix bug in reallocation of dot array that caused getcwd to fail
79237         on directories nested deeper than 75.
79238         Be more careful about saving errno on error.
79239         Do not use realloc; use only free+malloc, as this is a bit
79240         more flexible and avoids a needless copy operation.
79241         Do not inspect st_dev and st_ino for symbolic links; POSIX
79242         doesn't specify the latter.
79243         Check for closedir errors.
79244         Avoid needless casts.
79245         Use "#ifdef weak_alias" around weak_alias, to be like other
79246         glibc code.
79247         The following changes to getcwd.c have effect only when used in
79248         gnulib; they have no effect inside glibc proper.
79249         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79250         as alloca isn't used.
79251         (alloca, __alloca): Likewise.
79252         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79253         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79254         unconditionally, as gnulib assumes C89 or better.
79255         Do not include <sys/param.h>.
79256         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79257         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79258         better.
79259         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79260         Include <dirent.h> in a way that is compatible with modern Autoconf.
79261         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79262         New macros, if not already defined.
79263         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79264         Use "_LIBC", not "defined _LIBC", for consistency.
79265         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79266         a mempcpy module.
79267         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79268         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79269         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79270         credit only to Jim Meyering and adjust the copyright dates.
79271         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79272         <stdlib.h>, <unistd.h>, "pathmax.h".
79273         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79274         (INITIAL_BUFFER_SIZE): Remove.
79275         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79276
79277 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79280         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79281         Use the _ONCE methods, for efficiency.
79282         Check for fcntl.h.  In test program, include <errno.h>
79283         and <fcntl.h> if available.  Remove old K&R cruft from
79284         test program.  Check for common errors in GNU/Linux,
79285         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79286         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79287         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79288         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79289         name accordingly.
79290         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79291         accommodate new getcwd.c.
79292         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79293         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79294         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79295         that's all we need now.
79296
79297 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79298
79299         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79300         argp-parse.c depends on getopt internals, that means we should
79301         always use our getopt, to be on the safe side.
79302         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79303         order not to spoil the result of an eventual previous invocation
79304         of gl_GETOPT_SUBSTITUTE.
79305
79306 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79307
79308         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79309         redefinition warnings. To avoid them, include the defines
79310         in `#if !defined __need_getopt ... #endif'. The only place
79311         where __getopt_argv_const is used is in definitions
79312         of getopt_long and getopt_long_only below, which are as well
79313         protected by `#ifndef __need_getopt'.
79314         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79315         __need_getopt after including <stdio.h> and <unistd.h> These
79316         headers might have defined it.
79317
79318 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79319
79320         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79321
79322 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79325         (futimens): New function, which uses futimes if available.
79326         (futimens, utimens): Support timespec==NULL, with same semantics
79327         as utime and utimens.
79328         * lib/utimens.h (futimens): New decl.
79329
79330 2004-11-23  Jim Meyering  <jim@meyering.net>
79331
79332         * lib/getopt_.h: Remove trailing blanks.
79333
79334 2004-11-23  Jim Meyering  <jim@meyering.net>
79335
79336         * lib/__fpending.c: Add comment.
79337
79338 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         * modules/canonicalize (Depends-on): Add xreadlink.
79341         Problem reported by James Youngman.
79342
79343 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79344
79345         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79346         New macros.
79347         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79348         optopt): Use them instead of invoking ## directly; otherwise, the
79349         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79350
79351 2004-11-19  Bruno Haible  <bruno@clisp.org>
79352
79353         * lib/strtok_r.c: Move comments from here...
79354         * lib/strtok_r.h: ... to here.
79355
79356 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79357
79358         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79359         implementations that mishandle size_t overflow.
79360
79361 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79364         might fail.  Problem reported by Yoann Vandoorselaere.
79365         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79366         implementations that mishandle size_t overflow.
79367
79368 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * modules/canon-host (Depends-on): Add strdup.
79371
79372 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79373
79374         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79375
79376 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * lib/canon-host.c: Include "strdup.h".
79379         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79380         Use strdup instead of malloc/strcpy to duplicate strings.
79381
79382         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79383         (human_space_before_unit): New constant.
79384         * lib/human.c (human_readable): Support it.
79385
79386         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79387         (xgetcwd): Set errno correctly when failing.
79388         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79389         the failure is actually due to a PATH_MAX problem.
79390
79391         Further getopt changes to make it more likely that glibc will
79392         buy the changes back.
79393         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79394         (getopt): Use it, so to preserve glibc semantic
79395         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79396         when compiling for libc.
79397         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79398         (getopt_long, getopt_long_only): Use it.
79399
79400         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79401         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79402         (getopt): Argv is now char * const *, as per standard.
79403         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79404         not char *__getopt_argv_const *.
79405         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79406         _getopt_long_only_r): Likewise.
79407         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79408         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79409         _getopt_long_r, _getopt_long_only_r): Likewise.
79410         * lib/getopt_.h (__getopt_argv_const): Remove.
79411         (getopt): Argv is now char * const *, as per standard.
79412
79413         * lib/getdate.y (tORDINAL): New token.
79414         (day, relunit): Allow it for relative times.
79415         (relative_time_table): Use tORDINAL for ordinals.
79416
79417 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79418
79419         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79420         Document that "second" isn't allowed as an ordinal number.
79421
79422 2004-11-16  Jim Meyering  <jim@meyering.net>
79423
79424         * modules/closeout (Depends-on): Add fpending.
79425
79426 2004-11-15  Jim Meyering  <jim@meyering.net>
79427
79428         * lib/closeout.c: Include "__fpending.h" once again.
79429         Include <stdbool.h>.
79430         (close_stdout): Don't fail just because stdout was closed initially,
79431         since some programs don't write to stdout in the normal course of
79432         operation (other than --version and --help), and we don't want this
79433         function to make e.g. `touch file >&-' fail.
79434         But do fail if it was closed and someone has tried to write to it.
79435         E.g., `printf foo >&-' must fail.
79436
79437 2004-11-13  Jim Meyering  <jim@meyering.net>
79438
79439         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79440
79441 2004-11-12  Simon Josefsson  <jas@extundo.com>
79442
79443         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79444         small doc fix is still pending.
79445
79446 2004-11-11  Simon Josefsson  <jas@extundo.com>
79447
79448         * modules/strtok_r: New file.
79449
79450         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79451         strtok_r.
79452
79453 2004-11-11  Simon Josefsson  <jas@extundo.com>
79454
79455         * m4/strtok_r.m4: New file.
79456
79457         * m4/getopt.m4: Replace opterr.
79458
79459 2004-11-11  Simon Josefsson  <jas@extundo.com>
79460
79461         * lib/strtok_r.h, strtok_r.c: New file.
79462
79463 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79464
79465         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79466         of replacing opterr, getopt, etc.  This should handle the
79467         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79468
79469 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79472         we can stop lying to compilers about the constness of argv when we
79473         are compiled outside glibc.
79474         (getopt, getopt_long, getopt_long_only): Use it.
79475         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79476         _getopt_internal, getopt): Likewise.
79477         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79478         _getopt_long_only_r): Likewise.
79479         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79480         _getopt_long_r, _getopt_long_only_r): Likewise.
79481
79482         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79483         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79484         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79485         the other external symbols.
79486         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79487         declaration, since the above renaming now works around collisions.
79488
79489 2004-11-11  Jim Meyering  <jim@meyering.net>
79490
79491         * lib/linebreak.c: Remove trailing blanks.
79492         * lib/alloca_.h: Likewise.
79493         * lib/acosl.c: Likewise.
79494         * lib/euidaccess.c: Likewise.
79495         * lib/allocsa.h: Likewise.
79496
79497 2004-11-10  Simon Josefsson  <jas@extundo.com>
79498
79499         * m4/getaddrinfo.m4: New file.
79500
79501 2004-11-10  Simon Josefsson  <jas@extundo.com>
79502
79503         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79504
79505 2004-11-10  Simon Josefsson  <jas@extundo.com>
79506
79507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79508         getaddrinfo.
79509
79510         * modules/getaddrinfo: New file.
79511
79512 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79515
79516 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * lib/mktime.c (SHR): New macro, which is a portable
79519         substitute for >> that should work even on Crays.
79520         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79521         Problem reported by Mark D. Baushke in
79522         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79523         * lib/getdate.y (SHR): Likewise.
79524         (tm_diff): Use it.
79525         * lib/strftime.c (SHR): Likewise.
79526         (tm_diff): Use it.
79527         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79528         quote_these_too, so that right shifts are well defined.  All uses
79529         changed.
79530
79531 2004-11-10  Jim Meyering  <jim@meyering.net>
79532
79533         Ensure that no close failure goes unreported.
79534         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79535         return early when it seems there's nothing to flush.
79536         Don't include __fpending.h.
79537
79538 2004-11-10  Jim Meyering  <jim@meyering.net>
79539
79540         * modules/closeout (Depends-on): Remove fpending.
79541
79542 2004-11-10  Jim Meyering  <jim@meyering.net>
79543
79544         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79545
79546 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79547
79548         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79549         gl_FUNC_STRFTIME.
79550         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79551         and AC_REQUIRE when possible, to avoid duplicate checks.
79552         Check for <wchar.h>.
79553
79554 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79557
79558 2004-11-09  Bruno Haible  <bruno@clisp.org>
79559
79560         * m4/sockpfaf.m4: New file.
79561
79562 2004-11-05  Bruno Haible  <bruno@clisp.org>
79563
79564         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79565         Reported by Mark D. Baushke <mdb@cvshome.org>.
79566
79567 2004-11-04  Bruno Haible  <bruno@clisp.org>
79568
79569         2004-09-11  Bruno Haible  <bruno@clisp.org>
79570                 * allocsa.valgrind: New file.
79571         2004-02-06  Bruno Haible  <bruno@clisp.org>
79572                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79573                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79574                 Reported by Christopher Seip <chris.seip@hp.com>.
79575
79576 2004-11-04  Bruno Haible  <bruno@clisp.org>
79577
79578         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79579         (Makefile.am): Distribute it.
79580
79581 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79584         with errno == ERANGE if the buffer is too small.
79585         Problem reported by Mark D. Baushke.
79586
79587 2004-11-03  Albert Chin  <china@thewrittenword.com>
79588             Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79591         equivalent, substitute $ac_type for equivalent type rather than
79592         blindly using uint32_t *always* which won't work if uint32_t is not
79593         available.  Define _UINT32_T to work around typedef of uint32_t if
79594         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79595         2.5.1.
79596
79597 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * m4/jm-macros.m4: Sync from coreutils.
79600         (gl_MACROS): Check for mbrlen, for pathchk.
79601         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79602
79603 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * lib/xreadlink.c (MAXSIZE): New macro.
79606         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79607         size does not exceed MAXSIZE.  Avoid cast.
79608         As suggested by Mark D. Baushke in
79609         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79610         if readlink fails with buffer size just under MAXSIZE, try again
79611         with MAXSIZE.
79612
79613 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79614
79615         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79616
79617 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79618         and  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79621         (get_date): Overparenthesize to avoid GCC warning.
79622
79623 2004-11-02  Bruno Haible  <bruno@clisp.org>
79624
79625         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79626         returns void.
79627
79628 2004-11-02  Bruno Haible  <bruno@clisp.org>
79629
79630         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79631         function returns void.
79632
79633 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79636         fflush_unlocked, flockfile, funlockfile, funlockfile,
79637         fputs_unlocked, putc_unlocked.
79638
79639 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79642         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79643         already declared.
79644
79645 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * modules/getdate (Files): Add doc/getdate.texi.
79648         (Depends-on): Add setenv, xalloc.
79649
79650 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         * lib/getdate.y: Add support for TZ="foo" within a date string.
79653         Fix some bugs near time_t boundaries.  Reject dates with
79654         out-of-range components, e.g., "Sept 31".
79655         Include <stdlib.h>, "setenv.h", "xalloc.h".
79656         (ISDIGIT_LOCALE): Remove; unused.
79657         Note that the TZ and time functions used here are not reentrant.
79658         (mktime_ok, get_tz): New functions.
79659         (TZBUFSIZE): New constant.
79660         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79661         This requires that we sometimes generate our own TZ="XXX..." setting.
79662
79663 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * doc/getdate.texi: New file, from coreutils with modifications for
79666         the new TZ parsing.
79667
79668 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79669
79670         * lib/mktime.c (not_equal_tm): Remove redundant check.
79671
79672 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79673
79674         * modules/regex (lib_SOURCES): Add regex.c.
79675         Reported by James Youngman in
79676         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79677
79678 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * lib/getdate.y: Use Bison 1.875 features, and some minor
79681         code cleanups.  This change does not affect semantics.
79682         Don't include <stdlib.h>; no longer needed.
79683         Don't include unlocked-io.h; only the "#if TEST" code uses
79684         stdio, and performance isn't crucial there.
79685         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79686         Bison 1.875 features as described below.
79687         All uses of "PC." replaced by "pc->".
79688         (YYSTYPE): Add a forward declaration.
79689         (yylex, yyerror): Use full prototypes in forward decls.
79690         Use "%pure-parser" rather than obsolescent "%pure_parser".
79691         Use %parse-param and %lex-param instead of obsolescent
79692         YYPARSE_PARAM and YYLEX_PARAM.
79693         (meridian_table, month_and_day_table, time_units_table,
79694         relative_time_table, time_zone_table, military_table,
79695         lookup_zone, lookup_word, get_date):
79696         Use NULL instead of 0 where appropriate.
79697         (to_hour): Avoid abort (), to avoid a dependency on
79698         stdlib.h.
79699         (yyerror, yylex): Now accepts parser_control * arg.
79700         (main) [TEST]: Use '\0' rather than 0 for char.
79701
79702 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79705
79706 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79709         It's now the caller's responsibility to handle the case where
79710         !HAVE_GETPAGESIZE && !defined getpagesize.
79711
79712         * lib/mktime.c (leapyear): Arg is long int, not int.
79713
79714 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79715
79716         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79717
79718 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79719
79720         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79721         missing.  Problem reported by James Youngman.
79722
79723 2004-10-16  Simon Josefsson  <jas@extundo.com>
79724
79725         * gnulib-tool: Fix comments.  Fix parse problem.
79726         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79727
79728 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79729
79730         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79731         implementation of getopt_long.  Problem reported by Alexander Taler in:
79732         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79733
79734 2004-10-15  Bruno Haible  <bruno@clisp.org>
79735
79736         * gnulib-tool: Untabify. Initialize supplied_libname.
79737         (func_usage): More homogenous output.
79738         (func_modules_transitive_closure, func_modules_to_filelist,
79739         func_emit_lib_Makefile_am): New functions.
79740         (func_import): New function, extracted from big case statement. Use
79741         func_get_license, func_modules_transitive_closure,
79742         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79743         opt_lgpl. Don't use test -a, as it's not portable.
79744         (func_create_testdir): Use func_modules_transitive_closure,
79745         func_modules_to_filelist, func_emit_lib_Makefile_am.
79746
79747 2004-10-15  Bruno Haible  <bruno@clisp.org>
79748
79749         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79750
79751 2004-10-15  Bruno Haible  <bruno@clisp.org>
79752
79753         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79754         the portions belonging to each module.
79755         Suggested by Derek Robert Price <derek@ximbiot.com>.
79756
79757 2004-10-12  Simon Josefsson  <jas@extundo.com>
79758
79759         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79760         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79761         to real functions.
79762
79763 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79764
79765         * modules/vsnprintf: New file.
79766
79767 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79768
79769         * m4/vsnprintf.m4: New file.
79770
79771 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79772
79773         * lib/vsnprintf.h: New file.
79774         * lib/vsnprintf.c: New file.
79775
79776 2004-10-11  Bruno Haible  <bruno@clisp.org>
79777
79778         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79779         vsnprintf.
79780
79781 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79782
79783         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79784
79785 2004-10-07  Bruno Haible  <bruno@clisp.org>
79786
79787         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79788         fits into the provided buffer.
79789
79790 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * lib/diacrit.c, diacrit.h: Add GPL notice.
79793
79794         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79795         notice.
79796         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79797         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79798         This avoids a potential constant-folding bug.
79799
79800 2004-10-05  Bruno Haible  <bruno@clisp.org>
79801
79802         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79803         for the declaration of strsep.
79804
79805 2004-10-05  Bruno Haible  <bruno@clisp.org>
79806
79807         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79808
79809 2004-10-04  Simon Josefsson  <jas@extundo.com>
79810
79811         * modules/memmem: New file.
79812         * tests/test-memmem.c: New file.
79813         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79814
79815 2004-10-04  Simon Josefsson  <jas@extundo.com>
79816
79817         * m4/memmem.m4: New file.
79818
79819 2004-10-04  Simon Josefsson  <jas@extundo.com>
79820
79821         * lib/memmem.h: New file.
79822         * lib/memmem.c: New file, taken from glibc.
79823
79824 2004-10-04  Simon Josefsson  <jas@extundo.com>
79825
79826         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79827         '#ifdef USE_UNLOCKED_IO'.
79828
79829 2004-10-04  Simon Josefsson  <jas@extundo.com>
79830
79831         * config/srclist.txt: Add memmem from glibc.
79832
79833 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79834
79835         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79836
79837         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79838         modules/exclude, modules/getdate, modules/getline,
79839         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79840         modules/getusershell, modules/linebuffer, modules/md5,
79841         modules/mountlist, modules/posixtm, modules/readtokens,
79842         modules/readutmp, modules/regex, modules/sha1,
79843         modules/version-etc, modules/yesno:
79844         Remove dependency on unlocked-io.
79845
79846 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79847
79848         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79849
79850         * m4/unlocked-io.m4: Add copyright notice.
79851         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79852
79853 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79856         * lib/xmalloc.c (xmemdup): Likewise.
79857         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79858         XFREE): Remove these long-obsolescent macros.
79859         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79860         * lib/xstrdup.c: Remove.
79861
79862         * lib/regex.c (re_comp): Cast gettext return value to char *,
79863         Problem reported by Martin Neitzel via Mark D. Baushke.
79864
79865 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79868         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79869         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79870         regex.c, sha1.c, version-etc.c, yesno.c:
79871         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79872         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79873         the includer's responsibility.
79874
79875         Sync from coreutils.
79876
79877         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79878         points to the start of a string, as the C Standard says the
79879         resulting behavior is undefined.
79880
79881         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79882         simple -> simple_backups, numbered_existing ->
79883         numbered_existing_backups, numbered -> numbered_backups
79884         to avoid shadowing problems.  All uses changed.
79885         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79886         * lib/backupfile.c (check_extension, numbered_backup):
79887         Rename locals to avoid shadowing 'basename'.
79888         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79889         once.
79890
79891         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79892         * lib/.cvsignore: Add getopt.h.
79893
79894 2004-10-04  Bruno Haible  <bruno@clisp.org>
79895
79896         * modules/README: New file.
79897         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79898         not a module.
79899
79900 2004-10-02  Jim Meyering  <jim@meyering.net>
79901
79902         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79903
79904 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79905
79906         * modules/strsep: New file.
79907
79908 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79909
79910         * m4/strsep.m4: New file.
79911
79912 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79913
79914         * lib/strsep.h: New file.
79915         * lib/strsep.c: New file.
79916
79917 2004-10-01  Simon Josefsson  <jas@extundo.com>
79918
79919         * lib/snprintf.c (snprintf): Handle size==0.
79920
79921 2004-10-01  Simon Josefsson  <jas@extundo.com>
79922             Bruno Haible  <bruno@clisp.org>
79923
79924         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79925         (snprintf): Declare 'args'.
79926
79927 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         * lib/snprintf.c: Remove comments as to why each header is needed.
79930
79931 2004-10-01  Bruno Haible  <bruno@clisp.org>
79932
79933         * MODULES.html.sh: Add strsep.
79934
79935 2004-09-30  Simon Josefsson  <jas@extundo.com>
79936
79937         * modules/snprintf: New file.
79938
79939 2004-09-30  Simon Josefsson  <jas@extundo.com>
79940
79941         * m4/snprintf.m4: New file.
79942
79943 2004-09-30  Simon Josefsson  <jas@extundo.com>
79944
79945         * lib/snprintf.h, lib/snprintf.c: New files.
79946
79947 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79948
79949         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79950         (hol_entry_help): Never translate an empty string.
79951         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79952         * lib/argp.h (OPTION_NO_TRANS): New option.
79953
79954 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * modules/argp (Maintainer): Replace Simon Josefsson
79957         by Sergey Poznyakoff.
79958
79959 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79962         changes merged back into glibc.
79963
79964 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79967
79968 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79969
79970         * lib/xvasprintf.c: Include xalloc.h.
79971         (xvasprintf): Use xalloc_die, not xmalloc_die.
79972
79973 2004-09-29  Bruno Haible  <bruno@clisp.org>
79974
79975         * modules/alloca-opt: New file, derived from modules/alloca.
79976         * modules/allocsa: Depend on alloca-opt instead of alloca.
79977         * modules/setenv: Likewise.
79978         * modules/vasnprintf: Likewise.
79979         * MODULES.html.sh: Add alloca-opt.
79980
79981 2004-09-28  Simon Josefsson  <jas@extundo.com>
79982
79983         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79984         LGPL, and to replace license template from GPL to LGPL.
79985
79986 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79987
79988         * modules/dummy: Change license to LGPL.
79989
79990 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79993
79994 2004-09-24  Simon Josefsson  <jas@extundo.com>
79995
79996         * modules/minmax (License): Change from GPL to LGPL.
79997
79998 2004-09-23  Simon Josefsson  <jas@extundo.com>
79999
80000         * gnulib-tool (--import): Typo.
80001
80002 2004-09-23  Simon Josefsson  <jas@extundo.com>
80003
80004         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80005
80006 2004-09-22  Bruno Haible  <bruno@clisp.org>
80007
80008         * modules/*: Add 'License' field.
80009         * gnulib-tool: Accept --extract-license option.
80010         (func_get_license): New function.
80011
80012 2004-09-21  Bruno Haible  <bruno@clisp.org>
80013
80014         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80015         Reported by Simon Josefsson.
80016
80017 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80020         gl_AC_TYPE_LONG_LONG.
80021
80022 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80025
80026 2004-09-18  Simon Josefsson  <jas@extundo.com>
80027         and  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80030         calls with autoreconf.  Define GL_LIB.
80031
80032 2004-09-14  Karl Berry  <karl@gnu.org>
80033
80034         * config/srclist.txt: unsync setenv.c, sigh.
80035
80036 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80039         Problem reported by Bruno Haible in:
80040         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80041
80042 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * config/srclist.txt: Comment out argp-pvh.c.
80045
80046 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80049         in case some system header has #define'd it.  Problem reported by
80050         Soeren D. Schulze in
80051         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80052
80053 2004-09-09  Karl Berry  <karl@gnu.org>
80054
80055         * regex.[ch]: delete from the root.  These were supposed to be
80056                 synced with emacs cvs, but this has not happened for about
80057                 a year, and anyway nothing else uses emacs regex.[ch].
80058                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80059                 lib/regex[.ch] is untouched.
80060
80061 2004-09-09  Bruno Haible  <bruno@clisp.org>
80062
80063         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80064
80065 2004-09-09  Bruno Haible  <bruno@clisp.org>
80066
80067         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80068         modifications.
80069         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80070
80071 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80072
80073         * modules/xvasprintf: New file.
80074         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80075
80076 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80077
80078         * lib/xvasprintf.h: New file.
80079         * lib/xvasprintf.c: New file.
80080         * lib/xasprintf.c: New file.
80081
80082 2004-09-08  Bruno Haible  <bruno@clisp.org>
80083
80084         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80085
80086 2004-09-08  Bruno Haible  <bruno@clisp.org>
80087
80088         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80089         length is > INT_MAX.
80090         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80091         more.
80092
80093 2004-09-08  Bruno Haible  <bruno@clisp.org>
80094
80095         * lib/stdint_.h: New file, taken from GNU clisp.
80096
80097 2004-09-08  Bruno Haible  <bruno@clisp.org>
80098             Oskar Liljeblad  <oskar@osk.mine.nu>
80099
80100         * modules/stdint: New file.
80101         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80102
80103 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         Import from coreutils.
80106         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80107         strings on unbounded length.  alloca's performance benefits aren't
80108         that important here.
80109         (V_STRDUP): Remove.
80110         (parse_with_separator): New function, with most of the internals
80111         of the old parse_user_spec.  Allow user to omit both user and group,
80112         for compatibility with FreeBSD.
80113         Clone only the user name, not the entire spec.
80114         Do not set *uid, *gid unless entirely successful.
80115         Avoid memory leak in some failing cases.
80116         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80117         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80118         (parse_user_spec): Rewrite to use parse_with_separator.
80119
80120 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80121
80122         * modules/userspec: Don't depend on alloca.
80123
80124 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80125
80126         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80127
80128 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80131         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80132         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80133
80134 2004-08-16  Simon Josefsson  <jas@extundo.com>
80135
80136         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80137         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80138         Add --dry-run for --import.
80139         Let user provided command line parameters override configure.ac
80140         settings.
80141
80142 2004-08-12  Simon Josefsson  <jas@extundo.com>
80143
80144         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80145         as discussed with Paul Eggert in threads rooted at
80146         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80147         and
80148         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80149         Before, the test was empty, and relied on ELIDE_CODE in source
80150         code.)
80151         (gl_PREREQ_GETOPT): New macro.
80152         (gl_GETOPT): Use them.
80153
80154 2004-08-12  Simon Josefsson  <jas@extundo.com>
80155
80156         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80157         * lib/getopt_.h: Renamed from getopt.h.
80158
80159 2004-08-12  Simon Josefsson  <jas@extundo.com>
80160
80161         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80162         Change default library name from libfoo to libgnu.
80163         Now, if you have a configure.ac that says:
80164                 gl_SOURCE_BASE(gl)
80165                 gl_M4_BASE(gl/m4)
80166                 gl_MODULES(error getopt etcetera)
80167                 gl_INIT
80168         you can import all you need by running:
80169                 ../gnulib/gnulib-tool --import
80170
80171         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80172         (Makefile.am): Rewrite, use logic from argz.
80173         (Include): Use <getopt.h> instead of "getopt.h".
80174
80175 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80176
80177         * modules/argp (Files): Add m4/unlocked-io.m4.
80178         (Depends-on): Add extensions.
80179
80180 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80183         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80184         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80185         Check for program_invocation_name, program_invocation_short_name,
80186         flockfile, funlockfile, features.h, _getopt_long_only_r.
80187
80188 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80189
80190         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80191         its complicated substitute.
80192         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80193         and program_invocation_name.
80194         (__argp_basename) [!_LIBC]: Remove; the only use was
80195         replaced by its body.
80196         (__argp_short_program_name): Change condition from
80197         !defined __argp_short_program_name to
80198         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80199         to match argp-namefrob.h.
80200         (__argp_failure): Don't assume strerror_r returns char *.
80201         * lib/argp-parse.c (N_): Define unconditionally.
80202         (argp_default_options): Fill out initializers with 0 to avoid
80203         gcc warnings.
80204
80205 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80206
80207         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80208         getopt1.c.
80209
80210 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         Merge from coreutils.
80213
80214         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80215
80216         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80217         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80218
80219 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         Merge from coreutils.
80222
80223         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80224         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80225         for Reliant Unix 5.43.
80226
80227         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80228         (union fooround): Use uintmax_t, not long int.
80229         The rest is a merge from libc:
80230         [defined _LIBC]: Include <shlib-compat.h>.
80231         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80232
80233         * lib/settime.c (settime): Recode to avoid warning with
80234         Sun Forte C 6U2.
80235
80236         * lib/strverscmp.c: Convert to UTF-8.
80237
80238 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80241         m4/uintmax_t.m4.
80242
80243 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * modules/xalloc-die: New file.
80246         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80247
80248         * modules/md5 (Files): Add m4/uint32_t.m4.
80249         * modules/sha1: Renamed from modules/sha.
80250         (Files):
80251         Rename lib/sha.h to lib/sha1.h.
80252         Rename lib/sha.c to lib/sha1.c.
80253         Rename m4/sha.m4 to m4/sha1.m4.
80254         (lib_SOURCES): Likewise.
80255         (configure.ac): Rename gl_SHA to gl_SHA1.
80256         (Include): sha.h -> sha1.h.
80257
80258 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80259
80260         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80261         * m4/sha1.m4: Renamed from sha.m4.
80262         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80263
80264 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80265
80266         * lib/obstack.h (obstack_empty_p):
80267         Don't assume that chunk->contents is suitably aligned.
80268         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80269         Likewise. Problem reported by Benno in
80270         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80271
80272         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80273         readable.  This could be improved further but it'd take some work.
80274
80275 2004-08-08  Simon Josefsson  <jas@extundo.com>
80276
80277         * modules/xgethostname (Depends-on): Remove exit and error (not
80278         used).
80279
80280         * modules/getpass-gnu: Add getpass.h.
80281         (Depends-on): Add stdbool.
80282         * modules/getpass: Add getpass.h.
80283
80284 2004-08-08  Simon Josefsson  <jas@extundo.com>
80285
80286         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80287         Check getpass declaration.
80288
80289 2004-08-08  Simon Josefsson  <jas@extundo.com>
80290
80291         * lib/xgethostname.c: Don't include error.h (not used).
80292
80293         * lib/getpass.h: Add.
80294         * lib/getpass.c: Include getpass.h first.
80295
80296 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * lib/xalloc-die.c: New file.
80299         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80300         All uses removed.
80301         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80302         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80303         xalloc-die.c.
80304         (_, N_, xalloc_die): Move to xalloc-die.c.
80305         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80306         so that we needn't mess with xalloc_msg_memory_exhausted.
80307
80308         * lib/sha1.h: Renamed from sha.h.
80309         (SHA1_H): Renamed from _SHA_H.
80310         (sha1_ctx): Renamed from sha_ctx.
80311         (sha1_init_ctx): Renamed from sha_init_ctx.
80312         (sha1_process_block): Renamed from sha_process_block.
80313         (sha1_process_bytes): Renamed from sha_process_bytes.
80314         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80315         (sha1_read_ctx): Renamed from sha_read_ctx.
80316         (sha1_stream): Renamed from sha_stream.
80317         (sha1_buffer): Renamed from sha_buffer.
80318         * lib/sha1.c: Likewise; renamed from sha.c.
80319         Do not include <sys/types.h>.
80320         Include <stddef.h> rather than <stdlib.h>.
80321
80322 2004-08-08  Bruno Haible  <bruno@clisp.org>
80323
80324         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80325         FILESYSTEM_PREFIX_LEN.
80326         * lib/progreloc.c: Likewise.
80327         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80328
80329 2004-08-06  Simon Josefsson  <jas@extundo.com>
80330
80331         * modules/progname (Depends-on): Don't depend on stdbool.
80332
80333 2004-08-06  Simon Josefsson  <jas@extundo.com>
80334
80335         * modules/getsubopt: New file.
80336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80337         getsubopt.
80338
80339 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         More merge from coreutils.
80342
80343         * m4/utimens.m4, m4/utimecmp.m4: New files.
80344         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80345         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80346         prereq.m4, sha.m4: Import changes from coreutils.
80347
80348 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80349
80350         More merge from coreutils.
80351         * modules/raise, modules/readtokens0, modules/utimens:
80352         * modules/utimecmp, module/xnanosleep: New files.
80353         * modules/strftime: Add lib/strftime.h.
80354         Change include from <time.h> to "strftime.h".
80355         * modules/yesno: Add lib/yesno.h.
80356         * modules/backupfile: Remove lib/addext.c.
80357         * modules/euidaccess: Add stat-macros.h.
80358         * modules/canonicalize, modules/euidaccess,
80359         modules/filemode, modules/lchown, modules/makepath,
80360         modules/rmdir, modules/stat: Likewise.
80361
80362 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80363
80364         Merge from tar.
80365         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80366         SIZE_MAX is a valid preprocessor constant.
80367         (__argp_basename): Change from "#ifndef _LIBC"
80368         to "#ifndef __argp_short_program_name", so that
80369         we don't compile these functions for tar.
80370
80371         More merges from coreutils.
80372         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80373         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80374         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80375         * lib/addext.c: Remove; no longer needed.
80376         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80377         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80378         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80379         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80380         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80381         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80382         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80383         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80384         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80385         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80386         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80387         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80388         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80389         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80390         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80391         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80392         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80393         Import changes from coreutils.
80394
80395 2004-08-05  Simon Josefsson  <jas@extundo.com>
80396
80397         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80398
80399 2004-08-05  Simon Josefsson  <jas@extundo.com>
80400
80401         * m4/getsubopt.m4: New file.
80402
80403 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80404
80405         Merge from coreutils.
80406
80407         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80408         * m4/getcwd-path-max.m4: New files.
80409
80410         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80411         FILESYSTEM_PREFIX_LEN ->
80412         FILE_SYSTEM_PREFIX_LEN.
80413         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80414         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80415         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80416         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80417
80418         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80419         prerequisite modules now handle the DOS stuff.
80420         Don't check for unistd.h.
80421
80422 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         Merge from coreutils.
80425
80426         * lib/.gdb-history: Remove; this doesn't belong here.
80427
80428         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80429         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80430         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80431         * lib/getcwd.c: New files.
80432
80433         * lib/dirname.h: Include <stdbool.h>.
80434         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80435         for consistency with POSIX terminology.  All uses changed.
80436         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80437         (strip_trailing_slashes): Use bool for booleans.
80438         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80439
80440         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80441         sometimes returns a positive errno value even when it succeeds.
80442         (print_errno_message) [!LIBC]: Fall back on strerror if
80443         __strerror_r fails.
80444
80445         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80446         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80447         (longest_relative_suffix): New function.
80448         (path_concat): Use it.  Assume first argument is not NULL.
80449         Port to DOS.  Omit redundant separators.
80450         Report an error instead of returning NULL.
80451         Use mempcpy instead of memcpy.
80452         (xpath_concat): Remove: not declared or used.
80453
80454         * lib/same.h: Include <stdbool.h>
80455         (same_name): Return bool, not int.
80456         * lib/same.c (same_name): Likewise.
80457         (errno): Don't declare; we assume C89 or better now.
80458
80459         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80460         if not already defined.
80461
80462         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80463         * lib/dup-safer.c (errno): Likewise.
80464
80465 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         Merge from coreutils.
80468         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80469         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80470         * modules/path-concat: Don't depend on strdup.
80471
80472 2004-08-03  Simon Josefsson  <jas@extundo.com>
80473
80474         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80475         * lib/progname.h: Don't include stdbool.h.
80476
80477 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80478
80479         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80480         * MODULES.html.sh (func_all_modules): Remove fatal.
80481
80482 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80485
80486 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80489         working.
80490
80491 2004-08-02  Simon Josefsson  <jas@extundo.com>
80492
80493         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80494         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80495         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80496
80497 2004-08-01  Simon Josefsson  <jas@extundo.com>
80498
80499         * lib/xgetdomainname.c: Include stdlib.h, for free().
80500
80501 2004-07-19  Bruno Haible  <bruno@clisp.org>
80502
80503         * MODULES.html.sh (func_all_modules): Add dummy.
80504
80505 2004-07-16  Simon Josefsson  <jas@extundo.com>
80506
80507         * modules/dummy: New file.
80508
80509 2004-07-16  Simon Josefsson  <jas@extundo.com>
80510
80511         * lib/dummy.c: New file.
80512
80513 2004-07-16  Bruno Haible  <bruno@clisp.org>
80514
80515         * lib/backupfile.h: Add extern "C" for C++.
80516         * lib/closeout.h: Likewise.
80517         * lib/copy-file.h: Likewise.
80518         * lib/findprog.h: Likewise.
80519         * lib/full-write.h: Likewise.
80520         * lib/pathname.h: Likewise.
80521         * lib/progname.h: Likewise.
80522         * lib/stpcpy.h: Likewise.
80523         * lib/stpncpy.h: Likewise.
80524         * lib/strcase.h: Likewise.
80525         * lib/strstr.h: Likewise.
80526         * lib/xalloc.h: Likewise.
80527
80528         * lib/mbswidth.h: Add extern "C" for C++.
80529         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80530
80531 2004-07-13  Robert Millan  <robertmh@gnu.org>
80532
80533         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80534
80535 2004-07-09  Simon Josefsson  <jas@extundo.com>
80536
80537         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80538         failed without this.)
80539
80540 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         * modules/chown (Files): Add lib/fchown-stub.c, since
80543         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80544
80545 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * lib/fchown-stub.c: New file.
80548
80549 2004-06-24  Jim Meyering  <jim@meyering.net>
80550
80551         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80552
80553 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80554
80555         * modules/argz: Omit "#include".
80556
80557         * MODULES.html.sh (func_all_modules): Add calloc, to match
80558         2004-06-01 addition of calloc module.
80559
80560 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80561
80562         * m4/argz.m4: New file, which is autoupdated from libtool.
80563
80564 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80565
80566         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80567         libtool.
80568
80569 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * config/srclist-update: Don't insist on "USA." before the
80572         close-comment, as libtool omits the period and puts the */ on a
80573         separate line.
80574         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80575         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80576
80577 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80578
80579         * modules/argz: New file.
80580         * MODULES.html.sh (func_all_modules): Add argz.
80581
80582 2004-06-12  Jim Meyering  <jim@meyering.net>
80583         and  Paul Eggert  <eggert@cs.ucla.edu>
80584
80585         * modules/hash (Files): Add lib/xalloc.h.
80586         * modules/pipe (Depends-on): Add wait-process.
80587         * modules/stat (Depends-on): Add xalloc.
80588         * modules/userspec (Files): Add lib/userspec.h.
80589         * modules/xstrto
80590
80591         Upgrade from gettext-0.13.
80592         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80593         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80594         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80595
80596 2004-06-10  Jim Meyering  <jim@meyering.net>
80597
80598         * lib/calloc.c: New file.
80599
80600 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * lib/getdate.y (yylex): Allow space between sign and number.
80603         Problem reported by Dan Jacobson.
80604
80605 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         Merge from coreutils CVS.
80608
80609         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80610         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80611         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80612         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80613         xstrtol.m4: Fix copyright date and/or serial number.
80614
80615         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80616         See if we need an fchown replacement.
80617         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80618         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80619         and use the replacement function if we detect either defect.
80620
80621         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80622         gl_UTIMECMP.
80623
80624 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80625         and  Jim Meyering  <jim@meyering.net>
80626
80627         Merge from coreutils CVS.
80628
80629         * lib/stat-macros.h: New file, with contents from file-type.h
80630         and coreutils' system.h.
80631         * lib/file-type.c: Include "stat-macros.h".
80632         * lib/file-type.h (file_type): Move all macro definitions to new file,
80633         stat-macros.h.
80634
80635         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80636         Wrap old code with this conditional.
80637         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80638         function that does not dereference symlinks.
80639         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80640
80641         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80642         dependency problems.
80643         (xreadlink): Accept new arg SIZE, for efficiency.
80644         All decls and uses changed.
80645         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80646
80647         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80648         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80649
80650         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80651         sysexits.h.
80652
80653 2004-06-01  Jim Meyering  <jim@meyering.net>
80654
80655         * m4/calloc.m4: New file.
80656
80657 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80660         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80661         Also, fix a typo in a diagnostic.
80662
80663 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80664
80665         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80666         or AC_FUNC_REALLOC.
80667
80668 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80669
80670         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80671         macros to be defined.
80672         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80673         the allocator returns NULL because the requested size is zero.
80674
80675 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80676
80677         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80678         var.  Add comment explaining why libc still defines it.  This
80679         merges the following patch from glibc:
80680         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80681
80682 2004-05-20  Andreas Schwab  <schwab@suse.de>
80683
80684         * m4/free.m4: Replace free if it not known to work, not the other
80685         way round.
80686
80687 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80690         present in glibc since revision 1.1 of this file.
80691         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80692         obstack_alignment_mask, obstack_alloc, obstack_base,
80693         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80694         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80695         obstack_grow0, obstack_init, obstack_int_grow,
80696         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80697         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80698         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80699         nonexistent functions.
80700
80701 2004-05-18  Karl Berry  <karl@gnu.org>
80702
80703         * config/srclist.txt: break link for vasnprintf.c.
80704
80705 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80706
80707         Port obstack to the AS/400, where pointers are 16 bytes wide and
80708         you cannot cast an integer to a valid pointer.  This patch is
80709         currently waiting to be integrated into glibc; see
80710         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80711
80712         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80713         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80714         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80715         (struct obstack): temp member is now a union of a pointer and
80716         an integer, instead of an integer.  All integer uses changed.
80717         This does not affect the physical layout of struct obstack,
80718         except on hosts (like the AS/400) where the size or alignment of
80719         void * is greater than that of ptrdiff_t.
80720         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80721         __STDC__)]: Store temporary in pointer member of union, not
80722         integer member.
80723         * lib/obstack.c: Include <stddef.h>, for offsetof.
80724         (struct fooalign): Remove; it doesn't need a name.
80725         (union fooround): Change double to long double, and add void *.
80726         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80727         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80728         not a macro.  Hence the values are always int; so remove all
80729         casts-to-int in uses.
80730
80731 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80732
80733         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80734         we can get this patch merged into glibc.
80735
80736 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80737             Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         * m4/argp: Depend on alloca.
80740
80741 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80742             Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80745         freecoding.
80746
80747 2004-05-17  Bruno Haible  <bruno@clisp.org>
80748
80749         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80750         precision that consists of a '.' followed by an empty digit string.
80751         Patch by Tor Lillqvist <tml@iki.fi>.
80752
80753 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80756         for backward compatibility with older code.  We need our own
80757         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80758         it under some other name, and our alloca.h will define it.
80759
80760 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80761             Derek Price  <derek@ximbiot.com>
80762
80763         * lib/alloca.c: Include <alloca.h>, to get our interface.
80764         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80765         include <alloca.h> first.  Use C89 prototype for alloca; this
80766         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80767         Use #elif for simplicity, since we can assume C89 now.
80768         Don't try to source the system alloca.h since it will not be found
80769         and to prevent recursively including its replacement.
80770         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80771         * lib/regex.c: Likewise.
80772
80773 2004-05-16  Derek Price  <derek@ximbiot.com>
80774             Paul Eggert  <eggert@cs.ucla.edu>
80775
80776         getline cleanup.  This changes the getndelim2 API: both order of
80777         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80778         no delimiter).
80779
80780         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80781         interface does that.
80782         (getline): Always use getdelim, so that we don't have two
80783         copies of this code.
80784         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80785         if available.
80786         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80787         (GETNDELIM2_MAXIMUM): New macro.
80788         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80789         instead of the old practice of delim2==0.  All callers changed.
80790         Return -1 on overflow, instead of returning junk.
80791         Do not set *linesize unless allocation succeeds.
80792         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80793         that we include sys/types.h.
80794         * lib/getnline.h: Likewise.
80795         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80796         (getndelim2): Reorder arguments.
80797         * lib/getnline.c (getnline, getndelim):
80798         Don't discard the NMAX argument.
80799         (getnline): Invoke getndelim, to avoid code duplication.
80800         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80801         of (size_t) -1 by callers of the getnline family.
80802
80803 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80804
80805         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80806         Check for gettimeofday.
80807         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80808         Check for settimeofday, stime.
80809
80810 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         * lib/nanosleep.c (suspended): Change its type from int to
80813         sig_atomic_t volatile.
80814         (first_call): Make it private to rpl_nanosleep, and have it
80815         be zero initially as that's a bit faster.
80816         (my_usleep): Round up fractional times instead of truncating them,
80817         as this is the usual meaning for 'sleep'.
80818
80819         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80820         doesn't work.
80821         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80822         (ENOSYS): Define if not defined.
80823         (settime): Fall back on stime if it exists and settimeofday fails.
80824         But don't bother with fallbacks if a method fails with errno == EPERM.
80825
80826 2004-05-11  Jim Meyering  <jim@meyering.net>
80827
80828         Prior to this change, the save_cwd caller required read access to the
80829         current directory on most systems (ones with the fchdir function).
80830
80831         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80832         fails, try write-only, and finally, resort to using xgetcwd.
80833
80834 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         * lib/obstack.c, obstack.h: Import changes from libc.
80837
80838 2004-04-28  Bruno Haible  <bruno@clisp.org>
80839
80840         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80841         also implicitly appends .exe to executables.
80842         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80843         accepts Windows pathnames.
80844         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80845         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80846         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80847         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80848         Reported by Derek Robert Price <derek@ximbiot.com>.
80849
80850 2004-04-21  Karl Berry  <karl@gnu.org>
80851
80852         * config/srclist.txt (localcharset.c): break sync.
80853
80854 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80855
80856         * m4/host-os.m4: Add a copyright notice.
80857
80858 2004-04-20  Jim Meyering  <jim@meyering.net>
80859
80860         Change UTILS_ to gl_ in AC_DEFINE'd names.
80861         Change utils_- and jm_-prefixed variables, too.
80862         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80863         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80865
80866         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80867         Don't emit trailing blanks.
80868         Also rename jm_-prefixed variables to have gl_ prefix.
80869
80870         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80871         Also rename jm_-prefixed variables to have gl_ prefix.
80872
80873         * m4/jm-macros.m4: Reflect the renamings.
80874         * m4/prereq.m4: Likewise.
80875
80876 2004-04-20  Jim Meyering  <jim@meyering.net>
80877
80878         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80879         memory.
80880
80881 2004-04-20  Jim Meyering  <jim@meyering.net>
80882             Bruno Haible  <bruno@clisp.org>
80883
80884         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80885         memory when realloc fails.
80886
80887 2004-04-19  Jim Meyering  <jim@meyering.net>
80888
80889         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80890         now that readutmp.c may call `free (0)'.
80891
80892 2004-04-19  Bruno Haible  <bruno@clisp.org>
80893
80894         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80895         * m4/inttypes_h.m4: Likewise.
80896         * m4/stdint_h.m4: Likewise.
80897         * m4/intmax_t.m4: Likewise.
80898         * m4/uintmax_t.m4: Likewise.
80899
80900 2004-04-18  Jim Meyering  <jim@meyering.net>
80901
80902         * m4/prereq.m4: Don't forbid jm_ prefix.
80903
80904         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80905         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80906         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80907         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80908         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80909         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80910         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80911         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80912         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80913         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80914         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80915         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80916         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80917         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80918         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80919         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80920         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80921         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80922         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80923
80924 2004-04-18  Jim Meyering  <jim@meyering.net>
80925
80926         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80927         failure, don't leak memory and do call END_UTMP_ENT.
80928
80929 2004-04-16  Jim Meyering  <jim@meyering.net>
80930
80931         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80932         coreutils' stat program.
80933         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80934
80935 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80936
80937         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80938         C89.
80939         (CHAR_BIT): Remove, since we assume C89.
80940         Include <stdint.h> if available, as per current Autoconf CVS advice.
80941
80942 2004-03-31  Jim Meyering  <jim@meyering.net>
80943
80944         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80945         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80946         * m4/xalloc.m4: Likewise.
80947
80948 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80949
80950         Merge from coreutils.
80951
80952         * m4/inttostr.m4: New file.
80953         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80954         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80955         Require gl_CLOCK_TIME.
80956         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80957
80958 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80959
80960         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80961         not bool, to be more consistent with Unix conventions.
80962         Suggested by Bruno Haible.
80963
80964         Merge from coreutils.
80965
80966         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80967         * lib/umaxtostr.c: New files.
80968
80969         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80970         the usual <time.h> dance.
80971         (get_date): Change signature to support fractional time stamps.
80972         All callers changed.
80973         * lib/getdate.y: Include "getdate.h" first, as we can now
80974         assume C89 and don't need to worry about 'const'.
80975         Similarly, include "unlocked-io.h" near start, not in middle.
80976         Include <limits.h>.
80977         (textint.value): Use long int rather than int.
80978         (textint.digits): Use size_t rather than int.
80979         (BILLION, LOG10_BILLION): New constants.
80980         (parser_control): New member rel_ns.  Members day_ordinal,
80981         time_zone, month, day, hour, minutes, rel_year, rel_month,
80982         rel_day, rel_hour, rel_minutes, rel_seconds
80983         are now long int, not int.  Member seconds is now struct timespec,
80984         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80985         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80986         not int.
80987         (%union.intval): Now long int, not int.
80988         New member timespec.
80989         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80990         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80991         (spec): Now is a timespec or an item list.
80992         (timespec, items): New nonterminals.
80993         (time, rel, relunit, number, get_date):
80994         Add support for fractional seconds.
80995         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80996         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80997         (to_hour): First arg is now long int, not int.
80998         (to_year): Returns long int, not int.
80999         Don't treat year -70 like 70.
81000         (tm_diff): Returns long int, not int.
81001         (lookup_word): Use bool instead of int when appropriate.
81002         (yylex): Use size_t for count, not int.
81003         Detect overflow when parsing large integer constants.
81004         Add support for fractions.
81005         (get_date): Make pointers 'const' if possible.
81006         Use more-portable code to detect integer overflow.
81007         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81008         Don't use ctime; it's not reliable if the year has >4 digits.
81009
81010         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81011         This is for compatibility with BSD.
81012
81013         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81014         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81015         From coreutils' system.h.
81016
81017         * lib/userspec.c: Don't include "posixver.h".
81018         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81019         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81020         compatible extension.  Simplify code by removing a boolean int
81021         that was always nonzero if a string was nonnull.
81022
81023 2004-03-30  Jim Meyering  <jim@meyering.net>
81024
81025         Merge from coreutils.
81026
81027         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81028         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81029         on some systems one must include <grp.h> before it.
81030         Reported by Christian Krackowizer.
81031
81032 2004-03-30  Jim Meyering  <jim@meyering.net>
81033
81034         Merge from coreutils.
81035
81036         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81037
81038         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81039         an empty input stream.
81040
81041         * lib/readtokens.c: Include <stdbool.h>.
81042         (readtoken): Use `size_t' rather than int/long.
81043         All callers adjusted.
81044         Use `bool' rather than `int' where appropriate.
81045         Use memset rather than an explicit loop.
81046         Use x2nrealloc rather than xrealloc.
81047         Allow the use of `\0' as a delimiter.
81048         (readtokens): Likewise.
81049         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81050
81051 2004-03-30  Jim Meyering  <jim@meyering.net>
81052
81053         * m4/realloc.m4: Remove file, since now it does no more than
81054         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81055         the `configure.ac' section of module/realloc.
81056         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81057
81058 2004-03-30  Bruno Haible  <bruno@clisp.org>
81059
81060         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81061         nonnull.
81062
81063 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81064
81065         Merge changes to getloadavg.c from coreutils and Emacs.
81066
81067         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81068         Define to an expression, not to the empty string.
81069         Include cloexec.h and xalloc.h.
81070         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81071         Use set_cloexec_flag rather than rolling our own.
81072         * lib/cloexec.c, lib/cloexec.h: New files.
81073
81074 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81075
81076         * m4/cloexec.m4: New file.
81077
81078 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81079
81080         * lib/getopt.h: Sync with libc CVS.
81081
81082 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81083             Bruno Haible  <bruno@clisp.org>
81084
81085         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81086         mbswidth.
81087
81088 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81089             Bruno Haible  <bruno@clisp.org>
81090
81091         * lib/mbswidth.h: Include <wchar.h> only if
81092         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81093         <wchar.h>.
81094         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81095
81096 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81097
81098         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81099         Sync with libc CVS.
81100         * lib/getopt_int.h: New file, also synced from libc.
81101
81102 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81103
81104         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81105         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81106         Bring back getopt.c, getopt.h, getopt1.c.
81107
81108 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81109
81110         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81111         All uses changed.  Check for sa_sigaction member; this fixes
81112         a bug first reported by Jason Andrade in
81113         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81114
81115 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81116
81117         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81118         '#if' expressions.  Unlike the code it replaces, it does not
81119         depend on (defined _SC_PAGESIZE).  However, it does depend on
81120         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81121         first reported by Jason Andrade in
81122         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81123
81124 2004-02-25  Simon Josefsson  <jas@extundo.com>
81125
81126         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81127
81128 2004-02-25  Simon Josefsson  <jas@extundo.com>
81129
81130         * lib/strdup.h: New file.
81131         * lib/strdup.c: Include it.
81132         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81133         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81134
81135 2004-02-23  Karl Berry  <karl@gnu.org>
81136
81137         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81138         (from fencepost.gnu.org:/gd/gnuorg).
81139
81140 2004-02-23  Karl Berry  <karl@gnu.org>
81141
81142         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81143         * config/srclist.txt: add maintain/standards documents.
81144
81145 2004-02-18  Bruno Haible  <bruno@clisp.org>
81146
81147         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81148         Reported by Derek Robert Price <derek@ximbiot.com>.
81149
81150 2004-02-16  Karl Berry  <karl@gnu.org>
81151
81152         * config/mkinstalldirs, install-sh: update from automake.
81153
81154 2004-02-06  Karl Berry  <karl@gnu.org>
81155
81156         * m4/po.m4: update from gettext 0.14.1.
81157
81158 2004-02-06  Karl Berry  <karl@gnu.org>
81159
81160         * lib/config.charset: update from gettext 0.14.1.
81161
81162 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81163
81164         Add comments and code, prompted by suggestions from Bruno Haible
81165         for sh-quote.
81166         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81167         describing the enum quoting_style values.
81168         * lib/quotearg.c (quotearg_alloc): New function.
81169         (quotearg_buffer_restyled): Treat lone { and } as special.
81170         Treat = as special.  Work around bug with older shells
81171         that "see" a '\' that is really the 2nd byte of a multibyte char.
81172         Quote empty string with shell_quoting_style.
81173
81174 2004-02-03  Bruno Haible  <bruno@clisp.org>
81175
81176         * m4/pipe.m4: New file, from GNU gettext.
81177
81178 2004-02-03  Bruno Haible  <bruno@clisp.org>
81179
81180         * lib/pipe.h: New file, from GNU gettext.
81181         * lib/pipe.c: New file, from GNU gettext.
81182
81183 2004-01-27  Bruno Haible  <bruno@clisp.org>
81184
81185         * m4/execute.m4: New file, from GNU gettext.
81186
81187 2004-01-27  Bruno Haible  <bruno@clisp.org>
81188
81189         * lib/execute.h: New file, from GNU gettext.
81190         * lib/execute.c: New file, from GNU gettext.
81191         * lib/w32spawn.h: New file, from GNU gettext.
81192
81193 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81194
81195         Merge from diffutils.
81196
81197         * lib/file-type.c (file_type): Add typed memory objects.
81198         * lib/file-type.h (S_TYPEISTMO): New macro.
81199
81200         * lib/c-stack.h (c_stack_action): Remove argv argument.
81201         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81202         (die): Don't calculate message unless segv_action returns.
81203         (get_stack_location, min_address_from_argv, max_address_from_argv,
81204         volatile stack_base, volatile_stack_size): Remove.
81205         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81206         that every segmentation violation is a stack overflow.  (Ouch!)
81207         See Debian bug 136249 (still outstanding) for more info about why
81208         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81209
81210 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81211
81212         Exit-status fix from coreutils.
81213
81214         Use exit_failure consistently in place of EXIT_FAILURE,
81215         so that program exit statuses are consistent on failure.
81216
81217         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81218         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81219         * lib/argmatch.h: Comment fix to match the above.
81220         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81221         Now a macro referring to exit_failure, instead of a separate
81222         variable.  Include "exitfail.h" to get it.
81223         * lib/xstrtol.h: Include "exitfail.h".
81224         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81225
81226         * lib/long-options.c (parse_long_options): Use prototype
81227         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81228         for clarity.
81229
81230 2004-01-21  Jim Meyering  <jim@meyering.net>
81231
81232         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81233         so as not to conflict with a different-sized __mktime_internal
81234         function in GNU libc.
81235         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81236         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81237
81238 2004-01-20  Karl Berry  <karl@gnu.org>
81239
81240         * config/config.guess: update from config.
81241
81242         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81243
81244 2004-01-20  Bruno Haible  <bruno@clisp.org>
81245
81246         Safer stack allocation.
81247         * lib/setenv.c: Include allocsa.h.
81248         (alloca): Remove fallback definition.
81249         (freea): Remove macro.
81250         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81251         instead of freea.
81252
81253 2004-01-20  Bruno Haible  <bruno@clisp.org>
81254
81255         * m4/eealloc.m4: New file, from GNU gettext.
81256
81257 2004-01-20  Bruno Haible  <bruno@clisp.org>
81258
81259         * m4/allocsa.m4: New file, from GNU gettext.
81260
81261 2004-01-20  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/xallocsa.h: New file, from GNU gettext.
81264         * lib/xallocsa.c: New file, from GNU gettext.
81265
81266 2004-01-20  Bruno Haible  <bruno@clisp.org>
81267
81268         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81269
81270 2004-01-20  Bruno Haible  <bruno@clisp.org>
81271
81272         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81273         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81274         specially.
81275
81276 2004-01-20  Bruno Haible  <bruno@clisp.org>
81277
81278         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81279         patch.
81280
81281 2004-01-20  Bruno Haible  <bruno@clisp.org>
81282
81283         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81284
81285 2004-01-20  Bruno Haible  <bruno@clisp.org>
81286
81287         * lib/eealloc.h: New file.
81288
81289 2004-01-20  Bruno Haible  <bruno@clisp.org>
81290
81291         * lib/binary-io.h: Avoid warnings on Cygwin.
81292
81293 2004-01-20  Bruno Haible  <bruno@clisp.org>
81294
81295         * lib/allocsa.h: New file, from GNU gettext.
81296         * lib/allocsa.c: New file, from GNU gettext.
81297
81298 2004-01-18  Karl Berry  <karl@gnu.org>
81299
81300         * doc/gpl.texi, doc/lgpl.texi: new files.
81301
81302 2004-01-18  Karl Berry  <karl@gnu.org>
81303
81304         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81305         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81306
81307 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81308
81309         Merge from coreutils.
81310
81311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81312         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81313         (gl_DEFAULT_POSIX2_VERSION): Move
81314         the documentation from 'configure' into 'config.hin',
81315         so that 'configure --help' isn't burdened by it and
81316         we don't have to worry about its formatting there.
81317         Reword the documentation so that it's more succinct
81318         and can be run together into a single paragraph.
81319         * m4/same.m4 (gl_SAME): Check for pathconf.
81320
81321 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81322
81323         Merge from coreutils.
81324
81325         * lib/posixver.c: Include posixver.h.
81326
81327         * lib/same.c: Include <stdbool.h>, <limits.h>.
81328         (_POSIX_NAME_MAX): Define if not defined.
81329         (MIN): New macro.
81330         (same_name): If file names are silently truncated, report
81331         that the file names are the same if they are the same after
81332         the silent truncation.
81333
81334         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81335         conversion function.
81336         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81337         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81338         longer needed.
81339
81340 2004-01-15  Jim Meyering  <jim@meyering.net>
81341
81342         Merge from coreutils.
81343
81344         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81345         if no library is required.
81346         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81347         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81348         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81349         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81350         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81351         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81352         value, $ac_cv_search_crypt, if it's "none required".
81353         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81354         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81355         not gl_FUNC_GETLOADAVG.
81356         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81357         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81358
81359 2004-01-15  Jim Meyering  <jim@meyering.net>
81360
81361         Merge from coreutils.
81362
81363         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81364         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81365         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81366
81367         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81368         optional configure-time default.
81369
81370         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81371
81372         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81373
81374 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81375
81376         Merge from coreutils.
81377
81378         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81379         value, $ac_cv_search_nanosleep, if it's "none required".
81380
81381 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81382
81383         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81384         with like-named macro in fnmatch.c.
81385         (EXT): Use an internal constant instead.
81386
81387         Merge fnmatch patches from glibc.
81388         * lib/fnmatch.c (mbsinit): Remove define.
81389         Add libc_hidden_ver (__fnmatch, fnmatch).
81390         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81391         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81392
81393 2004-01-14  Karl Berry  <karl@gnu.org>
81394
81395         * config/install-sh: update from automake.
81396
81397 2004-01-13  Karl Berry  <karl@gnu.org>
81398
81399         * config/install-sh: update from automake.
81400
81401 2004-01-09  Karl Berry  <karl@gnu.org>
81402
81403         * config/install-sh: update from automake.
81404
81405 2004-01-05  Karl Berry  <karl@gnu.org>
81406
81407         * config/config.{sub,guess}: update from config.
81408
81409 2003-12-31  Karl Berry  <karl@gnu.org>
81410
81411         * config/depcomp: update from automake.
81412
81413 2003-12-14  Karl Berry  <karl@gnu.org>
81414
81415         * lib/config.charset: update from gettext-runtime.
81416
81417 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81418
81419         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81420         Bug reported by Alfred M. Szmidt.
81421
81422 2003-12-03  Bruno Haible  <bruno@clisp.org>
81423
81424         * m4/gettext.m4: Upgrade from gettext-0.13.
81425         * m4/po.m4: Upgrade from gettext-0.13.
81426         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81427         * m4/intmax.m4: New file, from gettext-0.13.
81428         * m4/printf-posix.m4: New file, from gettext-0.13.
81429
81430 2003-11-29  Karl Berry  <karl@gnu.org>
81431
81432         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81433
81434 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81435             Bruno Haible  <bruno@clisp.org>
81436
81437         * lib/printf-parse.h: Don't include sys/types.h.
81438         (ARG_NONE): New macro.
81439         (char_directive): Change type of *arg_index fields to size_t.
81440         * lib/printf-parse.c: Don't include sys/types.h.
81441         (SSIZE_MAX): Remove macro.
81442         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81443         Remove unnecessary overflow check.
81444         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81445         fields.
81446
81447 2003-11-25  Bruno Haible  <bruno@clisp.org>
81448
81449         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81450
81451 2003-11-25  Bruno Haible  <bruno@clisp.org>
81452
81453         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81454         gt_TYPE_SSIZE_T.
81455
81456 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81457
81458         * modules/alloca: Remove dependency on xalloc.
81459
81460 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81461
81462         * lib/alloca.c: Remove dependency on xalloc module.
81463         (xalloc_die): Remove.
81464         (memory_full) [!defined emacs]: New macro.
81465         [!defined emacs]: Don't include xalloc.h.
81466         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81467         address arithmetic overflows.  Change datatypes a bit to avoid
81468         unnecessary casts.
81469
81470 2003-11-22  Jim Meyering  <jim@meyering.net>
81471
81472         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81473         s/size/size_t/.
81474
81475 2003-11-21  Karl Berry  <karl@gnu.org>
81476
81477         * config/config.{sub,guess}: update from config.
81478
81479 2003-11-18  Karl Berry  <karl@gnu.org>
81480
81481         * config/config.{sub,guess}: update from config.
81482
81483         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81484
81485 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81486
81487         * README: Mention that S+T cannot overflow if S is the size of
81488         an existing object and T is sufficiently small.
81489
81490 2003-11-17  Jim Meyering  <jim@meyering.net>
81491
81492         On systems without utime and without a utimes function capable of
81493         dealing with a NULL struct utimbuf* argument, this utime replacement
81494         could -- in unusual circumstances -- leak a file descriptor.
81495         * lib/utime.c: Include <unistd.h> and <errno.h>.
81496         (utime_null): Be sure to close `fd' and to preserve errno.
81497         Reported by Geoff Collyer via Arnold Robbins.
81498
81499 2003-11-17  Bruno Haible  <bruno@clisp.org>
81500
81501         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81502         (Depends-on): Add xsize.
81503
81504 2003-11-17  Bruno Haible  <bruno@clisp.org>
81505
81506         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81507
81508 2003-11-17  Bruno Haible  <bruno@clisp.org>
81509
81510         * lib/vasnprintf.c (alloca): Remove fallback definition.
81511         (freea): Remove definition.
81512         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81513         Reported by Paul Eggert.
81514
81515 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81516             Bruno Haible  <bruno@clisp.org>
81517
81518         Protect against address arithmetic overflow.
81519         * lib/printf-args.h: Include stddef.h.
81520         (arguments): Change type of field 'count' to size_t.
81521         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81522         'unsigned int' where appropriate.
81523         * lib/printf-parse.h: Include sys/types.h.
81524         (char_directive): Change type of *arg_index fields to ssize_t.
81525         (char_directives): Change type of fields 'count', max_*_length to
81526         size_t.
81527         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81528         (SSIZE_MAX): Define fallback value.
81529         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81530         instead of 'int' where appropriate. Check a_allocated, d_allocated
81531         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81532         * lib/vasnprintf.c: Include xsize.h.
81533         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81534         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81535         overflow. Avoid wraparound when converting a width or precision from
81536         decimal to binary.
81537
81538 2003-11-16  Bruno Haible  <bruno@clisp.org>
81539
81540         Update from GNU gettext.
81541         * lib/printf-parse.c: Generalize to it can be compiled for wide
81542         strings.
81543         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81544         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81545         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81546         SNPRINTF): New macros.
81547         Don't include <alloca.h> if the file is used inside libintl.
81548         (local_wcslen): New function, for Solaris 2.5.1.
81549         (VASNPRINTF): Use it instead of wcslen.
81550
81551 2003-11-16  Bruno Haible  <bruno@clisp.org>
81552
81553         * lib/xsize.h (xmax): New function.
81554         (xsum, xsum3, xsum4): Declare as "pure" functions.
81555
81556 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81557
81558         * modules/xalloc (Files): Undo latest change, since xalloc.h
81559         no longer needs SIZE_MAX or PTRDIFF_MAX.
81560
81561 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81562
81563         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81564         gl_PTRDIFF_MAX.
81565
81566 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81567
81568         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81569         "return", to pacify some unknown compiler.  Problem reported
81570         by Joerg Schilling.
81571
81572 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81573
81574         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81575         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81576         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81577         heuristic is just as accurate as far as we know, and it removes a
81578         dependency on size_max.m4 and ptrdiff_max.m4.
81579
81580 2003-11-11  Bruno Haible  <bruno@clisp.org>
81581
81582         * modules/xsize (Files): Add m4/size_max.m4.
81583         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81584
81585 2003-11-11  Bruno Haible  <bruno@clisp.org>
81586
81587         * m4/size_max.m4: New file.
81588         * m4/ptrdiff_max.m4: New file.
81589         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81590         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81591         (gl_XALLOC): Invoke it.
81592
81593 2003-11-11  Bruno Haible  <bruno@clisp.org>
81594
81595         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81596         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81597         defined.
81598
81599 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81600
81601         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81602         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81603         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81604         From Bruno Haible.
81605         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81606         not (size_t) -1, since it's defined here.
81607
81608 2003-11-09  Karl Berry  <karl@gnu.org>
81609
81610         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81611
81612 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81613
81614         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81615         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81616         Reject sizes of exactly SIZE_MAX bytes.
81617         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81618         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81619
81620 2003-11-05  Bruno Haible  <bruno@clisp.org>
81621
81622         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81623         SIZE_MAX defined in <limits.h> on Solaris.
81624
81625 2003-11-04  Jim Meyering  <jim@meyering.net>
81626
81627         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81628         variable names, rather than @VAR@.
81629         * modules/poll: Likewise.
81630
81631 2003-11-04  Bruno Haible  <bruno@clisp.org>
81632
81633         * modules/xsize: New file.
81634         * modules/linebreak: Depend on xsize.
81635         * MODULES.html.sh (func_all_modules): Add xsize.
81636
81637 2003-11-04  Bruno Haible  <bruno@clisp.org>
81638
81639         * m4/xsize.m4: New file.
81640
81641 2003-11-04  Bruno Haible  <bruno@clisp.org>
81642
81643         * lib/xsize.h: New file.
81644         * lib/linebreak.c: Include xsize.h.
81645         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81646         argument for overflow.
81647         Suggested by Paul Eggert.
81648
81649 2003-11-03  Karl Berry  <karl@gnu.org>
81650
81651         * config/config.{guess,sub}: update from config.
81652
81653 2003-11-03  Jim Meyering  <jim@meyering.net>
81654
81655         * modules/userspec (lib_SOURCES): Add userspec.h.
81656         (Include): Add "userspec.h".
81657         Improve description.
81658
81659 2003-11-03  Jim Meyering  <jim@meyering.net>
81660
81661         * lib/userspec.c: Include "userspec.h".
81662         * lib/userspec.h: New file.
81663
81664 2003-11-03  Bruno Haible  <bruno@clisp.org>
81665
81666         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81667
81668 2003-11-03  Bruno Haible  <bruno@clisp.org>
81669
81670         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81671         available, to avoid (extremely rare) race condition.
81672         Suggested by Paul Eggert.
81673
81674 2003-11-02  Karl Berry  <karl@gnu.org>
81675
81676         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81677
81678 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81679
81680         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81681         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81682         (read_filesystem_list): Set and use me_type_malloced.
81683         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81684         whatever the type happens to be), for brevity and consistency.
81685         Check for size calculation overflow on Alphas running OSF/1.
81686
81687 2003-10-31  Jim Meyering  <jim@meyering.net>
81688
81689         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81690
81691         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81692
81693 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81694             Bruno Haible  <bruno@clisp.org>
81695
81696         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81697         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81698
81699 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81700
81701         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81702         netbsd*-gnu*.  Suggested by Robert Millan.
81703
81704 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81705
81706         * modules/group-member: Depend on stdbool.
81707
81708 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81709
81710         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81711
81712 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81713
81714         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81715         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81716         after the 'gnu' in these cases.  This fixes some bugs in the
81717         previous change, and is based on suggestions by Robert Millan.
81718
81719 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81720
81721         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81722         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81723         no longer needed.
81724         * lib/quotearg.c (quotearg_n_options): Use it.
81725         * lib/group-member.c: Include <stdbool.h>.
81726         (free_group_info): Arg is now const *; don't free arg.
81727         (get_group_info): Now returns bool and accepts struct group_info *,
81728         rather than returning a malloc'ed struct group_info *.
81729         All uses changed.  Check for overflow in internal size calculation.
81730
81731         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81732         rather than xmalloc/xrealloc.
81733         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81734         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81735         conformance bug: the old code used a pointer after freeing the
81736         storage that it addressed.
81737         * lib/hash.c (hash_initialize): Simplify the code by using
81738         xalloc_oversized rather than doing it by hand.
81739         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81740         the buffer preserved.  Use free and xmalloc instead.
81741         * lib/quotearg.c (quotearg_n_options): Likewise.
81742         Use a simpler test for size overflow.  Don't use xalloc_oversized
81743         because unsigned int might be wider than size_t (!); this suggests
81744         that we should switch from unsigned int to size_t for slot numbers.
81745
81746 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81747
81748         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81749         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81750         NetBSD kernels.  Requested by Richard Stallman.
81751
81752 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81753
81754         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81755         to allocate the returned structure.  Do not allocate a subarray,
81756         as x2nrealloc will do that.
81757         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81758         instead of xnrealloc.
81759         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81760
81761 2003-10-27  Bruno Haible  <bruno@clisp.org>
81762
81763         * lib/stdbool_.h: Better support for BeOS.
81764
81765 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81766
81767         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81768         now uses inline.
81769
81770 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81771
81772         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81773         callers that want to do their own size-overflow checking.  Include
81774         <stdbool.h>, since xalloc_oversized returns bool.
81775         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81776         to use xalloc_oversized.
81777
81778         Add two functions x2realloc, x2nrealloc, for programs that grow
81779         arrays dynamically by doubling their sizes.
81780         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81781         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81782         New functions.
81783
81784         Port to C99 semantics for 'inline' of external functions.
81785         Bug reported by Bruno Haible.
81786         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81787         with the old contents of xnmalloc.
81788         (xnmalloc, xmalloc): Use it.
81789         (xnrealloc_inline): New static inline function,
81790         with the old contents of xnrealloc.
81791         (xnrealloc, xrealloc): Use it.
81792
81793         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81794         that.
81795
81796 2003-10-26  Karl Berry  <karl@gnu.org>
81797
81798         * config/srclist.txt (COPYING.DOC): no longer available from
81799         /gd/gnuorg; don't know where the ultimate source is.
81800
81801 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81802
81803         Fix several address-calculation bugs in the hash modules,
81804         plus some minor code cleanup.
81805
81806         * lib/hash.h: Include <stdbool.h>, for bool.
81807         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81808         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81809         hash_get_n_entries, hash_get_max_bucket_length,
81810         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81811         hash_rehash): Use size_t rather than unsigned.
81812         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81813         hash_get_n_buckets_used, hash_get_n_entries,
81814         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81815         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81816         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81817         Likewise.
81818         (SIZE_MAX): Define if not defined.
81819         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81820         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81821         hash_print):
81822         Use const * when possible.
81823         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81824         (check_tuning): Fix bug: if tuning parameters were very close to
81825         0 or 1, rounding errors could have caused subscript violations.
81826         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81827         (hash_initialize): Add 'fail:' label
81828         to free table and return NULL, and use it to simplify code.
81829         Use calloc rather than clearing the storage ourself.
81830         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81831         buffer size calculations.
81832         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81833         Include <stddef.h>, for size_t.
81834         * lib/hash-pjw.c (hash_pjw): Likewise.
81835         Switch to method described by Bruno Haible.
81836         Include <limits.h>, for CHAR_BIT.
81837         (SIZE_BITS): New macro.
81838
81839 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81840
81841         * m4/getline.m4 (AM_FUNC_GETLINE):
81842         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81843         hosts.  Problem reported by Derek Robert Price in
81844         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81845         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81846         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81847
81848 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81849
81850         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81851         ceiling the allocation at NMAX bytes rather than silently
81852         discarding input bytes before NMAX is reached.  This makes
81853         a difference only if NMAX exceeds SIZE_MAX / 2.
81854
81855         * lib/obstack.c: Merge from glibc.
81856         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81857         Add libc_hidden_def (_obstack_newchunk).
81858         (_obstack_free) [! defined _LIBC]: Remove.
81859         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81860         a clone of the function body.
81861         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81862         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81863
81864         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81865         glibc.
81866         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81867         arg to memcpy.
81868
81869         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81870         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81871         Don't use lvalue casts, as GCC plans to remove support for them
81872         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81873         was also present in the non-GCC version, indicating that this
81874         code had always been buggy and had never been widely used.
81875         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81876         Use the fast variant of each macro, rather than copying the
81877         definiens of the fast variant; that way, we'll be more likely to
81878         catch future bugs in the fast variants.
81879
81880 2003-10-20  Bruno Haible  <bruno@clisp.org>
81881
81882         * modules/wait-process: New file.
81883         * MODULES.html.sh (func_all_modules): Add wait-process.
81884
81885 2003-10-20  Bruno Haible  <bruno@clisp.org>
81886
81887         * m4/wait-process.m4: New file.
81888
81889 2003-10-20  Bruno Haible  <bruno@clisp.org>
81890
81891         * lib/wait-process.h: New file, from GNU gettext.
81892         * lib/wait-process.c: New file, from GNU gettext.
81893
81894 2003-10-19  Jim Meyering  <jim@meyering.net>
81895
81896         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81897         HPUX 10.20.
81898
81899 2003-10-18  Karl Berry  <karl@gnu.org>
81900
81901         * config/config.guess: update from config.
81902
81903 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81904
81905         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81906         (getgroups): First arg is int, not size_t.
81907         Don't let 'free' mangle errno.
81908
81909 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81910
81911         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81912
81913 2003-10-16  Karl Berry  <karl@gnu.org>
81914
81915         * config/config.{guess,sub}: update from config.
81916
81917 2003-10-16  Jim Meyering  <jim@meyering.net>
81918
81919         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81920         memcpy.
81921
81922 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81923
81924         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81925         (SIZE_MAX): Remove.
81926         (new_exclude, add_exclude_file): Initial size no longer needs to
81927         be a power of 2.
81928         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81929         our own address arithmetic overflow checking.
81930
81931         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81932         (fnmatch): Do not alloca more than 2000 wide characters;
81933         instead, use malloc for large buffers.
81934         Check for address arithmetic overflow, and return -1
81935         with errno set to ENOMEM in that case.
81936         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81937         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81938         instead, return -1.  Check for address arithmetic overflow.
81939
81940 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81941
81942         Handle invalid suffixes and overflow independently, so that
81943         callers can treat them independently as needed.  Fix some bugs in
81944         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81945         suffix for a human-readable blocksize.  The major caller-visible
81946         change is the addition of a new
81947         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81948         that both overflow and suffix chars were found.
81949
81950         * lib/human.c (humblock): Don't check separately for invalid suffix
81951         char; that is xstrtoumax's job (now that its bug is fixed).
81952         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81953         INTMAX_MAX]: New macros.
81954         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81955         TYPE_MAXIMUM): New macros.
81956         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81957         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81958         if overflow occurs, as it's what __strtol does and it's more useful
81959         in practice.
81960         (__xstrtol): If __strtol reports some error other than ERANGE,
81961         reflect it to the caller as LONGINT_INVALID.  If it reports
81962         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81963         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81964         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81965         value.
81966         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81967         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81968         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81969         [defined UINTMAX_MAX]: New macros.
81970
81971 2003-10-14  Bruno Haible  <bruno@clisp.org>
81972
81973         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81974
81975 2003-10-14  Bruno Haible  <bruno@clisp.org>
81976
81977         * m4/sig_atomic_t: New file, from GNU gettext.
81978         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81979
81980 2003-10-14  Bruno Haible  <bruno@clisp.org>
81981
81982         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81983         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81984         Also use volatile where needed.
81985
81986 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81987
81988         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81989         Change maintainer from Bruno Haible to 'all'.
81990
81991 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81992
81993         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81994
81995 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81996
81997         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81998         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81999         and define in terms of the other primitives.
82000         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82001         (SIZE_MAX): Define if not already defined.
82002         (array_size_overflow): New function.
82003         (xalloc_die): Abort instead of exiting if 'error' returns.
82004         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82005         (xmalloc, xrealloc): Use them.
82006         (xcalloc): Check for address arithmetic overflow.
82007         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82008         a bit faster than strcpy.
82009
82010 2003-10-10  Simon Josefsson  <jas@extundo.com>
82011
82012         * modules/argp (Depends-on): Add restrict and strcase.
82013
82014 2003-10-10  Simon Josefsson  <jas@extundo.com>
82015
82016         * m4/argp.m4: Add AC_C_INLINE.
82017
82018 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82019
82020         Merge getpass from libc, plus a few fixes.
82021
82022         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82023         Include <stdbool.h>.
82024         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82025         __fsetlocking to empty.
82026         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82027         do include <bits/libc-lock.h>.
82028         Do not include <fcntl.h>; not needed.
82029         [_LIBC]: Include <wchar.h>.
82030         (NOTCANCEL_MODE): New macro.
82031         (flockfile, funlockfile) [_LIBC]: New macros.
82032         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82033         [!_LIBC]: New macros.
82034         (call_fclose): New function.
82035         (getpass): Use it.  Save tty stream separately; this simplifies the
82036         code and makes it more reliable if stdin happens to equal stdout.
82037         Invoke __fsetlocking on tty.
82038         Handle thread cancellation if needed.
82039         Namespace cleanup (use __tcgetattr, __getline).
82040         Use bool for Booleans.
82041         [USE_IN_LIBIO]: Handle wide streams.
82042         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82043         stream might go where.
82044
82045         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82046         doesn't have to include <stdio.h> before us.
82047         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82048         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82049         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82050         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82051         if not declared, so that we can use getpass.c code from libc without
82052         rewriting it.
82053         (flockfile, ftrylockfile, funlockfile): New macros.
82054
82055 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82056
82057         * modules/getpass: Depend on stdbool.
82058
82059 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82060
82061         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82062
82063 2003-10-07  Karl Berry  <karl@gnu.org>
82064
82065         * config/config.{guess,sub}: update from config.
82066
82067 2003-10-06  Jim Meyering  <jim@meyering.net>
82068             Bruno Haible  <bruno@clisp.org>
82069
82070         This lets translators provide better translations for the
82071         "Written by ..." part of --version output.
82072         * lib/version-etc.h: Include stdarg.h.
82073         (version_etc_copyright): Declare as readonly.
82074         (version_etc): Make this function variadic with a NULL-terminated list
82075         of author name strings.
82076         (version_etc_va): New declaration.
82077         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82078         (version_etc_copyright): Declare as readonly.
82079         (version_etc_va): New function. Provide a different translatable string
82080         for each possible number of authors < 10. Abbreviate when there are 10
82081         authors or more.
82082         (version_etc): Make this function variadic. Call version_etc_va.
82083         Suggestion from Gary V. Vaughan.
82084
82085         * lib/long-options.h (parse_long_options): Change prototype: the
82086         authors string is moved to the end and becomes variadic.
82087         * lib/long-options.c: Include stdarg.h.
82088         (parse_long_options): Make this function variadic, too.
82089         Call version_etc_va, not version_etc.
82090
82091 2003-10-06  Bruno Haible  <bruno@clisp.org>
82092
82093         * modules/version-etc-2: Remove file.
82094         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82095
82096 2003-10-06  Bruno Haible  <bruno@clisp.org>
82097
82098         * modules/fatal-signal: New file.
82099         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82100
82101 2003-10-06  Bruno Haible  <bruno@clisp.org>
82102
82103         * m4/fatal-signal.m4: New file.
82104         * m4/signalblocking.m4: New file, from GNU gettext.
82105
82106 2003-10-06  Bruno Haible  <bruno@clisp.org>
82107
82108         * lib/version-etc-2.h: Remove file.
82109         * lib/version-etc-2.c: Remove file.
82110
82111 2003-10-06  Bruno Haible  <bruno@clisp.org>
82112
82113         * lib/fatal-signal.h: New file, from GNU gettext.
82114         * lib/fatal-signal.c: New file, from GNU gettext.
82115
82116 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82117
82118         * README: Rework advice for preventing empty .o files.
82119         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82120         not <sys/types.h>.
82121
82122 2003-10-04  Karl Berry  <karl@gnu.org>
82123
82124         * lib/argp*: update from libc.
82125
82126 2003-10-04  Karl Berry  <karl@gnu.org>
82127
82128         * config/config.{guess,sub}: update from config.
82129
82130 2003-10-02  Bruno Haible  <bruno@clisp.org>
82131
82132         * modules/lchown (Include): Add lchown.h.
82133         * modules/time_r (Include): Use "..." syntax.
82134         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82135
82136 2003-10-01  Simon Josefsson  <jas@extundo.com>
82137
82138         * MODULES.html.sh (func_all_modules): Move gethostname from section
82139         'based on' to section 'lacking' POSIX:2001.
82140
82141 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82142
82143         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82144         to output mode on the same stream.
82145
82146 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82147
82148         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82149         Fix arg typo in previous patch.
82150
82151 2003-09-28  Jim Meyering  <jim@meyering.net>
82152
82153         * lib/error.c: Correct cpp indentation.
82154
82155 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82156
82157         * modules/free: New file.
82158
82159 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82160
82161         * m4/free.m4: New file.
82162
82163 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82164
82165         * lib/minmax.h (MIN, MAX)
82166         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82167         Omit the special code that used __typeof__, since we worry that
82168         it could be more trouble than it's worth.  See:
82169         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82170         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82171
82172         * lib/free.c: New file.
82173
82174 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82175
82176         Trivial fixes to Makefile.am parts of module listings.
82177         * modules/strstr: Append strstr.h to lib_SOURCES.
82178         * modules/strcase: Likewise, for strcase.h.
82179
82180 2003-09-27  Karl Berry  <karl@gnu.org>
82181
82182         * config/mkinstalldirs: update from automake.
82183
82184 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82185
82186         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82187         (error_tail): Do not loop, reallocating temporary buffer, since
82188         the output cannot contain more wide characters than the input
82189         contains bytes, the size must be big enough already.  This avoids
82190         one potential size overflow calculation.  Check for size overflow
82191         when calculating temporary buffer size.  Free temporary buffer
82192         when done, if it was allocated with malloc; this plugs a memory
82193         leak.  Remove casts from void * to pointers, that are no longer
82194         needed now that we're assuming C89 or better.
82195
82196         Merge error changes from glibc.
82197
82198         * lib/error.c, error.h: Update copyright notice header to match glibc.
82199         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82200         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82201         Disable cancellation while printing error.
82202         * lib/error.h: Prepend __ to parameter names.
82203
82204 2003-09-26  Jim Meyering  <jim@meyering.net>
82205
82206         * lib/error.c (error_tail): Move some declarations
82207         into inner scope where the local variables are used.
82208
82209 2003-09-26  Bruno Haible  <bruno@clisp.org>
82210
82211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82212         stpncpy().
82213         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82214
82215 2003-09-26  Bruno Haible  <bruno@clisp.org>
82216
82217         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82218         (stpncpy): Define as alias for gnu_stpncpy.
82219         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82220
82221 2003-09-25  Simon Josefsson  <jas@extundo.com>
82222
82223         * lib/xgetdomainname.h: New file.
82224         * lib/xgetdomainname.c: New file.
82225
82226 2003-09-25  Simon Josefsson  <jas@extundo.com>
82227             Bruno Haible  <bruno@clisp.org>
82228
82229         * modules/getdomainname: New file.
82230         * modules/xgetdomainname: New file.
82231         * MODULES.html.sh (func_all_modules): Add getdomainname,
82232         xgetdomainname.
82233
82234 2003-09-25  Simon Josefsson  <jas@extundo.com>
82235             Bruno Haible  <bruno@clisp.org>
82236
82237         * m4/getdomainname.m4: New file.
82238
82239 2003-09-25  Simon Josefsson  <jas@extundo.com>
82240             Bruno Haible  <bruno@clisp.org>
82241
82242         * lib/getdomainname.h: New file.
82243         * lib/getdomainname.c: New file.
82244
82245 2003-09-25  Karl Berry  <karl@gnu.org>
82246
82247         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82248
82249 2003-09-25  Karl Berry  <karl@gnu.org>
82250
82251         * config/install-sh: update from automake.
82252
82253 2003-09-25  Bruno Haible  <bruno@clisp.org>
82254
82255         * modules/version-etc-2: New file, from modules/version-etc with
82256         modifications.
82257         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82258
82259 2003-09-25  Bruno Haible  <bruno@clisp.org>
82260
82261         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82262         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82263
82264 2003-09-24  Simon Josefsson  <jas@extundo.com>
82265
82266         * modules/xgethostname: Add xgethostname.h.
82267
82268 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82269
82270         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82271         the buffer associated with the argument.  Bug reported by
82272         Simon Josefsson.
82273
82274 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82275
82276         * README: Document assumptions that 'int' is at least 32 bits
82277         wide, that integer arithmetic is 2's complement without overflow,
82278         that there are no holes in integer values, that adding sizes of
82279         two nonoverlapping objects can't overflow, and that all-bits-zero
82280         yields scalar zero.  Fix spelling and capitalization typos.
82281
82282 2003-09-19  Karl Berry  <karl@gnu.org>
82283
82284         * lib/argp.h: update from libc.
82285
82286 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82287
82288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82289         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82290         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82291
82292 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82293
82294         * gnulib-tool: Use "test -h", not "test -L", for portability
82295         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82296         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82297         (sed_extract_prog): Issue s commands one-by-one, rather than
82298         using \| in one s command.
82299
82300 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82301
82302         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82303         input error, instead of returning NULL the next time we are called
82304         (and therefore losing track of errno).
82305
82306 2003-09-16  Bruno Haible  <bruno@clisp.org>
82307
82308         * gnulib-tool (func_create_testdir): Warn about duplicated
82309         dependencies.
82310
82311 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82312
82313         * modules/argmatch, modules/fatal, modules/obstack,
82314         modules/xalloc, modules/xgethostname: Sort dependencies by
82315         importance, not alphabetically.
82316
82317 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82318
82319         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82320         fails, so that the caller gets the proper errno.
82321
82322         * lib/readutmp.c (read_utmp): Likewise.
82323         Check for fstat error.  Close stream and free storage
82324         when failing.
82325
82326 2003-09-14  Karl Berry  <karl@gnu.org>
82327
82328         * config/srclist.txt (strdup.c): disable for c89 changes.
82329
82330 2003-09-14  Jim Meyering  <jim@meyering.net>
82331
82332         * lib/getloadavg.c: Correct cpp indentation.
82333         * lib/strdup.c: Likewise.
82334         * lib/vasnprintf.c: Likewise.
82335
82336 2003-09-14  Bruno Haible  <bruno@clisp.org>
82337
82338         * modules/fwriteerror: New file.
82339         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82340
82341 2003-09-14  Bruno Haible  <bruno@clisp.org>
82342
82343         * lib/fwriteerror.h: New file.
82344         * lib/fwriteerror.c: New file.
82345
82346 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82347
82348         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82349         modules/xgethostname, modules/xalloc: Depend on exit.
82350
82351 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82352
82353         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82354
82355         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82356         and AC_MINIX, too, so that their extensions are available.
82357
82358         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82359         This macro has been superseded by gl_BACKUPFILE.
82360
82361         More patches to assume C89 or better.
82362
82363         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82364
82365         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82366         unconditionally.
82367         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82368         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82369         Include <string.h>, <stdlib.h> unconditionally.
82370         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82371         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82372         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82373         headers or for string.h.
82374         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82375         or strtoul.
82376
82377         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82378         headers.
82379         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82380         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82381         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82382         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82383         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82385         memcpy, memset.
82386         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82387         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82388         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82389         strtol.
82390         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82391         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82392         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82393         strtoul.
82394
82395 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82396
82397         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82398         * lib/obstack.c [!defined _LIBC]: Likewise.
82399         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82400         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82401         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82402
82403         More changes to assume C89 or better.
82404
82405         * lib/error.c (error_tail): Assume vprintf.
82406
82407         * lib/argmatch.c (getenv): Remove decl.
82408         * lib/progreloc.c (get_full_program_name): Define via prototype.
82409         * lib/setenv.c (clearenv): Likewise.
82410         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82411         needed.
82412         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82413         (malloc, memcpy): Remove decls.
82414         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82415         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82416         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82417         (memcpy): Remove macro.
82418         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82419         (__P): Remove.  All uses removed.
82420         (PTR): Remove.  All uses changed to void *.
82421         (CHAR_BIT, NULL): Remove.
82422         (spaces, zeros, memset_space, memset_zero)
82423         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82424         Remove.
82425         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82426         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82427         Define with prototype.
82428         Remove now-unnecessary prototype decl.
82429         (extra_args_spec): Assume ANSI C.  All uses changed.
82430         (extra_args_spec_iso): Remove.
82431         (my_strftime, emacs_strftimeu): Define via prototype.
82432         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82433         unconditionally.
82434         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82435         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82436         (strtoul, strtol): Remove decls.
82437         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82438         LONG_MAX): Remove.
82439         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82440         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82441         (LOCALE_PARAM_PROTO): New macro.
82442         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82443         (INTERNAL (strtol), strtol): Define with a prototype.
82444         (PARAMS): Remove.  All uses removed.
82445         * lib/tempname.c: Include <string.h> unconditionally.
82446         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82447         * lib/xgethostname.c (main): Define with a prototype.
82448         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82449         Include <stdlib.h> unconditionally.
82450         (calloc, malloc, realloc, free): Remove decls.
82451         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82452         Include <stdlib.h> unconditionally.  Sort include file names.
82453         (strtod): Remove.
82454         (xstrtod): Define with a prototype.
82455         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82456         (strtol, strtoul): Remove decls.
82457
82458 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82459
82460         More patches to assume C89 or better.
82461         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82462         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82463         string.h, memchr, STDC_HEADERS.
82464
82465 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82466
82467         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82468         Include <stdlib.h>, <string.h> unconditionally.
82469         Remove now-unnecessary cast to char *.
82470         * lib/strnlen.c: Include <string.h> unconditionally.
82471         * lib/yesno.c (yesno): Define with a prototype.
82472
82473 2003-09-11  Bruno Haible  <bruno@clisp.org>
82474
82475         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82476
82477 2003-09-10  Jim Meyering  <jim@meyering.net>
82478
82479         * lib/error.c: Correct indentation of cpp directives.
82480
82481 2003-09-10  Bruno Haible  <bruno@clisp.org>
82482
82483         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82484         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82485         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82486         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82487         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82488         <stdlib.h> and <string.h> checks.
82489         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82490         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82491
82492 2003-09-10  Bruno Haible  <bruno@clisp.org>
82493
82494         * lib/strcspn.c: Include <string.h> unconditionally.
82495         * lib/strpbrk.c: Include <string.h> unconditionally.
82496         * lib/strstr.c: Include <string.h> unconditionally.
82497         * lib/unicodeio.c: Include <string.h> unconditionally.
82498         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82499         * lib/unsetenv.c: Likewise.
82500         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82501         * lib/yesno.c: Include <stdlib.h> unconditionally.
82502         (rpmatch): Add prototype.
82503
82504 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82505
82506         More patches to assume C89 or better.
82507         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82508         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82509         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82510         or for string.h.
82511         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82512         stdlib.h.
82513         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82514         C headers.
82515         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82516         string.h.
82517         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82518         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82519         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82520         or for string.h.
82521         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82522         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82523         C headers.
82524         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82525         memcpy.
82526         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82527         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82528         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82529         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82530         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82531         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82532         string.h, free.
82533         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82534         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82535         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82536         C headers, or for string.h.
82537         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82538         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82539         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82540         headers, memory.h, stdlib.h, string.h, strings.h.
82541         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82542         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82543         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82544         strchr.
82545         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82546         headers, memory.h, string.h.
82547         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82548         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82549         free.
82550         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82551         headers.
82552         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82553         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82554         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82555         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82556         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82557
82558 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82559
82560         More K&R removal.
82561
82562         * lib/acosl.c (main): Use a prototype.
82563         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82564         tanl.c: Likewise.
82565
82566         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82567
82568         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82569         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82570         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82571         with a prototype.
82572         * lib/getopt.c (const): Remove macro.
82573         Include <string.h> unconditionally.
82574         (my_index): Remove; all uses changed to strchr.
82575         (strlen): Remove decl.
82576         (exchange): Remove forward decl; no longer needed.
82577         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82578         Define with prototype.
82579         * lib/getopt1.c (const): Remove macro.
82580         (getopt_long, getopt_long_only, main): Define with prototype.
82581
82582         * lib/getugroups.c: Include <string.h> unconditionally.
82583
82584         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82585         (getusershell, setusershell, endusershell, readname, main):
82586         Define with prototypes.
82587
82588         * lib/group-member.c: Include group-member.h first.
82589         Include <stdlib.h> unconditionally.
82590
82591         * lib/hard-locale.c: Include hard-locale.h first.
82592         Include <stdlib.h>, <string.h> unconditionally.
82593
82594         * lib/hash.c (free, malloc): Remove decls.
82595         Include <stdlib.h> unconditionally.
82596
82597         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82598         (getenv): Do not declare.
82599
82600         * lib/idcache.c: Include <string.h> unconditionally.
82601
82602         * lib/long-options.c: Include long-options.h first, to test interface.
82603         Include <stdlib.h> unconditionally.
82604
82605         * lib/makepath.c: Include makepath.h first, to test interface.
82606         Include <stdlib.h> and <string.h> unconditionally.
82607
82608         * lib/linebuffer.c: Include <stdlib.h>.
82609         (free): Remove decl.
82610
82611         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82612         stddef.h. rpl_malloc returns void *, not char *.
82613         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82614         prototype.
82615
82616         * lib/md5.h: Include <limits.h> unconditionally.
82617         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82618         (__P): Remove; all uses removed.
82619         * lib/md5.c: Include "md5.h" first.
82620         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82621         md5_buffer, md5_process_bytes, md5_process_block):
82622         Define with prototypes.
82623         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82624         * lib/sha.c: Include "sha.h" first.
82625         Include <stdlib.h>, <string.h> unconditionally.
82626
82627         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82628         * lib/memcmp.c (__ptr_t): Likewise.
82629         * lib/memrchr.c (__ptr_t): Likewise.
82630         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82631         Include <string.h> unconditionally.
82632         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82633         * lib/memchr.c: Include <stdlib.h> unconditionally.
82634         * lib/memchr.c (LONG_MAX): Remove.
82635         * lib/memrchr.c (LONG_MAX): Likewise.
82636         * lib/memchr.c (__memchr): Define via a prototype.
82637         * lib/memrchr.c (__memrchr): Likewise.
82638         * lib/memcmp.c (__P): Remove, and remove all uses.
82639         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82640         Remove forward decls; no longer needed.
82641         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82642         Use types required by C89 in prototype.
82643
82644         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82645         * lib/savedir.c: Likewise.
82646         * lib/mkdir.c (free): Remove decl.
82647         * lib/rmdir.c (rmdir): Define with a prototype.
82648         * lib/savedir.c: Include savedir.h first, to test interface.
82649
82650         * lib/mktime.c (STDC_HEADERS): Remove.
82651         Include <stdlib.h>, <string.h> unconditionally.
82652
82653         * lib/modechange.c: Include <stdlib.h> unconditionally.
82654         (malloc): Remove decl.
82655
82656         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82657         (free): Remove decl.
82658
82659         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82660         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82661         (This type really should be intptr_t, but that's a C99ism.)
82662         (_obstack_memcpy): Remove: all uses changed to memcpy.
82663         Include <string.h> unconditionally.
82664         (struct obstack): Assume __STDC__ for types of members
82665         chunkfun, freefun, extra_arg.
82666         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82667         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82668         obstack_begin, obstack_specify_allocation,
82669         obstack_specify_allocation_with_arg, obstack_chunkfun,
82670         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82671         Remove unprototyped decls and the macros that use them.
82672         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82673         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82674         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82675         (defined __STDC__ && __STDC__)]:
82676         Remove nonprototyped code.
82677         Include <stdlib.h> unconditionally.
82678         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82679         _obstack_allocated_p, _obstack_free, obstack_free,
82680         _obstack_memory_used, print_and_abort):
82681         Define using prototypes.
82682         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82683         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82684         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82685         obstack_next_free, obstack_object_size, obstack_room) [0]:
82686         Remove unused, unprototyped code.
82687
82688         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82689
82690         * lib/physmem.c (physmem_total, physmem_available, main): Define
82691         with prototypes.
82692
82693         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82694         (main): Define with a prototype.
82695
82696         * lib/posixver.c (getenv): Remove decl.
82697
82698         * lib/putenv.c (malloc): Returns void *, not char *.
82699         Include <string.h> unconditionally.
82700         (strchr, memcpy, NULL): Do not define.
82701
82702         * lib/readtokens.c: Include readtokens.h first, to test interface.
82703         Include <stdlib.h>, <string.h> unconditionally.
82704         (init_tokenbuffer): Define with a prototype.
82705
82706         * lib/regex.c (PARAMS): Remove.  All uses removed.
82707         All uses of _RE_ARGS removed, too.
82708         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82709         unconditionally.
82710         (bzero): Assume memset exists.
82711         (memcmp, memcpy, NULL): Remove.
82712         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82713         char, or assignments to local vars of type signed char.
82714         (init_syntax_once, PREFIX(extract_number_and_incr),
82715         PREFIX(print_partial_compiled_pattern),
82716         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82717         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82718         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82719         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82720         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82721         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82722         wcs_compile_range, byte_compile_range, truncate_wchar,
82723         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82724         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82725         count_mbs_length, wcs_re_match_2_internal,
82726         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82727         PREFIX(alt_match_null_string_p),
82728         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82729         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82730         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82731         now-unnecessary declaration, if any.
82732         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82733         regcomp, regexec):
82734         Remove now-unnecessary casts among pointer types.
82735         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82736
82737         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82738         (free): Remove decl.
82739
82740         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82741
82742         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82743         (free): Remove decl.
82744
82745         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82746         * lib/xgetcwd.c: Likewise.
82747
82748         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82749         (free): Remove decl.
82750
82751         * lib/strchrnul.c (strchrnul): Define with a prototype.
82752         Fix bug: c_in was not converted to char before searching.
82753
82754         The following changes are not K&R related:
82755
82756         * lib/group-member.h: Include <sys/types.h>, so that this file is
82757         self-contained.
82758         * lib/makepath.h: Likewise.
82759
82760         * lib/getusershell.c (readname, default_index, line_size, readname):
82761         Use size_t, not int, for sizes.
82762         (readname): If the size overflows, report an error instead of
82763         looping forever.
82764
82765 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82766
82767         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82768         libc.
82769
82770 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82771
82772         * README: New section: portability guidelines.
82773
82774 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82775
82776         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82777         C89 spec.
82778
82779 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82780
82781         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82782
82783 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82784
82785         Assume C89 or better; remove K&R cruft.
82786         A few of these changes were first proposed by Derek Robert Price
82787         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82788
82789         * lib/addext.c: Include <string.h> unconditionally.
82790         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82791         Don't declare getenv or malloc.
82792
82793         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82794         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82795         (NULL): Remove.
82796         (find_stack_direction, alloca): Use prototypes.
82797
82798         * lib/atexit.c (atexit): Define using a prototype.
82799
82800         * lib/basename.c, dirname.c, stripslash.c:
82801         Include <string.h> unconditionally.
82802
82803         * lib/bcopy.c: Include <stddef.h>.
82804         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82805
82806         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82807
82808         * lib/error.h (error, error_at_line, error_print_progname)
82809         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82810         * lib/error.c: Include error.h first, to check interface.
82811         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82812         (VA_START): Remove; all uses changeed to va_start.
82813         (exit, strerror): Remove decls.
82814         (error_print_progname): Prototype uncondionally.
82815         Don't include <errno.h>; no longer needed.
82816         (private_strerror): Remove.
82817         (error_tail): Always define.
82818         (error, error_at_line): Assume C89 or better; always use prototypes.
82819         * lib/fatal.c: Include "fatal.h" first, to test interface.
82820         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82821         (VA_START): Remove; all uses changed to va_start.
82822         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82823         this case.
82824         (exit): Remove decl.
82825         (fatal): Prototype unconditionally.  Assume va_start works.
82826         Abort at end, to pacify gcc.
82827
82828         * lib/euidaccess.c (main): Define with a prototype.
82829
82830         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82831
82832         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82833
82834         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82835         prototypes.
82836         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82837         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82838         (getenv): Remove decl.
82839         (fnmatch): Define using a prototype.
82840         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82841         (FCT): Define using a prototype.
82842
82843         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82844
82845         * lib/gethostname.c: Include <stddef.h>.
82846         (gethostname): Define with prototype.  Length is size_t, not int.
82847
82848 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82849
82850         Assume C89 or better; remove K&R cruft.
82851         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82852         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82853         string.h, getenv, malloc.
82854         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82855         headers.
82856         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82857         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82858         do not check for strerror.
82859         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82860         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82861         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82862         do not check for doprnt or vprintf.
82863         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82864         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82865
82866 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82867
82868         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82869         getversion.c should have been removed then, but was accidentally
82870         preserved.
82871
82872         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82873         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82874
82875 2003-09-08  Karl Berry  <karl@gnu.org>
82876
82877         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82878                 config, forget about prep.
82879
82880         * config/depcomp, missing: update from automake.
82881
82882 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82883
82884         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82885         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82886
82887 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82888
82889         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82890         copy_tm_result.  Bug reported by Simon Josefsson in
82891         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82892
82893 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82894
82895         * m4/time_r.m4: New file.
82896         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82897         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82898         is. Check for timegm declaration.
82899         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82900         Do not check for gmtime_r.
82901         Replace mktime if __mktime_internal does not exist and if mktime
82902         hasn't been replaced already.
82903
82904 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82905
82906         * lib/time_r.c, lib/time_r.h: New files.
82907
82908         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82909         __localtime_r.
82910         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82911         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82912
82913         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82914         __gmtime_r.
82915         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82916         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82917         Include <time_r.h>.
82918
82919         * lib/timegm.c: Switch to glibc implementation, with the following
82920         changes:
82921         [defined HAVE_CONFIG_H]: Include <config.h>.
82922         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82923         (__mktime_internal) [!defined _LIBC]: New decl.
82924         (__gmtime_r) [!defined _LIBC]: New macro and function.
82925         (timegm): Use a prototype, since gnulib assumes C89.
82926         Do not bother declaring tmp to be const, as it's not really usefu.
82927         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82928         (timegm): Declare only if HAVE_DECL_TIMEGM.
82929
82930 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82931
82932         * MODULES.html.sh (func_all_modules): Add time_r.
82933         * modules/time_r: New file.
82934         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82935         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82936
82937 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82938
82939         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82940         Bug reported by Lute Kamstra in
82941         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82942
82943         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82944         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82945         course with correspondingly smaller numbers for tomorrow and
82946         yesterday.  From Tadayoshi Funaba.  Originally installed into
82947         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82948         coreutils merge?).
82949
82950 2003-08-31  Simon Josefsson  <jas@extundo.com>
82951
82952         * modules/timegm: New file.
82953         * MODULES.html.sh (func_all_modules): Add timegm.
82954
82955 2003-08-31  Simon Josefsson  <jas@extundo.com>
82956
82957         * m4/timegm.m4: New file.
82958
82959 2003-08-31  Simon Josefsson  <jas@extundo.com>
82960
82961         * lib/timegm.h: New file.
82962         * lib/timegm.c: New file.  Based on
82963         wget-1.8.2/src/http.c:mktime_from_utc.
82964
82965 2003-08-31  Karl Berry  <karl@gnu.org>
82966
82967         * lib/argp.h: update from libc.
82968
82969 2003-08-28  Bruno Haible  <bruno@clisp.org>
82970
82971         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82972         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82973         followed by '#define fnmatch fnmatch_posix' gives an error.
82974
82975 2003-08-28  Bruno Haible  <bruno@clisp.org>
82976
82977         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82978         warning on QNX, which defines O_BINARY to 000000.
82979
82980 2003-08-27  Jim Meyering  <jim@meyering.net>
82981
82982         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82983         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82984         would fail after 32.  Reported by Danny Levinson.  Details here:
82985         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82986
82987 2003-08-24  Bruno Haible  <bruno@clisp.org>
82988
82989         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82990         MSVC7 <stdio.h> is included later.
82991
82992 2003-08-22  Simon Josefsson  <jas@extundo.com>
82993
82994         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82995
82996 2003-08-20  Karl Berry  <karl@gnu.org>
82997
82998         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82999
83000 2003-08-20  Bruno Haible  <bruno@clisp.org>
83001
83002         * modules/progname: New file.
83003         * MODULES.html.sh (func_all_modules): Add progname.
83004
83005 2003-08-20  Bruno Haible  <bruno@clisp.org>
83006
83007         * lib/progname.h: New file, from GNU gettext.
83008         * lib/progname.c: New file, from GNU gettext.
83009         * lib/progreloc.c: New file, from GNU gettext.
83010
83011 2003-08-19  Jim Meyering  <jim@meyering.net>
83012
83013         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83014         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83015
83016 2003-08-19  Bruno Haible  <bruno@clisp.org>
83017
83018         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83019         more.
83020
83021 2003-08-19  Bruno Haible  <bruno@clisp.org>
83022
83023         * lib/xstrdup.c: Assume <string.h> exists.
83024
83025 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83026
83027         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83028         in makefile rules.
83029
83030 2003-08-18  Jim Meyering  <jim@meyering.net>
83031
83032         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83033         * m4/lib-ld.m4: Likewise.
83034
83035 2003-08-18  Jim Meyering  <jim@meyering.net>
83036
83037         * lib/setenv.h: Indent nested cpp directive.
83038         * lib/vasnprintf.c: Remove trailing blanks.
83039
83040 2003-08-17  Simon Josefsson  <jas@extundo.com>
83041
83042         * modules/xstrndup: New file.
83043         * MODULES.html.sh (func_all_modules): Add xstrndup.
83044
83045 2003-08-17  Simon Josefsson  <jas@extundo.com>
83046
83047         * modules/argp: Fix autoconf macro name. Add more dependencies.
83048
83049 2003-08-17  Simon Josefsson  <jas@extundo.com>
83050
83051         * m4/xstrndup.m4: New file.
83052
83053 2003-08-17  Simon Josefsson  <jas@extundo.com>
83054
83055         * m4/argp.m4: New file.
83056
83057 2003-08-17  Simon Josefsson  <jas@extundo.com>
83058             Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/xstrndup.h: New file.
83061         * lib/xstrndup.c: New file.
83062
83063 2003-08-17  Bruno Haible  <bruno@clisp.org>
83064
83065         * modules/strndup (Files, Include): Add lib/strndup.h.
83066
83067 2003-08-17  Bruno Haible  <bruno@clisp.org>
83068
83069         * modules/euidaccess (Files): Add lib/euidaccess.h.
83070
83071 2003-08-17  Bruno Haible  <bruno@clisp.org>
83072
83073         * lib/strndup.h: New file.
83074
83075 2003-08-17  Bruno Haible  <bruno@clisp.org>
83076
83077         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83078         like AC_GNU_SOURCE.
83079         * modules/extensions (configure.ac): Comment out the invocation of
83080         gl_USE_SYSTEM_EXTENSIONS.
83081
83082 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83083
83084         Merges from coreutils, etc.
83085         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83086         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83087         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83088         fixing a typo.
83089         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83090         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83091
83092 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83093
83094         Document merge from coreutils.
83095         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83096         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83097         * modules/utime: Add m4/utimes-null.m4.
83098
83099 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83100
83101         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83102         space, undoing this 2003-08-12 change:
83103         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83104
83105 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83106
83107         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83108         strtoul.c from libc, undoing this 2003-08-12 change:
83109         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83110
83111 2003-08-16  Jim Meyering  <jim@meyering.net>
83112
83113         Merges from coreutils.
83114         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83115         prefix.  Adjust cache variables similarly.  Create 500 rather than
83116         just 300 files, to exercise bug on Darwin6.5, too.
83117         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83118         $missing_dir.
83119         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83120         AM_SYS_POSIX_TERMIOS.
83121         Reported by mkc@mathdogs.com.
83122         Also change use of $am_cv_sys_posix_termios
83123         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83124         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83125         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83126         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83127         in /proc/mounts until it finds one with matching device number.  This
83128         is unnecessary when the FILE argument *is* a mount point.  No stat call
83129         is necessary in that case.  So, disable the statvfs-testing code on
83130         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83131         as RedHat bug# 84846.
83132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83133         to 1MB, so as not to render systems with no stack size limit (e.g.,
83134         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83135         Include <unistd.h>.  On some systems,
83136         it is required for the definition of _SC_PAGESIZE.
83137
83138 2003-08-16  Jim Meyering  <jim@meyering.net>
83139
83140         Merge from coreutils.
83141         * lib/xstrtoimax.c: #else #if -> #elif.
83142         * lib/xstrtoumax.c: Likewise.
83143
83144 2003-08-16  Jim Meyering  <jim@meyering.net>
83145
83146         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83147         * m4/utimes.m4: Removed.
83148         * m4/utimes-null.m4: Renamed from utimes.m4.
83149
83150         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83151         to 1MB, so as not to render systems with no stack size limit (e.g.,
83152         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83153         Include <unistd.h>.  On some systems,
83154         it is required for the definition of _SC_PAGESIZE.
83155
83156 2003-08-16  Jim Meyering  <jim@meyering.net>
83157         and Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         Merges from coreutils, etc.
83160
83161         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83162         using the latest version from cvs.  This avoids problems with #line
83163         directives using a vendor (Sun) compiler.
83164         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83165         Don't set GETGROUPS_LIB here; now it's
83166         done via getgroups.m4's wrapper function.
83167         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83168         rather than just in sh-util/configure.in, so that the
83169         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83170         same.
83171         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83172         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83173         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83174         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83175         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83176         Remove code that is now done by the newly-required macros.
83177         Append $(EXEEXT) to DF_PROG.
83178         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83179         Do not invoke or require the following here,
83180         since prereq.m4 or some gnulib .m4 now does this for us:
83181         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83182         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83183         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83184         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83185         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83186         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83187         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83188         AC_FUNC_OBSTACK.
83189         Do not replace the following functions, as this is now the job
83190         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83191         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83192         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83193         atexit getpass, strdup, getpagesize.
83194         Replace 'raise'.
83195         Do not check for the following functions, as this is now the job
83196         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83197         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83198         setregid.
83199         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83200         Check for sys/sysctl.h.
83201         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83202         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83203         of checking for ssize_t ourselves.
83204
83205         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83206         Require every macro that gnulib/modules/* suggests for us.
83207         (jm_PREREQ_ADDEXT): New macro.
83208         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83209         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83210
83211         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83212         (gl_PHYSMEM): Use it.
83213         Also check for `table' function.
83214         Check for new headers and functions.
83215         Add check for sys/sysmp.h.
83216         With suggestions from Kaveh Ghazi.
83217         Ignore headers that are present but cannot be compiled.  This
83218         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83219         C 5.4.
83220
83221 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83222
83223         Document merge from coreutils.
83224         * modules/userspec: Depend on posixver.
83225         * modules/strftime: Depend on tzset.
83226
83227 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83228
83229         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83230         rather than tab, after '#' in shell-script copyright notices.
83231         Suggested by Bruno Haible.
83232
83233 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83234
83235         * config/srclist-update: Use three spaces, rather than tab, after '#'
83236         in shell-script copyright notices.  Suggested by Bruno Haible.
83237         Remove unnecessary parenthesization in regular expression.
83238
83239 2003-08-15  Jim Meyering  <jim@meyering.net>
83240
83241         Merge from coreutils.
83242         * lib/xgethostname.c: Include <stdlib.h>.
83243         (xghostname): Don't exit for anything other than memory-related
83244         failure; just return NULL.
83245         * lib/userspec.c: Include "posixver.h".
83246         (parse_user_spec): Accept `.' as a separator only
83247         in pre-POSIX-200112 mode.
83248         * lib/strtoimax.c: Use #elif rather than #else #if.
83249         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83250         Remove function, now that we can rely on a working tzset function.
83251         [!_LIBC]: Ensure that the required autoconf test has been run.
83252         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83253         Use underlying_strftime for %r.
83254         * lib/sha.c: Merge in some clean-up and optimization changes from
83255         glibc.
83256         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83257         Ensure that it is a multiple of 64.
83258         Rearrange loop exit tests so as to avoid performing an
83259         additional fread after encountering an error or EOF.
83260         * lib/realloc.c: Update copyright date.
83261
83262 2003-08-15  Jim Meyering  <jim@meyering.net>
83263         and Paul Eggert  <eggert@twinsun.com>
83264
83265         Merge from coreutils.
83266         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83267         member but strut utmpx does not.  Needed for AIX 4.3.3.
83268         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83269
83270 2003-08-15  Jim Meyering  <jim@meyering.net>
83271         and Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         Merges from coreutils, etc.
83274         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83275         Require gl_FUNC_TZSET_CLOBBER.
83276         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83277         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83278         members.
83279
83280 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83281
83282         Help the merge from coreutils.
83283         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83284         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83285         * m4/tzset.m4: Use it too.
83286
83287 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83288
83289         * modules/tzset: New file.
83290
83291 2003-08-14  Jim Meyering  <jim@meyering.net>
83292
83293         Merges from coreutils.
83294         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83295         variable names, rather than @FNMATCH_H@.
83296         * modules/alloca: Likewise for $(ALLOCA_H).
83297
83298         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83299         the three copies of the literal target, `fnmatch.h'.
83300         * modules/alloca (alloca.h): Likewise.
83301
83302 2003-08-14  Jim Meyering  <jim@meyering.net>
83303
83304         Merge from coreutils.
83305         * m4/tzset.m4: New file.
83306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83307         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83308         otherwise, AIX 5.1 systems would end up using the latter.
83309         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83310         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83311         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83312         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83313
83314 2003-08-14  Jim Meyering  <jim@meyering.net>
83315
83316         Merge from coreutils.
83317         * lib/obstack.h: Whitespace changes.
83318         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83319         and xcalloc return values.
83320         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83321         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83322         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83323         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83324         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83325         error from mntctl.
83326         Use mntctl's return value to drive the entry-processing loop, since
83327         we can't rely on the value of the vmt_length member in the last
83328         entry.  On some systems doing so could result in exhausting
83329         virtual memory.  Based in part on a patch from Mike Jetzer.
83330
83331 2003-08-14  Jim Meyering  <jim@meyering.net>
83332         and Paul Eggert  <eggert@twinsun.com>
83333
83334         Merges from coreutils, plus other fixes.
83335         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83336         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83337         for credits and details.  Thanks to Kaveh Ghazi for helping
83338         to keep these files in sync.
83339         (ARRAY_SIZE): Define it.
83340         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83341         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83342         (memcasecmp): Don't assume size_t fits in unsigned int.
83343         Remove casts and duplicate code.
83344         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83345         (memcpy): Remove definition.
83346         Merge in some clean-up and optimization changes from glibc.
83347         [BLOCKSIZE]: Move definition to top of file.
83348         Ensure that it is a multiple of 64.
83349         Rearrange loop exit tests so as to avoid performing an
83350         additional fread after encountering an error or EOF.
83351         * lib/md5.h (md5_uintptr): Define.
83352         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83353         return to the initial working directory.  Preserve errno
83354         for caller.
83355         * lib/idcache.c: Include "xalloc.h".
83356         (xmalloc, xrealloc): Remove decls.
83357         (getuser): Remove casts no longer required in C89.
83358         * lib/human.c: Include stdio.h, for sprintf.
83359         * lib/group-member.c: Include "xalloc.h".
83360         (xmalloc, xrealloc): Remove decls.
83361         (get_group_info): Remove casts no longer required in C89.
83362         * lib/getusershell.c (readname): Remove casts no longer required in
83363         C89.
83364         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83365         * lib/getline.c: Whitespace fix, from coreutils.
83366
83367 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83368
83369         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83370         Check for isascii.
83371
83372         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83373         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83374         Undo previous (whitespace-only) change.
83375
83376 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83377
83378         * lib/exclude.c: Include <ctype.h>
83379         (IN_CTYPE_DOMAIN): New macro.
83380         (is_space): New fn.
83381         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83382         and empty lines.
83383
83384         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83385         Undo previous (whitespace-only) change.
83386
83387 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83388
83389         * config/srclist-update: Change update back to the old behavior,
83390         leaving whitespace alone.  Use one 'sed' command rather than a
83391         pipeline.
83392         (fixlicense): Now a variable, not a function.
83393         (remove_trailing_blanks): Remove.
83394         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83395         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83396         Undo previous (whitespace-only) change.
83397
83398 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83399
83400         Merge from coreutils.
83401         * modules/euidaccess: Add lib_SOURCES, include for new
83402         file euidaccess.h
83403
83404 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83405
83406         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83407         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83408         Normalize leading white space and remove trailing white space.
83409
83410         Merge from coreutils
83411         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83412
83413         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83414         0.12.1.  These files are now being upgraded automatically by
83415         ../config/srclist-update.
83416
83417 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83418
83419         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83420         Normalize leading white space and remove trailing white space.
83421         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83422         notice, as per ../config/srclist-update.
83423
83424         Merge from coreutils.
83425         * lib/euidaccess.h: New file.
83426         * lib/euidaccess.c: Include it.
83427         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83428         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83429         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83430
83431 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83432
83433         * config/srclist-update: Add copyright notice.
83434         (remove_id_lines, remove_trailing_blanks): New constants.
83435         (fixfile): Use them to normalize spacing a bit in copied files.
83436         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83437         Normalize leading white space and remove trailing white space.
83438
83439         * config/texinfo.tex: Sync with texinfo.
83440
83441         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83442         strtoul.c from libc, to merge coreutils whitespace changes.
83443
83444         * config/srclist.txt: Get the following m4 files from gettext:
83445         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83446         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83447         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83448         wint_t.m4.
83449
83450 2003-08-12  Karl Berry  <karl@gnu.org>
83451
83452         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83453         been made.
83454
83455 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83456
83457         * modules/gnu-source, m4/gnu-source.m4:
83458         Remove; we're assuming Autoconf 2.54 or later now.
83459         Suggested by Bruno Haible.
83460         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83461
83462 2003-08-11  Bruno Haible  <bruno@clisp.org>
83463
83464         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83465
83466 2003-08-11  Bruno Haible  <bruno@clisp.org>
83467
83468         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83469         (vasnprintf): Use it instead of wcslen.
83470
83471 2003-08-11  Bruno Haible  <bruno@clisp.org>
83472
83473         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83474         value to ensure that _Bool promotes to int. Use #define for _Bool when
83475         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83476
83477 2003-08-10  Karl Berry  <karl@gnu.org>
83478
83479         * lib/regex.h: update from libc (whitespace fix).
83480
83481 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83482
83483         Merge some files from coreutils.  These changes were
83484         originally made by Jim Meyering.
83485         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83486         many older Unixes require this.
83487         * lib/alloca.c (alloca): Remove cast to argument of free;
83488         no longer needed in C89.
83489         * lib/alloca_.h, regex.h: Fix white space to match
83490         what GNU indent does.
83491
83492 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83493
83494         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83495         apparently Emacs's Unicode mode got confused before my 2003-08-05
83496         checkin.
83497
83498 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83499
83500         * m4/extensions.m4: New file.
83501         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83502         Require gl_USE_SYSTEM_EXTENSIONS.
83503         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83504         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83505
83506 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83507
83508         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83509         * modules/extensions, modules/gnu-source: New files.
83510         * modules/timespec, modules/unlocked-io: Depend on extensions.
83511
83512 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83513
83514         * modules/restrict: New file.
83515         * MODULES.html.sh (func_all_modules): Add restrict.
83516         * modules/regex: Depend on restrict.
83517
83518 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83519
83520         * m4/restrict.m4: New file.
83521         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83522
83523 2003-08-07  Bruno Haible  <bruno@clisp.org>
83524
83525         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83526         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83527
83528 2003-08-07  Bruno Haible  <bruno@clisp.org>
83529
83530         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83531         makes the module 'getndelim2' compatible with the module 'getline'.
83532
83533 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83534
83535         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83536         byte with "\201" to avoid glitches when editing that source file
83537         with multi-gnome-terminal.
83538
83539 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83540
83541         * lib/bumpalloc.h: Remove.
83542
83543 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83544
83545         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83546         * modules/bumpalloc: Remove.
83547
83548 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83549
83550         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83551         GNU coding style.
83552
83553         Merge from coreutils.
83554         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83555         1. From glibc.
83556         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83557         from Karl Berry, implemented by Jim Meyering.
83558         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83559         from Dmitry V. Levin.
83560         Remove anachronistic cast of xrealloc.
83561         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83562         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83563         type. Otherwise, it wouldn't compile with at least /bin/cc on
83564         ymp-cray-unicos9.0.2.X.
83565         Combine two mostly-identical uses of alloca into one.
83566         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83567
83568 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83569
83570         [From Emacs.]
83571
83572         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83573         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83574         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83575         obsolete NLIST_NAME_UNION.
83576         [__GNU__]: Undef BSD and FSCALE.
83577         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83578
83579 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83580
83581         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83582         an enum type, so that it's guaranteed to promote to int.  See:
83583         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83584
83585 2003-08-03  Karl Berry  <karl@gnu.org>
83586
83587         * config/depcomp: update from automake.
83588
83589 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83590
83591         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83592         (strerror): Don't assume that a printable int fits in 14 bytes.
83593
83594 2003-07-31  Bruno Haible  <bruno@clisp.org>
83595
83596         * modules/getpass-gnu: New file.
83597         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83598
83599 2003-07-31  Bruno Haible  <bruno@clisp.org>
83600
83601         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83602
83603 2003-07-24  Karl Berry  <karl@gnu.org>
83604
83605         * config/missing: update from automake.
83606
83607 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83608             Bruno Haible  <bruno@clisp.org>
83609
83610         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83611         * lib/getline.c (getline, getdelim): Likewise.
83612         Remove _GNU_SOURCE define; now it's defined in config.h through
83613         m4/getline.m4.
83614
83615 2003-07-23  Karl Berry  <karl@gnu.org>
83616
83617         * config/config.sub: update from prep.
83618
83619 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83620
83621         * modules/xalloc (Depends-on): Add exitfail.
83622         * modules/xmemcoll: Likewise.
83623
83624 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83625
83626         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83627         over-parenthesization in macros.
83628
83629         Sync with coreutils.
83630
83631         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83632         required by C99.
83633
83634         Use `exit_failure' for xalloc and xmemcoll instead of their own
83635         private exit-failure variables.
83636         * lib/xalloc.h (xalloc_exit_failure): Remove.
83637         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83638         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83639         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83640         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83641         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83642
83643 2003-07-20  Jim Meyering  <jim@meyering.net>
83644
83645         * modules/closeout (Depends-on): Add exitfail.
83646         Suggestion from Bruno Haible.
83647
83648 2003-07-19  Karl Berry  <karl@gnu.org>
83649
83650         * config/config.sub: update from prep.
83651
83652 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83653
83654         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83655         Remove.
83656         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83657         to test that it can stand by itself.  Include "exitfail.h".
83658         Clients should set exit_failure instead.
83659         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83660
83661 2003-07-18  Bruno Haible  <bruno@clisp.org>
83662
83663         * modules/getndelim2: New file.
83664         * modules/getline: Share files with module getndelim2.
83665         * modules/getnline: Depend on getndelim2 instead of sharing files with
83666         it. Add getnline.c to lib_SOURCES.
83667         * MODULES.html.sh (func_all_modules): Add getndelim2.
83668
83669 2003-07-18  Bruno Haible  <bruno@clisp.org>
83670
83671         * m4/getndelim2.m4: New file.
83672         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83673         invoke gl_PREREQ_GETNDELIM2.
83674         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83675         gl_PREREQ_GETNDELIM2.
83676         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83677         gl_GETNDELIM2.
83678
83679 2003-07-18  Bruno Haible  <bruno@clisp.org>
83680
83681         * lib/getndelim2.h: New file.
83682         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83683         getndelim2.h.
83684         (getndelim2): Make non-static. Change return type to ssize_t.
83685         * lib/getline.h: Change argument names.
83686         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83687         * lib/getnline.c: Include getndelim2.h.
83688
83689 2003-07-18  Andreas Schwab  <schwab@suse.de>
83690
83691         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83692
83693 2003-07-17  Karl Berry  <karl@gnu.org>
83694
83695         * config/config.sub: update from prep.
83696
83697 2003-07-17  Bruno Haible  <bruno@clisp.org>
83698
83699         * modules/getnline: New file.
83700         * modules/getline: Add lib/getndelim2.c to source file list.
83701         * MODULES.html.sh (func_all_modules): Add getnline.
83702
83703 2003-07-17  Bruno Haible  <bruno@clisp.org>
83704
83705         * m4/getnline.m4: New file.
83706
83707 2003-07-17  Bruno Haible  <bruno@clisp.org>
83708
83709         * m4/Makefile.am.in: Remove file.
83710         * m4/Makefile.am: Remove file.
83711         * m4/Makefile.in: Remove file.
83712
83713 2003-07-17  Bruno Haible  <bruno@clisp.org>
83714
83715         * lib/getnline.h: New file.
83716         * lib/getnline.c: New file.
83717         * lib/getndelim2.c: New file, extracted from getline.c.
83718         (getndelim2): Renamed from getdelim2, with added nmax argument.
83719         * lib/getline.c: Include getndelim2.c.
83720         (getdelim2): Moved out to getndelim2.c.
83721         (getline, getdelim): Update.
83722
83723 2003-07-17  Bruno Haible  <bruno@clisp.org>
83724
83725         * lib/Makefile.am: Remove file.
83726         * lib/Makefile.in: Remove file.
83727
83728 2003-07-17  Bruno Haible  <bruno@clisp.org>
83729
83730         * configure.in: Remove file.
83731         * Makefile.in: Remove file.
83732
83733 2003-07-17  Bruno Haible  <bruno@clisp.org>
83734
83735         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83736
83737 2003-07-16  Karl Berry  <karl@gnu.org>
83738
83739         * config/srclist-update: was running fixlicense twice, which caused
83740                 texinfo.tex to be nullified for some reason.  Simplify,
83741                 $gplsrc is no longer needed as far as I can see?
83742
83743 2003-07-16  Jim Meyering  <jim@meyering.net>
83744
83745         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83746
83747 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83748
83749         * config/srclist.txt: Get the following files from gettext-runtime/intl
83750         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83751         ref-del.sin.  From Bruno Haible.
83752         * config/srclist-update (fixfile): Change grep pattern again, since the
83753         previous fix didn't work (there was another trailing $).  Use
83754         '[$]' to escape the $s.
83755
83756 2003-07-15  Karl Berry  <karl@gnu.org>
83757
83758         * lib/vasnprintf.c: update from gettext.
83759
83760 2003-07-15  Karl Berry  <karl@gnu.org>
83761
83762         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83763         gets expanded when surrounded by '$'.
83764
83765 2003-07-15  Jim Meyering  <jim@meyering.net>
83766
83767         * modules/save-cwd: Don't depend on error.  From Derek Price.
83768
83769 2003-07-15  Jim Meyering  <jim@meyering.net>
83770
83771         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83772
83773 2003-07-14  Simon Josefsson  <jas@extundo.com>
83774
83775         * modules/mempcpy: New file.
83776         * MODULES.html.sh (func_all_modules): Add mempcpy.
83777
83778 2003-07-14  Simon Josefsson  <jas@extundo.com>
83779
83780         * m4/mempcpy.m4: New file.
83781
83782 2003-07-14  Simon Josefsson  <jas@extundo.com>
83783
83784         * lib/mempcpy.h: New file.
83785         * lib/mempcpy.c: New file.
83786
83787 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83788
83789         * modules/getdate, modules/posixtm: Depend on mktime.
83790
83791 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83792
83793         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83794         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83795         unicodeio.c, unicodeio.h, unlocked-io.h:
83796         Switch from LGPL to GPL.
83797
83798 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83799
83800         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83801         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83802         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83803         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83804         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83805         updated automatically by ../config/srclist-update.  This changes
83806         their license from LPGL to GPL.
83807
83808 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83809
83810         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83811         assumed to refer to the root of the most recent stable gettext version.
83812         * config/srclistvars.sh: Add defaults for eggert.
83813         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83814         Match "This program" as well as "The program".  This is needed
83815         for gettext.
83816
83817 2003-07-14  Jim Meyering  <jim@meyering.net>
83818
83819         Don't emit diagnostics.  Let callers do that.
83820         * lib/save-cwd.c: Don't include "error.h".
83821         (save_cwd): Don't call error.  Ensure that errno is valid
83822         when returning nonzero.
83823
83824         * lib/save-cwd.h (restore_cwd): Update prototype.
83825         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83826         Simplify.  Don't call error upon failure.  Let callers do that.
83827         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83828         when auditing is enabled.  But don't bother updating the #if.
83829
83830 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83831
83832         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83833         it breaks C++ compilation.
83834         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83835
83836 2003-07-10  Simon Josefsson  <jas@extundo.com>
83837
83838         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83839
83840 2003-07-10  Jim Meyering  <jim@meyering.net>
83841
83842         * m4/clock_time.m4: Remove trailing blank.
83843         * m4/intmax_t.m4: Likewise.
83844
83845 2003-07-10  Jim Meyering  <jim@meyering.net>
83846
83847         * lib/vasnprintf.c: Remove trailing blanks.
83848         Make cpp indentation consistent.
83849
83850 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83851
83852         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83853         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83854         Switch from LGPL to GPL.
83855
83856 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83857
83858         * config/srclist.txt: Sort sublists.  Add
83859         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83860         that differ from gnulib for one reason or another; we'd like this list
83861         to be smaller but for now let's document what we have.
83862
83863 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83864
83865         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83866         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83867         and sweeter "eval x=$x".
83868         * config/srclist.txt: Get lib/argp* from glibc.
83869
83870 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83871
83872         * lib/mktime.c: Fix some boundary cases and remove need for floating
83873         point.
83874
83875         Issue a compile-time diagnostic if time_t is floating point, or if
83876         two's complement arithmetic is not in effect, or if arithmetic
83877         right shift does not propagate the sign.  These assumptions were
83878         all in the original code but they weren't checked.
83879
83880         (TIME_T_MIDPOINT, verify): New macros.
83881         (__isleap): Remove; it has integer overflow problems.
83882         (leapyear): New function, without those problems.
83883         (ydhms_tm_diff): Remove; splitting into two parts.
83884         (ydhms_diff): New function, containing the arithmetic part of
83885         the old ydhms_tm_diff function.  Issue a compile-time
83886         diagnostic if we are not using C99 integer division.
83887         Avoid casts when possible.
83888         (guess_time_tm): New function, containing the checking part of
83889         the old ydhms_tm_diff function.  Return the new value, rather than
83890         the difference between it and the old.  Accept a new argument T
83891         so that *T specifies the old value.  Check for overflow in the result.
83892
83893         (__mktime_internal): Use a time_t offset, not a long int offset.
83894         This undoes the 2003-06-04 change, which is no longer needed now
83895         that we have better overflow checking.
83896         (localtime_offset): Likewise.
83897
83898         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83899         and long are 64-bit but int is only 32-bit.
83900         (ydhms_diff): Use long int to store year1 and yday1.
83901         Issue a compile-time diagnostic if long int is not wide enough.
83902
83903         (__mktime_internal): Use long int to store adjusted year and yday.
83904         Use plain C rather than preprocessor commands, if that doesn't
83905         affect efficiency.
83906         Check for overflow (and try to repair) after each probe
83907         rather than checking only at the very end.  This avoids some bugs
83908         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83909         does not equal GMT offset at maximum time).
83910         Use integer to check for overflow rather than floating point; this
83911         is more portable to non-IEEE hosts, and is a tad faster.
83912         When we detect that we are oscillating between two values,
83913         don't check whether tm_isdst has the requested value, since
83914         we already know the answer.  When tm_isdst has the wrong value,
83915         use a different heuristic to find the right one, based on the
83916         extreme values actually observed in practice in tz2003a,
83917         rather than the (overly optimistic) "previous 3 calendar quarters".
83918
83919         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83920         "T const" to accommodate glibc style.
83921         (check_result): Use less-confusing report format.  "long" -> "long int.
83922         (main): Likewise.
83923         Don't loop if the iteration overflows time_t.
83924         Allow a negative step in the iteration.
83925
83926 2003-07-06  Karl Berry  <karl@gnu.org>
83927
83928         * config/depcomp: update from automake.
83929         * config/config.sub: update from prep.
83930
83931 2003-07-03  Karl Berry  <karl@gnu.org>
83932
83933         * config/config.guess: update from prep.
83934
83935 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83936
83937         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83938         xreadlink.c now includes it unconditionally.
83939
83940 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83941
83942         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83943         having it depend on HAVE_SYS_TYPES_H.
83944
83945 2003-07-01  Bruno Haible  <bruno@clisp.org>
83946
83947         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83948         <sys/types.h> should be sufficient.
83949         Reported by Paul Eggert.
83950
83951 2003-06-26  Karl Berry  <karl@gnu.org>
83952
83953         * config/depcomp: update from automake.
83954
83955 2003-06-26  Bruno Haible  <bruno@clisp.org>
83956
83957         * modules/human: Depend on module stdbool.
83958
83959 2003-06-25  Bruno Haible  <bruno@clisp.org>
83960
83961         * modules/readlink: New file.
83962         * modules/xreadlink: Depend on it.
83963         * MODULES.html.sh (func_all_modules): Add readlink.
83964
83965 2003-06-25  Bruno Haible  <bruno@clisp.org>
83966
83967         * m4/readlink.m4: New file.
83968
83969 2003-06-25  Bruno Haible  <bruno@clisp.org>
83970
83971         * lib/readlink.c: New file.
83972
83973 2003-06-22  Karl Berry  <karl@gnu.org>
83974
83975         * config/srclist.txt: update mkinstalldirs from automake.
83976         * config/mkinstalldirs: update.
83977
83978 2003-06-22  Bruno Haible  <bruno@clisp.org>
83979
83980         Portability to mingw32.
83981         * m4/ssize_t.m4: New file, from GNU gettext.
83982         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83983         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83984
83985 2003-06-22  Bruno Haible  <bruno@clisp.org>
83986
83987         * modules/safe-read: Add m4/ssize_t.m4.
83988         * modules/xreadlink: Add m4/ssize_t.m4.
83989
83990 2003-06-20  Bruno Haible  <bruno@clisp.org>
83991
83992         Assume C89, so PARAMS isn't needed.
83993         * lib/unicodeio.h (PARAMS): Remove.
83994         * lib/unicodeio.c: Don't use PARAMS.
83995
83996 2003-06-18  Karl Berry  <karl@gnu.org>
83997
83998         * config/config.{guess,sub}: update from prep.
83999
84000 2003-06-18  Jim Meyering  <jim@meyering.net>
84001
84002         Merge changes from coreutils.
84003         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84004         Remove explicit declarations of xmalloc and realloc.
84005         Include xalloc.h.
84006         (read_utmp): Remove anachronistic cast of xmalloc.
84007
84008 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84009
84010         Assume C89, so PARAMS isn't needed.
84011         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84012         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84013         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84014         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84015         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84016         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84017         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84018         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84019         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84020         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84021         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84022         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84023         no longer needed. Anyway, config.h should always be included before any
84024         other file.
84025
84026 2003-06-11  Simon Josefsson  <jas@extundo.com>
84027
84028         * modules/sysexits: New file.
84029         * MODULES.html.sh (func_all_modules): Add sysexits.
84030
84031 2003-06-11  Simon Josefsson  <jas@extundo.com>
84032
84033         * lib/sysexit_.h: New file.
84034
84035 2003-06-11  Derek Price  <derek@ximbiot.com>
84036
84037         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84038         necessary.
84039
84040 2003-06-11  Bruno Haible  <bruno@clisp.org>
84041
84042         * m4/sysexits.m4: New file.
84043
84044 2003-06-10  Simon Josefsson  <jas@extundo.com>
84045
84046         * lib/argp.h: New file, from glibc.
84047         * lib/argp-ba.c: New file, from glibc.
84048         * lib/argp-eexst.c: New file, from glibc.
84049         * lib/argp-fmtstream.c: New file, from glibc.
84050         * lib/argp-fmtstream.h: New file, from glibc.
84051         * lib/argp-fs-xinl.c: New file, from glibc.
84052         * lib/argp-help.c: New file, from glibc.
84053         * lib/argp-namefrob.h: New file, from glibc.
84054         * lib/argp-parse.c: New file, from glibc.
84055         * lib/argp-pv.c: New file, from glibc.
84056         * lib/argp-pvh.c: New file, from glibc.
84057         * lib/argp-xinl.c: New file, from glibc.
84058
84059 2003-06-10  Simon Josefsson  <jas@extundo.com>
84060
84061         * modules/strchrnul: New file.
84062
84063 2003-06-10  Simon Josefsson  <jas@extundo.com>
84064
84065         * modules/argp: New file.
84066
84067 2003-06-10  Simon Josefsson  <jas@extundo.com>
84068
84069         * m4/strchrnul.m4: New file.
84070
84071 2003-06-10  Simon Josefsson  <jas@extundo.com>
84072
84073         * lib/strchrnul.h: New file.
84074         * lib/strchrnul.c: New file.
84075
84076 2003-06-10  Bruno Haible  <bruno@clisp.org>
84077
84078         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84079
84080 2003-06-07  Karl Berry  <karl@gnu.org>
84081
84082         * config/config.{guess,sub}: update from prep.
84083
84084 2003-06-07  Jim Meyering  <jim@meyering.net>
84085
84086         * modules/strtod: Use $(...) notation, not @...@ for
84087         AC_REPLACE'd variables.
84088         * modules/localcharset: Likewise.
84089
84090 2003-06-07  Jim Meyering  <jim@meyering.net>
84091
84092         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84093         in place of my name in the copyright comment.
84094         Remove definition and uses of __P.
84095
84096         From coreutils.
84097         * lib/stat.c: Don't declare xmalloc explicitly.
84098         Instead, include "xalloc.h".
84099         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84100         xrealloc, and xcalloc return values.
84101         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84102         Improve comment.
84103         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84104
84105 2003-06-07  Bruno Haible  <bruno@clisp.org>
84106
84107         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84108         avoid AC_CONFIG_LINKS.
84109         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84110         fnmatch.h, to avoid AC_CONFIG_LINKS.
84111         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84112
84113 2003-06-07  Bruno Haible  <bruno@clisp.org>
84114
84115         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84116         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84117         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84118         directory.
84119         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84120         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84121         directory.
84122
84123 2003-06-06  Jim Meyering  <jim@meyering.net>
84124
84125         Merge from coreutils.
84126         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84127         Consolidate declarations and initializations of *_base* locals.
84128
84129         Merge from coreutils.
84130         This avoids a core dump on systems without GNU putenv,
84131         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84132         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84133         (unsetenv): New static function, from GNU libc.
84134         (rpl_putenv): Use it.
84135
84136         * lib/modechange.c: Remove trailing blanks.
84137
84138         Merge from coreutils.
84139         * lib/fsusage.c: Remove declaration of statfs.
84140         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84141
84142         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84143
84144 2003-06-06  Jim Meyering  <jim@meyering.net>
84145
84146         * lib/stdbool_.h: Renamed from stdbool.h.in.
84147
84148 2003-06-06  Jim Meyering  <jim@meyering.net>
84149             Bruno Haible  <bruno@clisp.org>
84150
84151         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84152         Adjust Makefile.am snippet not to redirect directly to target.
84153         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84154
84155 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84156
84157         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84158         mismatch, look in future quarters as well as past.  This fixes a
84159         bug when processing fall-backwards gaps immediately after a long
84160         period of daylight-saving time.
84161
84162         * lib/mktime.c: Assume freestanding C89 or better.
84163         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84164         (__P): Remove; not used.
84165         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84166         (mktime, not_equal_tm, print_tm, check_result,
84167         main): Use prototypes.  Use const * where appropriate.
84168         (main): Fix typo in testing code that uncovered by above changes.
84169         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84170
84171 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84172
84173         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84174         locale.h, localeconv.  This merges changes from coreutils.
84175
84176         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84177         It can be removed after the next Autoconf is released.
84178         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84179         needed.
84180
84181 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84182
84183         * lib/mktime.c: Fix Debian bug 177940
84184         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84185         (localtime_offset): Now long int, not time_t, because we want it
84186         to be guaranteed to be signed.  All uses changed.
84187         (__mktime_internal): If overflow would occur when adding offset,
84188         don't add it.
84189
84190         Merge 'human' changes from coreutils.  Rewrite to support
84191         locale-specific notations like thousands separators.
84192         * lib/human.c: Simplify authorship notice.
84193         Include human.h immediately after config.h.
84194         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84195         <limits.h>: Do not include, since human.h does.
84196         (SIZE_MAX, UINTMAX_MAX): New macros.
84197         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84198         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84199         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84200         (power_letter): Renamed from suffixes.
84201         (generate_suffix_backwards): Remove.
84202         (adjust_value): Now takes int style (because of human.h changes)
84203         and long double value (for greater precision on some platforms).
84204         (group_number): New function.
84205         (human_readable): Use it.  Use integer options, not enum.
84206         Put the options before the sizes in the arg list.
84207         Support all the new options.
84208         The old human_readable function has been removed;
84209         use inttostr.h instead.
84210         (human_readable, default_block_size, humblock):
84211         Use uintmax_t, not int, for block sizes.
84212         (human_readable_inexact, block_size_types): Remove.
84213         (block_size_opts): New constant.
84214         (human_options): Renamed from human_block_size, with new signature
84215         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84216         * lib/human.h: Add copyright and authorship notice.
84217         Include <limits.h> and <stdbool.h> unconditionally.
84218         (PARAMS): Remove.  All uses removed.
84219         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84220         (enum human_inexact_style): Remove tag; now a nameless enum.
84221         (human_floor, human_ceiling, human_round_to_even): Now have
84222         values 2, 0, 1 rather than -1, 1, 0.
84223         (human_group_digits, human_suppress_point_zero, human_autoscale,
84224         human_base_1024, human_SI, human_B): New constants.
84225         (human_readable_inexact, human_block_size): Remove.
84226         (human_readable): Size args are now uintmax_t, not int.
84227         (human_options): New decl.
84228
84229         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84230         unnecessary now that we assume C89 or better.  This change
84231         imported from coreutils.
84232
84233         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84234         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84235         in the 2003-05-30 sync from glibc.
84236
84237         .h files should stand alone, but we shouldn't include <sys/types.h>
84238         if we can get away with just <stddef.h>.
84239
84240         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84241         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84242         rather than <sys/types.h>, as we merely need size_t.
84243         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84244         to get size_t.
84245         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84246         Include <stdio.h>, to get FILE.
84247         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84248         memcasecmp.h has included <stddef.h> and all we need is size_t.
84249         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84250         our interface, instead of including <sys/types.h>
84251
84252 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84253
84254         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84255         now, as glibc mktime is buggy on non-glibc systems.
84256
84257 2003-06-03  Karl Berry  <karl@gnu.org>
84258
84259         * config/config.sub: update from prep.
84260
84261 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84262
84263         [from coreutils]
84264         Fix some minor time-related bugs with POSIX time arguments.
84265         Some valid time stamps were being rejected (notably -1, and
84266         time stamps before 1900 on 64-bit hosts).  And some invalid
84267         time stamps were being accepted, e.g. September 31.
84268
84269         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84270         that we can return (time_t) -1 successfully.
84271         * lib/posixtm.c: Likewise.
84272         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84273         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84274         (t): Remove static var.
84275         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84276         of static var.  All uses changed.
84277         (year): Do not reject years before 1900; they can occur with
84278         64-bit time_t.
84279         (posix_time_parse): Do not check for out-of-range components;
84280         that is now the caller's responsibility, since our checks were
84281         only approximations.
84282         (posixtime): Use mktime to check for out-of-range components,
84283         since it knows them exactly.
84284         If mktime returns (time_t) -1, check whether an error actually occurred
84285         by invoking localtime on -1.
84286         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84287         posixtime failures better.
84288         Improve the test data (in comments only).
84289
84290 2003-06-02  Karl Berry  <karl@gnu.org>
84291
84292         * config/mkinstalldirs (version): new variable.
84293         (--version): new option.
84294         (usage): improve message.
84295
84296 2003-05-30  Karl Berry  <karl@gnu.org>
84297
84298         * lib/mktime.c: update from libc.
84299
84300 2003-05-30  Bruno Haible  <bruno@clisp.org>
84301
84302         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84303         * config/config.rpath: Upgrade to gettext-0.12.1.
84304
84305 2003-05-30  Bruno Haible  <bruno@clisp.org>
84306
84307         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84308         * m4/nls.m4: New file, from gettext-0.12.1.
84309         * m4/po.m4: New file, from gettext-0.12.1.
84310         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84311
84312 2003-05-30  Bruno Haible  <bruno@clisp.org>
84313
84314         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84315         * lib/localcharset.h: Likewise.
84316         * lib/localcharset.c: Likewise.
84317
84318 2003-05-29  Karl Berry  <karl@gnu.org>
84319
84320         * config/config.rpath: update from gettext.
84321
84322 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84323
84324         Assume the headers required for C89 freestanding compilers.
84325         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84326         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84327         * m4/human.m4 (gl_HUMAN): Likewise.
84328         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84329         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84330         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84331         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84332         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84333         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84334
84335 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84336
84337         Assume the headers required for C89 freestanding compilers.
84338         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84339         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84340         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84341         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84342         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84343         define, since <limits.h> is guaranteed to do that.
84344         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84345         * lib/exclude.c: Include <stdbool.h> unconditionally.
84346         * lib/tempname.c: Include <stddef.h> unconditionally.
84347         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84348         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84349         <stddef.h> does that.
84350         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84351         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84352         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84353         needed.
84354         * lib/xstrtol.c: Likewise.
84355         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84356         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84357
84358         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84359         warnings on some platforms.
84360
84361         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84362         arbitrarily.
84363
84364 2003-05-26  Jim Meyering  <jim@meyering.net>
84365
84366         Merge in a change from coreutils:
84367         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84368         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84369         that condition, rather than `-1' which is slightly misleading.
84370         Change the name of the cache variable to have the gl_ prefix.
84371         Prompted by a patch from Richard Dawe for DJGPP.
84372
84373 2003-05-24  Karl Berry  <karl@gnu.org>
84374
84375         * config/config.guess: update from prep.
84376
84377 2003-05-22  Karl Berry  <karl@gnu.org>
84378
84379         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84380
84381 2003-05-20  Karl Berry  <karl@gnu.org>
84382
84383         * config/config.guess: update from prep.
84384
84385 2003-05-18  Karl Berry  <karl@gnu.org>
84386
84387         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84388         might actually be set by the user.
84389
84390         * config/depcomp, install-sh, mdate-sh: update from automake.
84391
84392 2003-05-17  Bruno Haible  <bruno@clisp.org>
84393
84394         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84395         invalid expansion for AC_EGREP_CPP.
84396         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84397         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84398         Suggested by Akim Demaille <akim@epita.fr> in
84399         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84400
84401 2003-05-12  Jim Meyering  <jim@meyering.net>
84402
84403         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84404         the space-padded-by-default conversion specifiers, %e, %k, %l.
84405
84406 2003-05-12  Bruno Haible  <bruno@clisp.org>
84407
84408         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84409         the string is longer than 4 KB.
84410
84411 2003-05-11  Karl Berry  <karl@gnu.org>
84412
84413         * config/config.{guess,sub}: update from prep.
84414
84415 2003-05-09  Bruno Haible  <bruno@clisp.org>
84416
84417         * modules/error: Add m4/strerror_r.m4 to file list.
84418
84419 2003-05-03  Bruno Haible  <bruno@clisp.org>
84420
84421         Upgrade to Unicode-4.0.
84422         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84423         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84424         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84425         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84426         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84427         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84428         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84429         Change width of U+E0100..U+E01EF from 1 to 0.
84430
84431 2003-04-25  Jim Meyering  <jim@meyering.net>
84432
84433         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84434         of type size_t, not int.
84435
84436 2003-04-25  Bruno Haible  <bruno@clisp.org>
84437
84438         * lib/copy-file.c: Include <stddef.h>, for size_t.
84439
84440 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84441
84442         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84443         code which expansion is under static control.  Patch imported from
84444         Akim Demaille's patch to Bison; see
84445         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84446
84447 2003-04-14  Bruno Haible  <bruno@clisp.org>
84448
84449         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84450
84451 2003-04-11  Jim Meyering  <jim@meyering.net>
84452
84453         Merge changes from Coreutils.
84454
84455         2003-03-22  Jim Meyering  <jim@meyering.net>
84456
84457         * lib/strftime.c (widen): Cast alloca return value to proper type.
84458
84459         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84460
84461         From GNU libc.
84462         * lib/strftime.c (my_strftime): Handle very large width
84463         specifications for numeric values correctly.  Improve checks for
84464         overflow.
84465
84466         2003-01-19  Jim Meyering  <jim@meyering.net>
84467
84468         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84469         definitions.
84470         (nl_get_alt_digit) [! defined my_strftime]: Define.
84471         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84472         _nl_get_alt_digit and _nl_get_walt_digit.
84473
84474         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84475         libc. These changes have no effect outside of _LIBC.
84476
84477 2003-04-10  Bruno Haible  <bruno@clisp.org>
84478
84479         * modules/findprog: New file.
84480         * MODULES.html.sh (func_all_modules): Add it.
84481
84482 2003-04-10  Bruno Haible  <bruno@clisp.org>
84483
84484         * m4/findprog.m4: New file.
84485         * m4/eaccess.m4: New file.
84486
84487 2003-04-10  Bruno Haible  <bruno@clisp.org>
84488
84489         * lib/findprog.h: New file, from GNU gettext.
84490         * lib/findprog.c: New file, from GNU gettext.
84491
84492 2003-04-05  Jim Meyering  <jim@meyering.net>
84493
84494         Merge changes from Coreutils.
84495
84496         * lib/exclude.h (PARAMS): Remove definition and uses.
84497         * lib/exclude.c: Remove uses of `PARAMS'.
84498
84499         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84500         Add test-cases for DOS filenames. Declare program_name.
84501         (main): Set up program_name.  Patch by Rich Dawe.
84502
84503         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84504         error from mntctl.
84505         Use mntctl's return value to drive the entry-processing loop, since
84506         we can't rely on the value of the vmt_length member in the last
84507         entry.  On some systems doing so could result in exhausting
84508         virtual memory.  Based in part on a patch from Mike Jetzer.
84509
84510 2003-04-04  Bruno Haible  <bruno@clisp.org>
84511
84512         * modules/linebreak: New file.
84513         * MODULES.html.sh (func_all_modules): Add it.
84514
84515 2003-04-04  Bruno Haible  <bruno@clisp.org>
84516
84517         * m4/linebreak.m4: New file.
84518
84519 2003-04-04  Bruno Haible  <bruno@clisp.org>
84520
84521         * lib/linebreak.h: New file, from GNU gettext.
84522         * lib/linebreak.c: New file, from GNU gettext with slight
84523         modifications.
84524         * lib/lbrkprop.h: New file, from GNU gettext.
84525
84526 2003-04-03  Bruno Haible  <bruno@clisp.org>
84527
84528         * modules/utf8-ucs4: New file.
84529         * modules/utf16-ucs4: New file.
84530         * modules/ucs4-utf8: New file.
84531         * modules/ucs4-utf16: New file.
84532         * MODULES.html.sh (func_all_modules): Add them.
84533
84534 2003-04-03  Bruno Haible  <bruno@clisp.org>
84535
84536         * m4/utf-ucs4.m4: New file.
84537         * m4/ucs4-utf.m4: New file.
84538
84539 2003-04-03  Bruno Haible  <bruno@clisp.org>
84540
84541         * lib/utf8-ucs4.h: New file, from GNU gettext.
84542         * lib/utf16-ucs4.h: New file, from GNU gettext.
84543         * lib/ucs4-utf8.h: New file, from GNU gettext.
84544         * lib/ucs4-utf16.h: New file, from GNU gettext.
84545
84546 2003-04-02  Bruno Haible  <bruno@clisp.org>
84547
84548         * modules/binary-io: New file.
84549         * MODULES.html.sh (func_all_modules): Add it.
84550
84551 2003-04-02  Bruno Haible  <bruno@clisp.org>
84552
84553         * lib/binary-io.h: New file, from GNU gettext.
84554
84555 2003-04-01  Bruno Haible  <bruno@clisp.org>
84556
84557         * modules/pathname: New file.
84558         * MODULES.html.sh (func_all_modules): Add it.
84559
84560 2003-04-01  Bruno Haible  <bruno@clisp.org>
84561
84562         * lib/pathname.h: New file, from GNU gettext.
84563         * lib/concatpath.c: New file, from GNU gettext.
84564
84565 2003-03-30  Bruno Haible  <bruno@clisp.org>
84566
84567         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84568
84569 2003-03-30  Bruno Haible  <bruno@clisp.org>
84570
84571         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84572         function chown() doesn't exist.
84573
84574 2003-03-28  Bruno Haible  <bruno@clisp.org>
84575
84576         * modules/copy-file: New file.
84577         * MODULES.html.sh (func_all_modules): Add it.
84578
84579 2003-03-28  Bruno Haible  <bruno@clisp.org>
84580
84581         * m4/copy-file.m4: New file.
84582
84583 2003-03-28  Bruno Haible  <bruno@clisp.org>
84584
84585         * lib/copy-file.h: New file, from GNU gettext.
84586         * lib/copy-file.c: New file, from GNU gettext.
84587
84588 2003-03-18  Jim Meyering  <jim@meyering.net>
84589
84590         * lib/quote.c (quote_n): Fix typo in comment.
84591
84592 2003-03-18  Bruno Haible  <bruno@clisp.org>
84593
84594         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84595         checking.
84596         * m4/onceonly_2_57.m4: Likewise.
84597
84598 2003-03-17  Bruno Haible  <bruno@clisp.org>
84599
84600         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84601         (m4_quote): Remove macro.
84602         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84603
84604 2003-03-14  Jim Meyering  <jim@meyering.net>
84605
84606         Merge changes from Coreutils.
84607         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84608         to be const, in order to avoid warnings.
84609         (obstack_room): Likewise.
84610         (obstack_empty_p): Likewise.
84611
84612 2003-03-14  Bruno Haible  <bruno@clisp.org>
84613
84614         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84615         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84616
84617 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84618
84619         Merge changes from Bison.
84620         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84621         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84622         when compiling Bison 1.875's `bitset bset = obstack_alloc
84623         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84624         * lib/hash.c: Include <stdbool.h> unconditionally.
84625
84626 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84627
84628         * m4/onceonly.m4 (m4_quote): New macro.
84629         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84630         Quote AC_FOREACH variable-expansions properly.
84631
84632 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84633
84634         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84635
84636 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84637
84638         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84639         Reported by Bruce Becker; see:
84640         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84641
84642 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84643             Bruno Haible  <bruno@clisp.org>
84644
84645         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84646         Reported by John Hughes, see
84647         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84648
84649 2003-02-20  Bruno Haible  <bruno@clisp.org>
84650
84651         * MODULES.html.sh (func_all_modules): Add poll.
84652
84653 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84654
84655         * modules/poll: New file.
84656
84657 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84658
84659         * lib/poll_.h: New file.
84660         * lib/poll.c: New file.
84661
84662 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84663
84664         * m4/poll.m4: New file.
84665
84666 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84667
84668         * modules/mathl: New file.
84669
84670 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84671
84672         * lib/mathl.h: New file.
84673         * lib/acosl.c: New file.
84674         * lib/asinl.c: New file.
84675         * lib/atanl.c: New file.
84676         * lib/ceill.c: New file.
84677         * lib/cosl.c: New file.
84678         * lib/expl.c: New file.
84679         * lib/floorl.c: New file.
84680         * lib/frexpl.c: New file.
84681         * lib/ldexpl.c: New file.
84682         * lib/logl.c: New file.
84683         * lib/sincosl.c: New file.
84684         * lib/sinl.c: New file.
84685         * lib/sqrtl.c: New file.
84686         * lib/tanl.c: New file.
84687         * lib/trigl.c: New file.
84688         * lib/trigl.h: New file.
84689
84690 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84691
84692         * m4/mathl.m4: New file.
84693
84694 2003-02-18  Bruno Haible  <bruno@clisp.org>
84695
84696         * MODULES.html.sh (func_all_modules): Add mathl.
84697
84698 2003-02-17  Bruno Haible  <bruno@clisp.org>
84699
84700         * modules/mkdtemp: New module.
84701         * MODULES.html.sh (func_all_modules): Add it.
84702
84703 2003-02-17  Bruno Haible  <bruno@clisp.org>
84704
84705         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84706
84707 2003-02-17  Bruno Haible  <bruno@clisp.org>
84708
84709         * lib/mkdtemp.h: New file, from GNU gettext.
84710         * lib/mkdtemp.c: New file, from GNU gettext.
84711
84712 2003-02-02  Jim Meyering  <jim@meyering.net>
84713
84714         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84715         e.g. glibc-2.2.93.
84716
84717 2003-01-31  Bruno Haible  <bruno@clisp.org>
84718
84719         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84720         'rpl_rename'.
84721         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84722         'rpl_strnlen'.
84723         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84724         'rpl_strtod'.
84725         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84726         'rpl_utime'.
84727
84728 2003-01-31  Bruno Haible  <bruno@clisp.org>
84729
84730         * lib/rename.c: #undef rename before defining rpl_rename.
84731         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84732
84733 2003-01-30  Bruno Haible  <bruno@clisp.org>
84734
84735         * modules/vasnprintf, modules/vasprintf: New modules.
84736         * MODULES.html.sh (func_all_modules): Add them.
84737
84738 2003-01-30  Bruno Haible  <bruno@clisp.org>
84739
84740         * m4/signed.m4: New file, from GNU gettext.
84741         * m4/longdouble.m4: New file, from GNU gettext.
84742         * m4/wchar_t.m4: New file, from GNU gettext.
84743         * m4/wint_t.m4: New file, from GNU gettext.
84744         * m4/vasnprintf.m4: New file.
84745         * m4/vasprintf.m4: New file.
84746
84747 2003-01-30  Bruno Haible  <bruno@clisp.org>
84748
84749         * lib/printf-args.h: New file, from GNU gettext.
84750         * lib/printf-args.c: New file, from GNU gettext.
84751         * lib/printf-parse.h: New file, from GNU gettext.
84752         * lib/printf-parse.c: New file, from GNU gettext.
84753         * lib/vasnprintf.h: New file, from GNU gettext.
84754         * lib/vasnprintf.c: New file, from GNU gettext.
84755         * lib/asnprintf.c: New file, from GNU gettext.
84756         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84757         * lib/vasprintf.c: New file, from GNU gettext.
84758         * lib/asprintf.c: New file, from GNU gettext.
84759
84760 2003-01-29  Bruno Haible  <bruno@clisp.org>
84761
84762         * modules/stpncpy: New module.
84763         * MODULES.html.sh (func_all_modules): Add it.
84764
84765 2003-01-29  Bruno Haible  <bruno@clisp.org>
84766
84767         * m4/stpncpy.m4: New file.
84768
84769 2003-01-29  Bruno Haible  <bruno@clisp.org>
84770
84771         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84772         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84773
84774 2003-01-28  Bruno Haible  <bruno@clisp.org>
84775
84776         * modules/c-ctype: New module.
84777         * MODULES.html.sh (func_all_modules): Add it.
84778
84779 2003-01-28  Bruno Haible  <bruno@clisp.org>
84780
84781         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84782         Paul Eggert.
84783         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84784         Paul Eggert.
84785
84786 2003-01-27  Bruno Haible  <bruno@clisp.org>
84787
84788         * modules/xsetenv: New module.
84789         * MODULES.html.sh (func_all_modules): Add it.
84790
84791 2003-01-27  Bruno Haible  <bruno@clisp.org>
84792
84793         * lib/xsetenv.h: New file, from GNU gettext.
84794         * lib/xsetenv.c: New file, from GNU gettext.
84795
84796 2003-01-23  Jim Meyering  <jim@meyering.net>
84797
84798         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84799         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84800
84801 2003-01-23  Bruno Haible  <bruno@clisp.org>
84802
84803         * modules/minmax: New module.
84804         * MODULES.html.sh (func_all_modules): Add it.
84805
84806 2003-01-23  Bruno Haible  <bruno@clisp.org>
84807
84808         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84809         Eggert.
84810
84811 2003-01-22  Bruno Haible  <bruno@clisp.org>
84812
84813         * modules/exit: New module.
84814         * MODULES.html.sh (func_all_modules): Add it.
84815
84816 2003-01-22  Bruno Haible  <bruno@clisp.org>
84817
84818         * lib/exit.h: New file, from GNU gettext.
84819
84820 2003-01-19  Bruno Haible  <bruno@clisp.org>
84821
84822         * gnulib-tool: Recognize option --extract-maintainer.
84823         (func_get_maintainer): New function.
84824         * modules/*: Add Maintainer entry.
84825
84826 2003-01-16  Jim Meyering  <jim@meyering.net>
84827
84828         * m4/regex.m4: The `regex' struct is both input and output.
84829         Initialize it before each use.  Patch by Tim Waugh.
84830
84831 2003-01-16  Bruno Haible  <bruno@clisp.org>
84832
84833         * MODULES.html.sh: Add a table of contents. Add the module name as
84834         leftmost column. Add hyperlinks.
84835
84836 2003-01-15  Bruno Haible  <bruno@clisp.org>
84837
84838         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84839
84840 2003-01-15  Bruno Haible  <bruno@clisp.org>
84841
84842         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84843         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84844         suffix.
84845
84846 2003-01-15  Bruno Haible  <bruno@clisp.org>
84847
84848         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84849
84850 2003-01-15  Bruno Haible  <bruno@clisp.org>
84851
84852         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84853         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84854
84855 2003-01-14  Jim Meyering  <jim@meyering.net>
84856
84857         * lib/same.c (same_name): Tweak a comment.
84858
84859 2003-01-14  Bruno Haible  <bruno@clisp.org>
84860
84861         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84862         when a string comparison is sufficient.
84863
84864 2003-01-14  Bruno Haible  <bruno@clisp.org>
84865
84866         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84867         'unsigned int'.
84868
84869 2003-01-14  Bruno Haible  <bruno@clisp.org>
84870
84871         * lib/hash-pjw.c: Add comment about low quality of this function.
84872
84873 2003-01-13  Bruno Haible  <bruno@clisp.org>
84874
84875         * modules/stpcpy: Distribute lib/stpcpy.h.
84876         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84877
84878 2003-01-13  Bruno Haible  <bruno@clisp.org>
84879
84880         * modules/*: Add a description.
84881         * modules/strpbrk: Fix Makefile.am snippet.
84882         * modules/strtoimax: Fix dependencies.
84883         * modules/strtoumax: Likewise.
84884
84885 2003-01-13  Bruno Haible  <bruno@clisp.org>
84886
84887         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84888         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84889         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84890
84891 2003-01-13  Bruno Haible  <bruno@clisp.org>
84892
84893         * gnulib-tool (func_create_testdir): Store config/* files in the main
84894         directory.
84895         * config.rpath: Move to ...
84896         * config/config.rpath: ... here.
84897         * modules/gettext: Contains config/config.rpath, not config.rpath.
84898         * modules/iconv: Likewise.
84899
84900 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84901
84902         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84903         to avoid collisions with libcurses and libreadline.
84904
84905         * m4/getstr.m4: Remove.
84906         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84907
84908 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84909
84910         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84911         to avoid collisions with libcurses and libreadline.
84912
84913         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84914         * lib/getstr.h, getstr.c: Remove.
84915         * lib/getline.c: Include "getline.h", to check interface.
84916         Move body of old getstr.c here: this defines MIN_CHUNK and
84917         declares getdelim2, which is renamed from getstr.
84918         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84919
84920         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84921         All uses changed.
84922         * lib/linebuffer.h: Likewise.
84923         (readline): Remove backward-compatibility macro.
84924
84925 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84926
84927         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84928         to avoid collisions with libcurses and libreadline.
84929         * getstr: Remove.
84930         * MODULES.html.sh: Remove getstr.
84931         * modules/getline: Depend on unlocked-io, not getstr.
84932
84933 2003-01-12  Jim Meyering  <jim@meyering.net>
84934
84935         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84936
84937 2003-01-10  Bruno Haible  <bruno@clisp.org>
84938
84939         * modules/alloca: Change Makefile.am requirements. Simplify Include
84940         requirements. Add lib/alloca_.h to file list.
84941
84942 2003-01-10  Bruno Haible  <bruno@clisp.org>
84943
84944         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84945
84946 2003-01-10  Bruno Haible  <bruno@clisp.org>
84947
84948         * lib/alloca_.h: New file.
84949         * lib/getdate.y: Unconditionally include alloca.h.
84950         * lib/makepath.c: Likewise.
84951         * lib/setenv.c: Likewise.
84952         * lib/userspec.c: Likewise.
84953
84954 2003-01-09  Karl Berry  <karl@gnu.org>
84955
84956         * MODULES.html.sh: include `dirname $0` in PATH, to find
84957         gnulib-tool.
84958
84959 2003-01-09  Bruno Haible  <bruno@clisp.org>
84960
84961         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84962         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84963
84964 2003-01-09  Bruno Haible  <bruno@clisp.org>
84965
84966         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84967
84968 2003-01-09  Bruno Haible  <bruno@clisp.org>
84969
84970         * lib/stdbool.h.in: New file.
84971
84972 2003-01-09  Bruno Haible  <bruno@clisp.org>
84973
84974         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84975         * MODULES.html.sh: Likewise.
84976
84977 2003-01-08  Jim Meyering  <jim@meyering.net>
84978
84979         * lib/full-write.c: Undefine and define-away `const' after inclusion
84980         of errno.h, not before.  Suggestion from Bruno Haible.
84981
84982 2003-01-08  Bruno Haible  <bruno@clisp.org>
84983
84984         * modules/full-read: Depend on full-write.
84985
84986 2003-01-08  Bruno Haible  <bruno@clisp.org>
84987
84988         * lib/safe-read.c: Include specification header first, to ensure its
84989         selfcontainedness.
84990         * lib/full-write.c: Likewise.
84991
84992 2003-01-07  Jim Meyering  <jim@meyering.net>
84993
84994         * lib/full-write.c: Rework so that it may serve to define full_read,
84995         too.
84996         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84997
84998 2003-01-07  Bruno Haible  <bruno@clisp.org>
84999
85000         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85001         <inttypes.h>.
85002         * lib/xstrtol.h: Likewise.
85003         * lib/xstrtoimax.c: Likewise.
85004         * lib/xstrtoumax.c: Likewise.
85005         * lib/human.h: Likewise.
85006
85007         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85008         on systems that have <inttypes.h> but not <stdint.h>.
85009
85010 2003-01-07  Bruno Haible  <bruno@clisp.org>
85011
85012         * MODULES.html.sh: Add copyright notice.
85013         (missed_files): Omit CVS directory entries.
85014         (func_module): Make it work with sed-3.02.
85015         * MODULES.txt: Remove file.
85016
85017 2003-01-06  Jim Meyering  <jim@meyering.net>
85018
85019         * lib/version-etc.c: Update year in translatable copyright string.
85020
85021 2003-01-03  Karl Berry  <karl@gnu.org>
85022
85023         * config/config.{guess,sub}: update from prep.
85024
85025 2003-01-02  Karl Berry  <karl@gnu.org>
85026
85027         * doc/COPYING.DOC: belatedly updated to 1.2.
85028
85029 2003-01-01  Karl Berry  <karl@gnu.org>
85030
85031         * gnulib-tool (func_verify_module): report module name $module in
85032         error message, not $1.
85033         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85034         be created, only if it doesn't exist.
85035         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85036
85037 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85038
85039         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85040
85041 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85042
85043         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85044         memcmp if strcoll doesn't work.
85045
85046 2002-12-31  Bruno Haible  <bruno@clisp.org>
85047
85048         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85049         nonempty.
85050
85051 2002-12-31  Bruno Haible  <bruno@clisp.org>
85052
85053         * lib/memcoll.c (STRCOLL): New macro.
85054         (memcoll): Use it.
85055
85056 2002-12-31  Bruno Haible  <bruno@clisp.org>
85057
85058         * lib/localcharset.h: New file.
85059         * lib/localcharset.c: Include it.
85060         * lib/unicodeio.c: Likewise.
85061
85062 2002-12-31  Bruno Haible  <bruno@clisp.org>
85063
85064         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85065         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85066
85067 2002-12-31  Bruno Haible  <bruno@clisp.org>
85068
85069         * lib/getline.h: Include <stddef.h>, for size_t.
85070
85071         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85072         * lib/unicodeio.c: Don't include <stddef.h>.
85073
85074 2002-12-31  Bruno Haible  <bruno@clisp.org>
85075
85076         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85077         HAVE_TM_ZONE.
85078
85079 2002-12-24  Karl Berry  <karl@gnu.org>
85080
85081         * config/config.guess: update from prep.
85082
85083 2002-12-24  Bruno Haible  <bruno@clisp.org>
85084
85085         General infrasructure.
85086         * m4/README: Rewritten.
85087         * m4/onceonly.m4: New file.
85088         * m4/onceonly_2_57.m4: New file.
85089
85090         Module atexit.
85091         * m4/atexit.m4: New file.
85092
85093         Module strtod.
85094         * m4/strtod.m4: New file.
85095
85096         Module strtol.
85097         * m4/strtol.m4: New file.
85098
85099         Module strtoul.
85100         * m4/strtoul.m4: New file.
85101
85102         Module memchr.
85103         * m4/memchr.m4: New file.
85104
85105         Module memcmp.
85106         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85107         (jm_FUNC_MEMCMP): Invoke it.
85108
85109         Module memcpy.
85110         * m4/memcpy.m4: New file.
85111
85112         Module memmove.
85113         * m4/memmove.m4: New file.
85114
85115         Module memset.
85116         * m4/memset.m4: New file.
85117
85118         Module strcspn.
85119         * m4/strcspn.m4: New file.
85120
85121         Module strpbrk.
85122         * m4/strpbrk.m4: New file.
85123
85124         Module strstr.
85125         * m4/strstr.m4: New file.
85126
85127         Module strerror.
85128         * m4/strerror.m4: New file.
85129
85130         Module mktime.
85131         * m4/mktime.m4: Renamed from jm-mktime.m4.
85132         (gl_PREREQ_MKTIME): New macro.
85133         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85134
85135         Module malloc.
85136         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85137         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85138         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85139
85140         Module realloc.
85141         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85142         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85143         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85144
85145         Module strftime.
85146         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85147         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85148         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85149         gl_TM_GMTOFF.
85150         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85151
85152         Module xalloc.
85153         * m4/xalloc.m4: New file.
85154
85155         Module alloca.
85156         * m4/alloca.m4: New file.
85157
85158         Module putenv.
85159         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85160         (jm_FUNC_PUTENV): Invoke it.
85161
85162         Module setenv.
85163         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85164         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85165         when invoked twice.
85166         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85167         gt_FUNC_SETENV.
85168
85169         Module memrchr.
85170         * m4/memrchr.m4: New file.
85171
85172         Module stpcpy.
85173         * m4/stpcpy.m4: New file.
85174
85175         Module strcase.
85176         * m4/strcase.m4: New file.
85177
85178         Module strdup.
85179         * m4/strdup.m4: New file.
85180
85181         Module strnlen.
85182         * m4/strnlen.m4: New file.
85183
85184         Module strndup.
85185         * m4/strndup.m4: New file.
85186
85187         Module xstrtod.
85188         * m4/xstrtod.m4: New file.
85189
85190         Module xstrtol.
85191         * m4/xstrtol.m4: New file.
85192
85193         Module getdate.
85194         * m4/getdate.m4: New file.
85195
85196         Module unlocked-io.
85197         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85198         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85199         * m4/jm-glibc-io.m4n: Remove file.
85200
85201         Module long-options.
85202         * m4/long-options.m4: New file.
85203
85204         Module md5.
85205         * m4/md5.m4: New file.
85206
85207         Module sha.
85208         * m4/sha.m4: New file.
85209
85210         Module getstr.
85211         * m4/getstr.m4: New file.
85212
85213         Module getline.
85214         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85215         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85216         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85217         simply getline. Infoke gl_PREREQ_GETLINE.
85218
85219         Module obstack.
85220         * m4/obstack.m4: New file.
85221
85222         Module hash.
85223         * m4/hash.m4: New file.
85224
85225         Module readtokens.
85226         * m4/readtokens.m4: New file.
85227
85228         Module strverscmp.
85229         * m4/strverscmp.m4: New file.
85230
85231         Module stdbool.
85232         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85233         OSF/1.
85234
85235         Module strtoll.
85236         * m4/strtoll.m4: New file.
85237
85238         Module strtoull.
85239         * m4/strtoull.m4: New file.
85240
85241         Module strtoimax.
85242         * m4/strtoimax.m4: New file.
85243
85244         Module strtoumax.
85245         * m4/strtoumax.m4: New file.
85246
85247         Module xstrtoimax.
85248         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85249         jm_AC_PREREQ_XSTRTOIMAX.
85250         Moved the strtol prerequisites to strtol.m4.
85251         Moved the strtoll prerequisites to strtoll.m4.
85252         Moved the strtoimax prerequisites to strtoimax.m4.
85253
85254         Module xstrtoumax.
85255         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85256         jm_AC_PREREQ_XSTRTOUMAX.
85257         Moved the strtoul prerequisites to strtoul.m4.
85258         Moved the strtoull prerequisites to strtoull.m4.
85259         Moved the strtoumax prerequisites to strtoumax.m4.
85260
85261         Module chown.
85262         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85263         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85264
85265         Module dup2.
85266         * m4/dup2.m4: New file.
85267
85268         Module ftruncate.
85269         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85270         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85271
85272         Module getgroups.
85273         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85274         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85275
85276         Module gettimeofday.
85277         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85278         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85279         gl_PREREQ_GETTIMEOFDAY.
85280
85281         Module mkdir.
85282         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85283         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85284
85285         Module mkstemp.
85286         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85287         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85288         jm_AC_TYPE_UINTMAX_T.
85289         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85290
85291         Module stat.
85292         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85293         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85294
85295         Module lstat.
85296         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85297         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85298
85299         Module timespec.
85300         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85301         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85302         * m4/st_mtim.m4: Indentation.
85303
85304         Module nanosleep.
85305         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85306         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85307         gl_PREREQ_NANOSLEEP.
85308
85309         Module regex.
85310         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85311         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85312         (gl_REGEX): New macro.
85313
85314         Module rename.
85315         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85316         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85317
85318         Module rmdir.
85319         * m4/rmdir.m4: New file.
85320
85321         Module utime.
85322         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85323         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85324         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85325
85326         Module dirname.
85327         * m4/dirname.m4: New file.
85328
85329         Module getopt.
85330         * m4/getopt.m4: New file.
85331
85332         Module unistd-safer.
85333         * m4/unistd-safer.m4: New file.
85334
85335         Module fnmatch.
85336         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85337         declaration.
85338         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85339         (gl_FUNC_FNMATCH_POSIX): New macro.
85340         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85341         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85342         simply fnmatch.
85343
85344         Module exclude.
85345         * m4/exclude.m4: New file.
85346
85347         Module human.
85348         * m4/human.m4: New file.
85349
85350         Module acl.
85351         * m4/acl.m4: Nop.
85352
85353         Module backupfile.
85354         * m4/backupfile.m4: New file.
85355         * m4/d-ino.m4: Indentation.
85356
85357         Module fsusage.
85358         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85359         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85360         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85361
85362         Module dirfd.
85363         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85364         requirements.
85365
85366         Module euidaccess.
85367         * m4/euidaccess.m4: New file.
85368
85369         Module file-type.
85370         * m4/file-type.m4: New file.
85371
85372         Module fileblocks.
85373         * m4/fileblocks.m4: New file.
85374
85375         Module filemode.
85376         * m4/filemode.m4: New file.
85377
85378         Module isdir.
85379         * m4/isdir.m4: New file.
85380
85381         Module lchown.
85382         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85383         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85384
85385         Module makepath.
85386         * m4/makepath.m4: New file.
85387
85388         Module modechange.
85389         * m4/modechange.m4: New file.
85390
85391         Module mountlist.
85392         * m4/mountlist.m4: New file.
85393         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85394         Indentation.
85395
85396         Module path-concat.
85397         * m4/path-concat.m4: New file.
85398
85399         Module pathmax.
85400         * m4/pathmax.m4: New file.
85401
85402         Module same.
85403         * m4/same.m4: New file.
85404
85405         Module save-cwd.
85406         * m4/save-cwd.m4: New file.
85407
85408         Module savedir.
85409         * m4/savedir.m4: New file.
85410
85411         Module xgetcwd.
85412         * m4/xgetcwd.m4: New file.
85413         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85414
85415         Module xreadlink.
85416         * m4/xreadlink.m4: New file.
85417
85418         Module safe-read.
85419         * m4/safe-read.m4: New file.
85420
85421         Module safe-write.
85422         * m4/safe-write.m4: New file.
85423
85424         Module closeout.
85425         * m4/closeout.m4: New file.
85426
85427         Module stdio-safer.
85428         * m4/stdio-safer.m4: New file.
85429
85430         Module getpass.
85431         * m4/getpass.m4: New file.
85432
85433         Module getugroups.
85434         * m4/getugroups.m4: New file.
85435
85436         Module group-member.
85437         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85438         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85439
85440         Module idcache.
85441         * m4/idcache.m4: New file.
85442
85443         Module userspec.
85444         * m4/userspec.m4: New file.
85445
85446         Module gettime.
85447         * m4/clock_time.m4: New file.
85448         * m4/gettime.m4: New file.
85449
85450         Module settime.
85451         * m4/settime.m4: New file.
85452
85453         Module posixtm.
85454         * m4/posixtm.m4: New file.
85455
85456         Module gethostname.
85457         * m4/gethostname.m4: New file.
85458
85459         Module canon-host.
85460         * m4/canon-host.m4: New file.
85461
85462         Module gettext.
85463         * m4/codeset.m4: New file, from gettext-0.11.5.
85464         * m4/gettext.m4: New file, from gettext-0.11.5.
85465         * m4/glibc21.m4: New file, from gettext-0.11.5.
85466         * m4/iconv.m4: New file, from gettext-0.11.5.
85467         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85468         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85469         * m4/inttypes.m4: New file, from gettext-0.11.5.
85470         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85471         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85472         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85473         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85474         * m4/lib-link.m4: New file, from gettext-0.11.5.
85475         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85476         * m4/progtest.m4: New file, from gettext-0.11.5.
85477         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85478         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85479         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85480
85481         Module localcharset.
85482         * m4/localcharset.m4: New file.
85483
85484         Module hard-locale.
85485         * m4/hard-locale.m4: New file.
85486
85487         Module mbswidth.
85488         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85489         onceonly macros.
85490         * m4/mbrtowc.m4: Add comment.
85491
85492         Module memcasecmp.
85493         * m4/memcasecmp.m4: New file.
85494
85495         Module memcoll.
85496         * m4/memcoll.m4: New file.
85497
85498         Module unicodeio.
85499         * m4/unicodeio.m4: New file.
85500
85501         Module rpmatch.
85502         * m4/rpmatch.m4: New file.
85503
85504         Module yesno.
85505         * m4/yesno.m4: New file.
85506
85507         Module exitfail.
85508         * m4/exitfail.m4: New file.
85509
85510         Module c-stack.
85511         * m4/c-stack.m4 (gl_C_STACK): New macro.
85512         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85513
85514         Module error.
85515         * m4/error.m4 (gl_ERROR): New macro.
85516         (jm_PREREQ_ERROR): Use onceonly macros.
85517
85518         Module fatal.
85519         * m4/fatal.m4: New file.
85520
85521         Module getloadavg.
85522         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85523         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85524
85525         Module getpagesize.
85526         * m4/getpagesize.m4: New file.
85527
85528         Module getusershell.
85529         * m4/getusershell.m4: New file.
85530
85531         Module physmem.
85532         * m4/physmem.m4: New file.
85533
85534         Module posixver.
85535         * m4/posixver.m4: New file.
85536
85537         Module quotearg.
85538         * m4/quotearg.m4: New file.
85539
85540         Module quote.
85541         * m4/quote.m4: New file.
85542
85543         Module readutmp.
85544         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85545
85546         Module sig2str.
85547         * m4/sig2str.m4: New file.
85548
85549         Other.
85550         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85551         ulonglong.m4.
85552         * m4/intmax_t.m4: New file.
85553         * m4/d-type.m4: Indentation.
85554         * m4/jm-macros.m4: Update.
85555         * m4/prereq.m4 (jm_PREREQ): Update.
85556         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85557         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85558         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85559         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85560         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85561         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85562         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85563         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85564         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85565         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85566         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85567         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85568         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85569         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85570         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85571         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85572         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85573         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85574         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85575
85576 2002-12-24  Bruno Haible  <bruno@clisp.org>
85577
85578         * MODULES.txt: Update according to m4/ changes.
85579
85580         Module gettext.
85581         * config.rpath: New file, from gettext-0.11.5.
85582
85583         * modules/*: New module descriptions.
85584         * gnulib-tool: New file.
85585         * MODULES.html.sh: New file.
85586
85587 2002-12-21  Karl Berry  <karl@gnu.org>
85588
85589         * doc/fdl.texi: update to version 1.2.
85590
85591 2002-12-19  Karl Berry  <karl@gnu.org>
85592
85593         * config/config.guess: update from prep.
85594
85595 2002-12-18  Bruno Haible  <bruno@clisp.org>
85596
85597         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85598         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85599
85600 2002-12-17  Bruno Haible  <bruno@clisp.org>
85601
85602         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85603         stdlib.h, string.h.
85604
85605 2002-12-17  Bruno Haible  <bruno@clisp.org>
85606
85607         * lib/canon-host.c (strdup): Remove unused declaration.
85608
85609         * lib/fsusage.c: Include full_read.h.
85610         (get_fs_usage): Use full_read instead of safe_read.
85611
85612         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85613
85614 2002-12-12  Karl Berry  <karl@gnu.org>
85615
85616         * config/config.guess: update from prep.
85617
85618 2002-12-11  Bruno Haible  <bruno@clisp.org>
85619
85620         * m4/setenv.m4: New file, from gettext-0.11.5.
85621
85622 2002-12-11  Bruno Haible  <bruno@clisp.org>
85623
85624         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85625         not unsetenv().
85626         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85627         modifications:
85628
85629         2002-12-11  Bruno Haible  <bruno@clisp.org>
85630
85631                 * setenv.c (alloca): Fall back to malloc.
85632                 (freea): New macro.
85633                 (setenv): Use freea() to free memory allocated with alloca().
85634
85635         2002-11-13  Bruno Haible  <bruno@clisp.org>
85636
85637                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85638                 function declarations.
85639                 * unsetenv.c (unsetenv): Likewise.
85640
85641         2002-03-04  Bruno Haible  <bruno@clisp.org>
85642
85643                 Portability to AIX 4.3.3.
85644                 * unsetenv.c: New file, extracted from setenv.c.
85645                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85646
85647         2001-12-20  Bruno Haible  <bruno@clisp.org>
85648
85649                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85650                 use malloc instead. For SunOS 4.
85651
85652         2001-12-11  Bruno Haible  <bruno@clisp.org>
85653
85654                 * setenv.c: Declare alloca.
85655                 (compar_fn_t): New typedef.
85656                 (KNOWN_VALUE, STORE_VALUE): Use it.
85657
85658         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85659         setenv.h.
85660
85661 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85662
85663         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85664         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85665         Choose values that are less likely to collide with system fnmatch
85666         options.
85667         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85668         defined (e.g., a pure POSIX system).
85669         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85670         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85671
85672 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85673
85674         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85675         a pain in practice to deal with generated m4 files.  This change
85676         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85677
85678         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85679         and jm-glibc-io.m4, as they are no longer a special case.
85680         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85681         kludge and the auto-generation stuff.  Check only whether the
85682         functions are declared, not whether they exist, since older hosts
85683         that don't declare the functions can't use the optimization anyway.
85684
85685 2002-12-06  Jim Meyering  <jim@meyering.net>
85686
85687         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85688
85689         Merge in changes from libc's misc/error.c, in preparation
85690         for the merge of gnulib's changes back into libc.
85691
85692         * lib/error.c (_): Define only if not already defined.
85693         Move definition to follow all #include directives.
85694         Include unlocked-io.h only if !_LIBC.
85695         [_LIBC]: Include <libio/libioP.h>.
85696         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85697         (fflush): Tweak definition to use INTUSE.
85698         (putc): Define.
85699
85700 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85701
85702         * lib/alloca.c [defined emacs]: Include "lisp.h".
85703         (xalloc_die) [defined emacs]: New macro.
85704         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85705         [! defined emacs]: Include <xalloc.h>.
85706         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85707         (pointer): Typedef to POINTER_TYPE *.
85708         (malloc): Remove decl; we now always use xmalloc.
85709         (alloca): Use old-style definition, since Emacs needs this.
85710         Check for arithmetic overflow when computing combined size.
85711
85712 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85713
85714         Do not generate unlocked-io.h automatically, since it's easier to
85715         maintain it by hand.
85716
85717         * lib/unlocked-io.h: New file, from GNU diffutils,
85718         but with proper copyright notice and attribution.
85719         * lib/gen-uio: Remove.
85720         * lib/Makefile.am: Add copyright notice.
85721         (libfetish_a_SOURCES): Add unlocked-io.h.
85722         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85723         (DISTCLEANFILES, io_functions): Remove macros.
85724         (EXTRA_DIST): Remove gen_uio.
85725         (unlocked-io.h): Remove rule.
85726
85727 2002-12-04  Jim Meyering  <jim@meyering.net>
85728
85729         Reflect the fact that stat.c and lstat.c are no longer generated.
85730         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85731         (DISTCLEANFILES): Likewise.
85732         (EXTRA_DIST): Likewise.
85733         (all_local): Don't depend on stat.c or lstat.c.
85734         (stat.c, lstat.c): Remove rules.
85735         (EXTRA_DIST): Remove xstat.in.
85736
85737         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85738         * lib/stat.c: New file.  Contents mostly from xstat.in.
85739         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85740         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85741
85742         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85743         too.
85744         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85745
85746 2002-12-03  Jim Meyering  <jim@meyering.net>
85747
85748         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85749         but not semantics, to minimize the differences between these two files.
85750         (safe_read): Change comment to mention SAFE_READ_ERROR.
85751
85752         * lib/safe-read.c (IS_EINTR): Define.
85753         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85754
85755 2002-12-02  Jim Meyering  <jim@meyering.net>
85756
85757         * lib/safe-read.c (EINTR): Define.
85758         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85759         (INT_MAX): Provide fallback.
85760         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85761
85762         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85763
85764 2002-12-02  Bruno Haible  <bruno@clisp.org>
85765
85766         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85767         Define, taken from safe-read.c.
85768         (INT_MAX): Provide fallback.
85769         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85770         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85771
85772         * lib/safe-read.c (EINTR): Remove definition.
85773         (safe_read): Don't use EINTR if it is absent.
85774
85775 2002-12-01  Jim Meyering  <jim@meyering.net>
85776
85777         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85778         zero.
85779         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85780
85781 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85782
85783         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85784         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85785         with `if (! (value < limit)) abort ();', for readability.
85786
85787 2002-11-26  Karl Berry  <karl@gnu.org>
85788
85789         * lib/strdup.c: copy from libc again, with jim's ok.
85790         * lib/.cppi-disable: re-add strdup.c
85791
85792 2002-11-25  Karl Berry  <karl@gnu.org>
85793
85794         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85795         instead of "strtol.c".
85796
85797 2002-11-25  Karl Berry  <karl@gnu.org>
85798
85799         * config/install-sh: update from automake for variable quoting, $0 in
85800         error msgs, etc.
85801
85802         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85803         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85804         entry.
85805
85806 2002-11-25  Jim Meyering  <jim@meyering.net>
85807
85808         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85809
85810 2002-11-24  Karl Berry  <karl@gnu.org>
85811
85812         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85813         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85814
85815 2002-11-24  Jim Meyering  <jim@meyering.net>
85816
85817         Update from coreutils:
85818
85819         * lib/mktime.c: Merge in changes from libc.
85820
85821         Avoid a link-time failure on some Linux systems.
85822         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85823         (otherwise).
85824         (__mon_yday): Declare with the STATIC attribute.
85825         (__mktime_internal): Likewise.
85826         Based on a report from Greg Schafer.
85827
85828 2002-11-23  Jim Meyering  <jim@meyering.net>
85829
85830         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85831         Use `unsigned', not `int', as type of index.
85832
85833         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85834
85835         * lib/fsusage.c: Remove unneeded parentheses around operands of
85836         `defined'.
85837
85838 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85839
85840         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85841         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85842         so that we can be included first.
85843         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85844         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85845         No need to include stddef.h or sys/types.h any more.
85846         Surround local include files with "", not "<>".
85847         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85848         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85849         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85850         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85851         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85852         (ISPRINT): Remove; no longer needed now that we assume C89.
85853
85854         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85855         Preserve errno.
85856
85857         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85858         quotearg_char): Use SIZE_MAX rather than
85859         (size_t) -1 when we are talking about "infinity".
85860
85861         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85862
85863 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85864
85865         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85866         hint that one should use `if (! x) abort ();' rather than `assert
85867         (x);', and anyway it's one less thing to worry about configuring.
85868         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85869         hash_rehash, hash_insert): Use abort rather than assert.
85870
85871 2002-11-22  Bruno Haible  <bruno@clisp.org>
85872
85873         * lib/safe-read.h: Assume C89. Add comments.
85874         (safe_read): Change return type to size_t.
85875         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85876         byte counts > SSIZE_MAX correctly.
85877         * lib/safe-write.h: New file.
85878         * lib/safe-write.c: New file.
85879         * lib/full-read.h: New file.
85880         * lib/full-read.c: New file.
85881         * lib/full-write.h: Assume C89. Add comments.
85882         * lib/full-write.c: Include safe-write.h.
85883         (full_write): Rewritten to use safe_write.
85884         Suggested by Jim Meyering and Paul Eggert.
85885
85886 2002-11-21  Jim Meyering  <jim@meyering.net>
85887
85888         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85889
85890         Merge in changes from the coreutils.
85891
85892         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85893         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85894         <stdint.h>.
85895         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85896         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85897         int.  Work more efficiently if X is the same width as uintmax_t.
85898         Do not compare X to -1, to avoid bogus compiler warning.
85899         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85900         Don't assume that f_frsize and f_bsize are the same type.
85901
85902         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85903         warning on FreeBSD.
85904
85905         * lib/makepath.c (make_path): Restore umask *before* creating the final
85906         component.
85907         (make_path): Minor reformatting.
85908
85909         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85910         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85911         HAVE_MALLOC/HAVE_REALLOC.
85912
85913         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85914         dummy ones.  At least on GNU/Linux systems, `auto' means something
85915         else.
85916         From Michael Stone.
85917
85918 2002-11-21  Bruno Haible  <bruno@clisp.org>
85919
85920         Remove case insensitive option matching.
85921         * lib/argmatch.h (argcasematch): Remove declaration.
85922         (ARGCASEMATCH): Remove macro.
85923         (__xargmatch_internal): Remove case_sensitive argument.
85924         (XARGMATCH): Update.
85925         (XARGCASEMATCH): Remove macro.
85926         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85927         case_sensitive argument.
85928         (argcasematch): Remove function.
85929         (__xargmatch_internal): Remove case_sensitive argument.
85930         (main): Use XARGMATCH instead of XARGCASEMATCH.
85931
85932         * lib/xmalloc.c: Change compile-time error message. Add comment about
85933         required autoconf version.
85934
85935 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85936
85937         Merge argmatch cleanups from Bison.  Assume C89.
85938
85939         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85940         Include stdlib.h, for EXIT_FAILURE.
85941         Always include <string.h>, since we assume C89.
85942         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85943         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85944         Include <stddef.h> instead, since it's all we need for size_t.
85945         (PARAMS): Remove.  All uses removed.
85946         (ARRAY_CARDINALITY): Do not bother to #undef.
85947         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85948         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85949         Remove unnecessary parentheses.
85950         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85951         Insert necessary parentheses.
85952         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85953         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85954
85955 2002-11-19  Bruno Haible  <bruno@clisp.org>
85956
85957         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85958         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85959
85960         * lib/mbswidth.h (PARAMS): Remove macro.
85961         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85962         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85963
85964         * lib/gcd.h (PARAMS): Remove macro.
85965         (gcd): Use ANSI C function declarations.
85966         * lib/gcd.c (gcd): Likewise.
85967
85968 2002-11-15  Bruno Haible  <bruno@clisp.org>
85969
85970         * lib/strcspn.c: Include <stddef.h>.
85971         (strcspn): Use ANSI C function declaration. Change return type to
85972         size_t. Use NULL.
85973         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85974         (strpbrk): Use NULL.
85975         * lib/strpbrk.h (PARAMS): Remove macro.
85976         (strpbrk): Use ANSI C function declaration.
85977         * lib/strstr.c: Don't include <sys/types.h>.
85978         * lib/strstr.h (PARAMS): Remove macro.
85979         (strstr): Use ANSI C function declarations.
85980
85981 2002-11-14  Karl Berry  <karl@gnu.org>
85982
85983         * config/mkinstalldirs: `do' on separate line, instead of
85984         `for var; do'.
85985
85986 2002-11-06  Bruno Haible  <bruno@clisp.org>
85987
85988         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85989         * lib/gcd.c (gcd): Likewise.
85990
85991 2002-11-05  Bruno Haible  <bruno@clisp.org>
85992
85993         * lib/gcd.h: New file, from gettext-0.11.5.
85994         * lib/gcd.c: New file, from gettext-0.11.5.
85995
85996 2002-11-05  Bruno Haible  <bruno@clisp.org>
85997
85998         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85999         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86000         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86001         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86002
86003         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86004         <libintl.h>.
86005         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86006         <libintl.h>.
86007
86008         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86009         * lib/human.c: Include gettext.h instead of <libintl.h>.
86010         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86011         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86012         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86013         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86014         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86015         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86016         (textdomain): Remove definition.
86017         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86018
86019         * lib/long-options.c: Remove include of <libintl.h> and definition of
86020         _.
86021         * lib/same.c: Remove include of <libintl.h> and definition of _.
86022
86023 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86024
86025         * lib/config.charset: A few additions for Solaris.
86026
86027 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86028
86029         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86030         * lib/localcharset.c (locale_charset): Declare as extern "C".
86031
86032 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86033
86034         * lib/config.charset: msdos in uk_UA uses CP1125.
86035
86036 2002-11-04  Bruno Haible  <bruno@clisp.org>
86037
86038         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86039         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86040         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86041         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86042         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86043
86044 2002-11-04  Bruno Haible  <bruno@clisp.org>
86045
86046         * lib/localcharset.c (locale_charset): Don't return an empty string.
86047
86048 2002-11-04  Bruno Haible  <bruno@clisp.org>
86049
86050         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86051         aliases.
86052
86053 2002-11-04  Bruno Haible  <bruno@clisp.org>
86054
86055         * lib/config.charset: Update for newest glibc. Add canonical names
86056         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86057
86058 2002-11-04  Bruno Haible  <bruno@clisp.org>
86059
86060         * lib/config.charset: Add support for NetBSD.
86061
86062 2002-11-04  Bruno Haible  <bruno@clisp.org>
86063
86064         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86065
86066 2002-11-01  Bruno Haible  <bruno@clisp.org>
86067
86068         * configure.in: Add AC_CONFIG_AUX_DIR call.
86069         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86070         test/Makefile.
86071         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86072
86073 2002-09-28  Karl Berry  <karl@gnu.org>
86074
86075         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86076         installed automake until the next release, since changes have been
86077         made.
86078
86079 2002-09-25  Karl Berry  <karl@gnu.org>
86080
86081         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86082         * lib/getopt*: copy from libc/posix.
86083         * lib/gettext.h: copy from gettext.
86084         * lib/.cppi-disable: add strdup.c, gettext.h.
86085
86086 2002-09-25  Karl Berry  <karl@gnu.org>
86087
86088         * config/srclist.txt: enable gettext.h check.
86089         * config/config.{guess,sub}: update from prep.
86090         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86091                 from automake 1.6.3.
86092         See srclist*.
86093
86094 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86095
86096         * regex.c (PATFETCH): Remove the translating fetch.
86097         (PATFETCH_RAW): Rename to PATFETCH.
86098         (set_image_of_range): New fun.
86099         (SET_RANGE_TABLE_WORK_AREA): Use it.
86100         (regex_compile): Don't translate the pattern chars so eagerly.
86101         Only do it when inserting an `exactn' bytecode or when handling
86102         a char-range.
86103         (mutually_exclusive_p): Avoid empty statement.
86104
86105 2002-07-06  Jim Meyering  <meyering@lucent.com>
86106
86107         * m4/README: Don't mention Makefile.am.in.
86108         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86109
86110 2002-07-01  Jim Meyering  <meyering@lucent.com>
86111
86112         * lib/c-stack.c: Include sys/time.h.
86113         From Volker Borchert.
86114
86115 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86116
86117         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86118
86119 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86120
86121         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86122         New macro.  Use it uniformly instead of
86123         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86124         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86125         reported by Vin Shelton.
86126
86127 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86128
86129         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86130         Do not assume SA_SIGINFO behavior.
86131         Bug reported by Jim Meyering on NetBSD 1.5.2.
86132
86133 2002-06-22  Jim Meyering  <meyering@lucent.com>
86134
86135         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86136         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86137
86138         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86139         now that configure.ac uses AC_GNU_SOURCE.
86140         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86141         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86142
86143         Update to latest tools.  Suggestions from Paul Eggert.
86144         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86145         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86146         * m4/fnmatch.m4: Likewise.
86147         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86148         to AC_HEADER_STDBOOL
86149
86150 2002-06-22  Jim Meyering  <meyering@lucent.com>
86151
86152         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86153         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86154
86155 2002-06-22  Jim Meyering  <meyering@lucent.com>
86156
86157         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86158
86159         * lib/exitfail.c, exitfail.h: Likewise.
86160         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86161
86162         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86163         of fnmatch.h.
86164         (EXTRA_DIST): Add fnmatch_loop.c.
86165         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86166
86167         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86168         * lib/fnmatch.c: Update from diffutils-2.8.2.
86169         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86170         * lib/fnmatch.h: Remove file.
86171
86172 2002-06-21  Jim Meyering  <meyering@lucent.com>
86173
86174         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86175         * m4/mbrtowc.m4: Likewise.
86176
86177         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86178         * m4/mbswidth.m4: Reflect name change:
86179         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86180         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86181
86182         * m4/lib-link.m4: Update from gettext-0.11.2.
86183         * m4/gettext.m4: Likewise.
86184
86185         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86186         From Alfred M. Szmidt.
86187
86188 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86189
86190         * lib/file-type.h: Report an error if neither S_ISREG nor
86191         S_IFREG is defined, instead of using a test specific to glibc
86192         2.2.  This should be safe, since POSIX requires S_ISREG and
86193         Unix Version 7 had S_IFREG.  We don't need to check for
86194         <sys/types.h> since we don't use any symbols that it defines.
86195
86196 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86197
86198         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86199         $@-t, so that each temporary file name is unique and valid in the first
86200         8 characters, for operation under DOS.
86201
86202 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86203
86204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86205
86206 2002-06-15  Jim Meyering  <meyering@lucent.com>
86207
86208         Work even with DJGPP 2.03, which lacks support for symlinks.
86209         From Richard Dawe.
86210         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86211         is defined.
86212         * lib/lchown.c (S_ISLNK): Likewise.
86213
86214 2002-06-15  Jim Meyering  <meyering@lucent.com>
86215
86216         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86217         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86218         have been included before this file.
86219
86220 2002-06-14  Jim Meyering  <meyering@lucent.com>
86221
86222         * lib/file-type.h: Use the version from diffutils-2.8.2.
86223         * lib/file-type.c: Likewise.
86224
86225 2002-06-07  Jim Meyering  <meyering@lucent.com>
86226
86227         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86228         They're needed at least for NetBSD 1.5.2.
86229         ($statxfs_includes): Include those same headers.
86230         ($statxfs_includes): Include sys/vfs.h if available.
86231         ($statxfs_includes): Likewise for sys/statvfs.h.
86232         Check for the following members in both structs statfs and statvfs:
86233         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86234
86235 2002-06-01  Jim Meyering  <meyering@lucent.com>
86236
86237         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86238         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86239
86240 2002-05-28  Jim Meyering  <meyering@lucent.com>
86241
86242         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86243         Reported by Volker Borchert.
86244
86245 2002-05-27  Jim Meyering  <meyering@lucent.com>
86246
86247         Fix a problem seen only on nonconforming systems whereby ls.c's
86248         use of localtime, and then of gettimeofday would cause trouble:
86249         the localtime call used to initialize rpl_gettimeofday's save
86250         mechanism would clobber ls's current local time information so
86251         that in any long listing the first file would always be listed
86252         with date 1970-01-01.  Analysis by Volker Borchert.
86253
86254         * lib/gettimeofday.c (localtime): Undefine.
86255         (rpl_localtime): New function.
86256
86257 2002-05-27  Jim Meyering  <meyering@lucent.com>
86258
86259         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86260         localtime.
86261
86262         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86263         use the replacement function; it wouldn't resolve at link time.
86264         Reported by Volker Borchert.
86265
86266 2002-05-22  Jim Meyering  <meyering@lucent.com>
86267
86268         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86269         file-type.h.
86270         * lib/file-type.h: New file.
86271         * lib/file-type.c (file_type): New file/function.  Extracted from
86272         diffutils.
86273
86274 2002-04-30  Jim Meyering  <meyering@lucent.com>
86275
86276         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86277
86278 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86279
86280         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86281
86282 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86283
86284         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86285         Do not check for alloca.h (no longer used) or stdbool.h (was never
86286         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86287
86288 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86289
86290         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86291
86292 2002-04-29  Jim Meyering  <meyering@lucent.com>
86293
86294         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86295         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86296         Use AC_FUNC_STRNLEN here instead.
86297
86298         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86299         With autoconf-2.53a, it's part of AC_PROG_CC.
86300
86301 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86302
86303         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86305
86306 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86307
86308         * lib/sig2str.h, lib/sig2str.c: New files.
86309         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86310
86311 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86312
86313         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86314         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86315         of 127, since 64 is the largest conceivable number for ancient
86316         nonstandard hosts.
86317         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86318
86319 2002-04-28  Jim Meyering  <meyering@lucent.com>
86320
86321         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86322
86323 2002-04-24  Jim Meyering  <meyering@lucent.com>
86324
86325         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86326         (jm_PREREQ): Use it.
86327
86328         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86329         mach/mach.h fcntl.h.
86330         Check for this function: setlocale.
86331
86332 2002-04-24  Jim Meyering  <meyering@lucent.com>
86333
86334         * lib/gettext.h: New file, from Gettext.
86335         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86336         (libfetish_a_SOURCES): Add gettext.h.
86337
86338 2002-04-16  Jim Meyering  <meyering@lucent.com>
86339
86340         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86341         ut_pid, ut_id, ut_exit.
86342
86343 2002-04-16  Jim Meyering  <meyering@lucent.com>
86344
86345         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86346         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86347         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86348
86349 2002-04-12  Jim Meyering  <meyering@lucent.com>
86350
86351         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86352         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86353         existence of the getmntinfo function.  Needed for Darwin 5.3.
86354
86355         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86356         This is necessary at least on Darwin 5.3.
86357
86358         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86359         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86360         strnlen.o in the library, and that makes some versions of ranlib
86361         object.
86362
86363 2002-04-12  Jim Meyering  <meyering@lucent.com>
86364
86365         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86366
86367 2002-04-09  Jim Meyering  <meyering@lucent.com>
86368
86369         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86370         to be more precise.  Rather than saying we're checking whether the
86371         function `works', say what we're testing.
86372         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86373         Reported by Bruno Haible.
86374
86375 2002-03-10  Jim Meyering  <meyering@lucent.com>
86376
86377         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86378         Suggestion from Santiago Vila.
86379
86380 2002-03-08  Jim Meyering  <meyering@lucent.com>
86381
86382         * lib/rename.c: Mention that this wrapper is needed also on
86383         mips-dec-ultrix4.4 systems.
86384
86385 2002-03-02  Jim Meyering  <meyering@lucent.com>
86386
86387         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86388         not HAVE_CLOCK_SETTIME.
86389
86390 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86391
86392         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86393         Check for clock_settime.
86394
86395 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86396
86397         * lib/nanosleep.h: Rename to....
86398         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86399
86400         * lib/gettime.c: New file.
86401         * lib/settime.c: New file.
86402         * lib/stime.c: Remove.
86403
86404         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86405         timespec.h.  Remove nanosleep.h.
86406
86407 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86408
86409         * m4/acl.m4: New file.
86410         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86411         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86412
86413 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86414
86415         * lib/acl.c, lib/acl.h: New files.
86416         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86417
86418 2002-02-24  Jim Meyering  <meyering@lucent.com>
86419
86420         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86421         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86422         cause trouble.  Reported by Nelson Beebe.
86423
86424 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86425
86426         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86427         compilers that don't know that xalloc_die never returns.
86428
86429 2002-02-20  Jim Meyering  <meyering@lucent.com>
86430
86431         * lib/getdate.c: Regenerate using bison-1.33.
86432
86433 2002-02-17  Jim Meyering  <meyering@lucent.com>
86434
86435         * config/config.guess (main): Don't use `head -1'; it's no longer
86436         portable. Use `sed 1q' instead.
86437
86438 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86439
86440         * m4/codeset.m4: Upgrade to gettext-0.11.
86441         * m4/gettext.m4: Upgrade to gettext-0.11.
86442         * m4/glibc21.m4: Upgrade to gettext-0.11.
86443         * m4/iconv.m4: Upgrade to gettext-0.11.
86444         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86445         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86446         * m4/lib-ld.m4: New file, from gettext-0.11.
86447         * m4/lib-link.m4: New file, from gettext-0.11.
86448         * m4/lib-prefix.m4: New file, from gettext-0.11.
86449         * m4/progtest.m4: Upgrade to gettext-0.11.
86450
86451 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86452
86453         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86454         (jm_PREREQ): Use it.
86455
86456 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86457
86458         * lib/posixver.c, lib/posixver.h: New files.
86459         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86460
86461 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86462             Bruno Haible  <bruno@clisp.org>
86463
86464         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86465         (fwrite_success_callback): New declaration.
86466         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86467         print_unicode_char. Call failure callback instead of error.
86468         (fwrite_success_callback): New function.
86469         (exit_failure_callback): New function.
86470         (fallback_failure_callback): New function.
86471         (print_unicode_char): Call unicode_to_mb.
86472
86473 2002-01-26  Jim Meyering  <meyering@lucent.com>
86474
86475         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86476         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86477
86478 2002-01-26  Jim Meyering  <meyering@lucent.com>
86479
86480         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86481
86482 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86483
86484         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86485
86486 2002-01-22  Jim Meyering  <meyering@lucent.com>
86487
86488         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86489         Otherwise, some versions of automake would omit the rule that makes
86490         Makefile from Makefile.in.
86491
86492 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86493
86494         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86495         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86496         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86497         (memcoll): Set errno to zero if there is no error.
86498
86499         * lib/quotearg.c (quotearg_buffer_restyled):
86500         Fix bug with quoting buffers containing NUL when backslashing escapes.
86501         This bug was exposed by the other changes in this patch.
86502         (quotearg_n_options): New arg ARGSIZE.
86503         All callers changed.
86504         (quoting_options_from_style): New function.
86505         (quotearg_n_style): Use it.
86506         (quotearg_n_style_mem): New function.
86507
86508         * lib/quotearg.h (quotearg_n_style_mem): New function.
86509
86510 2002-01-19  Jim Meyering  <meyering@lucent.com>
86511
86512         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86513         Remove useless quotes: DF_PROG="df".
86514         * m4/strnlen.m4: New file.
86515
86516 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86517
86518         * lib/backupfile.c (ISDIGIT): Comment fix.
86519         * lib/getdate.y (ISDIGIT): Likewise.
86520         * lib/posixtm.c (ISDIGIT, year): Likewise.
86521         * lib/strverscmp.c (ISDIGIT): Likewise.
86522         * lib/userspec.c (ISDIGIT): Likewise.
86523
86524 2002-01-16  Jim Meyering  <meyering@lucent.com>
86525
86526         * lib/getdate.y: Add three semicolons, each just before a closing
86527         brace. Bison (as of version 1.31) no longer papers over that mistake.
86528
86529 2002-01-05  Jim Meyering  <meyering@lucent.com>
86530
86531         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86532
86533 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86534
86535         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86536         not silently exit merely because the output buffer happens to
86537         have nothing pending.
86538
86539 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86540
86541         See the big note in ../ChangeLog.
86542         * lib/human.c (suffixes): Prefer K to k for 1024.
86543         (generate_suffix_backwards): New function.
86544         (human_readable_inexact): Use it.
86545         * lib/xstrtol.c (__xstrtol): If there is no number but there
86546         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86547         Accept 'K' as well as 'k'.
86548
86549 2001-12-15  Jim Meyering  <meyering@lucent.com>
86550
86551         * lib/regex.h (__restrict_arr): Update from libc.
86552
86553         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86554         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86555         (STREQ): Define.
86556
86557 2001-12-14  Jim Meyering  <meyering@lucent.com>
86558
86559         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86560         Suggestion from Bruno Haible.
86561
86562 2001-12-10  Jim Meyering  <meyering@lucent.com>
86563
86564         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86565         xrealloc, Instead, include "xalloc.h".
86566         (initbuffer): Don't cast xmalloc return value to char*.
86567         (readline): Reword comment.
86568         Don't cast xrealloc return value to char*
86569         Return NULL, not 0.
86570
86571 2001-12-09  Jim Meyering  <meyering@lucent.com>
86572
86573         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86574         about `signed and unsigned type in conditional expression'.
86575         * lib/posixtm.c (posix_time_parse): Likewise.
86576
86577         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86578
86579         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86580         to avoid a pedantic warning.
86581
86582         * lib/getstr.c: Don't include assert.h.
86583         (getstr): Remove warning-evoking assertions.
86584         Return -1 if offset parameter is out of bounds.
86585         Change the type of a local from int to size_t.
86586
86587         * lib/strftime.c (my_strftime_localtime_r): Include this function
86588         definition in the `#if ! HAVE_TM_GMTOFF' block.
86589
86590         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86591         Include xalloc.h instead.
86592
86593 2001-12-02  Jim Meyering  <meyering@lucent.com>
86594
86595         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86596         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86597         included.
86598
86599         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86600         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86601
86602 2001-11-30  Akim Demaille  <akim@epita.fr>
86603
86604         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86605         before being defined.
86606
86607 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86608
86609         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86610         First arg is int, not unsigned.
86611         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86612         (SIZE_MAX, UINT_MAX): New macros.
86613         (quotearg_n_options): Abort if N is negative.
86614         Avoid overflow check on hosts where size_t is 64 bits and int
86615         is 32 bits, as overflow is impossible there.
86616         Fix off-by-one typo that caused unnecessary reallocation.
86617
86618 2001-11-27  Jim Meyering  <meyering@lucent.com>
86619
86620         * lib/tempname.c: Merge with version from libc.
86621         * lib/regex.c: Likewise.
86622
86623         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86624         systems for which STDC_HEADERS is 0, it was not included, resulting in
86625         a warning about an integer-to-pointer conversion problem with getenv.
86626         Reported by Volker Borchert.
86627
86628 2001-11-26  Jim Meyering  <meyering@lucent.com>
86629
86630         * lib/gtod.h: Remove file.
86631         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86632         * lib/gettimeofday.c: Don't include gtod.h.
86633         (GTOD_init): Remove function.
86634         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86635         Suggestion from Volker Borchert.
86636
86637 2001-11-23  Jim Meyering  <meyering@lucent.com>
86638
86639         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86640         it.
86641         * lib/hash.c (struct hash_table): Define it here instead.
86642
86643 2001-11-22  Jim Meyering  <meyering@lucent.com>
86644
86645         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86646
86647 2001-11-20  Jim Meyering  <meyering@lucent.com>
86648
86649         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86650         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86651
86652 2001-11-19  Jim Meyering  <meyering@lucent.com>
86653
86654         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86655         directory.  Use "conftestXXXXXX" as the template.
86656         Suggestion from Paul Eggert.
86657
86658         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86659         immediately, so the test doesn't mistakenly hit the max-open-files
86660         limit.
86661
86662 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86663
86664         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86665         (TEMPORARIES): New macro.
86666         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86667         removes an artificial limitation (e.g. HP-UX 10.20, where
86668         TMP_MAX is 17576).
86669
86670 2001-11-18  Jim Meyering  <meyering@lucent.com>
86671
86672         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86673
86674 2001-11-18  Jim Meyering  <meyering@lucent.com>
86675
86676         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86677         on SunOS 4.
86678
86679         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86680         files will be created before anything else.
86681
86682 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86683
86684         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86685         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86686
86687 2001-11-17  Jim Meyering  <meyering@lucent.com>
86688
86689         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86690         Prompted by a report from Bob Proulx.
86691
86692         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86693         Instead, require UTILS_FUNC_MKSTEMP.
86694
86695 2001-11-17  Jim Meyering  <meyering@lucent.com>
86696
86697         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86698         Now, that's done as part of AC_FUNC_STRTOD.
86699
86700 2001-11-17  Jim Meyering  <meyering@lucent.com>
86701
86702         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86703         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86704         rather than group writable.  Patch by Juan F. Codagnone.
86705
86706         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86707         xrealloc, Instead, include "xalloc.h".
86708
86709         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86710         Remove explicit declarations of xmalloc, xrealloc,
86711         and xstrdup.  Instead, include "xalloc.h".
86712
86713         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86714         unlocked-io.h.
86715         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86716         Likewise.
86717         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86718
86719         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86720         Reported by Padraig Brady.
86721
86722         * lib/mkstemp.c: #undef mkstemp.
86723         Include config.h.
86724         (rpl_mkstemp): Rename from mkstemp.
86725         Protoize.
86726
86727 2001-11-16  Jim Meyering  <meyering@lucent.com>
86728
86729         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86730         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86731         determine the amount of total physical memory, use pstat_getstatic.
86732         HPUX-11 doesn't define _SC_PHYS_PAGES.
86733         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86734         If sysconf couldn't be used to determine the amount of available
86735         physical memory, use both pstat_getstatic and pstat_getdynamic.
86736         Based on a patch from Bob Proulx.
86737
86738 2001-11-10  Jim Meyering  <meyering@lucent.com>
86739
86740         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86741         (jm_PREREQ): Use it.
86742
86743 2001-11-09  Jim Meyering  <meyering@lucent.com>
86744
86745         * m4/jm-macros.m4: Require autoconf-2.52f.
86746         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86747         Use these AC_-prefixed names, not the AM_-prefixed ones.
86748
86749         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86750
86751 2001-11-05  Jim Meyering  <meyering@lucent.com>
86752
86753         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86754
86755 2001-11-04  Jim Meyering  <meyering@lucent.com>
86756
86757         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86758         $DEFS.
86759
86760 2001-11-03  Jim Meyering  <meyering@lucent.com>
86761
86762         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86763         of AC_DEFUN.
86764
86765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86766         know the name of the variable in the macro definition.
86767
86768 2001-11-03  Jim Meyering  <meyering@lucent.com>
86769
86770         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86771         in argmatch_to_argument call.
86772
86773         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86774         argument.
86775
86776         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86777         e.g., a fault due to an attempt to free a NULL pointer.
86778
86779 2001-11-01  Jim Meyering  <meyering@lucent.com>
86780
86781         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86782         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86783
86784 2001-11-01  Jim Meyering  <meyering@lucent.com>
86785
86786         * lib/dirfd.c, lib/dirfd.h: New files.
86787         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86788
86789         * lib/hash.c (hash_print) [TESTING]: Clean up.
86790
86791 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86792
86793         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86794         to avoid a warning if -Wall.
86795
86796 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86797
86798         * README: New file
86799         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86800         (per RMS's instructions, this is now the canonical source)
86801         * lgpl/, gpl/: New directories.
86802
86803 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86804
86805         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86806
86807 2001-10-21  Jim Meyering  <meyering@lucent.com>
86808
86809         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86810         this code would end up calling gettext even in packages built
86811         with --disable-nls.
86812         * lib/getopt.c (_): Likewise.
86813         * lib/regex.c (_): Likewise.
86814
86815 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86816
86817         * m4/error.m4 (jm_PREREQ_ERROR):
86818         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86819         AC_FUNC_STRERROR_R does that.
86820         Check for strerror declaration.
86821
86822         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86823         are supposed to have them these days.
86824         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86825         Merge changes from latest Autoconf CVS.
86826         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86827         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86828         POSIX decided to standardize on the int flavor of strerror_r.
86829
86830 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86831
86832         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86833         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86834         Use strerror_r that is only a macro, even if it is not a function.
86835         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86836         (private_strerror): Use prototypes, not old-style function definition.
86837         (print_errno_message): New function.
86838         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86839         char*-flavored one.
86840         (error_tail, error, error_at_line): Use it.
86841
86842 2001-10-11  Jim Meyering  <meyering@lucent.com>
86843
86844         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86845         and quote_n (1, ... to avoid clobbering a buffer.
86846
86847 2001-10-05  Jim Meyering  <meyering@lucent.com>
86848
86849         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86850         hash-pjw.h.
86851         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86852         * lib/hash-pjw.h: New file.
86853
86854 2001-09-30  Jim Meyering  <meyering@lucent.com>
86855
86856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86857         `struct fsstat' has the `f_fstypename' member.
86858         Use that to define FS_TYPE, which is now used to make
86859         the getfsstat link test tighter.
86860
86861 2001-09-30  Jim Meyering  <meyering@lucent.com>
86862
86863         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86864         Include <sys/ucred.h>, for Apple Darwin.
86865         Include sys/mount.h and sys/fs_types.h only if available.
86866         (FS_TYPE): Define.
86867         (read_filesystem_list): Use FS_TYPE.
86868
86869 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86870
86871         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86872         a boolean context.
86873
86874 2001-09-29  Jim Meyering  <meyering@lucent.com>
86875
86876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86877         [one-argument getmntent function]): Include stdio.h before mntent.h.
86878         SunOS 4.1.x needs it for the declaration of `FILE'.
86879         Patch by Volker Borchert.
86880
86881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86882         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86883         sys/fs_types.h, and make the link-test for getfsstat guard #include
86884         directives with appropriate #if HAVE_*_H tests so that we can
86885         detect getfsstat on Apple Darwin1.3.7 systems.
86886         Reported by Nelson Beebe.
86887         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86888
86889 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86890
86891         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86892         #defines strtoimax.  Also treat the other strto* functions
86893         like strtoimax.
86894
86895         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86896         Check for strtoul and strtoumax,
86897         as those declarations are made even in the signed case.
86898         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86899         Likewise, for strtol and strtoimax.
86900
86901 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86902
86903         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86904         #defines strtoimax.  Also treat the other strto* functions
86905         like strtoimax.
86906
86907         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86908         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86909         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86910
86911 2001-09-26  Jim Meyering  <meyering@lucent.com>
86912
86913         Most macros in unlocked-io.h had the wrong number of arguments.
86914         * lib/gen-uio: New script.
86915         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86916         * lib/unlocked-io.hin: Remove file.
86917         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86918         rather than trying to embed it here.
86919         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86920         Reported by Padraig Brady.
86921
86922 2001-09-25  Volker Borchert  <bt@teknon.de>
86923
86924         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86925         `result'.
86926
86927 2001-09-24  Jim Meyering  <meyering@lucent.com>
86928
86929         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86930
86931 2001-09-23  Jim Meyering  <meyering@lucent.com>
86932
86933         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86934         instead of the mere test for existence of mntent.h.  The latter
86935         would get a false-positive on AIX 3.4 systems.
86936         In the outer getmntent if-block, don't die if neither of the getmntent
86937         tests succeeds.  Instead, just fall through and continue with the
86938         remaining tests.
86939
86940 2001-09-23  Jim Meyering  <meyering@lucent.com>
86941
86942         * lib/mountlist.c: Remove useless parentheses in #if directives.
86943         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86944         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86945
86946 2001-09-22  Jim Meyering  <meyering@lucent.com>
86947
86948         * m4/gettext.m4: New file.  From gettext.
86949         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86950         * m4/progtest.m4: Likewise
86951         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86952         * m4/glibc21.m4: Likewise.
86953
86954         * m4/libintl.m4: Remove.  No longer used.
86955
86956 2001-09-22  Jim Meyering  <meyering@lucent.com>
86957
86958         * lib/localcharset.c: Update from latest gettext.
86959         * lib/config.charset: Likewise.
86960
86961 2001-09-20  Jim Meyering  <meyering@lucent.com>
86962
86963         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86964         strtoimax.
86965         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86966         strtoumax.
86967
86968 2001-09-20  Jim Meyering  <meyering@lucent.com>
86969
86970         * lib/xstrtol.c (strtoimax): Guard declaration with
86971         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86972         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86973         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86974         (strtoumax): Likewise, for completeness (it wasn't necessary).
86975
86976 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86977
86978         * lib/strtoimax.c (HAVE_LONG_LONG):
86979         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86980         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86981         to work around bug in IBM C compiler.
86982
86983 2001-09-17  Jim Meyering  <meyering@lucent.com>
86984
86985         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86986         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86987         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86988         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86989         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86990         whenever the right hand side need not be expanded by the shell.
86991
86992 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86993
86994         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86995         library.  It's not correct, as some older glibcs are buggy.
86996         fnmatch wasn't fixed until glibc 2.2.
86997
86998         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86999         special shell magic here.
87000
87001 2001-09-16  Jim Meyering  <meyering@lucent.com>
87002
87003         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87004         * m4/jm-macros.m4: Require it.
87005
87006 2001-09-16  Jim Meyering  <meyering@lucent.com>
87007
87008         * lib/mkdir.c: New file.
87009
87010 2001-09-15  Jim Meyering  <meyering@lucent.com>
87011
87012         * m4/jm-macros.m4: Check for help2man.
87013
87014 2001-09-11  Jim Meyering  <meyering@lucent.com>
87015
87016         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87017         The body, by Paul Eggert, was moved here from configure.in.
87018         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87019
87020 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87021
87022         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87023         (jm_PREREQ): Use it.
87024
87025 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87026
87027         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87028         Use ssize_t, not int, to store result of readlink.
87029         Check for ssize_t overflow as well as size_t overflow,
87030         as POSIX says the result of readlink is implementation-defined
87031         when ssize_t overflows.
87032         Remove unnecessary cast to char*.
87033         Use free+malloc instead of realloc, as the storage doesn't need
87034         to be preserved and it's clearer and can be more efficient that way.
87035         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87036         * lib/xreadlink.h (xreadlink): Update prototype.
87037
87038 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87039
87040         * lib/xgetcwd.c: Revert some of the previous change; intead,
87041         fix the HAVE_GETCWD_NULL code to behave more like the
87042         !HAVE_GETCWD_NULL code used to.
87043
87044         Include "xalloc.h".
87045         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87046         invoke xalloc_die.
87047
87048 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87049
87050         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87051         sys/param.h, as pathmax.h includes them.
87052
87053 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87054
87055         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87056         (jm_PREREQ_XGETCWD): New macro.
87057
87058         * m4/getcwd.m4: New file.
87059
87060 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87061
87062         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87063         like the HAVE_GETCWD_NULL code.
87064         Include pathmax.h if not HAVE_GETCWD.
87065         Do not include xalloc.h.
87066         (INITIAL_BUFFER_SIZE): New symbol.
87067         Do not use xmalloc / xrealloc, since the caller is responsible for
87068         handling errors.  Preserve errno around `free' during failure.
87069         Do not overrun buffer when using getwd.
87070
87071 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87072
87073         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87074         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87075         getcwd (NULL, 0).
87076
87077 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87078
87079         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87080         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87081         spotted by Jim Meyering.
87082
87083 2001-09-03  Jim Meyering  <meyering@lucent.com>
87084
87085         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87086         failure.
87087
87088 2001-09-02  Jim Meyering  <meyering@lucent.com>
87089
87090         * lib/error.c: Update from GNU libc.
87091
87092 2001-09-01  Jim Meyering  <meyering@lucent.com>
87093
87094         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87095         Used by df.
87096
87097 2001-09-01  Jim Meyering  <meyering@lucent.com>
87098
87099         * lib/xreadlink.c: New file.
87100         * lib/xreadlink.h: New file.
87101         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87102         xreadlink.h.
87103
87104         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87105         doesn't conflict with sparc Solaris 7's definition in
87106         /usr/include/sys/int_types.h.
87107
87108         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87109         files.
87110         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87111         and strncasecmp as r-values.  Unixware didn't have declarations.
87112
87113 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87114
87115         * lib/xstrtol.h: Add copyright notice.
87116         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87117         LONGINT_INVALID_SUFFIX_CHAR.
87118
87119 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87120
87121         * lib/xstrtol.c (strtoimax): New decl.
87122
87123 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87124
87125         * lib/xgetcwd.c: Don't include pathmax.h.
87126         Include stdlib.h and unistd.h if available.
87127         Include xalloc.h.
87128         (xmalloc, xstrdup, free): Remove decls.
87129         (xgetcwd): Don't assume sizes fit in unsigned.
87130         Check for overflow when computing sizes.
87131         Simplify reallocation code.
87132
87133 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87134
87135         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87136         a directory's st_size can have an arbitrary value, so the old
87137         usage could waste an arbitrary amount of memory.  All uses
87138         changed.
87139         * lib/savedir.h: Update prototype.
87140
87141 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87142
87143         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87144
87145         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87146         old strtoimax.c.
87147
87148         Also, make the following further changes to make this file's
87149         configuration more similar to that of strtol.c:
87150         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87151         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87152         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87153         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87154         changed to signed values.
87155
87156         And make the following changes as well:
87157         Fix copyright notice, as 1999 was missing.
87158         (verify): New macro.
87159         (strtoimax): Check sizes at compile-time, not run-time.
87160         Prefer strtol to strtoll if both work.
87161         (main): Remove; it was not that useful and was a pain to maintain.
87162
87163         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87164
87165 2001-08-31  Jim Meyering  <meyering@lucent.com>
87166
87167         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87168         Use an initial, malloc'd, buffer of length 128 rather than
87169         a statically allocated one of length 1024.
87170
87171 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87172
87173         Simplify code, partly by assuming autoconf 2.52 semantics.
87174
87175         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87176
87177         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87178         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87179         All uses removed.
87180         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87181         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87182         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87183         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87184         jm_AC_HEADER_INTTYPES_H.
87185         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87186
87187         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87188
87189         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87190         Quote first arg of AC_DEFUN.
87191         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87192         since they are needed to parse the include file even if we need
87193         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87194         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87195         but with opposite signedness.
87196
87197 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87198
87199         Merge 'exclude' changes from tar 1.13.22.
87200         This fixes one or two unlikely storage allocation overflow bugs,
87201         but doesn't change user-visible behavior otherwise.
87202
87203 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87204
87205         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87206         (jm_PREREQ_EXCLUDE): New macro.
87207
87208 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87209
87210         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87211         tm to be declared.
87212
87213 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87214
87215         * lib/hash.c: Remove '2001' from copyright notice.
87216
87217 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87218
87219         * lib/full-write.h: New file.
87220         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87221         * lib/full-write.c: Correct credits, as cccp.c no longer
87222         exists and anyway it was so heavily changed from the old cccp
87223         code as to be unrecognizable.  Include full-write.h.
87224         (full_write): Return size_t, with short writes meaning failure.
87225         All callers changed.  This fixes a bug with large buffers
87226         on 64-bit hosts.
87227         * lib/utime.c: Include full-write.h.
87228
87229 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87230
87231         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87232         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87233         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87234         Include if available.
87235         (<xalloc.h>): Include
87236         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87237         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87238         collide with FNM macros.
87239         (struct patopts): New struct.
87240         (struct exclude): Use it, as exclude patterns now come with options.
87241         (new_exclude): Support above changes.
87242         (new_exclude, add_exclude_file):
87243         Initial size must now be a power of two to simplify overflow checking.
87244         (free_exclude, fnmatch_no_wildcards): New function.
87245         (excluded_filename): No longer requires options arg, as the options
87246         are determined by add_exclude.  Now returns bool, not int.
87247         (excluded_filename, add_exclude):
87248         Add support for the fancy new exclusion options.
87249         (add_exclude, add_exclude_file): Now takes int options arg.
87250         Check for arithmetic overflow when computing sizes.
87251         (add_exclude_file): xrealloc might modify errno, so don't
87252         realloc until after errno might be used.
87253
87254         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87255         New macros.
87256         (free_exclude): New decl.
87257         (add_exclude, add_exclude_file): Now takes int options arg.
87258         (excluded_filename): No longer requires options arg, as the options
87259         are determined by add_exclude.  Now returns bool, not int.
87260
87261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87262
87263         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87264
87265 2001-08-27  Jim Meyering  <meyering@lucent.com>
87266
87267         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87268
87269         * lib/version-etc.c (N_): Remove definition.
87270         Revert most of last change.
87271         Instead, simply don't mark the `Copyright...' string for translation.
87272         Based on advice from Paul Eggert.
87273
87274         * lib/strtoxmax.c: Tweak comment.
87275
87276 2001-08-26  Jim Meyering  <meyering@lucent.com>
87277
87278         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87279
87280         * m4/xstrtoimax.m4: New file.
87281         * m4/xstrtoumax.m4: Add comments explaining why we
87282         AC_REPLACE_FUNCS(strtol).
87283
87284 2001-08-26  Jim Meyering  <meyering@lucent.com>
87285
87286         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87287         of copyright with `%s' so translators don't get an untranslated
87288         message in 2002.
87289         (COPYRIGHT_YEAR): Define.
87290         (version_etc): Use fprintf rather than fputs.
87291         Suggestion from Ulrich Drepper.
87292
87293         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87294
87295         * lib/strtoll.c: New file, from GNU libc.
87296         * lib/xstrtoimax.c: New file.
87297
87298         * lib/xstrtol.h: Add xstrtoimax.
87299         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87300         * lib/strtoimax.c: New file.  Likewise, but first define
87301         STRTOUXMAX_SIGNED.
87302
87303         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87304         ...
87305         * lib/strtoxmax.c: ... then renamed to this.
87306
87307 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87308
87309         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87310         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87311         (jm_AC_TYPE_INTMAX_T): New macro.
87312         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87313
87314         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87315
87316         * m4/longlong.m4: Renamed from ulonglong.m4.
87317         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87318         * m4/uintmax_t.m4: Removed.
87319
87320 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87321
87322         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87323         Port to Solaris 8, where 'sed' requires a space after the 'r'
87324         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87325         Redirect output to $tmp just once.
87326
87327 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87328
87329         * lib/addext.c (<errno.h>): Include.
87330         (errno): Declare if not defined.
87331         (addext): Work correctly when pathconf returns -1 and leaves
87332         errno alone because there is no limit.  Also, work even if
87333         pathconf returns a value greater than SIZE_MAX.
87334
87335 2001-08-12  Jim Meyering  <meyering@lucent.com>
87336
87337         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87338         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87339         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87340         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87341         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87342         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87343         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87344         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87345         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87346         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87347         utime.m4, utimes.m4, xstrtoumax.m4:
87348         Quote the first argument in each use of AC_DEFUN.
87349
87350 2001-08-12  Jim Meyering  <meyering@lucent.com>
87351
87352         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87353         Simply `return getcwd (NULL, 0);'.
87354         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87355         Use 1300 as initial value for length, not PATH_MAX.
87356
87357         * lib/pathmax.h: Clean up cpp syntax.
87358
87359 2001-08-12  Jim Meyering  <meyering@lucent.com>
87360
87361         * lib/gettimeofday.c: New file.
87362         * lib/gtod.h: New file.
87363         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87364
87365 2001-08-05  Jim Meyering  <meyering@lucent.com>
87366
87367         * m4/jm-macros.m4: Require autoconf-2.52.
87368
87369 2001-08-04  Jim Meyering  <meyering@lucent.com>
87370
87371         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87372         stmt, to get in sync with glibc.
87373
87374 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87375
87376         The following changes are from gettext 0.10.39 as maintained by
87377         Bruno Haible.
87378
87379         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87380         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87381         with inverted sense.  All uses changed.
87382
87383         * lib/mbswidth.c: Don't include <limits.h>.
87384         Include <stdlib.h> and <string.h> unconditionally.
87385         (iswcntrl, mbsinit, ISCNTRL): New macros.
87386         (mbsnwidth): Use K&R style function declarations.
87387         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87388         can optimize it when MB_CUR_MAX == 1.
87389         The width of control characters is zero, not 1.
87390
87391 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87392
87393         The following changes are from gettext 0.10.39 as maintained by
87394         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87395
87396         * m4/codeset.m4: Upgrade to serial AM1.
87397         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87398         all uses changed.  Quote first arg of AC_DEFUN.
87399         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87400
87401         * m4/iconv.m4: Upgrade to serial AM2.
87402         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87403         Add --with-libconv-prefix.
87404         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87405         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87406         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87407         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87408         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87409
87410         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87411         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87412         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87413         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87414         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87415         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87416         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87417         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87418         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87419
87420         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87421         string.h any more.
87422
87423         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87424         not the default value.
87425
87426         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87427         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87428         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87429         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87430         Also check for iswcntrl, used for wcwidth fallback.
87431         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87432         to Autoconf 2.13.
87433
87434 2001-08-03  Jim Meyering  <meyering@lucent.com>
87435
87436         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87437         as it was in the original.  Reported by Paul Eggert.
87438
87439 2001-07-16  Jim Meyering  <meyering@lucent.com>
87440
87441         * m4/gettimeofday.m4: New file.
87442         Prompted by a report from Bernhard Baehr.
87443
87444 2001-07-15  Jim Meyering  <meyering@lucent.com>
87445
87446         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87447         stuff. Now it's in ../Makefile.cfg.
87448
87449 2001-07-15  Jim Meyering  <meyering@lucent.com>
87450
87451         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87452         (BUILT_SOURCES): Add unlocked-io.h.
87453         (io_functions): Define.
87454         (unlocked-io.h): New rule.
87455         (DISTCLEANFILES): Add unlocked-io.h.
87456         (all-local): Depend on unlocked-io.h, to ensure it is created.
87457
87458         * lib/unlocked-io.hin: New file
87459
87460         * lib/regex.c: Update from glibc.
87461
87462 2001-07-05  Jim Meyering  <meyering@lucent.com>
87463
87464         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87465         recommendation.
87466         (libfetish_a_SOURCES): Put all .h files here instead.
87467         Remove a thus-exposed (better checks in automake) duplicate and
87468         two unnecessary .h files.
87469
87470 2001-07-04  Jim Meyering  <meyering@lucent.com>
87471
87472         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87473         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87474         distcheck failure.
87475
87476 2001-07-02  Jim Meyering  <meyering@lucent.com>
87477
87478         The following changes were prompted by suggestions from Bruno Haible.
87479
87480         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87481         is now generated.
87482         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87483         definition of EXTRA_DIST.
87484         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87485         ensure that the generated file is created/updated whenever the list
87486         of $(unlocked_functions) is changed.
87487         (jm-glibc-io.m4): New rule.
87488         (unlocked-io.h): New rule -- currently unused.
87489
87490 2001-06-24  Jim Meyering  <meyering@lucent.com>
87491
87492         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87493         unmatched right bracket, rather than kludging it with an extra,
87494         falsely-matching quote in a comment.  Patch by Akim Demaille.
87495
87496 2001-06-11  Jim Meyering  <meyering@lucent.com>
87497
87498         * lib/regex.c: Update from GNU libc.
87499
87500 2001-05-27  Jim Meyering  <meyering@lucent.com>
87501
87502         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87503         Check for ut_type in struct utmp.
87504
87505 2001-05-27  Jim Meyering  <meyering@lucent.com>
87506
87507         * lib/readutmp.h (UT_TYPE): Define.
87508
87509 2001-05-24  Jim Meyering  <meyering@lucent.com>
87510
87511         * lib/argmatch.c: Include "quote.h".
87512         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87513         quote function.  Reported by Göran Uddeborg.
87514
87515 2001-05-22  Jim Meyering  <meyering@lucent.com>
87516
87517         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87518         now that we use the package-supplied version unconditionally.
87519         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87520
87521 2001-05-21  Jim Meyering  <meyering@lucent.com>
87522
87523         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87524         shell syntax errors.
87525
87526 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87527
87528         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87529
87530 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87531
87532         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87533         Don't bother to check library strftime, since
87534         we'll be using our own my_strftime function anyway.
87535         Define my_strftime instead of strftime.
87536
87537 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87538
87539         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87540         which is not yet declared.
87541
87542 2001-05-15  Jim Meyering  <meyering@lucent.com>
87543
87544         * m4/regex.m4: Use proper quoting so brackets appear in the test
87545         program.
87546         Reported by, and with help from, Bruno Haible.
87547
87548 2001-05-13  Jim Meyering  <meyering@lucent.com>
87549
87550         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87551         undefined.
87552
87553 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87554
87555         dirname code cleanup.  base_name now behaves more compatibly
87556         with POSIX basename when given file names that have trailing
87557         slashes, and similarly for dir_name.  Add new primitives
87558         base_len and dir_len.  Put the directory-name-related decls
87559         into dirname.h.
87560
87561         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87562         * lib/backupfile.c (base_name): Likewise.
87563         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87564         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87565         * lib/makepath.c (strip_trailing_slashes): Likewise.
87566         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87567         ISSLASH): Likewise.
87568         * lib/rename.c (strip_trailing_slashes): Likewise.
87569         * lib/same.c (base_name): Likewise.
87570         * lib/stripslash.c (ISSLASH): Likewise.
87571
87572         * lib/addext.c: Include <dirname.h> after size_t is defined.
87573         * lib/backupfile.c: Likewise.
87574
87575         * lib/addext.c (addext): Use base_len to trim redundant
87576         trailing slashes instead of doing it ourselves.
87577         But do not trim the last slash if it is not redundant.
87578
87579         * lib/backupfile.c (find_backup_file_name,
87580         max_backup_version): Use base_len instead of rolling it ourselves.
87581         Handle the case of "" and (on DOS) "C:" correctly.
87582
87583         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87584         needed. Include <string.h>, <dirname.h>.
87585         (base_name): Allow file names ending in slashes, other than names
87586         that are all slashes.  In this case, return the basename followed
87587         by the slashes.  This is more general, and can be used in places
87588         where the original base_name purposely had an assertion failure.
87589         (base_len): New function.
87590
87591         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87592         Do not include <assert.h>; no longer needed.
87593         Include xalloc.h.
87594         (memrchr): Remove decl.
87595         (dir_name_r): Remove.
87596         (dir_len): Renamed from dirlen.  All callers changed.
87597         Rewrite in terms of base_name, for simplicity and consistency.
87598         (dir_name): Never return NULL.  All callers changed.
87599         Do not include <stdlib.h> in test program; no longer needed.
87600         return 0; is fine for test program.
87601
87602         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87603         New macros.
87604         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87605
87606         * lib/path-concat.c (path_concat): Use base_len to compute
87607         base length, not strlen; this means we cannot rely on memcpy
87608         to null-terminate.
87609
87610         * lib/same.c (STREQ): Remove.
87611         (same_name): Handle the case where the basename ends in trailing '/'.
87612
87613         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87614         a slash was stripped.  Do not strip the last slash after a
87615         file system prefix.
87616
87617 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87618
87619         * lib/Makefile.am (libfetish_a_SOURCES):
87620         Add strftime.c, since we now compile it on all hosts.
87621
87622         * lib/strftime.c (my_strftime):
87623         Define to nstrftime if emacs, but only if my_strftime is not defined.
87624         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87625         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87626         Add one more extra argument: a nanoseconds value.
87627         All uses changed.
87628         (ns): New macro.
87629         (my_strftime function): Add %N format.
87630         (emacs_strftimeu): Renamed from emacs_strftime,
87631         with extra ut argument.
87632
87633 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87634
87635         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87636
87637 2001-04-21  Jim Meyering  <meyering@lucent.com>
87638
87639         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87640         doesn't interfere.
87641
87642 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87643
87644         * m4/ftruncate.m4: Check for chsize.
87645         Link with ftruncate.o unconditionally if ftruncate is missing.
87646         This was required when cross-compiling to i586-mingw32msvc.
87647
87648 2001-04-08  Jim Meyering  <meyering@lucent.com>
87649
87650         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87651         recomputed; that's necessary when the offset spans a DST transition.
87652         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87653
87654 2001-04-02  Jim Meyering  <meyering@lucent.com>
87655
87656         * lib/regex.h, regex.c: Update from GNU libc.
87657
87658 2001-03-24  Jim Meyering  <meyering@lucent.com>
87659
87660         * m4/jm-macros.m4: Require autoconf-2.49d.
87661
87662 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87663
87664         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87665
87666 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87667
87668         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87669
87670 2001-03-17  Jim Meyering  <meyering@lucent.com>
87671
87672         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87673         now that the version in autoconf is equivalent.
87674         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87675
87676         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87677         Suggestion from Akim Demaille.
87678
87679         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87680         (jm_PREREQ_TEMPNAME): New function.
87681
87682 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87683
87684         * lib/tempname.c (uint64_t): Define to uintmax_t if
87685         not defined, and if UINT64_MAX is not defined.
87686         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87687         Reported by John David Anglin.
87688
87689 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87690
87691         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87692         resolve alias if codeset is empty.
87693         * lib/config.charset (BeOS): Use wildcard syntax.
87694
87695 2001-03-13  Jim Meyering  <meyering@lucent.com>
87696
87697         * lib/path-concat.c (path_concat)
87698         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87699         concatenating e.g., `C:' and `foo'.
87700         From Bruno Haible.
87701
87702 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87703
87704         * lib/localcharset.c (locale_charset): Don't use
87705         setlocale(LC_CTYPE,NULL). Don't return NULL.
87706         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87707
87708 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87709
87710         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87711         support for DOS/DJGPP.
87712
87713 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87714
87715         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87716         lacks mkstemp.  Compile our own tempname.c if we compile our own
87717         mkstemp.c, as mkstemp relies on tempname.
87718
87719 2001-03-01  Jim Meyering  <meyering@lucent.com>
87720
87721         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87722         AH_VERBATIM really does output its argument verbatim.
87723
87724 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87725
87726         * lib/Makefile.am (libfetish_a_SOURCES):
87727         Add dup-safer.c, fopen-safer.c.
87728         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87729
87730         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87731         * lib/unistd-safer.h: New files.
87732
87733 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87734
87735         The mkstemp replacement is taken from glibc 2.2.2, with some
87736         portability fixes for use outside glibc, as follows:
87737
87738         * lib/tempname.c (struct_stat64): New macro.
87739         (direxists, __gen_tempname): Use it.
87740         This avoids a portability problem with Solaris 8.
87741
87742         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87743         (<stddef.h>, <stdint.h>, <string.h>):
87744         Include only if STDC_HEADERS || _LIBC.
87745         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87746         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87747         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87748         (__set_errno): Define this macro if <errno.h> doesn't.
87749         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87750         Define these macros if <stdio.h> doesn't.
87751         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87752         Define these macros if <sys/stat.h>
87753         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87754         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87755         __xstat64): Define if not _LIBC.
87756         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87757         (__gen_tempname): Invoke gettimeofday only if
87758         HAVE_GETTIMEOFDAY || _LIBC;
87759         otherwise, fall back on plain "time".
87760         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87761
87762         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87763
87764         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87765
87766 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87767
87768         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87769
87770 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87771
87772         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87773         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87774         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87775         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87776
87777 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87778
87779         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87780         Remove workaround macros for hosts that have mbrtowc but not
87781         mbstate_t, as we now insist on proper declarations for both
87782         before using mbrtowc.
87783
87784 2001-02-17  Jim Meyering  <meyering@lucent.com>
87785
87786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87787         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87788         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87789         UnixWare 7.1.1.
87790
87791         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87792         rather than AC_CACHE_VAL.
87793
87794 2001-02-17  Jim Meyering  <meyering@lucent.com>
87795
87796         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87797         around included file name.
87798
87799         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87800
87801         * lib/strftime.c: Update from GNU libc (the only changes were to
87802         comments).
87803
87804 2001-02-17  Jim Meyering  <meyering@lucent.com>
87805
87806         * lib/regex.c: Update from libc.
87807
87808 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87809
87810         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87811         clash.
87812
87813 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87814
87815         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87816         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87817         Reported by Mark Hounschell via Paul Eggert.
87818
87819 2001-02-07  Jim Meyering  <meyering@lucent.com>
87820
87821         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87822
87823 2001-02-05  Jim Meyering  <meyering@lucent.com>
87824
87825         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87826         it includes the patch required for `large file' support with at least
87827         HP-UX's 10.20 /bin/cc.
87828
87829 2001-02-03  Jim Meyering  <meyering@lucent.com>
87830
87831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87832         AS_IF, now that it works once again (mysteriously).
87833         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87834
87835 2001-01-30  Jim Meyering  <meyering@lucent.com>
87836
87837         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87838         * m4/chown.m4: Rename conftestchown to conftest.chown.
87839         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87840         s/conftestdir2/conftest.d2/.
87841         * m4/utimes.m4: s/conftestdata/conftest.data/
87842         Inspired by Pavel Roskin's change in autoconf.
87843
87844 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87845
87846         * lib/config.charset: Update for FreeBSD 4.2.
87847
87848 2001-01-27  Jim Meyering  <meyering@lucent.com>
87849
87850         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87851         a use of AS_IF.
87852         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87853
87854 2001-01-26  Jim Meyering  <meyering@lucent.com>
87855
87856         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87857         quotearg.c includes it.
87858
87859 2001-01-26  Jim Meyering  <meyering@lucent.com>
87860
87861         * lib/quotearg.c: Include stddef.h.
87862         * lib/quote.c: Include stddef.h.
87863         Reported by Axel Kittenberger.
87864
87865         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87866         line in double quotes so that it evokes a better diagnostic.
87867         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87868         Reported by Axel Kittenberger.
87869
87870 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87871
87872         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87873         as if it was a `charset'.
87874
87875 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87876
87877         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87878         has const.
87879
87880 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87881
87882         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87883         to avoid a warning.  Add back 'const' to inptr.
87884
87885 2001-01-20  Jim Meyering  <meyering@lucent.com>
87886
87887         Be sure that headers are checked before used in code compiled
87888         for the type checks.
87889         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87890         In place of that, invoke jm_CHECK_ALL_TYPES.
87891         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87892         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87893         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87894         The check for ssize_t was mistakenly run before the test for unistd.h.
87895
87896         The configure-time check for stdbool.h was missing.
87897         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87898         (jm_PREREQ_HASH): New function.
87899
87900 2001-01-17  Jim Meyering  <meyering@lucent.com>
87901
87902         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87903         for autoconf-2.49c.
87904         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87905
87906 2001-01-16  Jim Meyering  <meyering@lucent.com>
87907
87908         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87909         From Bruno Haible.
87910
87911 2001-01-14  Jim Meyering  <meyering@lucent.com>
87912
87913         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87914         foo and bar.  Create conftestdir/ in the script, not in the C code.
87915         Remove directories in the script, not in the C code.
87916         Remove conftestdir{,2} before trying to create the directory.
87917         Make the entire configure script fail if the mkdir fails.
87918
87919 2001-01-14  Jim Meyering  <meyering@lucent.com>
87920
87921         * lib/rename.c: New file.  From Volker Borchert.
87922         Include stdlib.h, string.h or strings.h, and xalloc.h.
87923         Use strip_trailing_slashes rather than open-coding it.
87924
87925 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87926
87927         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87928
87929 2001-01-03  Jim Meyering  <meyering@lucent.com>
87930
87931         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87932         of local `inptr' to avoid warning with some system declarations of
87933         iconv.
87934
87935 2001-01-02  Volker Borchert  <bt@teknon.de>
87936
87937         * m4/rename.m4: New file.
87938         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87939
87940 2001-01-01  Jim Meyering  <meyering@lucent.com>
87941
87942         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87943         even on systems with utmpx.h.  It's necessary for the declaration of
87944         utmp's ut_user member.  Reported by Andreas Jaeger.
87945
87946         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87947         available. They are required for the declarations of getgrgid and
87948         getpwuid resp.
87949         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87950         Reported by Andreas Jaeger.
87951
87952 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87953
87954         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87955         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87956         so `make install' also works in VPATH builds.
87957
87958 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87959
87960         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87961         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87962         can be used in subdirectories.
87963
87964 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87965
87966         * lib/modechange.c: Do not assume that mode_t uses the
87967         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87968         the other-execute bit of FOO even if S_IXOTH != 1.
87969
87970         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87971         WOTH, XOTH, ALLM): New macros.
87972         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87973          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87974         Use them.
87975         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87976         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87977         (mode_compile):
87978         No need to use uintmax_t; unsigned long is long enough.
87979         Don't bother to get suffix since we don't use it.
87980
87981 2000-12-26  Jim Meyering  <meyering@lucent.com>
87982
87983         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87984         better with autoheader.
87985
87986 2000-12-24  Jim Meyering  <meyering@lucent.com>
87987
87988         * lib/hash.c (is_prime): Return explicit boolean values.
87989         (hash_get_first): Return NULL to appease Irix5.6's 89.
87990         Reported by Nelson Beebe.
87991
87992 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87993
87994         * lib/localcharset.c (locale_charset): Add support for Win32.
87995
87996 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87997
87998         * lib/physmem.h, lib/physmem.c: New files.
87999
88000         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88001         (noinst_HEADERS): Add physmem.h.
88002
88003         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88004         't' for compatibility with Solaris 8 sort.
88005
88006 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88007
88008         * lib/config.charset: Add support for BeOS.
88009
88010 2000-12-17  Jim Meyering  <meyering@lucent.com>
88011
88012         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88013         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88014
88015 2000-12-16  Jim Meyering  <meyering@lucent.com>
88016
88017         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88018         N and M) would have treated it like `chown N:N FILE'.
88019
88020         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88021
88022 2000-12-16  Jim Meyering  <meyering@lucent.com>
88023
88024         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88025         SHELLS_FILE to a file name that's useful on djgpp systems.
88026         Include stdlib.h.
88027         (ADDITIONAL_DEFAULT_SHELLS): Define.
88028         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88029         Based mostly on a patch from Prashant TR.
88030
88031 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88032
88033         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88034         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88035         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88036
88037 2000-12-08  Andreas Schwab  <schwab@suse.de>
88038
88039         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88040         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88041
88042 2000-12-07  Jim Meyering  <meyering@lucent.com>
88043
88044         * lib/stripslash.c (ISSLASH): Define.
88045         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88046         `/'.
88047         From Prashant TR.
88048
88049         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88050         (dir_name_r): Declare this function as static.
88051         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88052         manifest itself on a name containing a mix of slashes and
88053         backslashes.
88054         Make this function work with names starting with a DOS-style
88055         drive letter and colon prefix.
88056         (dir_name): Append `.' if necessary.
88057         Based mostly on patches from Prashant TR and Eli Zaretskii.
88058
88059         * lib/dirname.h (dir_name_r): Remove prototype.
88060
88061 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88062
88063         * m4/off_t-format.m4: Remove this file.
88064         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88065
88066 2000-12-06  Jim Meyering  <meyering@lucent.com>
88067
88068         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88069         replacement strtoull, we may well need the replacement strtoul, too.
88070         Check for declarations of strtoul and strtoull.
88071         Check for strtol.  Mainly as a cue to cause automake to include
88072         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88073         Check for limits.h -- strtol.c needs it.
88074
88075 2000-12-05  Jim Meyering  <meyering@lucent.com>
88076
88077         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88078
88079 2000-12-04  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88082         Also include memory.h, stdlib.h, unistd.h if appropriate.
88083         Reported by Andreas Jaeger (conflicting declaration of malloc).
88084
88085 2000-12-02  Jim Meyering  <meyering@lucent.com>
88086
88087         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88088         * m4/jm-macros.m4 (jm_MACROS): require it.
88089
88090 2000-12-02  Jim Meyering  <meyering@lucent.com>
88091
88092         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88093
88094 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88095
88096         * lib/memrchr.c: Include <config.h> before any system include file.
88097
88098 2000-11-30  Jim Meyering  <meyering@lucent.com>
88099
88100         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88101
88102 2000-11-30  Jim Meyering  <meyering@lucent.com>
88103
88104         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88105
88106 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88107
88108         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88109
88110 2000-11-26  Jim Meyering  <meyering@lucent.com>
88111
88112         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88113
88114 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88115
88116         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88117         size of (size_t) -1; it's not portable.
88118
88119 2000-11-17  Jim Meyering  <meyering@lucent.com>
88120
88121         * lib/strstr.c: Update from GNU libc.
88122
88123 2000-11-17  Akim Demaille  <akim@epita.fr>
88124
88125         * lib/obstack.h: Formatting changes.
88126         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88127         prevent type checking.
88128         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88129         cast the value to (void *): assigning a `foo *' to a `void *'
88130         variable is valid.
88131         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88132
88133 2000-11-16  Jim Meyering  <meyering@lucent.com>
88134
88135         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88136
88137 2000-11-11  Jim Meyering  <meyering@lucent.com>
88138
88139         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88140
88141 2000-11-10  Jim Meyering  <meyering@lucent.com>
88142
88143         * lib/obstack.h: Update from GNU libc.
88144         * lib/obstack.c: Likewise.
88145
88146 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88147
88148         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88149
88150 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88151
88152         * lib/getusershell.c (setusershell): Use rewind rather than
88153         fseek/fseeko, to avoid configuration hassles with fseeko.
88154         Don't bother opening SHELLS_FILE if shellstream is NULL;
88155         it's not necessary.
88156
88157 2000-11-05  Jim Meyering  <meyering@lucent.com>
88158
88159         * lib/makepath.h (make_dir): Declare.
88160         * lib/makepath.c (make_dir): Remove `static' attribute.
88161         Tweak a comment.
88162
88163 2000-11-04  Jim Meyering  <meyering@lucent.com>
88164
88165         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88166
88167 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88168
88169         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88170         last one in a bucket, advance to the next bucket.
88171
88172 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88173
88174         * lib/fnmatch.c: Do not comment out all the code if we are using
88175         the GNU C library, because in some cases we are replacing buggy
88176         code in the GNU C library itself.
88177
88178 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88179
88180         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88181         (regex_compile): Catch bogus \(\1\).
88182
88183 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88184
88185         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88186         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88187         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88188
88189 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88190
88191         * lib/error.h, getline.h, modechange.h:
88192         Remove "2000" from Copyright line, as the file hasn't been
88193         changed this year other than in the copyright notice.
88194
88195         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88196         was changed this year.
88197
88198 2000-10-29  Jim Meyering  <meyering@lucent.com>
88199
88200         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88201         renaming.
88202         * m4/ls-mntd-fs.m4: Likewise
88203
88204 2000-10-29  Jim Meyering  <meyering@lucent.com>
88205
88206         * lib/xstat.in: Fix grammar in comment.
88207
88208 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88209
88210         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88211         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88212         doesn't define __restrict_arr.
88213
88214 2000-10-28  Jim Meyering  <meyering@lucent.com>
88215
88216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88217         (jm_PREREQ_MEMCHR): New function.
88218
88219 2000-10-28  Jim Meyering  <meyering@lucent.com>
88220
88221         * lib/memchr.c: Update from libc.
88222         Adjust for portability:
88223         [HAVE_STDLIB_H]: Include stdlib.h.
88224         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88225         Undef __memchr, too.
88226         [!weak_alias]: Define __memchr to memchr.
88227
88228         * lib/regex.c: Update from libc.
88229         * lib/regex.h: Likewise.
88230         * lib/getopt1.c: Likewise.
88231         * lib/memcmp.c: Likewise.
88232
88233         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88234         Avoid using fseek, when possible -- it's broken by design.
88235         Patch by Ulrich Drepper.
88236
88237 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88238
88239         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88240         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88241         Giving in to popular pressure to shut up the compiler with casts.
88242
88243 2000-10-26  Jim Meyering  <meyering@lucent.com>
88244
88245         * lib/strftime.c: Update from libc.
88246
88247 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88248
88249         * regex.c: More `unsigned char' -> `re_char' changes.
88250         Also change several `int' into `re_wchar_t'.
88251         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88252         (PUSH_FAILURE_POINTER): Don't cast any more.
88253         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88254         We want GCC to complain, since this piece of code makes
88255         re_match non-reentrant, which *should* be fixed.
88256         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88257         (EXTEND_BUFFER): Use RETALLOC.
88258         (SET_LIST_BIT): Don't cast.
88259         (re_wchar_t): New type.
88260         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88261         that those two functions will always properly return.
88262         (IMMEDIATE_QUIT_CHECK): Cast to void.
88263         (analyse_first): Use recursion rather than an explicit stack.
88264         (re_compile_fastmap): Can't fail anymore.
88265         (re_search_2): Don't check re_compile_fastmap for failure.
88266         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88267         Now also sets the new value (passed in a new argument).
88268         (re_match_2_internal): Use it.
88269         Also, use a new var `reg' of type size_t when looping through regs
88270         rather than reuse the inappropriate `mcnt'.
88271
88272 2000-10-25  Jim Meyering  <meyering@lucent.com>
88273
88274         * lib/obstack.c: Update from libc.
88275
88276 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88277
88278         * regex.c (regex_compile): Change the way of handling a range from
88279         a char less than 256 to a char not less than 256.
88280
88281 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88282
88283         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88284         NT-Emacs only.
88285         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88286         so that re_search functions only quit when callers expect them to.
88287
88288 2000-10-23  Jim Meyering  <meyering@lucent.com>
88289
88290         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88291         wrong.  That set_locale call must not have any side effects.
88292         From Paul Eggert.
88293
88294 2000-10-22  Jim Meyering  <meyering@lucent.com>
88295
88296         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88297         [CYCLIC]: Remove now-unused definition.
88298
88299         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88300         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88301         Suggestion from Ulrich Drepper.
88302
88303 2000-10-21  Jim Meyering  <meyering@lucent.com>
88304
88305         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88306         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88307         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88308
88309 2000-10-21  Jim Meyering  <meyering@lucent.com>
88310
88311         * lib/dirname.c (memrchr): Declare if necessary.
88312         (dir_name): Remove the restriction that there be no
88313         trailing slashes.  Now, this code skips past them, effectively
88314         ignoring them.
88315         [TEST_DIRNAME] (main): New unit tests.
88316
88317         * lib/memrchr.c: New file from GNU libc.
88318         Undef __memrchr, too.
88319         [!weak_alias]: Define __memrchr to memrchr.
88320         Guard weak_alias use with `#ifdef weak_alias'.
88321
88322 2000-10-21  Jim Meyering  <meyering@lucent.com>
88323
88324         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88325         (dir_name): Use dir_name_r.
88326         * lib/dirname.h (dir_name_r): Declare it.
88327
88328 2000-10-17  Jim Meyering  <meyering@lucent.com>
88329
88330         * lib/quote.h (PARAMS): Define and use.
88331         Reported by Akim Demaille.
88332
88333         * lib/getopt.c: Update from libc.
88334
88335 2000-10-16  Jim Meyering  <meyering@lucent.com>
88336
88337         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88338         setlocale.
88339         From Jan Fedak.
88340
88341 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88342
88343         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88344
88345 2000-09-25  Jim Meyering  <meyering@lucent.com>
88346
88347         * lib/md5.h (rol): Define (from GnuPG).
88348
88349         * lib/sha.c: Give credit (GnuPG) where due.
88350         (M): Use rol rather than open-coding it.
88351         Add a FIXME comment.
88352
88353 2000-09-21  Jim Meyering  <meyering@lucent.com>
88354
88355         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88356         Reported by Michael Stone.
88357
88358 2000-09-20  Jim Meyering  <meyering@lucent.com>
88359
88360         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88361         (noinst_HEADERS): Add sha.h.
88362         Based on code from Scott G. Miller and from GnuPG.
88363
88364 2000-09-18  Jim Meyering  <meyering@lucent.com>
88365
88366         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88367         LIBS. Otherwise, everyone ends up linking with -lelf for some
88368         configurations.
88369         Reported by Mike Stone.
88370
88371 2000-09-15  Jim Meyering  <meyering@lucent.com>
88372
88373         * lib/regex.c: Update from libc.
88374
88375 2000-09-10  Jim Meyering  <meyering@lucent.com>
88376
88377         * lib/getopt.c (_getopt_internal): Update from glibc.
88378
88379 2000-09-09  Jim Meyering  <meyering@lucent.com>
88380
88381         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88382         think it should be used as a general replacement for isascii.
88383         * lib/fnmatch.c: Likewise.
88384         * lib/mbswidth.c: Likewise
88385         * lib/regex.c: Likewise.
88386
88387         Don't use atoi.
88388         * lib/userspec.c: Include sys/param.h and limits.h.
88389         Include xstrtol.h.
88390         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88391         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88392         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88393         UID, GID.  Check range.
88394
88395 2000-09-06  Jim Meyering  <meyering@lucent.com>
88396
88397         * lib/getopt.c (_getopt_internal): Update from glibc.
88398
88399 2000-08-30  Jim Meyering  <meyering@lucent.com>
88400
88401         * lib/strftime.c: Merge in changes from GNU libc.
88402
88403 2000-08-26  Jim Meyering  <meyering@lucent.com>
88404
88405         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88406         * m4/fpending.m4: New file.
88407
88408 2000-08-26  Jim Meyering  <meyering@lucent.com>
88409
88410         * lib/closeout.c: Include "__fpending.h".
88411         (close_stdout_status): Return right away if there's nothing to flush.
88412
88413         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88414         * lib/__fpending.c: New file.
88415         * lib/__fpending.h: New file.
88416
88417 2000-08-20  Jim Meyering  <meyering@lucent.com>
88418
88419         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88420         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88421         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88422
88423 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88424
88425         Improve fileutils installation on systems where running
88426         programs (like install) can't be unlinked.
88427         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88428         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88429
88430 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88431
88432         Standardize on "memory exhausted" instead of "Memory exhausted"
88433         or "virtual memory exhausted".
88434         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88435         "virtual memory exhausted".
88436         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88437         our own message.
88438         * lib/userspec.c (parse_user_spec): Likewise.
88439         * lib/bumpalloc.h: comment fix
88440         * lib/same.c, userspec.c: Include xalloc.h.
88441
88442         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88443         not char *const and pointing to a constant array.
88444         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88445         (xrealloc): Comment fix.
88446
88447         * lib/userspec.c (parse_user_spec):
88448         Don't translate a message until just before returning,
88449         to avoid unnecessary translation.
88450
88451 2000-08-07  Jim Meyering  <meyering@lucent.com>
88452
88453         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88454         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88455         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88456         getgroups.c, gethostname.c, getopt.h, group-member.c,
88457         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88458         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88459         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88460         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88461         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88462         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88463         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88464         yesno.c: Back out Copyright date changes for each file with no change
88465         this year.  This eases coordination with other programs using the same
88466         source code modules.  From Paul Eggert.
88467
88468 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88469
88470         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88471         not char, for compatibility with glibc 2.1.3 strftime.c.
88472
88473 2000-08-03  Greg McGary  <greg@mcgary.org>
88474
88475         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88476         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88477         (EXTEND_BUFFER): Use them.
88478
88479 2000-08-01  Jim Meyering  <meyering@lucent.com>
88480
88481         * lib/dirname.c (ISSLASH): Define.
88482         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88483         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88484         both `\' and `/' may be use as path separators.
88485         Based on a patch from Prashant TR.
88486
88487 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88488
88489         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88490         slot vector a constant, since it might get modified.
88491
88492 2000-07-31  Jim Meyering  <meyering@lucent.com>
88493
88494         * lib/xmalloc.c: Use `virtual memory exhausted', not
88495         `Memory exhausted'.
88496         * lib/obstack.c (print_and_abort): Likewise.
88497
88498 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88499
88500         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88501         buffer, so that the caller can always quote one small
88502         component of a "memory exhausted" message in slot 0.
88503         From a suggestion by Jim Meyering.
88504
88505 2000-07-30  Jim Meyering  <meyering@lucent.com>
88506
88507         * lib/makepath.c (make_path): Quote the other instance, too.
88508
88509         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88510         (STATIC_BUF_SIZE): Define.
88511         (quotearg_n_options): Use only statically allocated storage when
88512         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88513         than STATIC_BUF_SIZE.
88514
88515 2000-07-29  Jim Meyering  <meyering@lucent.com>
88516
88517         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88518         * lib/dirname.c (dir_name): Likewise.
88519
88520         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88521         `/'.
88522
88523         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88524         (dir_name): Assert that there are no trailing slashes.
88525
88526 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88527
88528         * lib/mbswidth.h (mbswidth): Add a flags argument.
88529         (mbswidth): New declaration.
88530         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88531         * lib/mbswidth.c (mbswidth): Add a flags argument.
88532         (mbsnwidth): New function.
88533
88534 2000-07-24  Jim Meyering  <meyering@lucent.com>
88535
88536         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88537
88538 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88539
88540         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88541
88542 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88543
88544         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88545         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88546         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88547         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88548         invoke multibyte primitives.
88549
88550 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88551
88552         * lib/quotearg.c:
88553         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88554         so that mbstate_t is always defined.
88555
88556         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88557         be 1 in at least one GCC installation, and this configuration
88558         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88559         performance on hosts that have mbrtowc but have only unibyte
88560         locales, but I assume these hosts are rare.
88561
88562 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88563
88564         * lib/mbswidth.c (_XOPEN_SOURCE):
88565         Don't define; this causes problems on Solaris 7.
88566         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88567
88568 2000-07-23  Jim Meyering  <meyering@lucent.com>
88569
88570         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88571         too: getgrgid, getpwuid, getuid.
88572
88573 2000-07-23  Jim Meyering  <meyering@lucent.com>
88574
88575         * lib/basename.c (base_name): Add an assertion.
88576
88577 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88578
88579         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88580         shadow its mbsinit function.
88581
88582 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88583
88584         * lib/mbswidth.h: New file.
88585         * lib/mbswidth.c: New file.
88586         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88587         (noinst_HEADERS): Add mbswidth.h.
88588
88589 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88590
88591         * lib/config.charset: Add support for FreeBSD. Improve support for
88592         HP-UX and IRIX 6.
88593
88594 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88595
88596         * m4/mbswidth.m4: New file.
88597         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88598
88599 2000-07-15  Jim Meyering  <meyering@lucent.com>
88600
88601         * lib/makepath.c: Include quote.h.
88602         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88603         corresponding argument in a `quote (...)' call.
88604         Give better diagnostics.
88605
88606         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88607         (noinst_HEADERS): Add quote.h.
88608
88609         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88610         from tar's src/misc.c.
88611         * lib/quote.h: New file.  Prototypes for same.
88612
88613 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88614
88615         From a suggestion by Bruno Haible.
88616         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88617         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88618         to decide whether to define the BeOS workaround macro;
88619         this adjusts to the change to AC_MBSTATE_T.
88620
88621 2000-07-14  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88624         jm_AC_TYPE_UINTMAX_T.
88625
88626 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88627
88628         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88629
88630         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88631         quotearg_buffer_restyled): Add support for
88632         clocale_quoting_style.  Undo previous change to
88633         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88634         and "{RIGHT QUOTATION MARK}" msgids.
88635
88636 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88637
88638         From a suggestion by Bruno Haible.
88639         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88640         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88641         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88642         and mbstate_t, to a single-part test that simply defines mbstate_t.
88643         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88644         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88645
88646 2000-07-10  Jim Meyering  <meyering@lucent.com>
88647
88648         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88649
88650         * m4/gnu-source.m4: Output to confdefs.h directly.
88651         Suggestion from Akim Demaille.
88652
88653 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88654
88655         The old behavior of quoting `like this' doesn't look good with
88656         newer, ISO-style fonts.  See:
88657         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88658
88659         Instead, quote "like this" by default.  Let the translator
88660         tailor the locale-specific quoting behavior by providing
88661         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88662
88663         * lib/quotearg.c (N_): New macro.
88664         (gettext_default): New function.
88665         (quotearg_buffer_restyled): Use
88666         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88667         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88668
88669 2000-07-09  Jim Meyering  <meyering@lucent.com>
88670
88671         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88672         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88673
88674         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88675         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88676
88677 2000-07-09  Jim Meyering  <meyering@lucent.com>
88678
88679         * lib/Most files: Update copyright dates to include 2000.
88680
88681 2000-07-08  Jim Meyering  <meyering@lucent.com>
88682
88683         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88684         if not defined.
88685         (xgethostname): Remove now-unnecessary #ifdef.
88686         Move declaration of `err' into loop where it's used.
88687
88688 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88689         and Bruno Haible  <haible@clisp.cons.org>
88690
88691         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88692         only if the test for an object-type mbstate_t fails.  This
88693         prevents us from mistakenly reporting that mbstate_t is a
88694         system object type after we "#define mbstate_t int" to work
88695         around its lack.
88696
88697 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88698         and Bruno Haible  <haible@clisp.cons.org>
88699
88700         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88701
88702 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88703
88704         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88705         to strerror_r.
88706         Include <ctype.h> for use of isalpha.
88707
88708 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88709
88710         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88711         by allocating a larger buffer. Test the gethostname return value for
88712         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88713         returns an error and ENAMETOOLONG isn't defined.
88714
88715 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88716
88717         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88718         dimension.
88719
88720 2000-07-04  Jim Meyering  <meyering@lucent.com>
88721
88722         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88723         of the deprecated AC_CHECKING.
88724
88725 2000-07-04  Jim Meyering  <meyering@lucent.com>
88726
88727         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88728         Reported by Bruno Haible.
88729
88730 2000-07-04  Jim Meyering  <meyering@lucent.com>
88731
88732         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88733         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88734         lacks mbrtowc.
88735
88736 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88737
88738         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88739         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88740
88741 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88742         and Bruno Haible  <haible@clisp.cons.org>
88743
88744         * lib/quotearg.c (mbrtowc):
88745         Assign to *pwc, and return 1 only if result is nonzero.
88746         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88747
88748 2000-07-03  Jim Meyering  <meyering@lucent.com>
88749
88750         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88751
88752 2000-07-03  Jim Meyering  <meyering@lucent.com>
88753
88754         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88755         This is necessary to get a definition of e.g., UTMP_FILE on
88756         HP-UX 10.20.
88757         From Bob Proulx.
88758
88759 2000-07-02  Jim Meyering  <meyering@lucent.com>
88760
88761         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88762
88763         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88764         AC_LIBOBJ(function_name).
88765         * m4/chown.m4: Likewise.
88766         * m4/fnmatch.m4: Likewise.
88767         * m4/ftruncate.m4: Likewise.
88768         * m4/getgroups.m4: Likewise.
88769         * m4/getline.m4: Likewise.
88770         * m4/group-member.m4: Likewise.
88771         * m4/jm-macros.m4: Likewise.
88772         * m4/lstat.m4: Likewise.
88773         * m4/malloc.m4: Likewise.
88774         * m4/memcmp.m4: Likewise.
88775         * m4/nanosleep.m4: Likewise.
88776         * m4/putenv.m4: Likewise.
88777         * m4/realloc.m4: Likewise.
88778         * m4/regex.m4: Likewise.
88779         * m4/stat.m4: Likewise.
88780         * m4/strftime.m4: Likewise.
88781
88782 2000-07-02  Jim Meyering  <meyering@lucent.com>
88783
88784         * lib/quotearg.c (mbstate_t): Don't define here.
88785
88786 2000-07-02  Jim Meyering  <meyering@lucent.com>
88787
88788         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88789
88790 2000-07-01  Jim Meyering  <meyering@lucent.com>
88791
88792         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88793
88794 2000-07-01  Jim Meyering  <meyering@lucent.com>
88795
88796         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88797         problem.
88798
88799 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88800
88801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88802         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88803
88804 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88805
88806         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88807         per change in ../m4/ls-mntd-fs.m4.
88808         (read_filesystem_list): Ignore symbolic links.
88809
88810 2000-06-29  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88813         for declaration of strcmp.
88814
88815         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88816
88817         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88818         Avoid warning by casting result to `char *' to remove `const'.
88819
88820 2000-06-28  Jim Meyering  <meyering@lucent.com>
88821
88822         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88823         included by quotearg.c, for which we perform this test.  From
88824         Bruno Haible.
88825
88826 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88827
88828         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88829         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88830         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88831
88832 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88833
88834         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88835
88836 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88837
88838         savedir now sets errno on failure and invokes xmalloc to get memory.
88839         Fix a couple of other minor bugs while we're at it.
88840
88841         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88842         (NAMLEN): Remove macro.
88843         (malloc, realloc): Remove decls.
88844         (stpcpy): Likewise.
88845         ("xalloc.h"): Include.
88846         (NAME_SIZE_DEFAULT): New macro.
88847         (savedir): Use xmalloc / xrealloc to allocate memory.
88848         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88849         Skip "" directory entries.
88850         Use strlen to calculate directory entry length, since the old method
88851         is rarely used these days and isn't worth supporting.
88852         Don't use a pointer after freeing it.
88853         Check for integer overflow when calculating allocation size.
88854         Use memcpy to copy entries, instead of stpcpy.
88855         Set errno properly when returning NULL.
88856         Check for readdir error.
88857
88858 2000-06-26  Jim Meyering  <meyering@lucent.com>
88859
88860         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88861
88862 2000-06-25  Jim Meyering  <meyering@lucent.com>
88863
88864         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88865         Linux header bug when _XOPEN_SOURCE is defined to 500.
88866
88867 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88868
88869         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88870         deficiency.
88871
88872 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88873
88874         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88875         Include xalloc.h.
88876         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88877
88878 2000-06-24  Jim Meyering  <meyering@lucent.com>
88879
88880         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88881         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88882         for which strerror does return char*, but which lacks a conveniently
88883         accessible declaration of the function.  If the compile-test says
88884         strerror_r doesn't work, then resort to a `run'-test that works on
88885         BeOS and segfaults on DEC Unix.
88886
88887 2000-06-24  Jim Meyering  <meyering@lucent.com>
88888
88889         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88890
88891 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88892
88893         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88894         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88895
88896 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88897
88898         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88899         (mbrtowc, mbstate_t): Define substitutes if
88900         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88901         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88902         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88903
88904 2000-06-23  Jim Meyering  <meyering@lucent.com>
88905
88906         * m4/afs.m4: Add missing AC_MSG_RESULT.
88907         Reported by Bruno Haible.
88908
88909         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88910         Suggestion from Bruno Haible.
88911
88912 2000-06-23  Jim Meyering  <meyering@lucent.com>
88913
88914         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88915
88916 2000-06-21  Jim Meyering  <meyering@lucent.com>
88917
88918         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88919
88920 2000-06-21  Jim Meyering  <meyering@lucent.com>
88921
88922         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88923         (noinst_HEADERS): Add getstr.h.
88924
88925         * lib/getline.c (getstr): Move into a separate file.
88926         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88927         the following changes: new parameter, delim2; both delim[12]
88928         parameters have type `int', not `char'.  The latter would lose
88929         with 8-bit delimiters.
88930         * lib/getstr.h: New file.
88931
88932 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88933
88934         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88935         than 1024, return a memory chunk of least possible size, instead
88936         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88937         Use free/xmalloc instead of xrealloc to avoid copying for very long
88938         paths.
88939
88940 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88941
88942         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88943         the empty string.
88944
88945 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88946
88947         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88948         address, not strdup.  Include <stdlib.h> and don't declare free().
88949
88950 2000-06-19  Jim Meyering  <meyering@lucent.com>
88951
88952         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88953
88954 2000-06-18  Jim Meyering  <meyering@lucent.com>
88955
88956         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88957
88958         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88959         `checking whether...' message to be consistent with that of the
88960         lstat test.
88961
88962 2000-06-18  Jim Meyering  <meyering@lucent.com>
88963
88964         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88965         Besides, these days every porting target provides a mkdir function.
88966
88967         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88968         needed. (this snippet comes from src/system.h).
88969
88970 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88971
88972         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88973
88974 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88975
88976         * lib/human.c (adjust_value): New function.
88977         (human_readable_inexact): Apply rounding style even when
88978         printing approximate values.
88979
88980 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88981
88982         * lib/human.c (human_readable_inexact): Allow an input block
88983         size that is not a multiple of the output block size, and vice versa.
88984         Reported by Piergiorgio Sartor.
88985
88986 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88987
88988         * lib/getdate.y (get_date): Apply relative times after time
88989         zone indicator, not before.  Reported by Todd A. Jacobs.
88990
88991 2000-06-13  Jim Meyering  <meyering@lucent.com>
88992
88993         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88994
88995         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88996
88997 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88998
88999         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89000
89001 2000-06-12  Jim Meyering  <meyering@lucent.com>
89002
89003         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89004         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89005         optional argument.
89006         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89007         the optional argument, `lib'.
89008
89009 2000-06-08  Jim Meyering  <meyering@lucent.com>
89010
89011         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89012
89013 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89014
89015         Rewrite largefile configuration so that we don't need to run
89016         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89017         AC_CANONICAL_HOST in configure.in -- jmm]
89018
89019         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89020         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89021         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89022         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89023         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89024         All uses changed.
89025         Instead of inspecting the output of getconf, try to compile the
89026         test program without and with the macro definition.
89027         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89028         for getconf.  Instead, check for the needed flags by compiling
89029         test programs.
89030
89031 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89032
89033         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89034
89035 2000-06-04  Jim Meyering  <meyering@lucent.com>
89036
89037         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89038         SunOS 4.1.4 for which gid_t is an unsigned type.
89039
89040 2000-06-03  Jim Meyering  <meyering@lucent.com>
89041
89042         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89043         now that autoconf requires that.
89044
89045         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89046         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89047         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89048
89049 2000-06-03  Jim Meyering  <meyering@lucent.com>
89050
89051         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89052
89053 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89054
89055         * m4/glibc21.m4: New file.
89056         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89057
89058 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89059
89060         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89061         newer, don't install charset.alias.
89062         * lib/config.charset: Change the Linux/glibc rules so they become empty
89063         on glibc-2.1 or newer.
89064
89065 2000-06-02  Jim Meyering  <meyering@lucent.com>
89066
89067         * lib/mountlist.c: Back out last change.  Instead, do this...
89068         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89069         me_dummy member using the same `ignore'-testing code.
89070         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89071         fs_type strings.
89072         From Mark D. Roth.
89073
89074 2000-05-29  Jim Meyering  <meyering@lucent.com>
89075
89076         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89077         mounts with the `ignore' attribute.  Based on a patch from
89078         Mark D. Roth.
89079
89080 2000-05-28  Jim Meyering  <meyering@lucent.com>
89081
89082         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89083         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89084         * m4/stat.m4: Likewise.
89085         * m4/lstat.m4: Likewise.
89086         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89087
89088         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89089         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89090
89091 2000-05-26  Jim Meyering  <meyering@lucent.com>
89092
89093         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89094
89095 2000-05-24  Jim Meyering  <meyering@lucent.com>
89096
89097         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89098         autoconf requires that.
89099         * m4/lib-check.m4: Likewise.
89100         * m4/jm-macros.m4: Likewise.
89101         * m4/strftime.m4: Likewise.
89102
89103         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89104         AC_CHECK_DECLS, now that autoconf requires that.
89105
89106 2000-05-22  Jim Meyering  <meyering@lucent.com>
89107
89108         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89109         * m4/lstat.m4: Likewise.
89110
89111 2000-05-22  Jim Meyering  <meyering@lucent.com>
89112
89113         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89114
89115 2000-05-20  Jim Meyering  <meyering@lucent.com>
89116
89117         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89118         (jm_PREREQ): Use it.
89119
89120 2000-05-18  Jim Meyering  <meyering@lucent.com>
89121
89122         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89123         back, too, since it may have been modified by allocate_entry.
89124         (hash_delete): Rewrite to use neither the assignment operator
89125         nor the comma operator in an if-expression.
89126
89127 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89128
89129         * lib/closeout.c:
89130         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89131         Remove; no longer needed.
89132         "quotearg.h": Add include.
89133         (file_name): Do not bother to explicitly initialize to NULL; it's less
89134         efficient on some hosts.
89135         (close_stdout_status): Remove test as to whether stdout was already
89136         closed; it breaks for the case "echo x | sort >&-".
89137         Quote file name colons.
89138         Do not assume that _("write error") lacks format strings.
89139
89140 2000-05-15  Jim Meyering  <meyering@lucent.com>
89141
89142         * lib/version-etc.c (version_etc_copyright): Update the copyright
89143         string used in all --version output.
89144
89145 2000-05-14  Jim Meyering  <meyering@lucent.com>
89146
89147         * lib/closeout.c (close_stdout_set_file_name): New function.
89148         (close_stdout_status): Use new file-scoped global.
89149         Return right away if fstat says the stdout file descriptor is invalid.
89150         * lib/closeout.h (close_stdout_set_file_name): Declare.
89151
89152 2000-05-10  Jim Meyering  <meyering@lucent.com>
89153
89154         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89155         (close_stdout_set_status): New function.
89156         * lib/closeout.h (close_stdout_set_status): Declare.
89157
89158 2000-05-09  Jim Meyering  <meyering@lucent.com>
89159
89160         * m4/gettext.m4: Rename this...
89161         * m4/libintl.m4: ...to this.
89162
89163 2000-05-08  Jim Meyering  <meyering@lucent.com>
89164
89165         * lib/long-options.c: Don't include closeout.h.
89166         (parse_long_options): Don't call close_stdout for --version.
89167
89168 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89169
89170         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89171         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89172         2.1.3 bug.  This avoids a clash when files like regex.c define
89173         _GNU_SOURCE.
89174
89175 2000-05-06  Jim Meyering  <meyering@lucent.com>
89176
89177         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89178         (AC_REPLACE_FUNCS): Add strnlen.
89179
89180         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89181         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89182
89183         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89184         AC_SEARCH_LIBS call for nanosleep.
89185         (LIB_NANOSLEEP): Set and AC_SUBST.
89186
89187 2000-05-06  Jim Meyering  <meyering@lucent.com>
89188
89189         * lib/strnlen.c: Undefine __strnlen and strnlen.
89190         [!weak_alias]: Define __strnlen to strnlen.
89191
89192         * lib/atexit.c: New file, from libiberty.
89193
89194 2000-05-06  Jim Meyering  <meyering@lucent.com>
89195
89196         * lib/closeout.c (close_stdout_status): Also check for errors on the
89197         stderr stream.
89198
89199 2000-05-05  Jim Meyering  <meyering@lucent.com>
89200
89201         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89202         AC_SEARCH_LIBS call for clock_gettime.
89203         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89204
89205         * m4/search-libs.m4: Update from autoconf.
89206
89207         su doesn't work on Solaris 2.6.
89208         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89209         <shadow.h>.  Reported by Dragos Harabor.
89210
89211 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89212
89213         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89214         memcpy instead of xmalloc, xrealloc, path_concat.
89215         (locale_charset): Treat empty environment variables as absent.
89216         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89217
89218 2000-05-04  Jim Meyering  <meyering@lucent.com>
89219
89220         * lib/getopt.c: Update from glibc.
89221         * lib/obstack.c: Likewise.
89222         * lib/obstack.h: Likewise.
89223         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89224         file
89225
89226         * lib/regex.h: Likewise.
89227         * lib/strndup.c: Likewise.
89228         * lib/strnlen.c: New file, from glibc.
89229
89230 2000-05-03  Jim Meyering  <meyering@lucent.com>
89231
89232         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89233
89234 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89235
89236         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89237         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89238         compile-time test, rather than inspecting host and OS, to
89239         decide whether to define _LARGEFILE_SOURCE.
89240
89241 2000-05-01  Jim Meyering  <meyering@lucent.com>
89242
89243         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89244
89245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89246         Based on a patch from Bruno Haible.
89247
89248 2000-05-01  Jim Meyering  <meyering@lucent.com>
89249
89250         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89251
89252 2000-04-29  Jim Meyering  <meyering@lucent.com>
89253
89254         * lib/path-concat.c: Declare strdup only if it's not defined.
89255         * lib/canon-host.c: Likewise.
89256
89257 2000-04-28  Jim Meyering  <meyering@lucent.com>
89258
89259         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89260         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89261         is included first, then limits.h is included by locale.h by libintl.h.
89262         From John David Anglin.
89263
89264 2000-04-25  Jim Meyering  <meyering@lucent.com>
89265
89266         * lib/makepath.c (S_IRWXUGO): Define.
89267         (make_path): Always perform explicit chmod if MODE specifies any
89268         of the `special' permission bits.  Prompted by a bug report against
89269         install from Mate Wierdl and Joost van Baal.
89270
89271 2000-04-18  Jim Meyering  <meyering@lucent.com>
89272
89273         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89274         (jm_PREREQ): Use it.
89275
89276 2000-04-18  Jim Meyering  <meyering@lucent.com>
89277
89278         * lib/README: New file.
89279
89280         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89281         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89282
89283 2000-04-17  Jim Meyering  <meyering@lucent.com>
89284
89285         Get it right :-)
89286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89287         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89288         Suggestion from Akim Demaille.
89289
89290 2000-04-17  Jim Meyering  <meyering@lucent.com>
89291
89292         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89293         the definition of it to rpl_strftime also defined-away the system's
89294         declaration.
89295
89296 2000-04-15  Jim Meyering  <meyering@lucent.com>
89297
89298         Use `C' to denote so-called `contiguous' files, the same way
89299         that tar does.
89300         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89301         (ftypelet): Use S_ISCTG.
89302         From Michael Deutschmann.
89303
89304 2000-04-14  Jim Meyering  <meyering@lucent.com>
89305
89306         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89307         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89308         clobbered.
89309
89310 2000-04-14  Jim Meyering  <meyering@lucent.com>
89311
89312         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89313
89314 2000-04-13  Jim Meyering  <meyering@lucent.com>
89315
89316         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89317         AH_VERBATIM to insert required #ifndef into config.h.in.
89318         Suggestion from Akim Demaille.
89319
89320 2000-04-12  Jim Meyering  <meyering@lucent.com>
89321
89322         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89323         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89324         Christian Krackowizer.
89325
89326         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89327         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89328         (AC_SYS_LARGEFILE): Require.
89329         (AM_C_PROTOTYPES): Require.
89330
89331 2000-04-08  Jim Meyering  <meyering@lucent.com>
89332
89333         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89334         names don't conflict.  Reported by Eli Zaretskii.
89335
89336 2000-04-07  Jim Meyering  <meyering@lucent.com>
89337
89338         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89339         sys/types.h, to work around system header problems on AIX 3.2.5.
89340         From Bruno Haible.
89341
89342 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89343
89344         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89345         bug.  Deal with the different error behavior of Irix iconv.
89346
89347 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89348
89349         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89350         IRIX if the installer said otherwise.
89351
89352 2000-04-05  Jim Meyering  <meyering@lucent.com>
89353
89354         Portability tweaks required for ultrix4.3.
89355         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89356         (jm_CHECK_DECLS): Add getutent to the list of functions.
89357         (_jm_DECL_HEADERS): Add utmpx.h.
89358         From John David Anglin.
89359
89360         * m4/strftime.m4: Back out the 2000-04-02 change.
89361         Instead of that change, simply undefine putenv in the test program.
89362
89363 2000-04-05  Jim Meyering  <meyering@lucent.com>
89364
89365         Portability tweaks required for ultrix4.3.
89366         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89367         getutent.
89368         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89369         * lib/canon-host.c: Declare strdup.
89370         * lib/path-concat.c: Likewise.
89371         From John David Anglin.
89372
89373 2000-04-04  Jim Meyering  <meyering@lucent.com>
89374
89375         Be more DOS 8.3-friendly.
89376         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89377         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89378         * lib/Makefile.am: Reflect renaming.
89379         Reported by Eli Zaretskii.
89380
89381         Use a temporary file name that won't clash with `charset.alias'
89382         in the DOS 8.3 name space.
89383         * lib/Makefile.am (charset_tmp): Define.
89384         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89385         (uninstall-local): Likewise.
89386         Reported by Eli Zaretskii.
89387
89388 2000-04-03  Jim Meyering  <meyering@lucent.com>
89389
89390         * m4/gettext.m4: Fix typo in comment.
89391
89392         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89393         textutils/configure.in).  Suggestion from Paul Eggert.
89394         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89395
89396 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89397
89398         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89399         variable in the shell rather than using putenv, which isn't
89400         portable.  This avoids the configure-time inter-test dependency
89401         on the potentially-renamed putenv function.
89402
89403 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89404
89405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89406         before checking struct stat.st_blksize, so that
89407         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89408
89409 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89410
89411         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89412         since strftime.c uses HAVE_STRFTIME to decide whether to use
89413         the underlying strftime.
89414
89415 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89416
89417         * lib/time/strftime.c (my_strftime): Make sure we call the system
89418         strftime, not ourselves, when invoking the underlying strftime.
89419
89420 2000-03-24  Jim Meyering  <meyering@lucent.com>
89421
89422         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89423         (charset_alias): Define.
89424         (install-exec-local): Factor out common code.
89425         (uninstall-local): Split lines longer than 80.
89426         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89427         (SUFFIXES): Define.
89428         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89429         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89430
89431 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89432
89433         * lib/config.charset: Output a line containing "Packages using this
89434         file".
89435         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89436         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89437         ref-del.sed): New rules.
89438
89439 2000-03-17  Jim Meyering  <meyering@lucent.com>
89440
89441         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89442         Otherwise, include <strings.h>
89443
89444 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89445
89446         * lib/unicodeio.c (utf8_wctomb): New function.
89447         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89448         format instead of in UCS-4 with platform dependent endianness.
89449
89450 2000-03-10  Jim Meyering  <meyering@lucent.com>
89451
89452         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89453         From Marco Franzen.
89454
89455 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89456
89457         * lib/savedir.c (savedir): Work even if directory size is
89458         negative; this can happen with some screwy NFS configurations.
89459
89460 2000-03-06  Jim Meyering  <meyering@lucent.com>
89461
89462         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89463         if it's NULL (because we ran out of memory).  From Bruno Haible.
89464
89465 2000-03-05  Jim Meyering  <meyering@lucent.com>
89466
89467         * lib/localcharset.c ("path-concat.h"): Include.
89468         (get_charset_aliases): Use path_concat instead of ANSI string
89469         concatenation.
89470
89471         * lib/unicodeio.h (PARAMS): Define.
89472         Use it to guard prototype.
89473
89474 2000-03-04  Jim Meyering  <meyering@lucent.com>
89475
89476         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89477         for lib/localcharset.c.
89478
89479 2000-03-04  Jim Meyering  <meyering@lucent.com>
89480
89481         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89482         installing into it.
89483         (uninstall-local): Uncomment this rule so `make distcheck' works
89484         once again.
89485
89486         * lib/unicodeio.c (<errno.h>): Include it.
89487         (errno): Declare if not defined.
89488
89489         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89490
89491         * lib/config.charset: New version, incorporating remarks from a linux
89492         i18n mailing list.  From Bruno Haible.
89493
89494 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89495
89496         * m4/codeset.m4: New file.
89497         * m4/iconv.m4: New file.
89498         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89499
89500 2000-03-03  Jim Meyering  <meyering@lucent.com>
89501
89502         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89503
89504 2000-03-02  Jim Meyering  <meyering@lucent.com>
89505
89506         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89507         the messages come out on separate lines.
89508
89509         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89510         rather than jm_CHECK_DECLARATIONS.
89511         * m4/decl.m4: Remove now-unused file.
89512
89513         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89514         geteuid.
89515
89516 2000-03-02  Jim Meyering  <meyering@lucent.com>
89517
89518         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89519
89520 2000-03-01  Jim Meyering  <meyering@lucent.com>
89521
89522         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89523         * lib/unicodeio.c: Likewise.
89524
89525 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89526
89527         * lib/config.charset: New file.
89528         * lib/localcharset.c: New file.
89529         * lib/unicodeio.h, lib/unicodeio.c: New files.
89530         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89531         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89532         (noinst_HEADERS): Add unicodeio.h.
89533         (all-local, install-exec-local, charset.alias): New targets.
89534
89535 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89536
89537         * lib/quotearg.c (ALERT_CHAR): New macro.
89538         (quotearg_buffer_restyled): Use it.
89539
89540 2000-02-27  Jim Meyering  <meyering@lucent.com>
89541
89542         * m4/check-decl.m4: Add getenv to the list.
89543
89544 2000-02-27  Jim Meyering  <meyering@lucent.com>
89545
89546         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89547         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89548
89549         * lib/backupfile.c: Guard inclusion of stdlib.h with
89550         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89551         Declare malloc if needed.
89552
89553         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89554         `#ifndef HAVE_DECL..'
89555         now that autoconf always defines the HAVE_DECL_ symbols.
89556         * lib/human.c: Likewise.
89557         * lib/same.c: Likewise.
89558         * lib/strtoumax.c: Likewise.
89559
89560         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89561         declaration check was not run.
89562         * lib/hash.c: Likewise.
89563         * lib/human.c: Likewise.
89564         * lib/same.c: Likewise.
89565         * lib/strtoumax.c: Likewise.
89566
89567         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89568         `.', then first look up the entire `.'-containing string as a login
89569         name.
89570
89571 2000-02-23  Jim Meyering  <meyering@lucent.com>
89572
89573         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89574         in place of my hack.
89575
89576 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89577
89578         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89579         (textint): New typedef.
89580         (parser_control): Member year changed from int to textint.
89581         All uses changed.
89582         (YYSTYPE): Removed; replaced by %union with int and textint members.
89583         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89584         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89585         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89586         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89587         (date, number, to_year): Use width of number in digits, not its value,
89588         to determine whether it's a 2-digit year, or a 2-digit time.
89589         (yylex): Store number of digits of numeric tokens.
89590         Reported by John Kendall.
89591
89592         (parser_control): Changed from struct parser_control to typedef (for
89593         consistency).  All uses changed.
89594
89595         (tID): Removed; not used.
89596         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89597
89598 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89599
89600         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89601         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89602
89603 2000-02-12  Jim Meyering  <meyering@lucent.com>
89604
89605         * lib/userspec.c (ISDIGIT): Define it.
89606         (isdigit): Remove definition.
89607         (is_number): Use ISDIGIT, not isdigit.
89608         <libintl.h>: Include.
89609         (_ and N_): Define.
89610         (parse_user_spec): Mark translatable strings.
89611
89612 2000-02-10  Jim Meyering  <meyering@lucent.com>
89613
89614         With these changes, nanosleep.[ch] are finally enough like the other
89615         lib/* replacement files to compile on a few more losing systems.
89616
89617         * lib/nanosleep.h: Don't include config.h.
89618         Remove prototype from declaration of nanosleep.
89619         (PARAMS): Remove now-unneeded definition.
89620         * lib/nanosleep.c: #undef nanosleep.
89621         (rpl_nanosleep): Rename from nanosleep.
89622
89623 2000-02-10  Jim Meyering  <meyering@lucent.com>
89624
89625         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89626         gnu_nanosleep to rpl_nanosleep.
89627
89628 2000-02-09  Jim Meyering  <meyering@lucent.com>
89629
89630         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89631         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89632
89633 2000-02-08  Akim Demaille  <akim@epita.fr>
89634
89635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89636         `[' and `]' and remove uses of `changequote'.
89637         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89638         (AC_SYS_LARGEFILE): Likewise.
89639         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89640         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89641         of changequote.
89642         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89643         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89644         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89645         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89646
89647 2000-02-05  Jim Meyering  <meyering@lucent.com>
89648
89649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89650         Remove explicit use of AC_HEADER_TIME.  It is required by
89651         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89652         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89653         in autoconf whereby the expansion of the latter ended up preceding
89654         the expansion of its prerequisite, AC_HEADER_TIME.
89655         Reported by Volker Borchert.
89656
89657 2000-02-03  Jim Meyering  <meyering@lucent.com>
89658
89659         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89660
89661 2000-02-03  Jim Meyering  <meyering@lucent.com>
89662
89663         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89664         rather than with `#if HAVE_UTMPNAME'.
89665
89666 2000-02-02  Jim Meyering  <meyering@lucent.com>
89667
89668         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89669         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89670         Reported by Eli Zaretskii.
89671
89672 2000-02-01  Jim Meyering  <meyering@lucent.com>
89673
89674         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89675
89676 2000-01-31  Jim Meyering  <meyering@lucent.com>
89677
89678         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89679         functions.  Add the time.h and sys/time.h headers along with the
89680         AC_REQUIRE'ment of AC_HEADER_TIME.
89681
89682 2000-01-31  Jim Meyering  <meyering@lucent.com>
89683
89684         * lib/nanosleep.h (nanosleep): Guard declaration with
89685         `#if ! HAVE_DECL_NANOSLEEP'.
89686         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89687         the declaration in that vendor's sys/timers.h.
89688         Reported by Christian Krackowizer.
89689
89690         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89691         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89692         (ISPRINT): Likewise.
89693         Reported by Tom Tromey.
89694
89695 2000-01-30  Jim Meyering  <meyering@lucent.com>
89696
89697         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89698
89699         * m4/prereq.m4 (utmp_includes): Define.
89700         Check for ut_user and ut_name members in both struct utmpx
89701         and struct utmp.
89702
89703 2000-01-30  Jim Meyering  <meyering@lucent.com>
89704
89705         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89706         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89707         header files where only utmpx.ut_user is declared.
89708
89709         * lib/readutmp.h (UT_USER): Define.
89710
89711 2000-01-29  Jim Meyering  <meyering@lucent.com>
89712
89713         * m4/lib-check.m4: New file containing library-related checks from
89714         fileutils and sh-utils (textutils had none).
89715
89716 2000-01-28  Jim Meyering  <meyering@lucent.com>
89717
89718         * m4/perl.m4: Change format of warning message to look more like that
89719         from the missing script.  Suggestion from François Pinard.
89720
89721 2000-01-25  Jim Meyering  <meyering@lucent.com>
89722
89723         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89724         well as time.h in the compile check.
89725         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89726         Fix typo in cross-compiling case: s/yes/no/.
89727
89728 2000-01-23  Jim Meyering  <meyering@lucent.com>
89729
89730         * m4/jm-macros.m4: Move df-related tests here from
89731         fileutils/configure.in
89732
89733         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89734         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89735
89736         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89737         s/space/ac_fsusage_space/.
89738         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89739
89740         * m4/ftruncate.m4: New file (derived from part of
89741         fileutils/configure.in).
89742         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89743         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89744
89745         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89746         AC_SUBST these here, rather than just in sh-util/configure.in, so
89747         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89748         all the same.
89749         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89750         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89751         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89752         (AC_SUBST(POW_LIBM)): Likewise.
89753         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89754
89755 2000-01-23  Jim Meyering  <meyering@lucent.com>
89756
89757         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89758         obstack.c.
89759
89760 2000-01-22  Jim Meyering  <meyering@lucent.com>
89761
89762         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89763
89764         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89765
89766         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89767         configure.in
89768         (AC_CHECK_HEADERS): Likewise for sh-utils.
89769         (AC_CHECK_HEADERS): Likewise for textutils.
89770         Merge the three lists of headers.
89771
89772         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89773         from fileutils' configure.in.
89774
89775         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89776         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89777         check-decl.m4.
89778
89779         * m4/check-decl.m4: Use #if rather than #ifdef.
89780         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89781         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89782         (_jm_DECL_HEADERS): Define new function.
89783         (jm_CHECK_DECLARATIONS): Require it.
89784
89785 2000-01-22  Jim Meyering  <meyering@lucent.com>
89786
89787         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89788         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89789         Required for some AIX systems.  Reported by Christian Krackowizer.
89790         [TESTING] (main): New function.
89791
89792         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89793         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89794         letters.
89795
89796         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89797         iswprint.
89798
89799         * lib/strverscmp.c (ISDIGIT): Define.
89800         (strverscmp): Use ISDIGIT, not isdigit.
89801
89802 2000-01-19  Jim Meyering  <meyering@lucent.com>
89803
89804         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89805         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89806         defines `struct timespec' in <sys/time.h>
89807
89808         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89809         Thanks to Akim for explaining.
89810
89811 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89812
89813         * lib/nanosleep.c (nanosleep):
89814         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89815         POSIX.1 doesn't require SA_INTERRUPT and some systems
89816         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89817         it's been part of POSIX.1 since day 1 (in 1988).
89818
89819 2000-01-17  Jim Meyering  <meyering@lucent.com>
89820
89821         * lib/interlock: Remove unused file.  Reported by François Pinard.
89822
89823 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89824
89825         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89826         alert, backslash, formfeed, and vertical tab unnecessarily in
89827         shell quoting style.
89828
89829 2000-01-16  Jim Meyering  <meyering@lucent.com>
89830
89831         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89832         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89833         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89834         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89835
89836 2000-01-16  Jim Meyering  <meyering@lucent.com>
89837
89838         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89839         because the latter didn't work.
89840
89841 2000-01-15  Jim Meyering  <meyering@lucent.com>
89842
89843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89844         (AC_REPLACE_FUNCS): Add memcpy and memset.
89845         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89846         Add strpbrk.
89847         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89848
89849 2000-01-12  Jim Meyering  <meyering@lucent.com>
89850
89851         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89852         (jm_PREREQ): Use it.
89853         (jm_PREREQ_READUTMP): New macro.
89854         (jm_PREREQ): Use it.
89855
89856 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89857
89858         Quote multibyte characters correctly.
89859         * m4/c-bs-a.m4: New file.
89860         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89861         (jm_PREREQ): Use it.
89862
89863 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89864
89865         * m4/uintmax_t.m4: Port to autoconf 2.13.
89866
89867 2000-01-08  Jim Meyering  <meyering@ascend.com>
89868
89869         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89870         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89871
89872 2000-01-04  Jim Meyering  <meyering@ascend.com>
89873
89874         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89875         jm_STRUCT_DIRENT_D_TYPE.
89876         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89877         jm_STRUCT_DIRENT_D_INO.
89878         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89879         jm_STRUCT_UTIMBUF.
89880         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89881         renamings.
89882         * m4/utime.m4: Likewise.
89883
89884         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89885         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89886
89887 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89888
89889         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89890         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89891
89892 2000-01-02  Jim Meyering  <meyering@ascend.com>
89893
89894         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89895         remember if this is necessary.
89896
89897 1999-12-26  Jim Meyering  <meyering@ascend.com>
89898
89899         * m4/jm-macros.m4: Use it here.
89900         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89901
89902 1999-12-23  Jim Meyering  <meyering@ascend.com>
89903
89904         * m4/jm-macros.m4: Check for clock_gettime (moved from
89905         fileutils/configure.in)
89906         Check for gettimeofday.
89907
89908 1999-12-20  Jim Meyering  <meyering@ascend.com>
89909
89910         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89911         autoconf-2.14a-1999-12-20.
89912
89913 1999-12-19  Jim Meyering  <meyering@ascend.com>
89914
89915         * m4/lstat-slash.m4: New file.
89916         * m4/jm-macros.m4: Use the new macro:
89917         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89918
89919 1999-12-07  Jim Meyering  <meyering@ascend.com>
89920
89921         * m4/perl.m4: Require that File::Compare be available, too.
89922         Too many systems seem to lack it.
89923
89924         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89925         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89926
89927 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89928
89929         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89930         problem with the QNX 4.25 shell, which doesn't propagate exit
89931         status of failed commands inside shell assignments.
89932
89933 1999-11-17  Jim Meyering  <meyering@ascend.com>
89934
89935         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89936
89937 1999-11-07  Jim Meyering  <meyering@ascend.com>
89938
89939         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89940
89941 1999-11-06  Jim Meyering  <meyering@ascend.com>
89942
89943         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89944         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89945
89946 1999-11-05  Jim Meyering  <meyering@ascend.com>
89947
89948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89949         configure.in of textutils, fileutils, and sh-utils into this one
89950         (shared between those packages) file.
89951         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89952         AC_STRUCT_ST_BLKSIZE.
89953
89954 1999-11-03  Jim Meyering  <meyering@ascend.com>
89955
89956         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89957         of AC_CHECK_TYPE checks includes unistd.h.
89958         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89959         Suggestion from Akim Demaille.
89960
89961 1999-10-30  Jim Meyering  <meyering@ascend.com>
89962
89963         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89964         m4-quoted string.
89965         * m4/ls-mntd-fs.m4: Likewise.
89966         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89967         * m4/jm-winsz1.m4: Likewise.
89968
89969         * m4/const.m4: Remove file, since the fix made it into the experimental
89970         version of autoconf.
89971         * m4/mktime.m4: Likewise.
89972
89973         * m4/check-type.m4: Remove file, now that the latest version of
89974         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89975
89976         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89977         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89978         AC_CHECK_TYPE.
89979
89980 1999-10-04  Jim Meyering  <meyering@ascend.com>
89981
89982         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89983
89984 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89985
89986         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89987         2.95.1 bug with HP-UX 10.20.
89988
89989 1999-09-17  Jim Meyering  <meyering@ascend.com>
89990
89991         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89992         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89993         due to missing strdup (against sh-utils-2.0).
89994
89995 1999-08-29  Jim Meyering  <meyering@ascend.com>
89996
89997         * m4/jm-macros.m4: Require jm_BISON.
89998         * m4/bison.m4: New file.
89999
90000 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90001
90002         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90003         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90004
90005 1999-08-05  Jim Meyering  <meyering@ascend.com>
90006
90007         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90008         to avoid conflicts with `conftest' on 8+3 filesystems.
90009         Suggestion from Eli Zaretskii.
90010
90011 1999-08-04  Jim Meyering  <meyering@ascend.com>
90012
90013         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90014         fileutils and sh-utils (textutils's getline test was inadequate).
90015         (AM_FUNC_GETLINE): Run this test.
90016         (AC_CHECK_FUNCS): Check for getdelim.
90017         Reported by Bob Proulx.
90018
90019 1999-08-02  Jim Meyering  <meyering@ascend.com>
90020
90021         * m4/jm-macros.m4: Add a comment.
90022
90023 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90024
90025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90026         <inttypes.h> defines strtoumax as a macro (and not as a
90027         function).
90028
90029 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90030
90031         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90032         that we can shift, multiply and divide unsigned long long
90033         values; Ultrix cc can't do it.
90034
90035 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90036
90037         * m4/mktime.m4: New file, which is a preview of what should appear
90038         in the next public autoconf release.
90039
90040 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90041
90042         * m4/lfs.m4: Remove this file.
90043         * m4/largefile.m4: New file.  It contains the old contents of
90044         lfs.m4, except that all names with prefix AC_LFS have been
90045         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90046         compatible with future autoconf versions.  Also, some minor m4
90047         quoting problems have been fixed.
90048
90049 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90050
90051         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90052         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90053         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90054         and simplify the shell code.
90055
90056 1999-08-01  Jim Meyering  <meyering@ascend.com>
90057
90058         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90059         m4.
90060
90061 1999-07-20  Jim Meyering  <meyering@ascend.com>
90062
90063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90064
90065 1999-07-15  Jim Meyering  <meyering@ascend.com>
90066
90067         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90068
90069 1999-05-22  Jim Meyering  <meyering@ascend.com>
90070
90071         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90072
90073 1999-05-20  Jim Meyering  <meyering@ascend.com>
90074
90075         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90076         Add a colon after each `then' in case $4 is empty.
90077
90078 1999-05-16  Jim Meyering  <meyering@ascend.com>
90079
90080         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90081
90082 1999-05-10  Jim Meyering  <meyering@ascend.com>
90083
90084         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90085
90086         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90087         AC_FUNC_MKTIME.
90088
90089 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90090
90091         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90092
90093 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90094
90095         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90096         not CPPFLAGS, so that linking works correctly in IRIX.
90097
90098 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90099
90100         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90101
90102 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90103
90104         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90105         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90106         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90107         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90108         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90109
90110         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90111
90112 1999-04-20  Jim Meyering  <meyering@ascend.com>
90113
90114         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90115         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90116         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90117
90118 1999-04-18  Jim Meyering  <meyering@ascend.com>
90119
90120         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90121         * m4/jm-macros.m4: Use it.
90122
90123 1999-04-06  Jim Meyering  <meyering@ascend.com>
90124
90125         * m4/strftime.m4: Remove test for %f.
90126
90127 1999-03-29  Jim Meyering  <meyering@ascend.com>
90128
90129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90130         superset of the AC_TYPE_* checks in the textutils, fileutils,
90131         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90132         AC_TYPE_PID_T.
90133
90134 1999-03-28  Jim Meyering  <meyering@ascend.com>
90135
90136         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90137         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90138         replaced e.g., in the *.sh files of the sh-utils.
90139
90140 1999-03-20  Jim Meyering  <meyering@ascend.com>
90141
90142         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90143         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90144         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90145
90146 1999-03-19  Jim Meyering  <meyering@ascend.com>
90147
90148         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90149
90150 1999-03-12  Jim Meyering  <meyering@ascend.com>
90151
90152         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90153
90154 1999-03-07  Jim Meyering  <meyering@ascend.com>
90155
90156         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90157         declared.
90158
90159 1999-02-17  Jim Meyering  <meyering@ascend.com>
90160
90161         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90162         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90163
90164 1999-02-07  Jim Meyering  <meyering@ascend.com>
90165
90166         * m4/group-member.m4: New file -- extracted from sh-utils'
90167         configure.in.
90168
90169         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90170         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90171
90172 1999-02-06  Jim Meyering  <meyering@ascend.com>
90173
90174         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90175         * m4/fnmatch.m4: Likewise.
90176         * m4/getgroups.m4: Likewise.
90177         * m4/lstat.m4: Likewise.
90178         * m4/malloc.m4: Likewise.
90179         * m4/putenv.m4: Likewise.
90180         * m4/realloc.m4: Likewise.
90181         * m4/regex.m4: Likewise.
90182         * m4/stat.m4: Likewise.
90183         * m4/strftime.m4: Likewise.
90184         Suggestion from Alain Magloire.
90185
90186         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90187         * m4/fnmatch.m4: Likewise.
90188         * m4/getgroups.m4: Likewise.
90189         * m4/getline.m4: Likewise.
90190         * m4/lstat.m4: Likewise.
90191         * m4/malloc.m4: Likewise.
90192         * m4/memcmp.m4: Likewise.
90193         * m4/putenv.m4: Likewise.
90194         * m4/realloc.m4: Likewise.
90195         * m4/regex.m4: Likewise.
90196         * m4/stat.m4: Likewise.
90197         * m4/strftime.m4: Likewise.
90198         Suggestion from Alain Magloire.
90199
90200         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90201         an argument.
90202
90203         * m4/regex.m4: Add a run-time Test for proper operation of
90204         re_compile_pattern.
90205
90206 1999-01-31  Jim Meyering  <meyering@ascend.com>
90207
90208         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90209
90210 1999-01-30  Jim Meyering  <meyering@ascend.com>
90211
90212         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90213
90214         * m4/jm-mktime.m4: Make this a wrapper around the official
90215         AM_FUNC_MKTIME rather than my private copy, now that the official one
90216         is up to date.
90217         * m4/mktime.m4: Remove file.
90218
90219         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90220         * m4/uptime.m4: Likewise.
90221         * m4/uintmax_t.m4: Likewise.
90222
90223 1999-01-28  Jim Meyering  <meyering@ascend.com>
90224
90225         * m4/jm-macros.m4: Use jm_AFS.
90226         * m4/afs.m4: New file (from fileutils' configure.in).
90227
90228         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90229         * m4/chown.m4: Likewise.
90230         * m4/d-ino.m4: Likewise.
90231         * m4/d-type.m4: Likewise.
90232         * m4/fnmatch.m4: Likewise.
90233         * m4/getgroups.m4: Likewise.
90234         * m4/gettext.m4: Likewise.
90235         * m4/jm-mktime.m4: Likewise.
90236         * m4/jm-winsz2.m4: Likewise.
90237         * m4/lcmessage.m4: Likewise.
90238         * m4/ls-mntd-fs.m4: Likewise.
90239         * m4/malloc.m4: Likewise.
90240         * m4/memcmp.m4: Likewise.
90241         * m4/putenv.m4: Likewise.
90242         * m4/realloc.m4: Likewise.
90243         * m4/st_mtim.m4: Likewise.
90244         * m4/strftime.m4: Likewise.
90245
90246 1999-01-16  Jim Meyering  <meyering@ascend.com>
90247
90248         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90249         (ARGMATCH_DIE_DECL): Define.
90250
90251 1999-01-12  Jim Meyering  <meyering@ascend.com>
90252
90253         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90254         Reported by Lars Hecking.
90255
90256 1999-01-10  Jim Meyering  <meyering@ascend.com>
90257
90258         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90259         gross kludge.
90260         * m4/inttypes_h.m4: Likewise.
90261         * m4/lstat.m4: Likewise.
90262         * m4/malloc.m4: Likewise.
90263         * m4/readdir.m4: Likewise.
90264         * m4/realloc.m4: Likewise.
90265         * m4/st_dm_mode.m4: Likewise.
90266         * m4/stat.m4: Likewise.
90267         * m4/utimbuf.m4: Likewise.
90268         * m4/utimes.m4: Likewise.
90269
90270         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90271         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90272         comments in config.h.in are meaningful.
90273
90274         * m4/jm-macros.m4: Require autoconf-2.13 here.
90275
90276         * m4/regex.m4: By default, don't use the included regex.c on systems
90277         with glibc 2.  Suggestion from Uli Drepper.
90278
90279 1999-01-02  Jim Meyering  <meyering@ascend.com>
90280
90281         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90282
90283 1998-12-18  Jim Meyering  <meyering@ascend.com>
90284
90285         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90286         Based on a suggestion from Lars Hecking.
90287
90288 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90289
90290         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90291
90292 1998-11-16  Jim Meyering  <meyering@ascend.com>
90293
90294         * m4/lfs.m4: Double-quote the `uname...` expression.
90295
90296 1998-11-14  Jim Meyering  <meyering@ascend.com>
90297
90298         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90299         * m4/stat.m4: Likewise.
90300
90301 1998-11-03  Jim Meyering  <meyering@ascend.com>
90302
90303         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90304         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90305
90306 1998-10-18  Jim Meyering  <meyering@ascend.com>
90307
90308         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90309
90310 1998-10-17  Jim Meyering  <meyering@ascend.com>
90311
90312         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90313         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90314         calls for those previously hard-coded headers.  Instead, take a new
90315         parameter.
90316         (jm_CHECK_DECLARATIONS): Reflect interface change.
90317         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90318         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90319
90320         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90321
90322 1998-10-14  Jim Meyering  <meyering@ascend.com>
90323
90324         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90325         instead of "TZ=America/Vancouver".  From Paul Eggert.
90326
90327 1998-10-11  Jim Meyering  <meyering@ascend.com>
90328
90329         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90330         This adds a test for a recently added compatibility fix for mktime.c.
90331         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90332
90333 1998-09-27  Jim Meyering  <meyering@ascend.com>
90334
90335         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90336
90337         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90338         ../configure.in, including a change from Gordon Matzigkeit to allow
90339         cross-compiling for the Hurd.
90340
90341         * m4/glibc.m4: New file/macro to test for the GNU C Library
90342         versions 1 and 2.  From Gordon Matzigkeit.
90343         Indent.
90344
90345 1998-09-21  Jim Meyering  <meyering@ascend.com>
90346
90347         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90348
90349 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90350
90351         Port nanosecond-resolution times to UnixWare 2.1.2 and
90352         pedantic Solaris 2.6.
90353
90354         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90355         AC_STRUCT_ST_MTIM.
90356         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90357         Generate name of ns member, instead of just 1 or undef.
90358         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90359
90360 1998-08-15  Jim Meyering  <meyering@ascend.com>
90361
90362         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90363         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90364         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90365         instead of jm_TYPE_SSIZE_T.
90366
90367 1998-08-12  Jim Meyering  <meyering@ascend.com>
90368
90369         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90370
90371 1998-08-02  Jim Meyering  <meyering@ascend.com>
90372
90373         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90374         in acconfig.h manually.
90375
90376 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90377
90378         * m4/st_mtim.m4: New file.
90379
90380 1998-07-28  Jim Meyering  <meyering@ascend.com>
90381
90382         * m4/utimes.m4: Undef stat.
90383
90384 1998-07-25  Jim Meyering  <meyering@ascend.com>
90385
90386         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90387         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90388
90389 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90390
90391         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90392         uid and gid actually remain unchanged.
90393
90394 1998-07-07  Jim Meyering  <meyering@ascend.com>
90395
90396         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90397
90398 1998-07-04  Jim Meyering  <meyering@ascend.com>
90399
90400         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90401         to prove that this macro can be used in packages without regex.c.
90402
90403 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90404
90405         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90406         is to be used.
90407
90408 1998-07-03  Jim Meyering  <meyering@ascend.com>
90409
90410         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90411
90412         * m4/gettext.m4: New file -- from gettext-0.10.35.
90413         * m4/lcmessage.m4: Likewise.
90414         * m4/progtest.m4: Likewise.
90415
90416         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90417         * m4/jm-macros.m4: Require the new macro.
90418
90419 1998-06-29  Jim Meyering  <meyering@ascend.com>
90420
90421         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90422         for the definition of NGROUPS (used in a system header included
90423         by sys/mount.h).
90424
90425 1998-06-28  Jim Meyering  <meyering@ascend.com>
90426
90427         * m4/ls-mntd-fs.m4: New file.
90428         * m4/fstypename.m4: New file.
90429
90430         * m4/jm-macros.m4: Require the new macro.
90431         * m4/jm-glibc-io.m4: New file.
90432
90433 1998-05-19  Jim Meyering  <meyering@ascend.com>
90434
90435         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90436         * m4/lchown.m4: New file.
90437
90438         * m4/Makefile.am.in: New file.
90439         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90440
90441 1998-05-14  Jim Meyering  <meyering@ascend.com>
90442
90443         * m4/Makefile.am (EXTRA_DIST): Add them.
90444         * m4/jm-macros.m4: New file.
90445         * m4/utimbuf.m4: New file.
90446
90447 1998-05-12  Jim Meyering  <meyering@ascend.com>
90448
90449         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90450
90451 1998-05-11  Jim Meyering  <meyering@ascend.com>
90452
90453         * m4/isc-posix.m4: New file.
90454
90455 1998-05-10  Jim Meyering  <meyering@ascend.com>
90456
90457         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90458
90459 1998-05-09  Jim Meyering  <meyering@ascend.com>
90460
90461         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90462         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90463         with automake.
90464
90465         * m4/ssize_t.m4: New file.
90466         * m4/mktime.m4: Remove file -- the new automake has this now.
90467
90468 1998-04-26  Jim Meyering  <meyering@ascend.com>
90469
90470         * m4/assert.m4: New file.
90471         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90472
90473 1998-04-05  Jim Meyering  <meyering@ascend.com>
90474
90475         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90476         (jm_PREREQ): Use it here.
90477
90478 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90479
90480         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90481         in acconfig.h.
90482
90483 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90484
90485         * m4/prereq.m4: New file.
90486         * m4/error.m4: New file.
90487         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90488
90489 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90490
90491         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90492         cache-check for the same variable -- that defeated the purpose of
90493         the test; the test program was never run.  This was a problem only
90494         on systems with losing getline functions -- HP-UX 10.20 is one.
90495         Reported by Bjorn Helgaas.
90496
90497 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90498
90499         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90500
90501 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90502
90503         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90504
90505         * m4/const.m4: New file.  Use an initializer in this declaration
90506         typedef int charset[2]; const charset x;
90507         Reported by Bob Glickstein.
90508
90509 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90510
90511         * m4/chown.m4: Fix reversed types on -1 args to chown.
90512         From Kaveh Ghazi.
90513
90514 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90515
90516         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90517         Add lseek and memchr.
90518
90519         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90520         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90521         have a 20-character limit on names.
90522
90523 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90524
90525         * m4/inttypes_h.m4: New file.
90526         * m4/uintmax_t.m4: New file.
90527         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90528
90529
90530         -----
90531
90532         Local Variables:
90533         coding: utf-8
90534         End:
90535
90536         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90537
90538         Copying and distribution of this file, with or without
90539         modification, are permitted provided the copyright notice
90540         and this notice are preserved.